You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by jantje <ja...@skynet.be> on 2006/09/18 13:40:01 UTC

java.util.Date fd:initial-value

Hi there,

I try to set fd:initial-value, for a fd:field..

      <fd:field id="startTime" required="true">
        <fd:label>Start (HH.mm):</fd:label>
	<!--<fd:initial-value>17:12</fd:initial-value>-->
        <fd:datatype base="date">
          <fd:convertor>
            <fd:patterns>
            <fd:pattern>HH.mm</fd:pattern>
            </fd:patterns>
          </fd:convertor>
        </fd:datatype>
        <fd:validation>
          <fd:range min="Date(1850, 1, 1)" max="Date(2150, 1, 1)">
            <fd:failmessage>Out of range.</fd:failmessage>
          </fd:range>
        </fd:validation>
      </fd:field>

But this gives this error in cocoon:
  java.lang.NullPointerException

I have searched the internet and the documentation.. but I have found
nothing..
This fails:
  <fd:initial-value>17:12</fd:initial-value>
This also fails:
  <!--somewhere in xsp:logic
        Date varDate = new Date();-->
  <fd:initial-value>varDate</fd:initial-value>

Can someone help me? what should i do?

Thank you for your ti;e.. greetings!!
-- 
View this message in context: http://www.nabble.com/java.util.Date-fd%3Ainitial-value-tf2290750.html#a6362100
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org