Hi all,
 
A checkbox(<input type=checkbox>) is inerted into a "Form" component by using "Insert" component instead of using "Checkbox" component. The following is the involved code:
 
in .jwc:
<component id="dataItem" type="Insert">
  <binding name="value" property-path="item"/>
  <field-binding name="raw" field-name="Boolean.TRUE"/>
</component>
in .java:
public String getItem(){
    return "<input type=\"checkbox\" name=\"myname\" value=\"myvalue\" />";
}
 
My question is the status of this checkbox(checked or unchecked) could be getted in the listener mothod of the form.
 
Thanks.

Reply via email to