Ashwin,

This looks like what you are describing:
http://jal.sun.com/services/jsf-components/repeater.faces

Kevin Bridges


On Mon, 1 Nov 2004 08:11:43 -0800 (PST), Ashwin Desai
<[EMAIL PROTECTED]> wrote:
> Actually, I should have clarified better.
> 
> In my application, I need to get user input for a user-configurable
> number of rows. I want to display multiple rows of text fields so
> that the user can enter data and submit it to my Action.
> 
> The sequence :
> 
> 1) User enters number of rows & submits the information -> Action
> 2) Action forwards this information to another jsp
> 3) jsp display {number of rows} textfields
> 4) user enters information & submit the information -> Action.
> 
> I tried using a DynaActionForm so that the user input can be
> captured.
> 
> <form name="dynaForm"
> <property="data" type="test.TestBean[]" />
> 
> I populated the "data" property in my Action before forwarding it to
> my jsp. Then I use this "data" property in the <logic:iterate> tag to
> create the textfields.
> 
> The jsp display the proper number of textfields. However, when the
> user submits the information, the ActionForm is not populated by
> Struts & hence my action does not have access to the submitted
> information.
> 
> I was wondering if there is a better way to do this.
> 
> Thanks
> Ashwin.
> 
> 
> 
> 
> --- "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> 
> > Ashwin,
> >
> > I put my results (as a List object) into request scope then use
> > Displaytag(.org) to show the results in a nice table inside my JSP.
> >
> > Regards,
> > David
> >
> > -----Original Message-----
> > From: Ashwin Desai [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, October 31, 2004 9:56 PM
> > To: Struts Users Mailing List
> > Subject: Re: Handling multiple rows
> >
> >
> > Hi,
> >
> > I have a HTML page where I need to display multiple rows of
> > information from the user at a time. The number of rows is
> > configurable. I need to display <num of rows> text fields so that
> > the
> > user can enter information & submit it to my Action.
> >
> > I tried using the DynaActionForm class & defined a property with
> > the type of "myclass[]" but it did not work.
> >
> > I was wondering if there is any other way to dealing with this.
> >
> > Thanks,
> > Ashwin.
> >
> >
> >
> > --- Ashwin Desai <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I have a HTML page where I need to display multiple rows of
> > > information from the user at a time. The number of rows is
> > > configurable.
> > >
> > > I tried using the DynaActionForm class & defined a property with
> > > the
> > > type of "myclass[]" but it did not work.
> > >
> > > I was wondering if there is any other way to dealing with this.
> > >
> > > Thanks,
> > > Ashwin.
> > >
> > > =====
> > > Ashwin Desai.
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Address AutoComplete - You start. We finish.
> > > http://promotions.yahoo.com/new_mail
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > =====
> > Ashwin Desai.
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We finish.
> > http://promotions.yahoo.com/new_mail
> >
> >
> ---------------------------------------------------------------------
> > 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]
> >
> >
> 
> =====
> Ashwin Desai.
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - Helps protect you from nasty viruses.
> 
> 
> http://promotions.yahoo.com/new_mail
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to