Hi,
I am using spring 2.5 and spring web flow 2.0 with velocity and hibernate. If I select more than one ,I found binding exception like wrong type on view, after debuging in validator, found null value to sendReportTo property. I could not figure out where I am doing mistake. here sendReportsToMap is a Map<String,String>.
Code:
Velocity code:
#springFormMultiSelect("purchaseOrder.sendReportsTo" $sendReportsToMap "")
#springShowErrors("<br>" "errorText")
Model property :
private String sendReportsTo;
// and setter/getter method.
web flow code:
<view-state id="edit">
<binder>
<binding property="sendReportsTo" />
</binder>
<!-- Save and return -->
<transition on="save" to="returnToList"/>
<!-- Or just cancel changes and return -->
<transition on="cancel" to="returnToList" validate="false" bind="false"/>
</view-state>