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 8188133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:48:19+00:00 2026-06-07T02:48:19+00:00

In GWT 2.5 RC CellTableBuilder API was introduced but there are no comprehensive documentation

  • 0

In GWT 2.5 RC CellTableBuilder API was introduced but there are no comprehensive documentation available yet. Is there any tutorial\example of implementing on-demand custom row building with CellTableBuilder? The only example I’ve found so far was this one http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid but it is quite confusing for me.

So, my goal is to create extra row containing widget that provides details about clicked row in a table.

  • 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-06-07T02:48:21+00:00Added an answer on June 7, 2026 at 2:48 am

    I’ve found suitable solution for this problem. Here is the code sample:

    public class CustomCellTableBuilder extends AbstractCellTableBuilder<Object>{
    //here go fields, ctor etc.
    
    //ids of elements which details we are going to show 
    private Set elements;
    
    @Override
    protected void buildRowImpl(Object rowValue, int absRowIndex){
       //building main rows logic 
    
        if(elements.contains(absRowIndex)){
            buildExtraRow(absRowIndex, rowValue);
            elements.add(absRowIndex);
        }
    }
    
    private void buildExtraRow(int index, Object rowValue){
        TableRowBuilder row = startRow();
        TableCellBuilder td = row.startTD().colSpan(getColumns().size());
        DivBuilder div = td.startDiv();
    
        Widget widget = new Widget();
    
        //update widget state and appearance here depending on rowValue
    
        div.html(SafeHtmlUtils.fromTrustedString(widget.getElement().getInnerHTML()));
    
        div.end();
        td.endTD();
        row.endTR();
    }}
    

    It should be mentioned, that when you handle some event which leads to appearance of extra row, you should invoke redrawRaw(rowIndex) on CellTable which is attached to TableBuilder. And before this call it is necessary to add target row ID to elements Set.

    Hope this was helpful.

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

Sidebar

Related Questions

GWT's serializer has limited java.io.Serializable support, but for security reasons there is a whitelist
In GWT if I do RootPanel.get(someDiv).add(myPanel); I invariably get: <div id=someDiv><div></div></div> But, I just
Gwt -> RPC -> MongoDB (Morphia) Caused by: java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method)
In GWT, is there a way to find out the user's physical location (country,
GWT RPC is proprietary but looks solid, supported with patterns by Google, and is
In GWT, Is there a font resize event that I can listen to to
GWT provides the following as an example of building cells for a CellList :
GWT introduced with version 1.6 handlers to be used instead of listeners. Now I
GWT Activities/Places/MVP concepts were discussed quite a lot here, but I haven't found a
any gwt library i can use to create sliding effect like www.beautyoftheweb.com ?

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.