aspose file tools*
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
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: 10535
    
    9

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To limit no of character (30) in SuggestBox