Adam Hardy wrote:

I thought I might just raise this here because I see struts has obviously no qualms about submit button functionality, but it bugs me.

I'm not using LookupDispatchAction, but I would like to if it wasn't for the annoying browser behaviour on submit of the HTML-input submit button values.

LookupDispatchAction is great for sorting out the appropriate action according to which submit button was clicked, even if those submit buttons have got localized text. But surely it's just pandering to the poor design of HTML?

Yep.




Surely W3C is going to have to change that browser behaviour recommendation,

Whether they should or not isn't really the issue ... it's whether they will. I'm betting that:


* They won't (especially not as an HTML/4.01 successor, since the focus there
is on XHTML and modularization and such, not HTML.


* They won't (just for this issue) because it's not important enough by itself, and
creating new standards is *expensive*.


* They won't (because existing workarounds are available -- it's not a dealbreaker bug

* Even if they did, it wouldn't matter to Struts ... we'd have to support the current
mechanism anyway because 100% of the worlds browsers today don't support the
new mechanism.



because submitting the button name-value pair as "submit/labeltext" is indisputably linking function and content, which these days should be frowned upon.

Shouldn't it?

I mean, it could use body text for the label, and submit its value, or it could have a caption attribute or similar.


Adam




Craig



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



Reply via email to