File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Passing hidden values from one tab to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Passing hidden values from one tab to another" Watch "Passing hidden values from one tab to another" New topic
Author

Passing hidden values from one tab to another

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
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.


SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
did you try this ?

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

hidden.getValue();

Thanks,


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
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

Joined: Aug 27, 2002
Posts: 455
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,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing hidden values from one tab to another
 
Similar Threads
using h:inputHidden in JSF
Calling a JSP from a Javascript
Problem with JTabbed pane focus
Tabbed Pane usage
on Control+tab how to show next tab in tabbedpane