RE: Getting the "Choose Option" on page reload

2009-11-10 Thread vinay.karmarkar
Thank you for the responses. theDropdownComponent.nullValid=Choose one worked. Regards, Vinay Karmarkar -Original Message- From: Wilhelmsen Tor Iver [mailto:toriv...@arrive.no] Sent: Monday, November 09, 2009 6:37 PM To: users@wicket.apache.org Subject: Re: Getting the "Choose O

Re: Getting the "Choose Option" on page reload

2009-11-09 Thread Wilhelmsen Tor Iver
> I have 2 drop-downs and a search button my page. When the page is > loaded > for the first time, the first option in both the drop-downs is "Choose > Option". Now if I select some value and click Search, the page is > rendered again and the Choose Option is gone forever. But I want it > back. How

Re: Getting the "Choose Option" on page reload

2009-11-06 Thread vineet semwal
you can set the dropdown model object to a value which you will read it from pageparams, and you will set the pageparams in onsubmit, on first page load you will not be able to retrieve from pageparams so in this case set the modelobject to default value. -- regards, Vineet Semwal On Fri, Nov

Getting the "Choose Option" on page reload

2009-11-06 Thread vinay.karmarkar
Hi, I have 2 drop-downs and a search button my page. When the page is loaded for the first time, the first option in both the drop-downs is "Choose Option". Now if I select some value and click Search, the page is rendered again and the Choose Option is gone forever. But I want it back. How do I