You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by RemiClaude <te...@telecom-paristech.fr> on 2008/10/06 15:00:42 UTC
How to force Struts to reevaluate logic:equal on client side?
Hi all;
I have 2 rows in my table. Each row should be displayed or not depending of
the value of a radio button which can be "F" or "M". So, when I clik on "F",
I need to display the row with id="repIn" and when I click on "M" the row
with id="repOut".
I do not need the server for this, all should be done client side.
This is my code:
<p>
<tr id="repIn">
<br>
<logic:equal name="DetailFluxBoomerangForm" property="Canal" value="F">
<br>
<td >inputPath</td>
<br>
<td><html:text property="RepInto" styleClass="champ" size="60"
readonly="true"/></td>
<br>
</logic:equal><br>
</tr>
<p>
<p>
<tr id="repOut">
<br>
<logic:equal name="DetailFluxBoomerangForm" property="Canal" value="M">
<br>
<td >outputPath</td>
<br>
<td><html:text property="RepOuto" styleClass="champ" size="60"
readonly="true"/></td>
<br>
</logic:equal><br>
</tr>
<p>
Can anyone help me please?
thank you
--
View this message in context: http://www.nabble.com/How-to-force-Struts-to-reevaluate-logic%3Aequal-on-client-side--tp19837465p19837465.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: How to force Struts to reevaluate logic:equal on client side?
Posted by Dave Newton <ne...@yahoo.com>.
Use some simple JavaScript and CSS.
--- On Mon, 10/6/08, RemiClaude <te...@telecom-paristech.fr> wrote:
> From: RemiClaude <te...@telecom-paristech.fr>
> Subject: How to force Struts to reevaluate logic:equal on client side?
> To: user@struts.apache.org
> Date: Monday, October 6, 2008, 9:00 AM
> Hi all;
>
> I have 2 rows in my table. Each row should be displayed or
> not depending of
> the value of a radio button which can be "F" or
> "M". So, when I clik on "F",
> I need to display the row with id="repIn" and
> when I click on "M" the row
> with id="repOut".
>
> I do not need the server for this, all should be done
> client side.
>
> This is my code:
>
> <p>
> <tr id="repIn">
> <br>
> <logic:equal name="DetailFluxBoomerangForm"
> property="Canal" value="F">
> <br>
> <td >inputPath</td>
> <br>
> <td><html:text property="RepInto"
> styleClass="champ" size="60"
> readonly="true"/></td>
> <br>
> </logic:equal><br>
> </tr>
> <p>
>
>
> <p>
> <tr id="repOut">
> <br>
> <logic:equal name="DetailFluxBoomerangForm"
> property="Canal" value="M">
> <br>
> <td >outputPath</td>
> <br>
> <td><html:text property="RepOuto"
> styleClass="champ" size="60"
> readonly="true"/></td>
> <br>
> </logic:equal><br>
> </tr>
> <p>
>
> Can anyone help me please?
>
> thank you
> --
> View this message in context:
> http://www.nabble.com/How-to-force-Struts-to-reevaluate-logic%3Aequal-on-client-side--tp19837465p19837465.html
> Sent from the Struts - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org