*
The moose likes GWT and the fly likes To limit no of character (30) in SuggestBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "To limit no of character (30) in SuggestBox " Watch "To limit no of character (30) in SuggestBox " New topic
Author

To limit no of character (30) in SuggestBox

Harshal Gurav
Ranch Hand

Joined: May 29, 2008
Posts: 151
Hi All,

I have one SuggestBox populating data from database. also user can manually add text into the same.
I want to restrict no of character in SuggestBox is 30.


I used the method
suggestbox.getTextBox() method but no avaliable method are available like setmaxlength() or like

Any suggestion is highly aapreciated
.
Regards
Haresh
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

suggestbox.getTextBox() returns you a TextBoxBase. Maybe you can try casting it to TextBox and then invoking setMaxLength() on it


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: To limit no of character (30) in SuggestBox
 
Similar Threads
(GWT) Forcing SuggestBox to display its values
How to get selected item's ID from suggestBox?
Uploading file in a folder under context root problem
One last problem
Text file to string and vice versa