Re: populating a list box problem [message #175796 is a reply to message #175793] |
Wed, 26 October 2011 22:28 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
bcabangana(at)gmail(dot)com wrote:
> 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
Admittedly I do not know much about GWT. But I do know that is *Java*-based,
that the code above looks like *Java* code, that it does not look anything
like (good) PHP code, and that by contrast this is a newsgroup where *PHP*
is on-topic.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(at)news(dot)demon(dot)co(dot)uk>
|
|
|