Using nullvalid you can change the text that will be displayed by adding
nullValid=some text here
To your application properties file to set a global text
if your component requires a custom text you can use the properties
file for that page or panel to override like so
componentid.nullValid=some other text

if required you can specify as much of the componentpath as you need
to starting from the component you want to customize:
form.textfield1.nullValid=my text here

Maurice

On Thu, May 8, 2008 at 10:25 PM, Mathias P.W Nilsson
<[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I'm using the getDefaultChoice to have --- choose brand ---- in my drop box.
>
> @Override
> protected java.lang.CharSequence getDefaultChoice(final Object selected){
>   return "<option value=\"\">"+
> getLocalizer().getString("category.select.edit", CategoryPage.this )
> +"</option>";
> }
>
> This is rather teedious to have this in every drop list. I it possible to
> have a default choice without using this? I know I can set setNullValid(
> true ) but I can't handle the localization default choice.
> --
> View this message in context: 
> http://www.nabble.com/Default-choice-tp17135706p17135706.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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to