I also like your suggestion, Geert. I just threw this idea off the top of my head yesterday night after our quick IRC chat. Glad to see others supporting it.

Eddy

Geert Bevin wrote:
Hi Eddy,

I don't see the use of the new template tag. It doesn't add anything,
since it's actually fully handled by the submission declaration.

As you noted, this feature addition could be confusing, and when there
are different submission forms on the same element with the same submit
button names, things can get confusing. However, since you do add a
handler specifically that can be worked around with by the user. How
about automating this completely, like this:

<element implementation="MyElement">
    <submission name="editUser">
        <bean classname="UserBean"/>
        <submit name="save" default="true"/>
        <submit name="delete"/>
    </submission>
</element>

When the save submit button is pressed, RIFE will look for this method
if it exists:
doEditUserSave

In case of the delete button, it will be:
doEditUserDelete

If the submission is sent without any of the submit parameter names,
RIFE will auto-add the "save" parameter, causing doEditUserSave to be
called.

What do you think of that idea?

Best regards,

Geert


--
http://coding.mu
http://priscimon.com/blog
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to