Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing hidden values from one tab to another

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the IBM tabbed pane control in my JSF project. I want to pass some value from one tab pane to another. Any ideas on how to do this?

How do I do it if I were to pass some hidden values?

Any example would be of help.
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you try this ?

HtmlInputHidden hidden = (HtmlInputHidden) findComponentInRoot("hiddenfieldID");

hidden.getValue();

Thanks,
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please elaborate? My requirement is i have a set of textboxes with dates in them. I need to keep the dates in an array list and pass the array list to the next tabbed pane. I thought I would use an hidden field to do this.

Any ideas?
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Did you try keeping your list in the request scope and getting it from the other tab ?

2. if you want to get the values of hidden fields from first tab. ( i guess you will be having a differnt jsp inside the second tab) on the pageLoanBegin() of the backingbean get the values of the hidden fields.hope you are aware of preRender attribute in <hx:scriptCollector since you are using IBM jars.

I haven't used IBM tabbed pane so im not sure if this works. im using another 3rd party library.

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic