Re: Validation of indexed fields

2003-08-28 Thread Robert Leland
[EMAIL PROTECTED] wrote:

I've got a nightly build...but I still can't get indexed field validation to
work, either on the client or server side. 
 

Struts Nightly is built with a Aug 16th version of Validator, gotta open 
those jars.
It's probably safe to download the reciently announced 1.1.0 release 
marked as alpha.
see commons-dev mailing list for URL.



I'm using a ValidatorActionForm, as I want to only validate fields on
certain actions (not form-wide).
The form has an ArrayList of beans, the form and the nested bean have
correct getters and setters. 

I am using logic:iterate to loop through the ArrayList and display a text
box for a specific bean field. If the user enters data into a field, I want
to validate it and then 

fire the appropriate setters in the bean. 





In my JSP:





   

 









In my validation.xml:



 
   

 





This gives me a blank javascript validation function, and the fields are not
validated on the server either.


However, it does work if I name the index of the field I want to validate,
i.e.




   

 



Both the client-side and server-side validation works if I explicitly name
the indexed field.


Am I doing something wrong, or does this just not work in a nightly build?



TIA

M.



 




Validation of indexed fields

2003-08-28 Thread Murray . Bodor
I've got a nightly build...but I still can't get indexed field validation to
work, either on the client or server side. 

 

I'm using a ValidatorActionForm, as I want to only validate fields on
certain actions (not form-wide).

The form has an ArrayList of beans, the form and the nested bean have
correct getters and setters. 

I am using logic:iterate to loop through the ArrayList and display a text
box for a specific bean field. If the user enters data into a field, I want
to validate it and then 

fire the appropriate setters in the bean. 

 

 

In my JSP:







  





 

 

In my validation.xml:



  



  



 

This gives me a blank javascript validation function, and the fields are not
validated on the server either.

 

However, it does work if I name the index of the field I want to validate,
i.e.

 





  

 

Both the client-side and server-side validation works if I explicitly name
the indexed field.

 

Am I doing something wrong, or does this just not work in a nightly build?

 

TIA

M.

 



RE: Indexed Fields

2003-05-30 Thread Taylor, Jason
It's been a while since I had this problem, but sometimes with 1.02 indexed
properties you have to resort to scriptlets.  You could try something like
this (untested):


]"/> 


or maybe like this (also untested):


]" value="<%
request.getAttribute("indexdProperty["+page.getAttribute("id")+"]") %>" /> 


or you could just upgrade to 1.1 bX.  

If your boss doesn't like using a beta, remind him that it's an open-source
product and that the 1.02 release is no better in terms of 'support' than a
well-tested beta...

-JT

