You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "beyanet.com" <be...@yahoo.co.uk> on 2005/04/14 11:32:46 UTC
Problems creating a drop down selection box
Hi,
I am trying to create a form selection box as follows:
<ft:widget id="some name">
<fi:styling list-type="listbox"/>
</ft:widget>
Used in conjunction with forms-advanced-field-styling.xsl in my
sitemap I should get:
<select>
<option value="">XX</option>
</select>
right? If so, why is an input text box being displayed? What am I missing here?
Uzo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Problems creating a drop down selection box
Posted by "beyanet.com" <be...@yahoo.co.uk>.
>>beyanet.com wrote:
>>>Hi,
>>>I am trying to create a form selection box as follows:
>
>Ok,
>so I have done the following:
>
>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>
>
>An empty selection box is being rendered to the page minus a label
>and any select options. What am I missing here?
Ah,
problem solved! functionality only available in 2.1.7 and i'm on 2.1.6. hmmmmmm
Upgrade here I come...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Problems creating a drop down selection box
Posted by "beyanet.com" <be...@yahoo.co.uk>.
>beyanet.com wrote:
>>Hi,
>>I am trying to create a form selection box as follows:
Ok,
so I have done the following:
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>
An empty selection box is being rendered to the page minus a label
and any select options. What am I missing here?
regards
Uzo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Problems creating a drop down selection box
Posted by Leszek Gawron <lg...@mobilebox.pl>.
beyanet.com wrote:
> Hi,
> I am trying to create a form selection box as follows:
>
> <ft:widget id="some name">
> <fi:styling list-type="listbox"/>
> </ft:widget>
>
> Used in conjunction with forms-advanced-field-styling.xsl in my sitemap
> I should get:
>
> <select>
> <option value="">XX</option>
> </select>
>
> right? If so, why is an input text box being displayed? What am I
> missing here?
have you attached a selection list to the widget?
--
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