Russell Neufeld wrote:
I set disabled="true" in an s:form tag, expecting the resulting form to be disabled (greyed out, unable to submit by clicking, etc...) however that appears not be working. I checked the HTML that Struts 2 produced and the "disabled" attribute doesn't show up. I'm using Struts 2.1.6. Any ideas? Is this a known issue? Worked fine in Struts 1.

Functionality comparisons between S1 and S2 are meaningless; they're completely different frameworks.

According to [1] the form element doesn't have a "disabled" attribute. In S2 the custom tags all(-ish) inherit from a base class that defines a list of supported attributes--this doesn't, however, necessarily imply that the underlying HTML element supports it.

FWIW, a quick sanity-check in FF3 shows no difference if I set a "disabled" attribute on a form element.

Dave

[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.3


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to