I want to set the html:text-disabled-property dynamically
like this:
this works fine .. but I need to define the disabled attribute by either a bean or a pageContext-attribute like
this:
I know how to display it on it's own:
I just don't get it working to read it out into the html:text-element again, because this doesn't work anymore.
Thank's a lot for your help
like this:
Code:
<% boolean disabled = true; %>
<html:form action="/myAction" method="post">
<html:text property="username" disabled="<%=disabled%>"/>
</html:form>
this:
Code:
<% pageContext.setAttribute("disabled", "true"); %>
<bean:define id="disabled" value="true"/>
I know how to display it on it's own:
Code:
<bean:write name="disabled"/>
<%= pageContext.getAttribute("disabled") %>
I just don't get it working to read it out into the html:text-element again, because this doesn't work anymore.
Code:
<html:text property="username" disabled="<%=disabled%>"/>
Thank's a lot for your help