struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Newfield <d...@newfield.org>
Subject Re: Array Input Fields
Date Sat, 11 Sep 2010 16:40:54 GMT
>>> <input type="text" id="user[1].name" name="user[1].name" value="smith"
>>> size="20" />

>>> therefore i'd expect the params interceptor to make calls like
>>> getUser(1).setName("smith") for the above input field sent to the server....
>>> but it doesn't set the value or error - the params interceptor debug shows
>>> the correct name/value pair of user[1].name =>  [smith]

I'd bet that the list of users is null, so getUser(1) fails, and 
therefore the setName() call doesn't fire.

-Dale

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


Mime
View raw message