anicad
Apr 5th, 2006, 11:20 AM
is it possible to bind and validate mutliple instances of a domain object at one time? or do you have to create an instance, then bindAndValidate, then create the next instance, then bindAndValidate?
For example,
my FormAction bean is defined below:
On entry of my view state, i want to create two instances of the SearchCriteria object and bind and validate both of them. is that possible?
Thanks in advance.
<bean id="formAction" class="org.springframework.webflow.action.FormAction">
<property name="formObjectName" value="searchCriteria"/>
<property name="formObjectClass" value="org.springframework.webflow.samples.phonebook.doma in.SearchCriteria"/>
<property name="formObjectScope" value="FLOW"/>
<property name="validator">
<bean class="org.springframework.webflow.samples.phonebook.doma in.SearchCriteriaValidator"/>
</property>
</bean>
For example,
my FormAction bean is defined below:
On entry of my view state, i want to create two instances of the SearchCriteria object and bind and validate both of them. is that possible?
Thanks in advance.
<bean id="formAction" class="org.springframework.webflow.action.FormAction">
<property name="formObjectName" value="searchCriteria"/>
<property name="formObjectClass" value="org.springframework.webflow.samples.phonebook.doma in.SearchCriteria"/>
<property name="formObjectScope" value="FLOW"/>
<property name="validator">
<bean class="org.springframework.webflow.samples.phonebook.doma in.SearchCriteriaValidator"/>
</property>
</bean>