cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Entner <harald.ent...@gmx.at>
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:

@hibernate.map lazy="true" cascade="all" inverse="false" 
table="PepProduct_stringobjects"
@hibernate.key column="UID"
@hibernate.map-key type="string" column="name"
@hibernate.element type="string" column="element" length="2000"

and the binding:

<fb:value id="phCalculation" path="stringObjects[@name='phCalculation']" 
direction="both"/>

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

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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>   


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


Mime
View raw message