cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lerche <pe...@easyspeedy.com>
Subject selection-list's and flow
Date Thu, 01 Apr 2004 16:21:36 GMT
 Hi,

How do I fill a selection-list in a flowscript ? 
I am using v2 / Form.js.

What am i doing wrong ?

var STATES = [
    { key: "AL", value: "Alabama" },
    { key: "AK", value: "Alaska" },
    { key: "WY", value: "Wyoming" }
];



form = new Form("mmm-def.xml");
    form.createBinding("mmm-bind.xml");
    var wid = form.getWidget();
      wid.server.value = STATES;
    

<wd:field id="server">
            <wd:label>Server</wd:label>
            <wd:selection-list type="flow-jxpath" list-path="server" 
value-path="key" label-path="value"/>
            <wd:datatype base="string"/>
            <wd:on-value-changed>
                <javascript>
       			 bla bal...
                </javascript>
            </wd:on-value-changed>
        </wd:field>

<wt:form-template action="xxxx" method="post">
                                              <wt:widget-label id="server"/>
                                              <wt:widget id="server">
                                                  <wi:styling  
submit-on-change="true"/>
                                              </wt:widget>

                                </wt:form-template>
-- 
Med venlig hilsen / Yours sincerely 
 
Peter Lerche
EasySpeedy ApS 
http://easyspeedy.com
_______________________________________ 
European Dedicated Server Hosting 
Extremely low prices, secure, and reliable
Linux and BSD distributions only 
_______________________________________

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


Mime
View raw message