cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gunter D'Hondt <gunter.dho...@sofico.be>
Subject Woody convertors: date formatting & decimal formatting
Date Mon, 26 Jul 2004 10:08:38 GMT
1) date formatting:

In my form definition I've got the following:

  <wd:output id="mydate">
    <wd:datatype base="date"/>
    <wd:label/>
    <wd:convertor type="formatting">
      <wd:patterns>
        <wd:pattern>dd-MM-yyyy</wd:pattern>
      </wd:patterns>
    </wd:convertor>
  </wd:output> 

The input from the binding is "1900-01-01 00:00:00" but the outcome (in 
the browser) is always: 1/1/00

2) decimal formatting:

Same for a decimal:

  <wd:field id="mydecimal">
    <wd:datatype base="decimal"/>
    <wd:label/>
        <wd:convertor type="formatting" variant="integer">
          <wd:patterns>
            <wd:pattern>#0</wd:pattern>
          </wd:patterns>
        </wd:convertor>
  </wd:field>

Input is: 1000.0 and outcome is again 1000.0 instead of 1000.

Any help is welcome,

Regards,

Gunter D'Hondt
SOFICO NV Belgium

Mime
View raw message