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

从选项卡窗体链接回选项卡式面板

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

    这是我的标签面板代码-

    <%@ taglib prefix="s" uri="/struts-dojo-tags" %>
    <%@ taglib prefix="sx" uri="/struts-tags" %>
    
    <html>
      <head>
        <s:head debug="true"/>
      </head>
      <body>
      <center>
      <table border="0" width="50%">
        <tr>
        <td width="100%">
    
        <s:tabbedpanel id="test" >
    
          <s:div id="one" label="Tab 1" theme="ajax" labelposition="top" >
            This is the first panel.
            RoseIndia.nt<br>
            JavaJazzUp.com<br>
            NewsTrackIndia.com
          </s:div>
    
          <s:div id="two" label="Tab 2" theme="ajax">
    
            <sx:form action="addevent">
    
        <sx:textfield name="eventBean.eventName" label="First name" />
        <sx:textfield  name="eventBean.eventDescription" label="Last name" />
    
          <sx:submit/>
    
    </sx:form> 
          </s:div>
    
          <s:div id="three" label="Tab 3" theme="ajax">
            This is the third panel.<br>
            Java Tutorial<br>
            PHP Tutorial<br>
            Linux Tutorial
          </s:div>
    
          <s:div id="four" label="Tab 4" theme="ajax">
            This is the forth panel.
          </s:div>
    
         </s:tabbedpanel>
    
         </td>
        </tr>
      </table>
      </center>
      </body>
    </html>
    
    1 回复  |  直到 15 年前
        1
  •  1
  •   Maurizio Cucchiara    15 年前

    你应该看看 targets attribute 提交标记的