cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Velychko <v_pe...@ukr.net>
Subject CForms - binding map to repeater (urgent)
Date Wed, 07 Jul 2004 15:22:15 GMT
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


Mime
View raw message