You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Erik Hovi <er...@helsinki.fi> on 2007/03/15 09:09:06 UTC

set avariable to an repeater item

Dear all,

I would like to put a variable to an item of a repeater widget:

miscs[0].code = "ISIL";
miscs[0].misc = cocoon.session.getAttribute("mpf_aaa_isil");

Maybe i must change somehow the binding file:

        <fb:context path="misc-group">
            <fb:repeater id="miscs" parent-path="." row-path="misc">
                <fb:on-bind>

<!--                     <fb:value id="misc" path="."/> -->
        <fb:javascript id="miscs.0.misc" path=".">
            <fb:load-form>
                ????
            </fb:load-form>
            <fb:save-form>
                ????
            </fb:save-form>
        </fb:javascript>

<!--                     <fb:value id="code" path="@role"/> -->
        <fb:javascript id="miscs.0.code" path="@role">
            <fb:load-form>
                ????
            </fb:load-form>
            <fb:save-form>
                ????
            </fb:save-form>
        </fb:javascript>

                </fb:on-bind>
                <fb:on-delete-row>
                    <fb:delete-node/>
                </fb:on-delete-row>
                <fb:on-insert-row>
                    <fb:insert-node/>
                </fb:on-insert-row>
            </fb:repeater>
        </fb:context>


Could anyone help me.


Best Regards,

Erik Hovi