cocoon-users mailing list archives

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

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 Packages.java.util.ArrayList();
    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");
    form.showForm("templates/test2.xml",{"selist":selist});


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:field>
   
    <fd:action id="changeSelectionListButton">
        <fd:label>Do it!</fd:label>
        <fd:on-action>
            <fd:javascript>
                // manipulate the "selist" object used by the selection-list
                // :-?
            </fd:javascript>
        </fd:on-action>
    </fd:action>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message