DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33258>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33258


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |28358




------- Additional Comments From [EMAIL PROTECTED]  2005-01-27 22:55 -------
I've been looking into the BeanUtils isssue,  and I've posted details on that 
bug - see Bug 28358

To summarise, there is a problem in how different versions of the JDK work with 
indexed properties when you use java.util.List for your indexed properties. 
However using Arrays doesn't have any issues (as far as I know) and my advice 
would be (if you don't want to use DynaBeans) is to change your ActionForm to 
use Arrays rather than java.util.Lists. So your methods for the "foos" property 
in your ActionForm would look like:

   public Foo[] getFoos()
   public Foo getFoos(int index)
   public void setFoos(Foo[] foos)
   public void setFoos(int index, Foo foo)

That way you can use consistent property names throughout and the error 
highlighting should work:

In your jsp...

   <c:forEach items="foos" id="foos">
       <html:text errorStyleClass="fooError" name="foos" property="day" 
indexed="true" />
   </c:forEach>

In your validation.xml

   <field indexedListProperty="foos" property="day" depends="mask">

Niall


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to