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


Groups > comp.lang.php > #3575 > unrolled thread

Re: populating a list box problem

Started bybcabangana@gmail.com
First post2011-10-26 02:29 -0700
Last post2011-10-27 00:28 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#3575 — Re: populating a list box problem

Frombcabangana@gmail.com
Date2011-10-26 02:29 -0700
SubjectRe: populating a list box problem
Message-ID<13362279.321.1319621356807.JavaMail.geo-discussion-forums@prlk36>
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

[toc] | [next] | [standalone]


#3577

FromJerry Stuckle <jstucklex@attglobal.net>
Date2011-10-26 07:17 -0400
Message-ID<j88q8a$c8$1@dont-email.me>
In reply to#3575
On 10/26/2011 5:29 AM, bcabangana@gmail.com wrote:
> Hi
>
> I am having a problem on populating a valuelistBox in gwt
>

"I am having a problem" is not very descriptive.

> 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
>

What is your problem?

Did you ask GWT support?  They know their code better than anyone else. 
  When having trouble with a product, generally the first place to ask 
for help is in that product's support structure.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#3578

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2011-10-27 00:28 +0200
Message-ID<4769638.ypaU67uLZW@PointedEars.de>
In reply to#3575
bcabangana@gmail.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@news.demon.co.uk>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web