Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Pradeep Mittal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Retain it in the next request using h:inputHidden or Tomahawk's t:saveState.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic