Hi,
There is no easy way to identify which submit button in a form with
several was pressed when processing a submission. I proposed on IRC
the idea of having a new tag, say, SUBMISSION:SUBMIT:mybutton, that
would be recognised as a submit and would be autolinked to a method
in the element.
The link will need to be defined in the the element declaration.
Say,
<element implementation="MyElement">
<submission name="editUser">
<bean classname="UserBean"/>
<submit name="mybutton" handler="handleMyButton"/>
</submission>
</element>
"handleMyButton" will be a method of "MyElement" that will
automatically be called when "mybutton" is pressed.
Off the top of my mind, what I think weighs against implementing this
is, there will be different ways to process form (by submission and
by submit button), which could be confusing to developers. For
example, if the above form is submitted, which method will be called?
doEditUser or handleMyButton?
What do you think of the proposal?
Eddy
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users