You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shane Mingins <sh...@assureinternational.com> on 2003/09/25 04:57:12 UTC
Disabling Buttons on View
Hi
If I wish to simulate the enable/disable of buttons that users are used to
with a rich GUI on a JSP view, is there are nicer way than using the logic
tags like this?
<logic:notEmpty name="channelForm" property="productList">
<html:submit onclick="set('editProduct');"><bean:message
key="button.edit"/></html:submit>
</logic:notEmpty>
<logic:empty name="channelForm" property="productList">
<html:submit disabled="true" ><bean:message
key="button.edit"/></html:submit>
</logic:empty>
Thanks
Shane
Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org