Am 28.01.2010 15:32, schrieb Kristian Marinkovic:
public class SimpleOptionModel<T>  implements OptionModel
{
         private final T value;
         private final String label;

         public SimpleOptionModel(T value, String label)
         {
                 this.label = label;
                 this.value = value;
         }



Unfortunatly this interface has some more functions to implement. My point is: isn't this all a bit to complicated? Just in order to show a model like the one I was referring to in my first mail?



    @Override
    public Map<String, String> getAttributes() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String getLabel() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Object getValue() {
        // TODO Auto-generated method stub
        return null;
    }



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to