This guy is the culprit... tap-5.3.6

I believe it needs to depend on a default toString() is it fails to find a 
labelProperty.

I need a workaround folks... so waiting on your best.

thanks

KEN

    @SuppressWarnings("unchecked")
    public SelectModel create(final List<?> objects, final String labelProperty)
    {
        final List<OptionModel> options = CollectionFactory.newList();

        for (final Object object : objects)
        {
            final ClassPropertyAdapter classPropertyAdapter = 
this.propertyAccess
                    .getAdapter(object);

            final PropertyAdapter propertyAdapter = 
classPropertyAdapter.getPropertyAdapter(labelProperty);

            final ValueEncoder encoder = 
this.valueEncoderSource.getValueEncoder(propertyAdapter.getType());

            final Object label = propertyAdapter.get(object);

            options.add(new OptionModelImpl(encoder.toClient(label), object));

        }

        return new SelectModelImpl(null, options);
    }
                                          

Reply via email to