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.