Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7524755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:08:56+00:00 2026-05-30T03:08:56+00:00

I am trying to implement cell List , and insert my data coming from

  • 0

I am trying to implement cell List , and insert my data coming from server in my cell List , everything was working fine in celltable but now i have to switch to cellList which is not working

from GWT Show case i made this class

         public class EmployerJobCell extends AbstractCell<EmployerJobs> {

@Override
public void render(com.google.gwt.cell.client.Cell.Context context,
        EmployerJobs value, SafeHtmlBuilder sb) {

     if (value == null) {
            return;
          }

          sb.appendHtmlConstant("<table>");

          // Add the contact image.
          sb.appendHtmlConstant("<tr><td rowspan='3'>");
          sb.appendHtmlConstant("</td>");

          // Add the name and address.
          sb.appendHtmlConstant("<td style='font-size:95%;'>");
          sb.appendEscaped(value.getJobTitle());
          sb.appendHtmlConstant("</td></tr><tr><td>");
          sb.appendEscaped(value.getJobLevel());
          sb.appendHtmlConstant("</td></tr></table>");



}

}

in my view class i did this

            EmployerJobCell jobCell = new EmployerJobCell();
            celllist = new CellList<EmployerJobs>(jobCell);
    celllist.setPageSize(5);
    verticalpanel.add(celllist);

but i am not getting any thing on my view .

do i have to use setRowData as well ?

If yes , how will I get my data

           ArrayList<EmployerJobs > values = new ArrayList<EmployerJobs>();
       celllist.setRowData(values);

like what will i put in my list

          values.  ??       
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:08:57+00:00Added an answer on May 30, 2026 at 3:08 am

    CellList works fundamentally the same as CellTable – both take a list of data, and draw them with a Cell. The main difference is that CellList only draws one cell with each kind of content, whereas the CellTable can draw several, each reading data differently from the model object.

    Both implement HasData, allowing you to provide data and monitor selection, among other things. So in both cases, you should be calling widget.setRowData(index, data) on each to get it to draw the content. So in short, to totally replace the content of a give CellList with a List called values, do something like this:

    List<EmployerJobs> values = ...
    CellList<EmployerJobs> cellList = ...
    
    cellList.setRowCount(0);// clear out existing rows
    cellList.setRowData(0, values);// apply new rows
    

    Or, more simply, using AbstractHasData.setRowData(List),

    cellList.setRowData(values); //clear and apply new rows
    

    This should get you to the point where you are displaying data.

    Using paging makes this a little more complex – generally you use a paging widget like SimplePager, and you provide the data not to the HasData, but to a data provider, which in turn hands it to the widget, based on the paging information. See http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#paging and http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/javadoc/com/google/gwt/examples/view/AsyncDataProviderExample.java?r=8944 for some examples of how to do this by handing data off to a DataProvider for it to manage, and letting an AbstractPager allow the user to decide what they want to look at.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am trying to implement a generic way for reading sections from a config file.
I have a UITableView that was created from data coming from a mutable array.
I am trying to implement Regular Expressions in Excel 2010 on a mac, but
I'm trying to make my Core data backed UITableView have reorder ability, After implement
I have been trying to implement a comment engine in my app (UItableView) but
I am trying to implement editable cell in tableview, just like what is available
I am trying to implement Tim Keating's answer from here: Loading a Reusable UITableViewCell
I'm working in cellForRowAtIndexPath, and I'm trying to embed a textview into the cell.
I am using custom cell and adding tableview programmetically. I am trying to implement
import I am trying to implement a custom cell to use in my tableview

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.