cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Problems creating a drop down selection box
Date Sat, 16 Apr 2005 08:43:15 GMT
beyanet.com wrote:
> Leszek,
> so I have now installed 2.1.7, and my documents are still as follows:
> 
> flow:
> data.cityList = new Array(2);
> data.cityList[0] = {value:"AL", label:"Alabama"};
> data.cityList[1] = {value:"AK", label:"Alaska"};
> form.showForm("accountDetails1.xml", {"msg":Accountsmsg, 
> "userGlobal":userGlobal}, data);
> 
> form:
>  <fd:field id="flist" required="true">  <fd:label>Previous 
> orders</fd:label>  <fd:datatype base="string"/>  <fd:selection-list 
> type="flow-jxpath" list-path="cityList" value-path="value" 
> label-path="label" />      </fd:field>
> 
> jx:
> <ft:widget id="flist"><fi:styling class="keyinbox"/></ft:widget>
> 
> But I am still getting an empty selection box. What am I missing here?
If you're using Form.js V2 it will surely not work - form.showForm takes 
only one parameter in V2. So:

- either use V1 and this will work
- do form.getChild( "flist" ).setSelectionList( ... ) instead of 
defining your selection list in definition file.

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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


Mime
View raw message