You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Jiang, Jane (NIH/NCI) [C]" <ji...@mail.nih.gov> on 2008/03/27 15:59:08 UTC

Tabbed panel question

I just started using tabbed panel.  I started with these simple 3 tabs.
I now want to add a link to tab one that when clicked opens up tab 2.  I
know I can use the selectedTab attribute to dynamically select a tab.
Is there a better/simpler way to do that?

Thanks a lot for your help,

Jane

   <s:tabbedPanel id="test" >

      <s:div id="one" label="Manager" theme="ajax" labelposition="top" >
        <s:include value="Manager.jsp" />
      </s:div>

      <s:div id="two" label="Queries" theme="ajax">
        <s:include value="queryList.jsp" />
        <s:include value="Criteria.jsp" />
        <s:include value="Queries.jsp" />
      </s:div>
      
      <s:div id="three" label="Grant Lists" theme="ajax">
        <s:include value="GrantLists.jsp" />
        <br>
      </s:div>
     </s:tabbedPanel>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org