Author Login
Post Reply
Hi,
I'm using struts2 and have a form loaded dinamically using ajax (yes, the
executeScripts is true). The buttons embedded in the form loaded always sem
to post it to the action specified in the s:form tag attribute. I've got a
"test", an "accept" and a "cancel" button and all of them ignore their own
attributes.
I've seem to find a workout for this problem adding the href attribute to
the buttons. Now the generated request goes to the action I want it to go...
But the request is never launched and I don't know why.
In all the browsers I can see the "Loading..." message in the contents of
the DIV I'm updating with the form posting.. But it disappears in less than
a second and the breakpoints I've got in my action never got hit... ¡¡BUT!!
BUT if I use the Network console in firebug, I can see the generated
requests and if I open them in a new tab, my actions really executes in the
servr...
Please, any Idea?? may I be doing something wrong??
here's some of my form code:
<s:form id="filterForm" action="save-filter" method="POST">
<s:hidden name="feed.feedId"/>
<s:hidden name="filterId"/>
[...]
<s:url action="simulate-filter" id="actionUrl"
includeParams="all">
<s:param name="feed.feedId"
value="%{feed.feedId}"></s:param>
<s:param name="filterId" value="%{filterId}"></s:param>
</s:url>
<s:submit targets="testResult" formId="filterForm"
key="test" href="%{actionUrl}" theme="ajax" formId="filterForm"
id="simulatebutton"></s:submit>
As you can see I've added even the formId when it's redundant, but I've
tested a lot of stupid things in order to work this out.
thanks in advance!
yayo
--
"Sit tibi terra levis"
http://yayocaturas.blogspot.com/