Java Reference
In-Depth Information
register.jsp
<s:form
beanclass="stripesbook.action.RegisterActionBean">
<s:submit name="register"/>
</s:form>
@Wizard public class RegisterActionBean
public Resolution view()
public Resolution register()
public Resolution save()
public Resolution done()
aliases.jsp
<s:form
beanclass="stripesbook.action.RegisterActionBean">
<s:submit name="save"/>
</s:form>
Figure 10.6: register() and save() are associated to a form; view() and
done() are not.
Stripes that some event handlers are allowed to be called from outside
a wizard form. These special events are called start events, and you
indicate their names in the @Wizard annotation:
Download email_19/src/stripesbook/action/RegisterActionBean.java
@Wizard(startEvents={"view","done"})
public class RegisterActionBean extends BaseActionBean
implements ValidationErrorHandler
{
/ * ... * /
}
Now, view ( ) and done ( ) will not cause Stripes to throw an exception.
Our registration wizard is complete!
 
 
 
Search WWH ::




Custom Search