You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christian <ch...@bluepenguin.ch> on 2005/02/08 22:06:34 UTC

ognl expression for function with parameter

Hi all,

sorry if this is a FAQ but anyway, here it goes:

what is the syntax to call a method with arguments in a ognl expression?

e.g.

<span jwcid="@Foreach" 
source="ognl:emailService.getMessagesFromFolder(currentFolder.name)"
        value="ognl:currentMessageIterator">
    <li><a jwcid="@DirectLink"
...
</span>

should call the method getMessagesFromFolder with a String argument from 
an email Service instance.

Cheers

cs.

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