Antonio Petrelli wrote:
2008/3/17, Dale Newfield <[EMAIL PROTECTED]>:
We can avoid the JS requirement if we make the submit button's submitted
value complex enough to encode the names of the namespace and
actionname.

The problem is that the value of the submit button is what the users sees.

The value, but not the name.

We could have <s:submit action="fred"/> result in:
<input type="submit" name="replacementAction:/namespace/fred" value="Make it Fred!"/>
which would result in
http://app-server/application/namespace/barney.do?replacementAction:/namespace/fred=Make+it+Fred%21
which would cause the action mapper to select the barney action, but then drop it on the floor and instead return the fred action.

There is the need of a js function that modifies it before submitting.

We've got lots of struts2 tags that require javascript. Has a chart ever been drawn up so that folks that need their applications to work on browsers either w/o javascript capabilities or w/o javascript enabled?

If the only current tags that require JS are funky ones like optiontransferselect, then that's a strong reason not to add the restriction to something as fundamental as the submit tag. If the js requirements are already widespread, then that argument doesn't hold much water.

-Dale

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to