What steps will reproduce the problem? 1. Created tabbedpanel 2.created a form in first tab with #sjsubmit. 3.When we click on submit then instead of ajax call whole is refreshing.
What is the expected output? What do you see instead? There must be an ajax call.
Which struts2 version? 2.1.8.1
Which struts2-jquery plugin version? 1.8.1
Please provide any additional information below.
Comment #1
Posted on Jan 21, 2010 by Swift LionPlease can you attach your velocity page and the output of your action?
Comment #2
Posted on Jan 22, 2010 by Swift Wombati am sending u the velocity files in which we have use tabbedpanel And ajax submit code is written
- manuscript.vm 2.31KB
- authorDetails.vm 9.41KB
Comment #3
Posted on Jan 22, 2010 by Swift LionCan you try to submit the form not directly into the Tab?
Souround your Tab Content with an Target Div:
. . . #surl("id=saveAuthDtl" "action=/opus/saveManuScript") #sjsubmit("value=submit" "href=%{saveAuthDtl}" "targets=authTarget" )I cant't see the sjhead tag in the manuscript.vm !
Comment #4
Posted on Jan 22, 2010 by Quick HorseIts not working, the whole page is refreshing in velocity instead of throwing an ajax call. But in jsp its working fine. Please go through the attached code.
- IndexAction.java 948
- index.vm 1.06KB
- test1.vm 50
Comment #5
Posted on Jan 22, 2010 by Swift LionThank you, there is a possible patch in the SVN trunk. Are you able to test it?
Comment #6
Posted on Jan 22, 2010 by Swift LionThere is a SNAPSHOT Release for tests in related Issue 64
Comment #7
Posted on Jan 22, 2010 by Swift Wombat
#sjhead("jqueryui=true" "jquerytheme=redmond")
<h2>Remote Tabs</h2>
<p>
A simple TabbedPanel with AJAX Content with two disabled Tabs
</p>
#sform("id=formevent" "theme=simple" "cssClass=yform") AJAX Form Echo: #stextfield("id=user" "name=user" ) #spassword("id=pswd" "name=pswd" ) #surl("id=testAction" "action=sampleEcho") #sjsubmit( "targets=frmReslt" "value=AJAX Submit" "href=%{testAction}")#end
</div>
</div>
</fieldset>
#end
Here its not working with this snapshot also. One more problem I have seen its not considering #surl action its taking form action directly every time even I have specified href in #sjsubmit.
Please help us.
Comment #8
Posted on Jan 22, 2010 by Swift LionIt was a wrong Import in the Directives. Now it works in my examples.
Comment #9
Posted on Jan 22, 2010 by Swift LionIssue 64 has been merged into this issue.
Comment #10
Posted on Jan 25, 2010 by Swift Lionfixed in 1.8.2
Status: Fixed
Labels:
Type-Defect
Priority-Medium