You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Patrick Casey <pa...@adelphia.net> on 2005/04/30 01:24:01 UTC

Stupid OGNL question

	I have a function I wrote that takes a String[] as a parameter.

	What's the ognl syntax for a String[] literal?

	What I've got now is:

      <span jwcid="@PropertySelection"
model="ognl:getSortedLookupModel('core.User', 'id', 'fullName',
{'lastName','firstName'})" value="ognl:object.assignedTo"/>

	The above doesn't work though unfortunately. Any suggestions?

	--- Pat                  



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


RE: Stupid OGNL question

Posted by Patrick Casey <pa...@adelphia.net>.
	Thanks Danny, worked like a charm.

	--- Pat

-----Original Message-----
From: Danny Mandel [mailto:dmandel@tolweb.org] 
Sent: Friday, April 29, 2005 4:31 PM
To: Tapestry users
Subject: Re: Stupid OGNL question

My guess is that just declaring an anonymous array types it as Object[].

This seems like it should work:

model="ognl:getSortedLookupModel('core.User', 'id', 'fullName', new 
java.lang.String[] {'1', '2', '3'})

Hope that helps,
Danny

Patrick Casey wrote:

>	I have a function I wrote that takes a String[] as a parameter.
>
>	What's the ognl syntax for a String[] literal?
>
>	What I've got now is:
>
>      <span jwcid="@PropertySelection"
>model="ognl:getSortedLookupModel('core.User', 'id', 'fullName',
>{'lastName','firstName'})" value="ognl:object.assignedTo"/>
>
>	The above doesn't work though unfortunately. Any suggestions?
>
>	--- Pat                  
<snip>



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


Re: Stupid OGNL question

Posted by Danny Mandel <dm...@tolweb.org>.
My guess is that just declaring an anonymous array types it as Object[].

This seems like it should work:

model="ognl:getSortedLookupModel('core.User', 'id', 'fullName', new 
java.lang.String[] {'1', '2', '3'})

Hope that helps,
Danny

Patrick Casey wrote:

>	I have a function I wrote that takes a String[] as a parameter.
>
>	What's the ognl syntax for a String[] literal?
>
>	What I've got now is:
>
>      <span jwcid="@PropertySelection"
>model="ognl:getSortedLookupModel('core.User', 'id', 'fullName',
>{'lastName','firstName'})" value="ognl:object.assignedTo"/>
>
>	The above doesn't work though unfortunately. Any suggestions?
>
>	--- Pat                  
>
>
>
>---------------------------------------------------------------------
>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