This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a boolean value in my action form:
private boolean disableForm;
How can I disable a text input based on the value of disableForm? The follow below does not work
<html:text name="WorkForm" styleId="maildate" property="mailDate" maxlength="10" size="10" disabled="<%=disableForm.booleanValue()%>" />
The disabled attribute doesn't understands true/false values. Its value is disabled i.e. disabled="disabled". So you'll need to use a condition and generate the disabled attribute only if you want to disable the text box...