PDA

View Full Version : Translating XML Flow State to Its Java-base Equivalent



curtney
Jun 3rd, 2005, 01:34 AM
Greetings!

I am having a hard time translating the following state into its Java-base equivalent. Specifically, nesting the action and its property in the transition. I have looked at the API and I don't see a way of doing this.

Any help would be greatly appreciated.

<view-state id="enterPriceAndItemCount" view="priceAndItemCountForm">
<transition on="submit" to="enterCategory">
<action bean="sellItemAction" method="bindAndValidate">
<property name="validatorMethod" value="validatePriceAndItemCount"/>
</action>
</transition>
</view-state>


_CJ

Keith Donald
Jun 3rd, 2005, 05:02 AM
It's all there -- you'll want to use the annotate factory method, or possibly the 'method' factory method. Review AbstractFlowBuilder.