[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
t:formattedfield with format="long" fails if you enter Long.MAX_VALUE + 1 or greater  XML
Forum Index -> Development
Author Message
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Hi Björn,

if I use a <t:formattedfield format="long" ... /> and if I enter the value 9.223.372.036.854.775.808 or greater and if I leave the edit field, then there will be a java.lang.IllegalArgumentException in javax.el.BeanELResolver.setValue() on client side.
The value above is 2^63 which is java.lang.Long.MAX_VALUE + 1.

Is there any chance to solve this problem?

Kind regards,
MaMü
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5533
Offline

Hi,

the error is on server side (when trying to pass the biggggg value into a correpsonding long variable...) but of course is sent back to client...

We will add an extra check on client side... If it's urgent on your side, please use a regular expression or the MAXLENGTH attribute...

Thanks + regards,
Björn

Björn Müller, CaptainCasa GmbH
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Hi Björn,

thanks for checking and fixing.
The fix is not urgent.
We found the problem during monkey testing.
ugarugar

Have a nice weekend...
MaMü
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team