Hi!
Try the following code:
<display:table name="CustomersList" id="row_noneligible" requestURI="PrepareAction.do" >
<!-- Checkbox -->
<display:column>
<html:multibox name="Form1" property="eligibleCustomer" />
</display:column>
</display>
Your "Form1" object has to have the following method:
public Boolean isEligibleCustomer () {
...
}
public void setEligibleCustomer(Boolean val) {
...
}
Hope this helps.
Alex.
>Have an Object Customer
>Name
>Address
>isEligibleCustomer -- boolean
>
>
>In the Prepare action
>Created list of these Customer objects.
>
>and this customer list is set to request.
>
>want to check the checkbox according to the value of the Object
>isEligibleCustomer of Customer object.
>
>not sure how to do this. The form of the jsp is not having the
>isEligibleCustomer .
>
>Tried with below code. getting exception that there is no getter method in
>the form. how to get the value of the object Customer? what should be the
>property value of the html:checkbox?
>
>In jsp
>
><display:table name="CustomersList" id="row_noneligible"
>requestURI="PrepareAction.do" >
>......................
>......................
><!-- Checkbox -->
><display:column>
> <html:checkbox name="Form1" property="isEligibleCustomer" />
></display:column>
>...................
>.....................
>
></display>
>
>Thanks.
- [displaytag-user] html:checkbox in displaytag fea jabi
- RE: [displaytag-user] html:checkbox in displaytag fea jabi
- RE: [displaytag-user] html:checkbox in displaytag Alex

