cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Entner <>
Subject Re: HashMap in repeater binding via javascript
Date Fri, 04 Jan 2008 08:58:36 GMT
Hi Florian,

maybe this piece of information can be useful for you.

We have a bean with a property stringObjects,
which is declared as a Map to store various string objects.

the xdoclet definition: lazy="true" cascade="all" inverse="false" 
@hibernate.key column="UID" type="string" column="name"
@hibernate.element type="string" column="element" length="2000"

and the binding:

<fb:value id="phCalculation" path="stringObjects[@name='phCalculation']" 

this configuration works well.Keep in mind that the @name attribute has 
to match

Hope it helps,

regards, Harald

Dev at weitling schrieb:
> Hi folks,
> I'm getting nuts on this problem:
> I have a HashMap which should be the bean for a repeater with the keys
> as identity on each repeater row. Because JXPath relies on the
> get-/set-naming-scheme but Sun didn't provide it for their collection
> classes I can't use it the normal way.
> Subclassing HashMap for providing the getter-methods on my own doesn't
> work because I'm using Hibernate (and therefore the Map-interface).
> So I try to use fb:javascript withing the repeater's binding. But
> information is very sparse and not really helpful.
> Any experiences out there?
> Florian
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message