This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I needed to set a dependency of type required & date on each row.
How do I do this without modifying / extending the commons beans validator framework ?
I am using the iterate logic tag and displaying 3 textboxes.
My dyna form bean has a size attribute of 3.
I think the problem is that the textboxes get name attribute (in rendered html)- dyanformfield.dyanformfield, dyanformfield.dyanformfield etc but the form field is not a bean just a string in a string array. [ September 24, 2005: Message edited by: Swamy Nathan ]
the danger of having ALL messages displayed is that you can get all of them displayed (3 per each row that is missing the values repeating, along with other fields) that will no doubt be user-unfriendly. the key is to have a UI that explains to the user that 3 fields are required (*star, bold, whatever). if they are not understanding this, then it's the user's problem.
Joined: May 16, 2004
I was looking at a scenario where I have a a string array defined as a field in a dynavalidator form with a size of say 3.
In my jsp I use logic:iterate and show 3 textboxes. I show the error messages for each text box indexed field also.
Unfortunately it shows only the errors encountered in the first problematic indexed field. Subsequent indexed fields are not being validated.