Perhaps you just snipped out the code, but in the bit you posted here I don't see anything adding any strings to the picUps ArrayList. The selection cell uses that array to build its options, so if that collection is empty, then that would explain your empty combo box issue.
-Ben On Jan 4, 10:26 am, Deepak Singh <[email protected]> wrote: > Anyone who can resolve the issue? > > On Mon, Jan 3, 2011 at 11:33 PM, Deepak Singh <[email protected]>wrote: > > > Hi, > > > I have a cellTable and am displaying combox in one of the columns. > > I use SelectionCell for the same but my problem is that the combobox is > > displayed in all rows but all are empty, they dont show any values there. > > Code is as follows: > > > final List<String> picUps = new ArrayList<String>(); > > // Adding values to picUps list > > > SelectionCell picUpPointCell = new > > SelectionCell(picUps); > > Column<IBusObjectRpc, String> pickUpCol = new Column<IBusObjectRpc, > > String>(picUpPointCell) { > > �...@override > > public String getValue(IBusObjectRpc object) { > > if(object instanceof TktvalaTripDTO) { > > return ((TktvalaTripDTO)object).getPickupPoint().get(0).getName(); > > }else if(object instanceof TktgooseBusDTO) { > > return ((TktgooseBusDTO)object).getPickupPoints().get(0).getDesc(); > > } > > return null; > > } > > }; > > table.addColumn(pickUpCol, "Pic ups"); > > > I make sure that the proper values are returned from getValue(). > > > Can somebody find out what i am doing wrong. > > > Thanlks > > Deepak -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
