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.

You see, when I iterate through the ArrayList, I do something like this:

<logic:iterate id="event" name="AddEventGroup" property="events">

<html:text name="AddEventGroup" property="eventDuration" value="<bean:write name='event' property='aDuration'/>

......

</logic>

For starters, the <bean:write/> just gives me a lot of &lt;&gt; stuff. My taglibs are all good as I've tested the <bean:write/> outside of the value="" and it works fine.

Any ideas as to what's going on with that, as well as pointers to do this kind of nested processing better?

Thanks in advance,

Jon

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

Reply via email to