|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Getting the "Choose Option" on page reloadHi,
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 go this? Thanks. Regards, Vinay Karmarkar Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com |
|
|
Re: Getting the "Choose Option" on page reloadyou 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 6, 2009 at 2:57 PM, <vinay.karmarkar@...> wrote: > 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 go this? > > > > Thanks. > > > > Regards, > > > > Vinay Karmarkar > > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > www.wipro.com > |
|
|
Re: Getting the "Choose Option" on page reloadsearchButton.onSubmit(){
doSearch(); filter.setDefaultModelObject(null); } On Fri, Nov 6, 2009 at 7:55 AM, vineet semwal <vineetsemwal1982@...>wrote: > 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 6, 2009 at 2:57 PM, <vinay.karmarkar@...> wrote: > > > 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 go this? > > > > > > > > Thanks. > > > > > > > > Regards, > > > > > > > > Vinay Karmarkar > > > > > > Please do not print this email unless it is absolutely necessary. > > > > The information contained in this electronic message and any attachments > to > > this message are intended for the exclusive use of the addressee(s) and > may > > contain proprietary, confidential or privileged information. If you are > not > > the intended recipient, you should not disseminate, distribute or copy > this > > e-mail. Please notify the sender immediately and destroy all copies of > this > > message and any attachments. > > > > WARNING: Computer viruses can be transmitted via email. The recipient > > should check this email and any attachments for the presence of viruses. > The > > company accepts no liability for any damage caused by any virus > transmitted > > by this email. > > > > www.wipro.com > > > -- Pedro Henrique Oliveira dos Santos |
|
|
Re: Getting the "Choose Option" on page reloadThis is a browser thing. It's remembering what you've selected on the
current form. If you find a way around it, let me know. Our page has a pair of drop-downs too and we use ajax to populate the second one when you choose something from the first one. If you hit refresh, it hoses everything up, because no select event happens on the first one (but the browser selects something from it automatically because it's "remembering"), so the second one doesn't populate. On Fri, Nov 6, 2009 at 4:27 AM, <vinay.karmarkar@...> wrote: > 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 go this? > > > > Thanks. > > > > Regards, > > > > Vinay Karmarkar > > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. > > www.wipro.com > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Getting the "Choose Option" on page reloadi misread choose option with choosen option :(
-- regards, Vineet Semwal On Fri, Nov 6, 2009 at 5:02 PM, James Carman <jcarman@...>wrote: > This is a browser thing. It's remembering what you've selected on the > current form. If you find a way around it, let me know. Our page has > a pair of drop-downs too and we use ajax to populate the second one > when you choose something from the first one. If you hit refresh, it > hoses everything up, because no select event happens on the first one > (but the browser selects something from it automatically because it's > "remembering"), so the second one doesn't populate. > > On Fri, Nov 6, 2009 at 4:27 AM, <vinay.karmarkar@...> wrote: > > 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 go this? > > > > > > > > Thanks. > > > > > > > > Regards, > > > > > > > > Vinay Karmarkar > > > > > > Please do not print this email unless it is absolutely necessary. > > > > The information contained in this electronic message and any attachments > to this message are intended for the exclusive use of the addressee(s) and > may contain proprietary, confidential or privileged information. If you are > not the intended recipient, you should not disseminate, distribute or copy > this e-mail. Please notify the sender immediately and destroy all copies of > this message and any attachments. > > > > WARNING: Computer viruses can be transmitted via email. The recipient > should check this email and any attachments for the presence of viruses. The > company accepts no liability for any damage caused by any virus transmitted > by this email. > > > > www.wipro.com > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: Getting the "Choose Option" on page reload> 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 go this? It is a consequence of disabling null values; you need to tell the dropdown to accept null values which is what "Choose Option" represents: theDropdownComponent.setNullValid(true); You will also want to override the display value property in the .properties file: theDropdownComponent.null_valid=Not set - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Getting the "Choose Option" on page reloadThank you for the responses. theDropdownComponent.nullValid=Choose one
worked. Regards, Vinay Karmarkar -----Original Message----- From: Wilhelmsen Tor Iver [mailto:TorIverW@...] Sent: Monday, November 09, 2009 6:37 PM To: users@... Subject: Re: Getting the "Choose Option" on page reload > 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 go this? It is a consequence of disabling null values; you need to tell the dropdown to accept null values which is what "Choose Option" represents: theDropdownComponent.setNullValid(true); You will also want to override the display value property in the .properties file: theDropdownComponent.null_valid=Not set - Tor Iver --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |