Re: Drop Down Choice default value

2015-05-17 Thread Chris
Hi, when using a drop down as follows, always the whole page is reloaded on drop down change. How is it possible to update only a specific component via ajax? Thanks, Chris DropDownChoice tag = new DropDownChoiceString(tags, new PropertyModelString(this, selectedCategory),

Re: Drop Down Choice default value

2015-05-17 Thread Tobias Soloschenko
Hi, see http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/ajax/AjaxEventBehavior.html use change event. kind regards Tobias Am 18.05.2015 um 00:03 schrieb Chris chris...@gmx.at: Hi, when using a drop down as follows, always the whole page is reloaded on drop down

Re: Drop Down Choice default value

2015-05-17 Thread Ernesto Reinaldo Barreiro
Hi, On Mon, May 18, 2015 at 12:03 AM, Chris chris...@gmx.at wrote: Hi, when using a drop down as follows, always the whole page is reloaded on drop down change. How is it possible to update only a specific component via ajax? Thanks, Chris DropDownChoice tag = new

Re: Drop Down Choice default value

2015-05-12 Thread Chris
Marcel, Sven, thanks a lot for your answers! Chris Am 12.05.2015 um 15:24 schrieb Marcel Barbosa Pinto marcel.po...@gmail.com: Another way is to provide a value on your .properties file. For instance: nullValid=Please choose myFieldId.nullValid=Please choose a value for ${label}

Re: Drop Down Choice default value

2015-05-12 Thread Sven Meier
Hi, you have to override #getNullValidDisplayValue(), #getNullKeyDisplayValue() is for cases where null is *not* valid. Regards Sven On 12.05.2015 12:44, Chris wrote: Hi all, I have a Drop down choice field and would like to override the default select value. I have made following

Drop Down Choice default value

2015-05-12 Thread Chris
Hi all, I have a Drop down choice field and would like to override the default select value. I have made following settings but the default value is empty. Is there sth missing? setNullValid(true); @Override protected String getNullKeyDisplayValue() { return Please choose; } Thanks, Chris

Re: Drop Down Choice default value

2015-05-12 Thread Marcel Barbosa Pinto
Another way is to provide a value on your .properties file. For instance: nullValid=Please choose myFieldId.nullValid=Please choose a value for ${label} On Tue, May 12, 2015 at 8:26 AM, Sven Meier s...@meiers.net wrote: Hi, you have to override #getNullValidDisplayValue(),