Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-09 Thread Martin Walsh
Lionel wrote: Newman, John W wrote: Stripes simply uses NumberFormat under the hood, that is where this behavior is coming from. So it's either a jdk bug or not a bug at all. It is not a bug, it's people who don't respect the standards. It's the same with the french locale which can't be

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-09 Thread Martin Walsh
After further digging around, I believe the problem could be with Stripes URLs. According to http://www.ietf.org/rfc/rfc3987 URL parameters should be encoded RTL. This works fine when retrieving a value via the actionBean. e.g. ss:url value=%=ACCOUNT_KEYS_ACTION% event=view var=popup_url

[Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Martin Walsh
It seems as though there is a bug in the Stripes IntegerTypeConverter when it is used with right to left languages. When a negative value is supplied, stripes fails validation. I believe the problem is that the converter expects 1- for RTL languages, when in fact it should be expecting -1.

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Newman, John W
+ using locale + locale); } } } -Original Message- From: Martin Walsh [mailto:martin.wa...@sun.com] Sent: Wednesday, July 08, 2009 7:49 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] RTL support for Integer

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Lionel
Newman, John W wrote: Stripes simply uses NumberFormat under the hood, that is where this behavior is coming from. So it's either a jdk bug or not a bug at all. It is not a bug, it's people who don't respect the standards. It's the same with the french locale which can't be used to parse

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Martin Walsh
); } } } -Original Message- From: Martin Walsh [mailto:martin.wa...@sun.com] Sent: Wednesday, July 08, 2009 7:49 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] RTL support for Integer Type Converter It seems as though there is a bug in the Stripes IntegerTypeConverter when

Re: [Stripes-users] RTL support for Integer Type Converter

2009-07-08 Thread Martin Walsh
); } } } -Original Message- From: Martin Walsh [mailto:martin.wa...@sun.com] Sent: Wednesday, July 08, 2009 7:49 AM To: stripes-users@lists.sourceforge.net Subject: [Stripes-users] RTL support for Integer Type Converter It seems as though there is a bug in the Stripes IntegerTypeConverter when