struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurizio Cucchiara <mcucchi...@apache.org>
Subject Re: How to use tabbed panels with <s:form>
Date Tue, 18 Oct 2011 07:26:03 GMT
@Stefaan,
what theme are you using?  Maybe, b/c the interaction with: a) xhtml
theme b) s2-jquery lib.
Did you try the example provided by Li running the simple theme w/o
s2-jquery lib?

Twitter     :http://www.twitter.com/m_cucchiara
G+          :https://plus.google.com/107903711540963855921
Linkedin    :http://www.linkedin.com/in/mauriziocucchiara

Maurizio Cucchiara



On 18 October 2011 08:11, Stefaan Somers <stefaan.somers@gmail.com> wrote:
> Hi Li,
>
> thnks for answering. Try to use the struts-tags in your JSP, and you will
> see that it will not work.
>
> Greetings,
>
> Stefaan Somers
>
> On 18 October 2011 08:03, Li Ying <liying.cn.2010@gmail.com> wrote:
>
>> Hi, I wrote a simple sample include only pure html + javascript.
>>
>> It works pretty well.
>>
>> I believe the same thing will works for JSP,
>> because JSP will produce HTML,
>> so the finally result displayed by the browser will be [pure html +
>> javascript].
>>
>> Here is my sample:
>>
>> ===========================================
>>
>> <html>
>>
>> <head>
>>        <meta http-equiv="Pragma" content="no-cache">
>>        <meta http-equiv="CONTENT-TYPE" content="text/html; charset=UTF-8">
>>
>>        <link rel="stylesheet" type="text/css"
>> href="../css/jQueryUI/jquery-ui-1.8.15.redmond.css"/>
>>        <link rel="stylesheet" type="text/css"
>> href="../css/jQueryUI/jquery-ui-custom.css"/>
>>        <link rel="stylesheet" type="text/css" href="../css/common.css"/>
>>
>>        <script type="text/javascript"
>> src="../js/lib/jquery-1.6.2.min.js"></script>
>>        <script type="text/javascript"
>> src="../js/lib/jquery-ui-1.8.15.custom.min.js"></script>
>>
>>        <script type="text/javascript"
>> src="../js/pageCommon/common.js"></script>
>>
>>        <title>Test</title>
>> </head>
>>
>> <body>
>>
>> <div class="main">
>>        <form action="http://www.google.com/search">
>>                <div class="mainTab">
>>                        <ul>
>>                                <li><a href="#tab_01"><span
>> class="tabTitle">Tab_01</span></a></li>
>>                                <li><a href="#tab_02"><span
>> class="tabTitle">Tab_02</span></a></li>
>>                                <li><a href="#tab_03"><span
>> class="tabTitle">Tab_03</span></a></li>
>>                        </ul>
>>                        <div id="tab_01">
>>                                Q: <input name="q" />
>>                        </div>
>>                        <div id="tab_02">
>>                                Age: <input name="age" />
>>                        </div>
>>                        <div id="tab_03">
>>                                <input type="submit" value="Search"
/>
>>                        </div>
>>                </div>
>>        </form>
>> </div>
>>
>> </body>
>>
>> <script type="text/javascript">
>> function initTabs() {
>>        $(".mainTab").tabs();
>> }
>>
>> initTabs();
>> </script>
>> </html>
>>
>> ===========================================
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

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


Mime
View raw message