You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/12/04 01:46:09 UTC
DO NOT REPLY [Bug 15043] New: -
Taglib - Index Attribute in html:Checkbox doesn't set correctly
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=15043>.
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=15043
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: struts-dev@jakarta.apache.org
ReportedBy: dheidorn@syscor.com
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>
//form bean
public final class RegionsForm extends ActionForm {
private StatusRegionData[] regions = {};
}
//java
public final class StatusRegionData {
private boolean isSelected = false;
//excluding getters/setters
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>