Community
Participate
Working Groups
Using 1.2 M6 build, tested on IE7 on Win XP. Code to reproduce: Text text = new Text(parent, SWT.MULTI); text.setTextLimit(128); Yet I can enter as much data as I want. If I remove SWT.MULTI, then setTextLimit() works perfectly. And of course SWT works. This is a severe issue for our software due to needing to limit the amount of data users can enter to correspond to database limits. It is a pain to hunt down all the places that this is breaking in our fairly complex application converted from SWT.
This is a bug in qooxdoo. A bug against qooxdoo is opened: TextArea#maxLength has no effect http://bugzilla.qooxdoo.org/show_bug.cgi?id=2361
Created attachment 160209 [details] fix Adds this feature using an input-listener. Since we already had "org.eclipse.rwt.widgets.Text" extending "qx.ui.form.TextField", i added the features from "qx.ui.form.TextArea" (also extends "qx.ui.form.TextField") there instead of changing the native qooxdoo-code. It wasn't much work and this way we now use only one qooxdoo-widget for the text-field. To complete this, we should merge Text.js with TextUtil.js and possibly the different TextLCAs. Client-tests updated and enhanced. Server-tests still green. Need to rebuild qx.js to get rid of TextArea.js.
Applied patch to CVS HEAD