Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-08 Thread Johan Compagner
It is disabled i think because else all the numbers that we display
get by default grouping, thats not something most want for integers

So yes installing your own is the right thing to do

On 4/8/08, Matthew Young [EMAIL PROTECTED] wrote:
 I don't see any good reason to call numberFormat.setGroupingUsed(false);,
 it just disable the locale capability.  This just doesn't make any sense to
 me.

 Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.

 You probably mean override Component#getConverter(Class type).  Another
 option is to install my integerconverter in my app.

 Anyway, this should be corrected in Wicket if it's wrong.  I filed a bug
 report: https://issues.apache.org/jira/browse/WICKET-1494


 On Mon, Apr 7, 2008 at 7:23 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

  Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.
 
 
  On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote:
 
   Any reply?
  
 
 
 
  --
  Nick Heudecker
 


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



Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-08 Thread Igor Vaynberg
maybe in string-object we can try both? first with grouping off and
then with groupin on? that way it should cover all possible
usecases...

-igor

On Mon, Apr 7, 2008 at 11:39 PM, Johan Compagner [EMAIL PROTECTED] wrote:
 It is disabled i think because else all the numbers that we display
  get by default grouping, thats not something most want for integers

  So yes installing your own is the right thing to do



  On 4/8/08, Matthew Young [EMAIL PROTECTED] wrote:
   I don't see any good reason to call numberFormat.setGroupingUsed(false);,
   it just disable the locale capability.  This just doesn't make any sense to
   me.
  
   Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.
  
   You probably mean override Component#getConverter(Class type).  Another
   option is to install my integerconverter in my app.
  
   Anyway, this should be corrected in Wicket if it's wrong.  I filed a bug
   report: https://issues.apache.org/jira/browse/WICKET-1494
  
  
   On Mon, Apr 7, 2008 at 7:23 PM, Nick Heudecker [EMAIL PROTECTED] wrote:
  
Why not subclass label and override getNumberFormat(Locale)?  Pretty 
 easy.
   
   
On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote:
   
 Any reply?

   
   
   
--
Nick Heudecker
   
  



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



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



Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Matthew Young
Any reply?


Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Nick Heudecker
Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.


On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote:

 Any reply?




-- 
Nick Heudecker


Re: IntegerConverter cannot parse or display locale specific format like 999,999

2008-04-07 Thread Matthew Young
I don't see any good reason to call numberFormat.setGroupingUsed(false);,
it just disable the locale capability.  This just doesn't make any sense to
me.

Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.

You probably mean override Component#getConverter(Class type).  Another
option is to install my integerconverter in my app.

Anyway, this should be corrected in Wicket if it's wrong.  I filed a bug
report: https://issues.apache.org/jira/browse/WICKET-1494


On Mon, Apr 7, 2008 at 7:23 PM, Nick Heudecker [EMAIL PROTECTED] wrote:

 Why not subclass label and override getNumberFormat(Locale)?  Pretty easy.


 On Mon, Apr 7, 2008 at 7:02 PM, Matthew Young [EMAIL PROTECTED] wrote:

  Any reply?
 



 --
 Nick Heudecker