You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Eric Gilbertson <Er...@pss-systems.com> on 2004/05/14 03:19:53 UTC

How to specify mulitple parameters in an ExternalLink?

Silly question I know, but I really have groked the samples, read the FM
and visted the OGNL site to no avail. Can someone tell me syntax for
specifying multiple values in the parameters of an ExternalLink? The
documentation says that this can be done, but the parser rejects my
attempts to specify > 1 parameter.

TIA,

Eric G.


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


Re: How to specify mulitple parameters in an ExternalLink?

Posted by Paul Ferraro <pm...@columbia.edu>.
The "parameters" parameter of ExternalLink may accept an array of 
java.lang.Object's or a java.util.List.
e.g.
<a jwcid="@ExternalLink" page="MyPage" parameters="ognl:{ param1, param2 
}" href="#">Link to My Page</a>

See the component reference for details:
http://jakarta.apache.org/tapestry/doc/ComponentReference/ExternalLink.html

Paul Ferraro

Eric Gilbertson wrote:

>Silly question I know, but I really have groked the samples, read the FM
>and visted the OGNL site to no avail. Can someone tell me syntax for
>specifying multiple values in the parameters of an ExternalLink? The
>documentation says that this can be done, but the parser rejects my
>attempts to specify > 1 parameter.
>
>TIA,
>
>Eric G.
>
>
>---------------------------------------------------------------------
>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: How to specify mulitple parameters in an ExternalLink?

Posted by Shawn Church <sh...@boxity.com>.
Try this:

<component id="externalLink" type="ExternalLink">
  <binding name="parameters" expression='{parm1, parm2, "literal parm"}'/>
</component>

Shawn

-----Original Message-----
From: Eric Gilbertson [mailto:Eric.Gilbertson@pss-systems.com]
Sent: Thursday, May 13, 2004 8:20 PM
To: Tapestry users
Subject: How to specify mulitple parameters in an ExternalLink?



Silly question I know, but I really have groked the samples, read the FM
and visted the OGNL site to no avail. Can someone tell me syntax for
specifying multiple values in the parameters of an ExternalLink? The
documentation says that this can be done, but the parser rejects my
attempts to specify > 1 parameter.

TIA,

Eric G.


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