indexed property validation

2006-05-04 Thread Carl Smith
I have an indexed property which is a tipical list of textboxes, I have a requirement to validate that the user need to at least enter values into one text box. How can you configure this using Struts "required" validator? Thanks in advance.

RE: indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-12 Thread Michael TALLET
will call setValue on the bean, and that's all Hope this helps -Message d'origine- De : Carl Smith [mailto:[EMAIL PROTECTED] Envoyé : mercredi 12 avril 2006 00:21 À : Struts Users Mailing List Objet : Re: indexed property validation error:java.lang.reflect.InvocationTarge

Re: indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-11 Thread Carl Smith
Interestingly if I change the config for testingForm to be of scope session, then it works. However I can't use session scope so still need the answer for my original question, can some one help? Thanks. Carl Smith <[EMAIL PROTECTED]> wrote: I have a jsp containing three text fields which

indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-10 Thread Carl Smith
I have a jsp containing three text fields which are indexed property, I needs to validate all the text box contains a value other than null or empth string. When I click on save I got the error (see the bottom). Your helps are highly appreciated! jsp: (1) indexed property - text box

Re: indexed property validation: how to keep the value the user entered

2006-03-30 Thread Carl Smith
Your comments make great sense... I moved the initializing part from the displayAction to the reset method in the form bean as you suggested and it works as expected. Thanks. Laurie Harper <[EMAIL PROTECTED]> wrote: OK, so when validation fails Struts forwards to displayTesting w

Re: indexed property validation: how to keep the value the user entered

2006-03-29 Thread Laurie Harper
OK, so when validation fails Struts forwards to displayTesting which, in turn, forwards to /displayAction. In your DisplayAction class, you're overwriting the values of your form bean property, destroying the information Struts set there. You'll need to check if the property has already been i

Re: indexed property validation: how to keep the value the user entered

2006-03-27 Thread Carl Smith
First of all Thank you Laurie, you are the only one anwering my questions :): Here are my struts-config.xml entries for the actions and formbean ( I neglected the path and anything). Laurie Harper <[EMAIL PROTECTED]> wrote: We'll need to see

Re: indexed property validation: how to keep the value the user entered

2006-03-25 Thread Laurie Harper
We'll need to see the relevant parts of your struts-config.xml too (specifically, the form bean and action mapping definitions). L. Carl Smith wrote: I have a jsp containing an indexed test box field, and I need to validate the user enter a value into all the text boxes when clicking on the s

indexed property validation: how to keep the value the user entered

2006-03-24 Thread Carl Smith
I have a jsp containing an indexed test box field, and I need to validate the user enter a value into all the text boxes when clicking on the save button. Validation is done OK, but there is an issue. Let me give you an example illustrating the issue: if there are three text boxes, the user ente