You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by rajiv ahuja <ra...@hotmail.com> on 2003/01/21 21:41:33 UTC

checkbox disabled problem

Hi

I am prepopulating my map-backed action form and one of the properties is of 
type checbox. The problem I am having is that when I use disabled="true" in 
html:checkbox tag it unchecks the checkbox that is supposed to be checked 
(as it is prepoulated). If I remove disabled="true" then it is rightly 
populated so I know that my pre populating logic is right. Is this a bug or 
I am doing something wrong? Following is the code snippet

<logic:iterate id="field" name="fields">
                <bean:write name="field" property="displayName"/>
                <bean:define id="fieldvar" name= "field" property="name"/>
                <%  String name = "value(" + fieldvar + "_required)"; %>
                <html:checkbox name="regModuleFormBean" property="<%=name%>" 
value="true" disabled="true"/>

</logic:iterate>

Thanks
Rajiv


_________________________________________________________________
Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>