Dave Newton wrote:
I'll consider writing up a summary of the various ways to accomplish what
you're trying to do and putting it on the wiki, although most of it will be an
aggregation of info that's already there.
Thank you
But I havent' seen anything in the framework yet on how to have a
single form call different functions in the same action class based
on which button was pushed.
That's what <s:submit...>'s "method" attribute does.
I removed the JavaScript and hidden var stuff and replaced it with this:
<s:submit type="image" src="%{#next_button_url}" label=""
cssClass="formButton" method="pageForward" />
but when I click on the image button the form is submitted (my Action's
submit() function is called) but my Action's pageForward() function
didn't get called.
The Tag Reference doc:
http://struts.apache.org/2.0.11.1/docs/submit.html
doesn't have much detail about what to expect: "Set method attribute."
Is my pageForward() method supposed to conform to a certain signature?
Maybe this page can be updated to include this use case?
http://struts.apache.org/2.x/docs/html-form-buttons-howto.html
or
http://struts.apache.org/2.x/docs/multiple-submit-buttons.html
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]