DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15044>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15044

Taglib - Index Attribute in html:Checkbox doesn't set correctly

           Summary: Taglib - Index Attribute in html:Checkbox doesn't set
                    correctly
           Product: Struts
           Version: 1.1 Beta 2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Custom Tags
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


During the submission process of <html:form>, the checkbox doesn't pass whether
the box has been checked or not.  It passes whatever the default value is. 
Checkbox work correctly in regular forms, but when I use it in a <logic:iterate>
using the indexed attribute, it's doesn't handle it predictably.

Code Snippet:
<!-- HTML -->

<logic:iterate id="statusRegion" name="regionsForm" property="regions">
   <html:checkbox name="statusRegion" property="isSelected" indexed="true" />
</logic:iterate>

/* JAVA */
//form bean
public final class RegionsForm extends ActionForm {
  private StatusRegionData[] regions = {};
  //excluding getters/setters
}


//java
public final class StatusRegionData {
   private boolean isSelected = false;
   //excluding getters/setters
}

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to