You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Patrick Verboom <pa...@juwimm.com> on 2005/04/08 17:41:07 UTC
dynamci selection list in cform problem
Hi,
On of our forms has a selection list in a CFORM. The values in the list
are dynamically created from entries in a Database and are put in the
list by calling a cocoon pipeline. see code snippet below.
When I don't use the dynamic="true" attribute than the selection list is
shown and working fine except that when content in the database is
changed the values in the selection list isn't changed. The selection
list is created once and than not anymore.
When I use the dynamic="true" attribute the selection list isn't working
anymore. Instead of a list an input field is shown. Not exactly what we
want.
Am I doing something wrong or is it a BUG? Is there another way of doing
this?
We are using the cocoon 2.2 dev.
<fd:field id="facility_type">
<fd:label>Centre Type:</fd:label>
<fd:datatype base="string"/>
<fd:selection-list
src="cocoon:/search_CENTRE.CENTRE_TYPE.xml" dynamic="true"/>
</fd:field>
Thanks in advance,
Patrick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: dynamci selection list in cform problem
Posted by Johnson <jo...@soho.club.tw>.
Hi!
We got the same problem,and we change the following code in
forms-field-styling.xsl
<xsl:if test="normalize-space(@value) = $value">
<xsl:attribute name="selected">selected</xsl:attribute>
</xsl:if>
We found the @value from esql or sql transform is ok.but when the selection
list refer this,a extra blank append to the @value,so @value never equal
$value.
will fire a bugzilla
Best Regards
johnson
----- Original Message -----
From: "Grzegorz Sikora" <sz...@op.pl>
To: "Patrick Verboom" <us...@cocoon.apache.org>
Sent: Saturday, April 09, 2005 12:33 AM
Subject: Re: dynamci selection list in cform problem
> Hello Patrick,
>
> Friday, April 8, 2005, 5:41:07 PM, you wrote:
>
> PV> Am I doing something wrong or is it a BUG? Is there another way of
> doing
> PV> this?
>
> PV> We are using the cocoon 2.2 dev.
>
> PV> <fd:field id="facility_type">
> PV> <fd:label>Centre Type:</fd:label>
> PV> <fd:datatype base="string"/>
> PV> <fd:selection-list
> PV> src="cocoon:/search_CENTRE.CENTRE_TYPE.xml" dynamic="true"/>
> PV> </fd:field>
>
> I'm not sure is it the same bug but in 2.1x there's bug with relative
> Cocoon protocol in dynamic selection list. Well, I'm not sure is it really
> bug
> but I couldn't make cocoon to use relative protocol in those places.
> Try using cocoon:// protocol - it worked in my case.
>
> --
> Best regards,
> Grzegorz Sikora
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: dynamci selection list in cform problem
Posted by Grzegorz Sikora <sz...@op.pl>.
Hello Patrick,
Friday, April 8, 2005, 5:41:07 PM, you wrote:
PV> Am I doing something wrong or is it a BUG? Is there another way of doing
PV> this?
PV> We are using the cocoon 2.2 dev.
PV> <fd:field id="facility_type">
PV> <fd:label>Centre Type:</fd:label>
PV> <fd:datatype base="string"/>
PV> <fd:selection-list
PV> src="cocoon:/search_CENTRE.CENTRE_TYPE.xml" dynamic="true"/>
PV> </fd:field>
I'm not sure is it the same bug but in 2.1x there's bug with relative
Cocoon protocol in dynamic selection list. Well, I'm not sure is it really bug
but I couldn't make cocoon to use relative protocol in those places.
Try using cocoon:// protocol - it worked in my case.
--
Best regards,
Grzegorz Sikora
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org