You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Guillermo Meyer <gm...@interbanking.com.ar> on 2004/06/08 13:38:07 UTC

Multibox combined with other fields

Hi:

I have a form that may contain one or more "rows". Each row has a
passenger data. All the passengers in the form consists in a
reservation:

Number	Title		Name			ExtraSeat
CabinBaggage

1		Mr		Carlos Gardel	Yes(1)	No(1)
2		Mr		J.Manuel Fangio	No(2)		No(2)
3		Mr		Guillermo Vilas	No(3)		No(3)
4		Mr		Diego Maradona	Yes(4)	Yes(4)


ExtraSeat and CabinBaggage uses multiboxes and should be boolean values.
When I submit this form, the multiboxes that are checked are sent, but
the unchecked arent.

When posted, I receive arrays of string with:

Number={"1", "2", "3", "4"}
Title={"Mr", "Mr", "Mr", "Mr"}
Name={"Carlos Gardel", "J.Manuel Fangio", "Guillermo Vilas", "Diego
Maradona"}
ExtraSeat={"1", "4"}
CabinBaggage={"4"}

What is the usual solution for this using plain struts?
Do i should calculate the "missing" extraseat and cabinbaggage in the
reset form?
Is there any "helper" class for completing the missing non posted
checkboxes to indicate true or false in that porperties?

In fact, i should need to have this arrays in order proceed in
persisting this reservation:

Number={"1", "2", "3", "4"}
Title={"Mr", "Mr", "Mr", "Mr"}
Name={"Carlos Gardel", "J.Manuel Fangio", "Guillermo Vilas", "Diego
Maradona"}
ExtraSeat={true, false, false, true}
CabinBaggage={false, false, false, true}

Thanks in advance.

Guillermo Meyer
System Engineer
EDS Argentina - Proyecto X71 Interbanking.
54.11.4322-1307

NOTA DE CONFIDENCIALIDAD
Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org