Hallo,
lets say, I have a serial Flow where the user is guided through the following states:
On each Screen the user has a button called next. This saves the input an navigates to the first state that does not validate. Normally this leads to an order like show above. But lets assume the user is in state C and wants to go back to A. When he then klicks an next he would assume to go back to C and not to B. Just the first page, with not validating data.Code:A -> B -> C -> D
In pratice I am doing this the following:
Every view-state navigates to the action-state "theMover". The visitedStates Bean then examines what the first not validating state is. This is my question:Code:<action-state id="theMover"> <evaluate expression="visitedStates.nextState(adData)" /> <transition on="BASE" to="baseData" /> <transition on="CONTENT" to="contentData" /> <transition on="UPLOAD" to="uploadData" /> <transition on="FORMATTING" to="formattingData" /> <transition on="EXTRA" to="extraData" /> <transition on="CONTACT" to="contactData" /> <transition on="REVIEW" to="review" /> </action-state>
How can I invoke my Validators. The have Signatures like
So I need a proper prepared ValidationContext. Has anyone an idea how to do this?Code:public void validateBaseData(ValidationContext vcontext) {
Regards,
Marc


Reply With Quote

