The 'nameList.value' is being used to lookup of the messages/errors that were stored under this in the ActionMessages. ActionMessages has an internal Map and uses a key (normally the property name and there is also GLOBAL_MESSAGE constant) to store messages/errors associated with that field.
> Internally the name is being set to the > same as the rest of the tags, is this simply being > ignored to go fetch > the messages on a standard name?... Could you clarify this part? Or were you asking if there was a different between passing in 'nameList.value' or a simple property 'value'. David --- Arron Bates <[EMAIL PROTECTED]> wrote: > That all seems cool, and if the test works, all the > better :) > > To confirm what's happening there... > It's fetching the "nameList.value" property off the > same bean as the > text fields. To read the markup, the messages and > errors would then be > calling on the same property. Internally the name is > being set to the > same as the rest of the tags, is this simply being > ignored to go fetch > the messages on a standard name?... > > Arron. > > On Fri, 2002-06-21 at 05:45, David Winterfeldt > wrote: > > I'm not 100% I'm sure I'm following what the > problem > > is (probably missed some other e-mails). I was > going > > to talk to you Aaron when I went to do these, but > it > > seemed very simple so I went ahead and made them. > I > > just wanted the nested messages and errors tags to > be > > able to get the property name of the bean so you > could > > display messages and errors next to a field from a > > list. These tags don't really need any other > feature > > the nested tags provid. Currently the validator > can > > handle lists, but not custom messages for each > field. > > It does correctly create the full property as the > > error key though so you can display the error next > to > > the field. Here is the example from > > web/validator/type.jsp where I tested this. > > > > <nested:iterate property="nameList"> > > <tr> > > <th align="left"> > > > > </th> > > <td align="left"> > > <nested:messagesPresent property="value"> > > <br> > > <ul> > > <nested:messages id="error" > > property="value"> > > <li><bean:write > name="error"/></li> > > </nested:messages> > > </ul> > > </nested:messagesPresent> > > > > <nested:text property="value" size="15" > > maxlength="15"/> > > </td> > > </tr> > > </nested:iterate> > > > > Let me know what you think. > > > > David > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>