Thanks I used the override approach. I now have a control where I can define the null text on the constructor.

 

The method to override is called getDefaultChoice and not getDefaltValue by the way.

 

 

-Nino

 

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent: Wednesday, March 08, 2006 10:16 AM
To: wicket-user@lists.sourceforge.net
Subject: Re: [Wicket-user] DropDownChoice howto change default text

 

override getDefaultValue()
or use a properties file and define the null value:

form.choiceid.null=My Other text

And that is then a page.properties file that has a form as a child where the choice is in.

johan

On 3/8/06, Nino Wael <[EMAIL PROTECTED]> wrote:

Hi

How do I change the default text ( "Choose One ", see picture below) of a dropdownchoice, do I need to implement a custom render?

I' ve looked at the methods for dropdownchoice class but no one seems to do just that.




-regards Nino

 

Reply via email to