Russell Neufeld wrote:
Hi Dave,

Thanks for the quick response. Sorry for the incorrect comparison. I'm porting a Struts 1 app to Struts 2, so I've got both frameworks on my mind.

Ok, so the "disabled" attribute on the s:form tag doesn't act the same as S1. That's cool. Seems like the "disabled" attribute on s:reset and sx:submit don't work though. I tried

   <s:reset  value="Reset" class="button" disabled="true"/>

and this renders a working reset button.  Also, this

<sx:submit value="Submit" cssClass="button" id="submit" disabled="true"/>

renders a working submit button. That said "disabled" on an s:submit correctly renders an inoperable submit button. Any ideas what might be going on here? Thanks,

Looking at the templates I'd say that <s:reset> is missing the "disable" attribute, unlike <s:submit>. Please file a JIRA ticket for this; thanks for bringing it up.

The same seems to be true for the Dojo submit--it'd be cleaner to submit to JIRA tickets since the Dojo stuff is a plugin, but it'd probably be okay to lump them into one. Note that the Dojo tags are deprecated, so while the fix may make it in, it's unclear how long the plugin will be included in the distro (although if it's not in the official distro I'd imagine it'll still be available somehow).

Dave


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

Reply via email to