Reputation: 23
I've got an s:form with sj:submit and s:submit inside, sj:submit works properly but s:submit buttons doesn't works. Nothing happens when I click on s:submit buttons.
I tried to use sj:submit button outside the form and linking that to s:form with formIds parameter.
Upvotes: 0
Views: 909
Reputation: 23
I solved using:
<s:submit onClick="overrideSubmit('this_action')"/>
and
function overrideSubmit(actionName) {
document.forms['configurationForm'].action = actionName + '.action';
document.forms['configurationForm'].submit();
}
Upvotes: 0
Reputation: 2070
Problem here is the e.PreventDefault() to prevent a normal submit on press enter inside of an form textfield.
What about using an normal Link instead of an button?
Upvotes: 1