Number Translator and Commas

2006-06-30 Thread John Menke

 I am trying to do this:

binding name=translator value=translator:number,pattern=###,###.##/


but i get the error


Class org.apache.tapestry.form.translator.NumberTranslator does not contain
a property named '###.##''.

It seems that the comma is being intepreted as marking a new property.  Is
there any way to specifiy commas in the pattern?

-john


Re: Number Translator and Commas

2006-06-30 Thread Shing Hing Man

You can set the pattern in a bean.

bean name=foo
class=org.apache.tapestry.form.translator.NumberTranslator
  set name=pattern value=###,###.##/
/bean

binding name=translator value=bean:foo/

Shing 

--- John Menke [EMAIL PROTECTED] wrote:

   I am trying to do this:
 
 binding name=translator
 value=translator:number,pattern=###,###.##/
 
 
 but i get the error
 
 
 Class
 org.apache.tapestry.form.translator.NumberTranslator
 does not contain
 a property named '###.##''.
 
 It seems that the comma is being intepreted as
 marking a new property.  Is
 there any way to specifiy commas in the pattern?
 
 -john
 


Home page :
  http://uk.geocities.com/matmsh/index.html



___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]