Hi,I use NetAdvantage for JSF 2008 Vol. 1 to development.
in my code:index.jsp<ig:tabView id="tabViewQ" style="width:100%" selectTabItemListener=""> <ig:tabItem id="tabItemQ1" value="Not Begin"> <h:commandButton action="modify" actionListener="#{ControlTrion.preModifyTask}" value="modify" title="Tid1"/> </ig:tabItem> <ig:tabItem id="tabItemQ2" value="On going"> <h:commandButton action="modify" actionListener="#{ControlTrion.preModifyTask}" value="modify" title="Tid2"/> </ig:tabItem></ig:tabView>
The first tabItem's commandButton can work: it will jump into the page:modify,and execute ControlTrion.preModifyTask;
But, if I click the the second tabItem, the commandButton can't work! when I click the button,it only refresh the current page(index.jsp), and it can't work as the first tabItem's commandButton .
Pls help me!
Thanks in advance!
Hi, flowerpp!
Based on the information you delivered I made a simple application implementing the described functionality. I have a WebTab with two TabItems with nested command buttons which redirect to one an the same page and a listener that performs some changes in the second page. Both commands work fine, they redirect to the page an the page shows info about from which page it was redirected to it.
Are you sure the tab is the problem. I could not do more basing on your post.
Regards!