You're right, just reading the docs on the Wizard Form page it doesn't mention 
it, but I've always used the tag when doing some simple wizard forms. You can 
find the documentation for the tag at: stripes:wizard-fields

Also reading the wizard forms it references the bugzooky example which I know, 
unless it has change recently, is out of date so isn't always the best to go 
by. From reading the docs it seems like the @Wizard tag and stripes:form tag 
should auto-magically figure out that it's a part of a wizard and add the 
fields to the page. Check out the rendered page and see if there are a bunch of 
hidden fields on it from the first form (there should be!). The tag above 
should forcefully put them there if the magic isn't happening. 

Again, I'm not terribly sure it does, or SHOULD, happen automatically, as I 
always use the tag. Any other stripers have ideas here?

-Nick

On Apr 20, 2010, at 4:50 PM, Brian McSweeney wrote:

> Hi Nick,
> 
> thanks a million for the reply. I don't see anything about that in the docs 
> on the site...
> 
> http://www.stripesframework.org/display/stripes/Wizard+Forms
> 
> could you tell me where I can find better info about wizards in here?
> 
> cheers,
> Brian
> 
> 
> On Tue, Apr 20, 2010 at 8:54 PM, Nick Stuart <nstu...@speranzasystems.com> 
> wrote:
> Do you the the <s:wizardFields/> tag in the form for step 2? (forgive me if 
> it's not the correct name, but it's something like that).
> 
> Thats key for the wizard to work correctly...
> 
> -Nick
> On Apr 20, 2010, at 2:59 PM, brian.mcswee...@gmail.com wrote:
> 
> > Hi guys,
> >
> > I'm new to stripes and I'm trying to do what should be super easy. I'm 
> > trying to use a multipage wizard to edit an existing object.
> > This must be a pretty regular pattern. I've tried using startEvent and 
> > saving the user that is retrieved from the database as follows.
> > However the values of "user" don't get persisted between steps in the 
> > wizard...i've searched at length on the forums and found another
> > relevant entry that was never answered....
> >
> > http://www.mail-archive.com/stripes-users@lists.sourceforge.net/msg02020.html
> >
> > this should be simple surely, I'm new to stripes and want to give it a 
> > proper go...but already not being able to do this is worrying...
> >
> > thanks for any help, my code is below
> >
> > brian
> >
> > @Wizard(startEvents="begin")
> > @UrlBinding("/register")
> > public class RegisterActionBean extends BaseActionBean {
> >
> > protected final Log log = LogFactory.getLog(getClass());
> > private UserManager um;
> >
> > /** Setter to allow the UserManager to be injected. */
> > @SpringBean
> > protected void setUserManager(UserManager um) {
> > this.um = um;
> > }
> >
> > @ValidateNestedProperties({
> > @Validate(field="password", required=true, 
> > minlength=5,maxlength=20,expression="${this eq confirmPassword}")
> > })
> > private User user;
> > private String confirmPassword;
> >
> > /* Getters and setters for user and confirmPassword */
> > @DontValidate
> > @DefaultHandler
> > public Resolution begin() {
> > // for the moment just get one user from the database
> > User user = (User)um.getUser("123");
> > this.setUser(user);
> > return new ForwardResolution("/WEB-INF/jsps/edit1.jsp");
> >
> > }
> >
> > public Resolution gotoStep2() throws Exception {
> > // do some more logic here if necessary
> > return new ForwardResolution("/WEB-INF/jsps/edit2.jsp");
> > }
> >
> > public Resolution gotoStep3() throws Exception {
> > // do some more logic here if necessary
> > um.save(user);
> > return new ForwardResolution("/WEB-INF/jsps/editsuccess.jsp");
> > }------------------------------------------------------------------------------
> > _______________________________________________
> > Stripes-users mailing list
> > Stripes-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> ------------------------------------------------------------------------------
> 
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 
> 
> 
> -- 
> -----------------------------------------
> Brian McSweeney
> 
> Technology Director
> Smarter Technology
> web: http://www.smarter.ie
> phone: +353868578212
> -----------------------------------------
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to