cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Johnston ...@lojjic.net>
Subject Re: HashMap in repeater binding via javascript
Date Fri, 04 Jan 2008 19:26:20 GMT
On Fri, 04 Jan 2008 17:10:13 +0100, Dev at weitling <dev1@weitling.net>
wrote:
> Hi Jason,
> 
> this looks great, thanks a lot, but I'm stuck again :-/
> The first row of my repeater example should now be something like:
> 
>     <fb:repeater id="localeRepeater"
> path="java.util.Map.entrySet($myCurrentContext)">
> 
> But what to set instead of $myCurrentContext? I tried $widget, $context,
> $this, $jxpathPointer ..., '.', #{.}, ${this} didn't work either.

I haven't actually *tried* it, but I think you want something like this:

<fb:repeater id="localeRepeater" path="entrySet(locales)">

Because it's a regular (non-static) method I don't think you need the
package/class prefix, and the argument should be the Map object found at
the "locales" path.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message