cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: [CForms] Getting the label of a selection list in binding..
Date Fri, 13 May 2005 09:07:10 GMT
Hi,

Here is a simple binding, but I don't know how to get the value="1" in 
your example.

 <fb:context path="foo">
      <fb:value id="item" path="item"/>
  </fb:context>


Hope this help.

Lionel

Nacho Jimenez wrote:

>Hello,
>Let's see if someone can help me with this. I've a selection list
>populated via a pipeline. The result of the pipeline is something
>like:
>
><fd:selection-list>
>  <fd:item value="1">Fist Item</fd:item>
>  <fd:item value="2">Second Item</fd:item>
>   .....
></fd:selection-list>
>
>
>I'm binding the result of the form to a XML document, and I'd like to
>get the following structure:
>
><foo>
>   <item id="1">First Item</item>
></foo>
>
>But I don't know how to get the "First Item" text in the binding
>definition. Is there a way to do it, or do I have to create a hidden
>placeholder and copy the info by javascript?
>
>Thanks
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>

-- 
Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90


Mime
View raw message