You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by John Menke <jm...@gmail.com> on 2006/06/30 17:27:36 UTC

Number Translator and Commas

  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

Posted by Shing Hing Man <ma...@yahoo.com>.
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 <jm...@gmail.com> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org