something like this might work (untested)

PropertyModel pm = new PropertyModel(this,""){
                        @Override
                        public Object getObject()
                        {
                                return (Boolean) super.getObject() ? "User 
enabled" : "User not
enabled";
                        }
                };





danielepiras wrote:
> 
> Hi,
> 
> I've an object with a boolean properties. I have mapped this object with a
> wicket's label using a PropertyModel.
> All work's fine but I read in the label true/false. Instead of this value,
> I want to see another message (for example "User enabled" and "User not
> enabled". How can I do that?
> 
> Thank you very much for any help..
> Daniele
> 

-- 
View this message in context: 
http://www.nabble.com/Modify-model-value-before-rendering-tp17794855p17795114.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]

Reply via email to