Re: populating a list box problem [message #175793 is a reply to message #171096] |
Wed, 26 October 2011 09:29 |
bcabangana
Messages: 1 Registered: October 2011
Karma:
|
Junior Member |
|
|
Hi
I am having a problem on populating a valuelistBox in gwt
here is the code
private ValueListBox <String> getValueListBox() {
if (valueListBox == null) {
valueListBox = new ValueListBox(IntegerRenderer.instance());
loadMenu.add("...Please Select...");
loadMenu.add("Claimant Appeals");
loadMenu.add("Legal Summons");
loadMenu.add("New Claims");
loadMenu.add("Potential Claims");
valueListBox.setValue(loadMenu.get(0));
valueListBox.setAcceptableValues(loadMenu);
The problem is on the IntegerRender line..I am new to this i have used an arraylist (loadMenu) to populate values.....
please help..i am using the mvp structure
Thanks in advanced
|
|
|