Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3575

Re: populating a list box problem

From bcabangana@gmail.com
Newsgroups comp.lang.php
Subject Re: populating a list box problem
Date 2011-10-26 02:29 -0700
Organization http://groups.google.com
Message-ID <13362279.321.1319621356807.JavaMail.geo-discussion-forums@prlk36> (permalink)
References <1syoh38fxt8z.dlg@evanplatt.sux>

Show all headers | View raw


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

Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: populating a list box problem bcabangana@gmail.com - 2011-10-26 02:29 -0700
  Re: populating a list box problem Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-26 07:17 -0400
  Re: populating a list box problem Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-10-27 00:28 +0200

csiph-web