Here is a link to a velocity macro that handles checkboxes nicely: http://marc.theaimsgroup.com/?l=turbine-user&m=100434715718585&w=2
Good luck, Chris > From: Jeffrey Gehrung > > I don't seem to be able to map the value of a my HTML Checkbox to its > corresponding property in my my Object. I've tried a variety of > combinations. Other TEXT fields in the group map fine to String > Objects. Never tried to map a form component before. What does a > CHECKBOX input component map to? When I check my Log, my testing > either yields "false" or "null" value for the "Marker" property > regardless of the CHECKBOX check'd state. ??? > > The following, though incorrect, is one of my attempts (perhaps someone > could tell me what corrections to apply): > > html snippets: > > #set($rliGroup = $intake.RegLineItemGroup.default) > <INPUT TYPE="CheckBox" NAME="$rliGroup.Marker.Key" > value="$!rliGroup.Marker.Value"> > > intake.xml snippet: > <group name="RegLineItemGroup" key="Rli" > mapToObject="webmods.modules.taglib.reg.RegLineItem" > > <field name="Marker" key="Mrk" type="boolean" > > </field> > > RegLineItem.java snippet: > private boolean bool_Marker; > > public boolean getMarker() > public void setMarker(boolean bool_Marker) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
