Re: Label to Uppercase

2008-05-08 Thread ak
this message in context: http://www.nabble.com/Label-to-Uppercase-tp17114635p17126031.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Label to Uppercase

2008-05-07 Thread Eelco Hillenius
> When we finally get commons-functor generified, I'm going to create an > IModel implementation that takes a UnaryFunction and wraps another > IModel. Sounds cool, looking forward to it. Eelco - To unsubscribe, e-mail: [EMAIL

Re: Label to Uppercase

2008-05-07 Thread James Carman
When we finally get commons-functor generified, I'm going to create an IModel implementation that takes a UnaryFunction and wraps another IModel. This would probably be a read-only model, though (unless you supply the UnaryFunction's inverse also I guess). This would be reusable so that you can s

Re: Label to Uppercase

2008-05-07 Thread Eelco Hillenius
Yeah, that a more generic solution. You can even use converters. If you want to get into an argument with Igor that is ;-) Eelco On Wed, May 7, 2008 at 2:25 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > As Eelco mentioned, there are quite a few ways... I typically use delegation > for this s

Re: Label to Uppercase

2008-05-07 Thread Jeremy Thomerson
As Eelco mentioned, there are quite a few ways... I typically use delegation for this sort of thing with a model that wraps another model. This way it can be reused for a Label, dropdown, textfield, etc you could do then: add(new Label("myLabelID", new UpperCaseModel(new PropertyModel(myObject

Re: Label to Uppercase

2008-05-07 Thread Eelco Hillenius
> I need your suggestion on, what are the ways I can get Label to print in > Uppercase. Several ways. An easy one: public class UpperCaseLabel extends Label { public UpperCaseLabel(String id) { super(id); } public UpperCaseLabel(String id, String label)

Label to Uppercase

2008-05-07 Thread ak
label); Thanks and Regards, Andy -- View this message in context: http://www.nabble.com/Label-to-Uppercase-tp17114635p17114635.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [