You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Peter Velychko <v_...@ukr.net> on 2004/07/07 10:46:48 UTC
CForms - binding map to repeater (urgent)
Hello users,
I have a problem with binding JavaBean with the property as
java.util.Map to repeater.
Java class looks like the following:
public class TestClass {
...
private java.util.Map pgroupLangs;
public java.util.Map getPgroupLangs() {
return this.pgroupLangs;
}
public void setPgroupLangs(java.util.Map _pgroupLangs) {
this.pgroupLangs = _pgroupLangs;
}
...
}
I have a bind file:
<fb:context xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"
xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"
path="." >
<fb:value id="id" path="id"/>
<fb:value id="colour" path="colour"/>
<fb:repeater id="pgroupLangs" parent-path="pgroupLangs" row-path="*">
<fb:identity>
<fb:value id="lang" path="@name"/>
</fb:identity>
<fb:on-bind>
<fb:value id="lang" path="@name"/>
<fb:value id="caption" path="caption"/>
</fb:on-bind>
</fb:repeater>
</fb:context>
But "null" is returned for "lang" widget on loading (from log
messages). As I see the "@name" isn't processed by CForms though
JXPath understand the attribute "@name" (from documentation).
Is any way to process Map with repeater?
Thank you in advance.
--
Best regards,
Peter Velychko
v_peter@ukr.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org