cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Madu" <>
Subject HowTo automate date selection widget options
Date Sun, 18 Feb 2007 19:50:02 GMT
I have a date selection widget which I wish to automate. By automate what I
mean is that I always want whatever the current year is to be the lowest
selection option a user can make, then I want 10 additional years to be
shown in the selection list. So for example if we take the current year,
2007, as the lowest selection option the highest selection option will be

At the moment I am hard coding the year drop down selection as so:

      <fd:field id="year" required="true">
        <fd:datatype base="string"/>
          <fd:item value="2007">
          <fd:item value="2008">
          <fd:item value="2009">

Is there a way I can achieve this in cocoon without having to hard code the
date values into my xml document?



View raw message