cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hovi <erik.h...@helsinki.fi>
Subject set avariable to an repeater item
Date Thu, 15 Mar 2007 08:09:06 GMT
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


Mime
View raw message