RE: Bean Form's Vector not updated!

2002-03-18 Thread Maturo, Larry

Hi Juan,

You don't mention if you are using the indexed
attribute with your text fields for the objects
in the vector.  If not, doing so should help.
The other thing to look for is that the id field
in the iterate tag names the vector in your form
bean.  For example, in the below, the name of the
property in your bean should be "org", because the
indexed tag causes html output of org[0].mnemonic,
org[1].mnemonic, etc.

-- Larry Maturo
   [EMAIL PROTECTED]



 
   
 

   

-Original Message-
From: Juan Pablo Villaverde [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 7:47 AM
To: Struts Users Mailing List
Subject: Bean Form's Vector not updated!



 I have bean form with some String fields and a Vector Field. This
vector contains a collection of Customer objects. Each Customer object
have some String and int fields.
 My .jsp renders  for the bean form's String fields and
uses iterate to render  representing Customer's fields.
When I post the jsp's form, my action class receives the String fields
of my bean form updated, acordingly the changes I made in my page. BUT,
the changes made to the Customer's fields are NOT reflected in the
objects contained in the Vector! Is it normal? What can I do to get
all the bean forms contents updated on post? I need to update each
object in a Vector manually after each post using
request.getParameter()? Thanks in advance.


--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



--
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: Re[2]: Bean Form's Vector not updated!

2002-03-15 Thread dhay



Can you post more info.  Did you set your beans to session scope?  There have
been lots of people in the archive with similar problems, so it's still worth
checking there too.

Cheers,

David





Juan Pablo Villaverde <[EMAIL PROTECTED]> on 03/15/2002
04:05:25 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>; Please respond to
  Juan Pablo Villaverde <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List"
  <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Re[2]: Bean Form's Vector not updated!




I use indexed property in all tags where applicable.. but the
collection objects are not updated..

dlc> Search the mail archives for indexed.

dlc> Dave




dlc> Juan Pablo Villaverde <[EMAIL PROTECTED]> on
03/15/2002
dlc> 08:47:25 AM

dlc> Please respond to "Struts Users Mailing List"
dlc>   <[EMAIL PROTECTED]>; Please
respond to
dlc>   Juan Pablo Villaverde <[EMAIL PROTECTED]>

dlc> To:   "Struts Users Mailing List"
dlc>   <[EMAIL PROTECTED]>
dlc> cc:(bcc: David Hay/Lex/Lexmark)
dlc> Subject:  Bean Form's  Vector  not updated!




dlc>  I have bean form with some String fields and a Vector Field. This
dlc> vector contains a collection of Customer objects. Each Customer object
dlc> have some String and int fields.
dlc>  My .jsp renders  for the bean form's String fields and
dlc> uses iterate to render  representing Customer's fields.
dlc> When I post the jsp's form, my action class receives the String fields
dlc> of my bean form updated, acordingly the changes I made in my page. BUT,
dlc> the changes made to the Customer's fields are NOT reflected in the
dlc> objects contained in the Vector! Is it normal? What can I do to get
dlc> all the bean forms contents updated on post? I need to update each
dlc> object in a Vector manually after each post using
dlc> request.getParameter()? Thanks in advance.


dlc> --
dlc> Juan Pablo Villaverde
dlc> Tec. en Infraestructura de Redes
dlc> Soluciones Punto Com S.A.
dlc> http://www.spcom.com.ar



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








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




--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A.
http://www.spcom.com.ar



--
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[2]: Bean Form's Vector not updated!

2002-03-15 Thread Juan Pablo Villaverde


I use indexed property in all tags where applicable.. but the
collection objects are not updated..

dlc> Search the mail archives for indexed.

dlc> Dave




dlc> Juan Pablo Villaverde <[EMAIL PROTECTED]> on 03/15/2002
dlc> 08:47:25 AM

dlc> Please respond to "Struts Users Mailing List"
dlc>   <[EMAIL PROTECTED]>; Please respond to
dlc>   Juan Pablo Villaverde <[EMAIL PROTECTED]>

dlc> To:   "Struts Users Mailing List"
dlc>   <[EMAIL PROTECTED]>
dlc> cc:(bcc: David Hay/Lex/Lexmark)
dlc> Subject:  Bean Form's  Vector  not updated!




dlc>  I have bean form with some String fields and a Vector Field. This
dlc> vector contains a collection of Customer objects. Each Customer object
dlc> have some String and int fields.
dlc>  My .jsp renders  for the bean form's String fields and
dlc> uses iterate to render  representing Customer's fields.
dlc> When I post the jsp's form, my action class receives the String fields
dlc> of my bean form updated, acordingly the changes I made in my page. BUT,
dlc> the changes made to the Customer's fields are NOT reflected in the
dlc> objects contained in the Vector! Is it normal? What can I do to get
dlc> all the bean forms contents updated on post? I need to update each
dlc> object in a Vector manually after each post using
dlc> request.getParameter()? Thanks in advance.


dlc> --
dlc> Juan Pablo Villaverde
dlc> Tec. en Infraestructura de Redes
dlc> Soluciones Punto Com S.A.
dlc> http://www.spcom.com.ar



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








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




--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



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




Re: Bean Form's Vector not updated!

2002-03-15 Thread dhay



Search the mail archives for indexed.

Dave




Juan Pablo Villaverde <[EMAIL PROTECTED]> on 03/15/2002
08:47:25 AM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>; Please respond to
  Juan Pablo Villaverde <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List"
  <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Bean Form's  Vector  not updated!




 I have bean form with some String fields and a Vector Field. This
vector contains a collection of Customer objects. Each Customer object
have some String and int fields.
 My .jsp renders  for the bean form's String fields and
uses iterate to render  representing Customer's fields.
When I post the jsp's form, my action class receives the String fields
of my bean form updated, acordingly the changes I made in my page. BUT,
the changes made to the Customer's fields are NOT reflected in the
objects contained in the Vector! Is it normal? What can I do to get
all the bean forms contents updated on post? I need to update each
object in a Vector manually after each post using
request.getParameter()? Thanks in advance.


--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A.
http://www.spcom.com.ar



--
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]>




Bean Form's Vector not updated!

2002-03-15 Thread Juan Pablo Villaverde


 I have bean form with some String fields and a Vector Field. This
vector contains a collection of Customer objects. Each Customer object
have some String and int fields.
 My .jsp renders  for the bean form's String fields and
uses iterate to render  representing Customer's fields.
When I post the jsp's form, my action class receives the String fields
of my bean form updated, acordingly the changes I made in my page. BUT,
the changes made to the Customer's fields are NOT reflected in the
objects contained in the Vector! Is it normal? What can I do to get
all the bean forms contents updated on post? I need to update each
object in a Vector manually after each post using
request.getParameter()? Thanks in advance.


--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



--
To unsubscribe, e-mail:   
For additional commands, e-mail: