This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes GWT and the fly likes To limit no of character (30) in SuggestBox Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply 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: 150
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: 8434

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


[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To limit no of character (30) in SuggestBox
 
Similar Threads
How to get selected item's ID from suggestBox?
(GWT) Forcing SuggestBox to display its values
Text file to string and vice versa
One last problem
Uploading file in a folder under context root problem