cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dev at weitling <>
Subject Access to bizData in <fd:on-action><fd:javascript>
Date Thu, 19 Jul 2007 12:10:21 GMT

in an on-action-javascript in my forms definition I want to get access
to the bizData provided with the showForm()-function.
In the end I want to be able to change the entries in a selection list
on an ActionEvent. What I have so far:

    var selist = new;
    selist.add(new Packages.demo.SelistTupel("deutsch","de"));
    selist.add(new Packages.demo.SelistTupel("english","en"));
    selist.add(new Packages.demo.SelistTupel("francaise","fr"));
    var form = new Form("definitions/test2.xml");

My definition:

    <fd:field id="mySelectionList">
        <fd:datatype base="string"/>
        <fd:selection-list type="flow-jxpath" list-path="selist"
value-path="value" label-path="label" nullable="true" null-text="-- no
selection --"/>
    <fd:action id="changeSelectionListButton">
        <fd:label>Do it!</fd:label>
                // manipulate the "selist" object used by the selection-list
                // :-?

Help, I have no clue at the moment...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message