• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

not able to retained the value of Drop Down on a page sumbit.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a scenario, in which a jsp page having text boxes and drop downs. The page is also having a panel dailog box that is visible after clicking on a commanlink. When the Panel box is getting closed the page gets auto refresh( Looks as if the page is submitted and refreshing again). Now,Only for text Boxes the values are retained not for the Drop Downs.
Please help me to retaining the values of the drop down.

Thanks in advance
Pradeep
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're using rendered attribute for this, you should make sure that it also evaluates true during the apply request values phase of the form submit.
 
Pradeep Mittal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yea i am using rendered attribute for this and making it true.. the dropdown is rendered properly .. only the problem is with the value which we have selected before submission is getting lost ( and that too happening only for dropdowns not with text boxes).
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Retain it in the next request using h:inputHidden or Tomahawk's t:saveState.
 
reply
    Bookmark Topic Watch Topic
  • New Topic