On 11/17/05, Jon Wynacht <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a question that might have already been answered but  I wasn't
> sure how to search for the answer, etc. so  I'll ask it and take the
> abuse, if given ;-)
>
> I have a form which is set up to have N number of line items.
> Initially, there is only one item in the form, which stores all of
> the items in an ArrayList. A user can add N number of line items
> before saving the value of the items to the database.
>
> However, my problem lies in easily redisplaying the values and the
> line items.
>
> The way I do it now is the ActionForm has an ArrayList which holds
> all of the line items (as beans) and when it gets called initially,
> the ArrayList gets iterated and the new line item is displayed.
> Values are entered and an icon is clicked to add another line item.
> The values for current line items are gathered via the ActionForm
> using int[] and String[] and then the ArrayList is repopulated, a new
> line item added and the process starts all over again.
>
> Sounds complicated? Yeah, it's kind of complicated but I have this
> feeling I'm making it that way.

If something like this is acceptable
http://www.superinterface.com/strutsdialog/crudactionlite.do

then the source code can be obtained here
https://sourceforge.net/project/showfiles.php?group_id=49385&package_id=154597
in dialogs-samples-1.24.zip file.

--
Struts Dialogs: code-behind for Struts
http://struts.sourceforge.net/strutsdialogs

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

Reply via email to