代码之家  ›  专栏  ›  技术社区  ›  blue-sky

网页上的多个选项卡

  •  0
  • blue-sky  · 技术社区  · 14 年前

    谢谢,

    3 回复  |  直到 14 年前
        1
  •  0
  •   Roman Goyenko    14 年前

    Struts2有一个标签面板标签

    http://struts.apache.org/2.0.11/struts2-core/apidocs/org/apache/struts2/components/TabbedPanel.html

    下面是一个如何使用它的示例:

     <s:tabbedPanel id="test" >
        <s:div id="one" label="one" theme="ajax" labelposition="top" >
            This is the first pane<br/>
            <s:form>
                <s:textfield name="tt" label="Test Text"/>  <br/>
                <s:textfield name="tt2" label="Test Text2"/>
            </s:form>
        </s:div>
        <s:div id="three" label="remote" theme="ajax" href="/AjaxTest.action" >
            This is the remote tab
        </s:div>
     </s:tabbedPanel>
    
        2
  •  1
  •   Boris Pavlović    14 年前

    Struts Tabbed Layout .

    对于Struts2,您可以查看Roseinda的 tutorial on TabbedLayout

        3
  •  0
  •   Torres    14 年前

    我不知道你到底想做什么标签,在我的情况下,我只想显示不同的标签信息,我不需要一个行动是触发每一个标签的变化。

    出于我的目的,我使用jquery:

    http://docs.jquery.com/UI/Tabs#overview