Re: default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Sandro Martini
Hi all, just committed in 2.0.x, and soon in trunk. Monday I'll start to look at implementing the same limit for Labels, unless problems with it ... Bye

Re: default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Sandro Martini
Hi, > Yes, I meant 65000 is too small for TextArea. For TextInput, 65000 is > probably fine (even 32000 is okay), and probably for Label as well. ok, but you know, it's better to be sure :-) ... > Suggest 1MB (1,048,576) for TextArea and TextPane, ok > and 65536 for TextInput and Label (for the

RE: default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Roger L. Whitcomb
Yes, I meant 65000 is too small for TextArea. For TextInput, 65000 is probably fine (even 32000 is okay), and probably for Label as well. Suggest 1MB (1,048,576) for TextArea and TextPane, and 65536 for TextInput and Label (for the default values). ~Roger Whitcomb

Re: default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Sandro Martini
Hi, > I don't think 2G is a reasonable value as a default -- this will for > sure fill up memory in the default JVM configurations. me too :-) ... > But, for me, 65000 is way too small. Excuse me, for a TextInput field ? Looking at other GUI frameworks even 65000 seems an high default value, look

RE: default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Roger L. Whitcomb
andro Martini [mailto:sandro.mart...@gmail.com] Sent: Friday, February 15, 2013 7:13 AM To: Users - Apache Pivot; Developers - Apache Pivot Subject: default value of maximumLength in TextInput and similar classes Hi all, looking at TextInput, I have just seen that the maximumLength attribute value

default value of maximumLength in TextInput and similar classes

2013-02-15 Thread Sandro Martini
Hi all, looking at TextInput, I have just seen that the maximumLength attribute value has a default value big (and this is Ok), but it has the Integer.MAX_VALUE (approx. 2^32) ... so to avoid memory problems, crash attacks, etc (and so the need for any application to change it to a lower, safer val