Re: Wizard forms

2003-06-11 Thread Sandeep Takhar
I'm not saying it's better, but this is what I have
done (but not with as much tiles integration).  This
is how I would do it moving forward:

Have a different action or two different actions for
each unique page.  (You may have pages that are not
necessarily unique and are generic second pages
possibly).

The action for the second page forwards to a tile that
subclasses a main tile that you have defined and has a
different body.

I would still use the page parameter on the form so
you could use the validator.

sandeep


--- "Gregory F. March" <[EMAIL PROTECTED]> wrote:
> 
> How are wizard forms (multipage forms) typically
> done in the struts
> framework?
> 
> I have done the following and I'm running into a few
> configuration and
> usability problems that seem to indicate that I did
> something wrong.
> I have the following:
> 
> * Main tile page that contains a header, menu, body
> and footer.
> 
> * The body tile contains parts of the form with
> multiple submit
>   buttons, a "save", "cancel", "reset", "previous"
> and "next".
> 
> * When the user hits next or prev, the action
> redirects to a forward
>   with a ?page=n so that the main tile page can
> display the correct
>   body. 
> 
> * Based on the "page" parameter, the main tile page
> will change the
>   body of the page to a different .jsp for each of
> the pages in the
>   multipart form.
> 
> * A DynaActionForm that has session scope to
> maintain the data across
>   pages. 
> 
> Does this sound right?  My issues are with that
> "page" property to
> manage the content of the body tile - it doesn't
> seem natural in this
> framework to do it this way.
> 
> As usual, any comments are really appreciated...
> 
> Thanks,
> 
> /greg
> 
> --
> Gregory F. March-=-   
> http://www.gfm.net:81/~march-=-AIM:GfmNet
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard forms

2003-06-11 Thread Gregory F. March

On Jun 11, 2003, "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>  wrote:

 |Although there are other ways of doing it, with parameters and logic and
 |whatnot, my suggestion would be to make a separate tiles definition for each
 |page, and forwarding to those tiles defs.  Does this make sense to you?  Let
 |me know if you're still haveing problems.

Ah!  The light bulb comes on...  I didn't realize you could forward to
a tile definition.

Err time to go back and rethink what I did with all the freakin'
inserts!

Thanks!

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wizard forms

2003-06-11 Thread Kamholz, Keith (corp-staff) USX
tile.pageTwo is an extension of the main layout tile, with a different body
defined.

Although there are other ways of doing it, with parameters and logic and
whatnot, my suggestion would be to make a separate tiles definition for each
page, and forwarding to those tiles defs.  Does this make sense to you?  Let
me know if you're still haveing problems.


Keith Kamholz
Programming and Architecture
Moog Inc.

Phone: (716) 687-7001



-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 10:26 AM
To: Struts Users Mailing List
Subject: Re: Wizard forms



On Jun 11, 2003, "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
wrote:

 |If all you want to do is forward to another JSP page, make a forward
action
 |in your struts-config like this:
 |
 |
 |
 |That way, no parameters are necessary.  You'll just have to make a whole
 |bunch of forward actions.

The forward you reference, tiles.pageTwo, what is it?  A jsp?

The reason I ask is that I have one main tile page that has logic:
tags to load different body components so that I don't need a separate
main tile page for each page of the form.  In other words, I have:

 mainTileFormPage.jsp  (loads the formBody.jsp's)
 formBody1.jsp
 formBody2.jsp
 formBody3.jsp
 formBody4.jsp

I'd rather not have a mainTileFormPage.jsp, and I'd rather not
embed the body tiles into the main tile form page.  Am I thinking
about this correctly?

I hope I made myself clear there... if not, let me know and I'll try
again.

Thanks!

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Wizard forms

2003-06-11 Thread Gregory F. March

On Jun 11, 2003, "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>  wrote:

 |If all you want to do is forward to another JSP page, make a forward action
 |in your struts-config like this:
 |
 |
 |
 |That way, no parameters are necessary.  You'll just have to make a whole
 |bunch of forward actions.

The forward you reference, tiles.pageTwo, what is it?  A jsp?

The reason I ask is that I have one main tile page that has logic:
tags to load different body components so that I don't need a separate
main tile page for each page of the form.  In other words, I have:

 mainTileFormPage.jsp  (loads the formBody.jsp's)
 formBody1.jsp
 formBody2.jsp
 formBody3.jsp
 formBody4.jsp

I'd rather not have a mainTileFormPage.jsp, and I'd rather not
embed the body tiles into the main tile form page.  Am I thinking
about this correctly?

I hope I made myself clear there... if not, let me know and I'll try
again.

Thanks!

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Wizard forms

2003-06-11 Thread Kamholz, Keith (corp-staff) USX
If all you want to do is forward to another JSP page, make a forward action
in your struts-config like this:



That way, no parameters are necessary.  You'll just have to make a whole
bunch of forward actions.

Now if only I could get it to stop giving me warnings for all my tiles
names...


Keith Kamholz
Programming and Architecture
Moog Inc.

Phone: (716) 687-7001



-Original Message-
From: Gregory F. March [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 9:00 AM
To: Struts Users Mailing List
Subject: Wizard forms



How are wizard forms (multipage forms) typically done in the struts
framework?

I have done the following and I'm running into a few configuration and
usability problems that seem to indicate that I did something wrong.
I have the following:

* Main tile page that contains a header, menu, body and footer.

* The body tile contains parts of the form with multiple submit
  buttons, a "save", "cancel", "reset", "previous" and "next".

* When the user hits next or prev, the action redirects to a forward
  with a ?page=n so that the main tile page can display the correct
  body. 

* Based on the "page" parameter, the main tile page will change the
  body of the page to a different .jsp for each of the pages in the
  multipart form.

* A DynaActionForm that has session scope to maintain the data across
  pages. 

Does this sound right?  My issues are with that "page" property to
manage the content of the body tile - it doesn't seem natural in this
framework to do it this way.

As usual, any comments are really appreciated...

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]