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                         
[EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to