Re: ListView and DropDownChoice reset all form fields ..
Hi and many thanks Martin ! just setting the setReuseItems is enough ... later, Arnaud 2010/2/22 Martin Makundi : > Hi! > > Yeah...try setReuseItems for your listView. > > If you use ajax, you can use also AjaxFormSubmittingChangeListenerBehavior > http://old.nabble.com/New-behavior:-AjaxFormSubmittingChangeListenerBehavior-td26201382.html > > ** > Martin > > 2010/2/22 Arnaud Garcia : >> Hi List, >> >> If you create a simple Panel with a DropDownChoice where you put >> wantOnSelectionChangedNotifications to true and onSelectionChanged... >> JUST your "select box" is re-rendered when your selection change, >> others panel fields are not re-renderer...(which is good). >> >> BUT if you put your panel in a ListView (because you want to display a >> lot of panels...), on the "onSelectionChanged" all the ListView childs >> are re-renderer and all the panels fields are reseted ! because there >> was no form processing yet (model and form fields are not setted yet) >> >> >> Any idea to deal with this "problem" ? >> >> >> thanks for help, >> >> Arnaud >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ListView and DropDownChoice reset all form fields ..
Hi! Yeah...try setReuseItems for your listView. If you use ajax, you can use also AjaxFormSubmittingChangeListenerBehavior http://old.nabble.com/New-behavior:-AjaxFormSubmittingChangeListenerBehavior-td26201382.html ** Martin 2010/2/22 Arnaud Garcia : > Hi List, > > If you create a simple Panel with a DropDownChoice where you put > wantOnSelectionChangedNotifications to true and onSelectionChanged... > JUST your "select box" is re-rendered when your selection change, > others panel fields are not re-renderer...(which is good). > > BUT if you put your panel in a ListView (because you want to display a > lot of panels...), on the "onSelectionChanged" all the ListView childs > are re-renderer and all the panels fields are reseted ! because there > was no form processing yet (model and form fields are not setted yet) > > > Any idea to deal with this "problem" ? > > > thanks for help, > > Arnaud > > - > 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
ListView and DropDownChoice reset all form fields ..
Hi List, If you create a simple Panel with a DropDownChoice where you put wantOnSelectionChangedNotifications to true and onSelectionChanged... JUST your "select box" is re-rendered when your selection change, others panel fields are not re-renderer...(which is good). BUT if you put your panel in a ListView (because you want to display a lot of panels...), on the "onSelectionChanged" all the ListView childs are re-renderer and all the panels fields are reseted ! because there was no form processing yet (model and form fields are not setted yet) Any idea to deal with this "problem" ? thanks for help, Arnaud - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org