You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by RR <se...@gmail.com> on 2005/06/09 22:18:28 UTC

ognl execution w/o jwcid

Given the following code:

<span jwcid="@Foreach" source="ognl:someCollection.toArray()"
value="ognl:element" index="ognl:cntr">
 <table border="0" cellspacing="3" cellpadding="3" class="ognl:(cntr%2
== 0) : 'tableRowEven' ? 'tableRowOdd'">
 ...
 </table>
</span>

How can I determine and assign the appropriate value as determined by
the ognl statement? As it is the whole thing is bypassed by Tapestry
(because it's not being processed w/o a jwcid attribute?).

Thanks,
-RR-

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


Re: ognl execution w/o jwcid

Posted by Ron Piterman <mp...@vollbio.de>.
The toArray() call is obsolete. Foreach will handle many kinds of 
collections...


ציטוט RR:
> Given the following code:
> 
> <span jwcid="@Foreach" source="ognl:someCollection.toArray()"
> value="ognl:element" index="ognl:cntr">
>  <table border="0" cellspacing="3" cellpadding="3" class="ognl:(cntr%2
> == 0) : 'tableRowEven' ? 'tableRowOdd'">
>  ...
>  </table>
> </span>
> 
> How can I determine and assign the appropriate value as determined by
> the ognl statement? As it is the whole thing is bypassed by Tapestry
> (because it's not being processed w/o a jwcid attribute?).
> 
> Thanks,
> -RR-
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


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


Re: ognl execution w/o jwcid

Posted by RR <se...@gmail.com>.
Which I've used elsewhere months ago and have completely forgotten
about it. Thanks for the memory check.

On 6/9/05, Denis Souza <ds...@sti.com.br> wrote:
> Use jwcid="@Any"
> 
> -----Original Message-----
> From: RR [mailto:security.identity@gmail.com]
> Sent: quinta-feira, 9 de junho de 2005 17:18
> To: Tapestry users
> Subject: ognl execution w/o jwcid
> 
> Given the following code:
> 
> <span jwcid="@Foreach" source="ognl:someCollection.toArray()"
> value="ognl:element" index="ognl:cntr">
>  <table border="0" cellspacing="3" cellpadding="3" class="ognl:(cntr%2
> == 0) : 'tableRowEven' ? 'tableRowOdd'">
>  ...
>  </table>
> </span>
> 
> How can I determine and assign the appropriate value as determined by
> the ognl statement? As it is the whole thing is bypassed by Tapestry
> (because it's not being processed w/o a jwcid attribute?).
> 
> Thanks,
> -RR-
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
>

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


RE: ognl execution w/o jwcid

Posted by Denis Souza <ds...@sti.com.br>.
Use jwcid="@Any"

-----Original Message-----
From: RR [mailto:security.identity@gmail.com] 
Sent: quinta-feira, 9 de junho de 2005 17:18
To: Tapestry users
Subject: ognl execution w/o jwcid

Given the following code:

<span jwcid="@Foreach" source="ognl:someCollection.toArray()"
value="ognl:element" index="ognl:cntr">
 <table border="0" cellspacing="3" cellpadding="3" class="ognl:(cntr%2
== 0) : 'tableRowEven' ? 'tableRowOdd'">
 ...
 </table>
</span>

How can I determine and assign the appropriate value as determined by
the ognl statement? As it is the whole thing is bypassed by Tapestry
(because it's not being processed w/o a jwcid attribute?).

Thanks,
-RR-

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




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