Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Help: In the tabView, the second tabItem's commandButton can't work!
posted

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!

Parents
No Data
Reply
  • 1579
    posted

    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!

Children
No Data