cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Woody currency convertor
Date Tue, 27 Apr 2004 08:27:42 GMT
On Mon, 2004-04-26 at 23:23, Bruno Dumon wrote:
> On Mon, 2004-04-26 at 17:55, Peter Lerche wrote:
> > Hi,
> > 
> > I am trying to use the Woody binding convertor for decimal numbers using 
> > v2/Form.js, without any luck.
> > 
> > I have found following format in cocoon 2.1.4-dist but it does not work. 
> > 
> > def file contains :
> > 
> > 	 <wd:field id="myValue">
> >             <wd:datatype base="decimal"/>
> >         </wd:field>
> > 
> > bind file contains:
> >  	 <wb:value id="myValue" path="myValue">
> > 		 <wd:datatype base="decimal">
> > 			<wd:convertor variant="number">
> > 				<wd:patterns>
> >        				     <wd:pattern>###.00</wd:pattern>
> > 				</wd:patterns>
> > 			</wd:convertor>
> >  		</wd:datatype>
> >    	</wb:value>
> > 
> > Any help would be appreciated.

Ah, now I see it, you don't need to have the wd:datatype element around
the convertor, but instead a datatype attribute on the wd:convertor
element.

Where did you find the above example?

See also
http://cocoon.apache.org/2.1/userdocs/forms/binding.html#fb%3Avalue

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@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