-
1. Re: help getting current tab on client side tab panel
sergeysmirnov Apr 4, 2007 3:57 PM (in response to jersinghaus)do you have a h:form inside the tab or outside the tabPanel?
-
2. Re: help getting current tab on client side tab panel
jersinghaus Apr 4, 2007 4:51 PM (in response to jersinghaus)Outside. I have just one h:form for the whole page.
-
3. Re: help getting current tab on client side tab panel
nbelaevski Apr 5, 2007 11:22 AM (in response to jersinghaus)Hello!
Can you please provide sample code to reproduce the problem? Thank you in advance! -
4. Re: help getting current tab on client side tab panel
jersinghaus Apr 5, 2007 1:32 PM (in response to jersinghaus)I've placed a sample project war file here:
http://www.nmda.nmsu.edu/download/temp.html
Also there is a link to the java source used in the war (it's actually a text file - I couldn't get my IIS server (I hate IIS) to download a file with a .java extension).
Let me know if you need anything else.
Thanks,
Joe -
5. Re: help getting current tab on client side tab panel
jersinghaus Apr 5, 2007 1:34 PM (in response to jersinghaus)I forgot to note that in this sample project, I could not get the valueChangeListener to fire for some reason.
-
6. Re: help getting current tab on client side tab panel
nbelaevski Apr 6, 2007 7:14 AM (in response to jersinghaus)Joe,
thank you for reporting the problem! I've filed it into JIRA as http://jira.jboss.com/jira/browse/RF-78. The issue will be fixed immediately. -
7. Re: help getting current tab on client side tab panel
jersinghaus Apr 6, 2007 9:26 PM (in response to jersinghaus)Hi Nick,
Does RF-78 refer to the problem I was having with the "binding" attribute or the "value" attribute?
The "value" attribute is fixed - thanks for that work!
But I still see that the "binding" attribute does not return the currently selected tab.
Evaluating the "binding" method getValue() returns the equivalent of getOldValue() on a "valueChangeListener." So it's a tab click behind. (But I can't use the "valueChangeListener" because it executes after the methods that initiate the form submit and do logic.)
Evaluating the "binding" method getSelectedTab() returns null.
I use the "value" attribute to have the last selected tab "reselected" when navigating back to the page with the tabs.
I'm trying to use the "binding" attribute to process data on submission.
Thanks,
Joe -
8. Re: help getting current tab on client side tab panel
nbelaevski Apr 10, 2007 1:06 PM (in response to jersinghaus)Joe,
sounds like the component hadn't succeded to complete the whole lifecycle by the moment you try to get the new value. It happens at UPDATE_MODEL_VALUES phase if component is not immediate and at APPLY_REQUEST_VALUES phase if component is immediate. Can you please check if that is the case?