struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Using sets of objects with tags
Date Wed, 02 Apr 2008 18:40:30 GMT
--- jstraub@altec.org wrote:
> I am loading a simple set of objects representing users in an action; they
> have names, passwords, etc., all loaded from a database.

Struts 2?

> Next, I use the iterator to create textfield tags instead of property
> tags, with the goal of allowing the viewer to edit all of the fields.
> 
> My problem is, how do I submit all of these fields? Understand that there
> is a varying number of fields, and possibly quite a lot of them, so just
> hardcoding matching setters/getters for N uniquely identified DOM tree
> elements seems a poor solution.

Use map- (and/or) index-based field names. Trivial with S2, don't actually
remember for S1.

> Sorry again if this is not the place to pose this question, but various
> forums have proved to be unresponsive.

Er, what other forums would you have tried?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message