Jason's suggestion works for a fixed size, but if you want to do dynamic
stuff we'd need a special List implementation. Matt Ho had suggested an
"OgnlList" that doesn't throw IndexOutOfBoundsExceptions. If you want
this feature, please open a jira issue. Thanks.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Anoop Ranganath
Sent: Friday, October 17, 2003 2:18 PM
To: [EMAIL PROTECTED]
Subject: [OS-webwork] editing lists of text fields

At first I thought this would be a pain in the ass, but after reading 
about OGNL, I think this may actually be a lot easier.  Our domain 
objects have some properties that are lists.  Right now, we can easily 
display them on screen by iterating through the lists in our velocity 
template.  However, for editing them, we click an edit button next to 
it, and that brings up a page with the text in a text field, and we 
edit from there.  The other solution we thought of was put a save 
button next to each text field all on separate forms in the HTML.

Ideally, we'd like to be able to have a list of text fields come up on 
the screen, and you can edit all of them at once, click save, and have 
all of them persisted.  It seems to do that, though, it requires a lot 
of legwork in giving the fields unique names, figuring out which field 
maps to what, etc.

Does OGNL or WW2 provide any magic to do this?

Thanks,
Anoop



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to