Re: Struts2 Collection validation

2010-05-25 Thread harpreet
Hi, I am new to the Struts2 and facing the similar issue , u said u have managed to get the data from the dynmically generated fields to the action , can u share how it can be done...a sample will be of great help... my requirment is my form is dynamically generat the fileds for name dat

Re: Struts2 Collection validation

2008-10-30 Thread fgsantoyo
If you want to validate generated fields, i mean a Collection you can do something like this. * Action class private List collection; public void setCollection(String collection) { this.collection = collection; } public String getCollection() { r

RE: Struts2 Collection validation

2008-10-20 Thread Néstor Boscán
9:59 AM Para: user@struts.apache.org Asunto: Re: Struts2 Collection validation I hope there exists a simpler solution, but here is my workaround: use an expression validator. This idea was taken from http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html webwork wiki: collect

Re: Struts2 Collection validation

2008-10-20 Thread gaelle
I hope there exists a simpler solution, but here is my workaround: use an expression validator. This idea was taken from http://www.opensymphony.com/webwork/wikidocs/collection%20validator.html webwork wiki: collection validator (it seems that the collection validator is not yet available in str

RE: Struts2 Collection validation

2008-10-16 Thread Martin Gainty
is transmission. > Date: Thu, 16 Oct 2008 10:19:05 -0300 > From: [EMAIL PROTECTED] > To: user@struts.apache.org > Subject: Re: Struts2 Collection validation > > You may want to look at type conversion [1] and VisitorValidator [2] > to validate those form fields. > > Also, pl

Re: Struts2 Collection validation

2008-10-16 Thread Gabriel Belingueres
You may want to look at type conversion [1] and VisitorValidator [2] to validate those form fields. Also, please note that collection indexing is done with [square] brackets, like in: "persons[2].name" [1] http://struts.apache.org/2.1.2/docs/type-conversion.html#TypeConversion-Anadvancedexamplef

Re: Struts2 Collection validation

2008-10-16 Thread Julio Alberto Jalón
May I didn't explain myself correctly. What I would like to know is how to validate multiple fields. I'll write an example. I have a form in a JSP which generate the field dynamically. E.g: ID First Name Last Name