cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.com>
Subject RE: Selection-list is rendered as a text input.
Date Thu, 17 Sep 2009 21:01:40 GMT
<fd:field id="projectNote">
  <fd:label>Ocena projektu: </fd:label>
  <fd:datatype base="long">
    <fd:selection-list>
      <fd:item value="2"/>
	<fd:item value="3"/>
    </fd:selection-list>
  </fd:datatype>	
</fd:field>

Should be

<fd:field id="projectNote">
  <fd:label>Ocena projektu: </fd:label>
  <fd:datatype base="long"/>
  <fd:selection-list>
    <fd:item value="2"/>
    <fd:item value="3"/>
  </fd:selection-list>
</fd:field>

For styling a field widget as date I'm not sure anymore how to do that.

Cheers,
Robby Pelssers

-----Original Message-----
From: Tomasz Piechowicz [mailto:tomasz.piechowicz@gmail.com] 
Sent: Thursday, September 17, 2009 9:56 PM
To: users@cocoon.apache.org
Subject: Selection-list is rendered as a text input.

Hi.

I am trying to create form which is based on form example which i
found on cocoon 2.2 home page. I have selection-list widget in my form
model, and after I run project in browser selection-list is renderd as
a normal text input instead of html select tag :(.

My second question relates to date selection. Does cforms contains
something like date-selection widget (ex. like in xforms) ? I set
field datatype to date, but again in browser widget is rendered as a
normal text input without any extra date widget in which user could
select date instead of manually typing it into input.

Any help will be appreciated.

Regards,
Tomek Piechowicz


Part of my form model :

<fd:field id="projectNote">
	<fd:label>Ocena projektu: </fd:label>
	<fd:datatype base="long">
	<fd:selection-list>
             <fd:item value="2"/>
	     <fd:item value="3"/>
        </fd:selection-list>
        </fd:datatype>	
</fd:field>

Part of my form template:

<ft:widget id="projectNote">
     <fi:styling list-type="radio"/>
</ft:widget>

---------------------------------------------------------------------
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


Mime
View raw message