Results 1 to 11 of 11
Thread: struts2 with jquery
- 12-17-2009, 03:03 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 6
- Rep Power
- 0
- 12-24-2009, 09:44 AM #2
Member
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 43
- Rep Power
- 0
try the jquery plugin for struts2
code.google.com /p/ struts2-jquery
in the showcase you can find some tabs examples.
Johannes
- 12-24-2009, 09:49 AM #3
Member
- Join Date
- Dec 2009
- Location
- phil's
- Posts
- 1
- Rep Power
- 0
dont know too...
- 12-24-2009, 01:08 PM #4
Member
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 43
- Rep Power
- 0
its easy.
just download the plugin and put in in your WEB-INF/lib folder
For Local Content:
and for AJAX Content:Java Code:<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <html> <head> <sj:head jqueryui="true"/> </head> <body> <sj:tabbedpanel id="mytabs" animate="true" collapsible="true" useSelectedTabCookie="true"> <sj:tab id="tab1" target="tone" label="Tab One"/> <sj:tab id="tab2" target="ttwo" label="Tab Two"/> <sj:tab id="tab3" target="tthree" label="Tab Three"/> <div id="tone"> Test 1 </div> <div id="ttwo"> Test 2 </div> <div id="tthree"> Test 3 </div> </sj:tabbedpanel> </body> </html>
Java Code:<%@ taglib prefix="s" uri="/struts-tags"%> <%@ taglib prefix="sj" uri="/struts-jquery-tags"%> <html> <head> <sj:head jqueryui="true"/> </head> <body> <s:url id="remoteurl1" action="myremoteactionone"/> <s:url id="remoteurl2" action="myremoteactiontwo"/> <s:url id="remoteurl3" action="myremoteactionthree"/> <sj:tabbedpanel id="mytabs2" selectedTab="1"> <sj:tab id="tab1" href="%{remoteurl1}" label="Tab One"/> <sj:tab id="tab2" href="%{remoteurl2}" label="Tab Two"/> <sj:tab id="tab3" href="%{remoteurl3}" label="Tab Three"/&> </sj:tabbedpanel> </body> </html>
- 12-27-2009, 12:11 AM #5
Member
- Join Date
- Apr 2009
- Posts
- 6
- Rep Power
- 0
- 12-27-2009, 08:59 PM #6
Member
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 43
- Rep Power
- 0
Without any code it is hard to find the bug. Have you check your HTML Code with an HTML Validator?Thanks for the reply....If I give the text inside the tabs its working...but when I was trying to use the <fieldset> the total alignment screwed....any idea how to use the <fieldsets>
Do you have the Error in all Browsers?
- 12-29-2009, 04:56 PM #7
Member
- Join Date
- Apr 2009
- Posts
- 6
- Rep Power
- 0
Hi jogep,
Now my fieldset is working...I am using jquery "cupertino" theme for all the web pages...and its displaying fields with big font with Italicized....how can I go and change the font( I assume its taking default jquery font for text)...any suggestions?
I appreciate your help.
- 12-29-2009, 06:08 PM #8
Member
- Join Date
- Dec 2009
- Location
- Germany
- Posts
- 43
- Rep Power
- 0
fine!!
The font settings are in the css files distributed with cupertino theme.
With the jQuery UI Themeroller you can create you own theme with costume Fonts and colors. it is really easy.
- 12-30-2009, 07:22 PM #9
Member
- Join Date
- Apr 2009
- Posts
- 6
- Rep Power
- 0
thank you so much! its working :)
- 11-16-2010, 05:47 AM #10
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
Problem with Submit Button in IE7
Prob: I want to send a Ajax request on click on submit button
for Ajax i am using Jquery Struts Plugins
Now the prob is when i try to use
<s:form id="form" action="echo" theme="simple" cssClass="yform">
<fieldset>
<legend>AJAX Form</legend>
<div class="type-text">
<label for="echo">Echo: </label>
<s:textfield id="echo" name="echo" value="Hello World!!!"/>
</div>
<div class="type-button">
<sj:submit disabled="false" targets="formResult" value="AJAX Submit" indicator="indicator"/>
<s:url id="simpleecho" value="/simpleecho.action"/>
<sj:submit href="%{simpleecho}" targets="formResult" value="AJAX Submit 2" indicator="indicator"/>
</div>
</fieldset>
<sj:div name="formResult"></sj:div>
</s:form>
then on ie i m getting the submit button disabled.
I have attached the screen shot with this post
Plz help me on this
- 11-16-2010, 09:07 AM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,476
- Rep Power
- 16
Similar Threads
-
Two jquery plugins in one page
By NewInJava in forum Web FrameworksReplies: 0Last Post: 09-18-2009, 07:41 PM -
issue with the jquery bubble window..
By jazz2k8 in forum Advanced JavaReplies: 0Last Post: 06-12-2009, 11:19 AM -
struts2
By catchme33 in forum Web FrameworksReplies: 4Last Post: 03-25-2009, 10:35 PM -
Datepicker Calender - month change event - jquery
By rmpatel101 in forum Advanced JavaReplies: 0Last Post: 04-02-2008, 06:42 PM -
jQuery 1.2.1
By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-25-2007, 04:21 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks