Hi,

>>setResponsePage(FormInput.class);
> all the model values are reset to default including my
> selectbox model value...is this normal?

yes, a new instance of the page will be created.

 I checked the FormInput example..The only difference ...


You should provide a quickstart, so we are able to check what you're doing differently.

Best regards
Sven

On 11/12/2011 05:17 PM, wholalotta wrote:
Yes I checked the FormInput example..The only difference is that example has
custem dropwdown component which stated in the same class..Also it uses the
following in onSelectionChanged method..

// force re-render by setting the page to render to the bookmarkable
// instance, so that the page will be rendered from scratch,
// re-evaluating the input patterns etc
setResponsePage(FormInput.class);

When I put this line into my code, it renders the all page and all the model
values are reset to default including my selectbox model value...is this
normal?


The point is, I used dropdown component hundred times in the forms and didnt
face any problem like this.
Because I did not need to override any methods to do some job after
selecting something..This is the first time I didnt attach this component to
a form...If I remove these two overriden methods, selectbox model value is
updated in all selections accordingly..



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-model-is-not-updated-when-wantOnSelectionChangedNotifications-is-overriden-tp4031368p4034763.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to