src/main/java/org/efaps/ui/wicket/models/field/factories/LinkWithRangesUIFactory.java
@SuppressWarnings("unchecked")
    @Override
    protected String getReadOnlyValue(final AbstractUIField _abstractUIField)
        throws EFapsException
    {
        String strValue = "";
        if (_abstractUIField.getValue().getDbValue() != null) {
            final Object valueObj = _abstractUIField.getValue().getReadOnlyValue(_abstractUIField.getParent()
                            .getMode());
            if (valueObj instanceof List) {
                final List<IOption> values = (List<IOption>) valueObj;
                if (values != null && !values.isEmpty()) {
                    if (values.size() == 1) {
                        strValue = values.get(0).getLabel();
                    } else {
                        for (final IOption option : values) {
                            if (option.isSelected()) {
                                strValue = option.getLabel();
                                break;
                            }
                        }
                    }
                }
            } else if (valueObj != null) {
                strValue = valueObj.toString();
            }
        }
        return strValue;
    }
@SuppressWarnings("unchecked")
    @Override
    protected String getReadOnlyValue(final AbstractUIField _abstractUIField)
        throws EFapsException
    {
        String strValue = "";
        if (_abstractUIField.getValue().getDbValue() != null) {
            final Object valueObj = _abstractUIField.getValue().getReadOnlyValue(_abstractUIField.getParent()
                            .getMode());
            if (valueObj instanceof List) {
                final List<IOption> values = (List<IOption>) valueObj;
                if (values != null && !values.isEmpty()) {
                    if (values.size() == 1) {
                        strValue = values.get(0).getLabel();
                    } else {
                        for (final IOption option : values) {
                            if (option.isSelected()) {
                                strValue = option.getLabel();
                                break;
                            }
                        }
                    }
                }
            } else if (valueObj != null) {
                strValue = valueObj.toString();
            }
        }
        return strValue;
    }
{@inheritDoc}