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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:17:58+00:00 2026-05-11T22:17:58+00:00

I am making a GWT app based off of an HTML mockup. The mockup

  • 0

I am making a GWT app based off of an HTML mockup. The mockup has about 4 or 5 different layouts made with divs and css. Right now I have one HTML page with just the basic elements of my layout (header, body, footer). The other layouts are the same thing, with different layouts for the body (i.e. two column, three column). I attempted to add the extra markup the the base template using the following code:

RootPanel.get("main_area").add(html);

Where main_area is the ID of my body div and html is an HTML object with the additional divs for the column layout.

This works fine, but when I try to add some text (or anything) to the divs I added:

RootPanel.get("left_column").add(new Label("test"));

I get the following error:

java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list
    at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:122)
    at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:197)

I assume that I’m going about this completely wrong, but I have no idea what the correct way of doing this would be.

  • 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-11T22:17:58+00:00Added an answer on May 11, 2026 at 10:17 pm

    You may want to look into HTMLPanel.

    i.e.

    HTMLPanel hpanel = new HTMLPanel("<div id='morehtml'></div>");
    hpanel.add(new Label("Hello, I am inside morehtml"), "morehtml");
    
    RootPanel.get("main_area").add(hpanel);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently making a GWT project where I display some HTML in a RichTextArea
Making an Flex App. Just wondering if anyone has created something that fits automatically
I am making a slider based component in GWT. Parent : width = 100%
Is there a GWT Date Time Component? Note: I am already making use of
I am working on a project with MySQL,Hibernate,Java,GWT I am making an entity class
I'm am building a web app with app engine (java) and GWT, although I
Good day. I'm making a gwt application with tables using GWT Grid . Now,
Our team is planning on making a thick client into a web based UI.
Im making my own application by using GWT framework. I say that many Class
I am making a web application using GWT. Please help me decide what I

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.