> -Original Message-
> From: Abhinav (Cognizant) [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 29, 2003 9:09 AM
> To: Struts Users Mailing List
> Subject: RE: Indexed Fields
> 
> 
> I think its available in struts 1.1
> am using 1.0.2
> is there a way out.
> 
> -Original Message-
> From: Denis Avdic [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 29, 2003 9:33 PM
> To: Struts Users Mailing List
> Subject: Re: Indexed Fields
> 
> 
> 
> http://jakarta.apache.org/struts/userGuide/struts-html.html#text
> 
> look at indexed property.
> 
> hth
> Denis
> 
> Abhinav (Cognizant) wrote:
> 
> >How to dynamically generate indexed html fields as well as 
> populate them from the form bean.
> >I am unable to do both simultaneously.
> >
> >My fields will be generated by 
> > 
> >  ...
> >
> >For this I use 
> > 
> > ]"/> 
> >  
> > 
> > But the HTML output that it gives is this .. 
> > 
> >  ...
> >_
> _
> >
> >When instead of using iterator I use it like this
> >(hardcoding indices) 
> > 
> > 
> >  ...
> >  
> >i get output as 
> > 
> > 
> >   
> >
> >which is correct
> >_
> _
> >ANY HELP ON WHAT I AM TRYING TO DO 
> >
> >
> >Thanx.
> >
> >  
> >
> >-
> ---
> >
> >** Message from InterScan E-Mail VirusWall NT **
> >
> >** No virus found in attached file noname.htm
> >
> >No Virus detected in the attached file(s).
> >* End of message ***
> >
> >
> >  
> >
> >-
> ---
> >
> >This e-mail and any files transmitted with it are for the 
> sole use of the intended 
> >recipient(s) and may contain confidential and privileged 
> information. If you are not the 
> >intended recipient, please contact the sender by reply 
> e-mail and destroy all copies of 
> >the original message. 
> >Any unauthorised review, use, disclosure, dissemination, 
> forwarding, printing or copying 
> >of this email or any action taken in reliance on this e-mail 
> is strictly prohibited and 
> >may be unlawful.
> >
> >  Visit us at http://www.cognizant.com
> >
> >  
> >
> >-
> ---
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


RE: Indexed Fields

2003-05-30 Thread Abhinav (Cognizant)
I think its available in struts 1.1
am using 1.0.2
is there a way out.

-Original Message-
From: Denis Avdic [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 9:33 PM
To: Struts Users Mailing List
Subject: Re: Indexed Fields



http://jakarta.apache.org/struts/userGuide/struts-html.html#text

look at indexed property.

hth
Denis

Abhinav (Cognizant) wrote:

>How to dynamically generate indexed html fields as well as populate them from the 
>form bean.
>I am unable to do both simultaneously.
>
>My fields will be generated by 
>   
>...
>
>For this I use 
>   
>   ]"/> 
>
>   
>   But the HTML output that it gives is this .. 
>   
>...
>__
>
>When instead of using iterator I use it like this
>(hardcoding indices)   
>   
>   
>...
>
>i get output as 
>   
>   
> 
>
>which is correct
>__
>ANY HELP ON WHAT I AM TRYING TO DO 
>
>
>Thanx.
>
>  
>
>
>
>** Message from InterScan E-Mail VirusWall NT **
>
>** No virus found in attached file noname.htm
>
>No Virus detected in the attached file(s).
>* End of message ***
>
>
>  
>
>
>
>This e-mail and any files transmitted with it are for the sole use of the intended 
>recipient(s) and may contain confidential and privileged information. If you are not 
>the 
>intended recipient, please contact the sender by reply e-mail and destroy all copies 
>of 
>the original message. 
>Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
>copying 
>of this email or any action taken in reliance on this e-mail is strictly prohibited 
>and 
>may be unlawful.
>
>  Visit us at http://www.cognizant.com
>
>  
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>



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


** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

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

Re: Indexed Fields

2003-05-30 Thread Denis Avdic
http://jakarta.apache.org/struts/userGuide/struts-html.html#text

look at indexed property.

hth
Denis
Abhinav (Cognizant) wrote:

How to dynamically generate indexed html fields as well as populate them from the form 
bean.
I am unable to do both simultaneously.
My fields will be generated by 
		
		 ...

For this I use 
	
		]"/> 
	 
	
	But the HTML output that it gives is this .. 
		
		 ...
__

When instead of using iterator I use it like this
(hardcoding indices)	
	
	
	 ...
	 
i get output as 
	
	
		

which is correct
__
ANY HELP ON WHAT I AM TRYING TO DO 
Thanx.

 



** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***
 



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not the 
intended recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited and 
may be unlawful.

 Visit us at http://www.cognizant.com

 



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


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


Indexed Fields

2003-05-30 Thread Abhinav (Cognizant)

How to dynamically generate indexed html fields as well as populate them from the form 
bean.
I am unable to do both simultaneously.

My fields will be generated by 

 ...

For this I use 

]"/> 
 

But the HTML output that it gives is this .. 

 ...
__

When instead of using iterator I use it like this
(hardcoding indices)


 ...
 
i get output as 


  

which is correct
__
ANY HELP ON WHAT I AM TRYING TO DO 


Thanx.

** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. If you are not 
the 
intended recipient, please contact the sender by reply e-mail and destroy all copies 
of 
the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying 
of this email or any action taken in reliance on this e-mail is strictly prohibited 
and 
may be unlawful.

  Visit us at http://www.cognizant.com

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

RE: JavascriptValidatorTag and Indexed Fields

2002-06-13 Thread Michael . Kashambuzi

what about what's shown at the following URL:

http://home.earthlink.net/~dwinterfeldt/revision.html


-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:02 PM
To: Struts Users Mailing List
Subject: Re: JavascriptValidatorTag and Indexed Fields


No.  It's on the long to do list.

David

--- Peter Onthrops <[EMAIL PROTECTED]> wrote:
> 
> Have there been any updates to
> JavascriptValidatorTag to handle indexed fields?
> 
> Thanks,
> 
> P.
> 
> 
> 
> -
> Do You Yahoo!?
> Sign-up for Video Highlights of 2002 FIFA World Cup


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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

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




Re: JavascriptValidatorTag and Indexed Fields

2002-06-12 Thread David Winterfeldt

No.  It's on the long to do list.

David

--- Peter Onthrops <[EMAIL PROTECTED]> wrote:
> 
> Have there been any updates to
> JavascriptValidatorTag to handle indexed fields?
> 
> Thanks,
> 
> P.
> 
> 
> 
> -
> Do You Yahoo!?
> Sign-up for Video Highlights of 2002 FIFA World Cup


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




JavascriptValidatorTag and Indexed Fields

2002-06-07 Thread Peter Onthrops


Have there been any updates to JavascriptValidatorTag to handle indexed fields?

Thanks,

P.



-
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup