struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuwan Chandrasoma <mymail...@gmail.com>
Subject Re: Doubt about form with select and texfields
Date Wed, 03 Sep 2008 09:06:23 GMT
Hi,

You may have to use JavaScript, this will only work at the time of page 
rendering only.

Thanks,

Nuwan


Francisco Exposito wrote:
> Hi,
>
> I am trying to create a form where I have a select, and depending of my selection, I
make visible or not some others textfields in the same page.
>
> How can I do it?
>
> I have this (a test showing a radio or another), but it doesn't work...
>
> <td><s:select name="contrato.tipoContrato" label="Tipo" list="listaTiposContrato"
listKey="idTipo" emptyOption="false" headerValue="Seleccionar" headerKey="Seleccionar"></s:select></td>
>                 <s:if test="contrato.tipoContrato=='SoporteVenta'">
>                     <td><s:radio label="Abierta" name="contrato.abierta" list="{'SĂ­','No'}"/></td>
>                 </s:if>
>                 <s:else>
>                     <td><s:radio label="Abierta" name="contrato.abierta" list="{'AA','BB'}"/></td>
>                 </s:else>
>
> Thanks.
>
> _________________________________________________________________
> Prueba los prototipos de los Ășltimos en MSN Motor
> http://motor.es.msn.com/
>   


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


Mime
View raw message