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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:45:26+00:00 2026-05-30T01:45:26+00:00

Well the question might seem stupid but I really can’t figure it out. How

  • 0

Well the question might seem stupid but I really can’t figure it out. How can you add dynamically a html heading tag to your page using the google web toolkit.

I don’t want to do this for the style of the heading as I could add any style to any label, it is because I want to use the jqueryui accordion it works with a pair of header and content panel.

How can I do this?

  • 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-30T01:45:27+00:00Added an answer on May 30, 2026 at 1:45 am

    Yes this is kinda complicated to say the least…. Here is the easiast example I can think of:

    import com.google.gwt.dom.client.Document;
    import com.google.gwt.dom.client.HeadingElement;
    
    ...
    
    HeadingElement headingElement = Document.get().createHElement(1);
    headingElement.setInnerText("This is a Heading1 (h1) element!");
    RootPanel.get().getElement().appendChild(headingElement);
    

    If you look at the other methods of the Document.get().... you will find methods for creating all other HTML elements too.

    Addition:

    This might be even easier:

    import com.google.gwt.user.client.ui.HTML;
    .....
    HTML headingElement= new HTML();
    headingElement.setHTML("<h1>This is a Heading1 (h1) element!</h1>");        
    RootPanel.get().getElement().appendChild(headingElement);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This might seem like a stupid question but it's been a long day. I'm
I can't seem to find an almost exact question so I might as well
This might seem a very stupid question but things are pretty complex for me
Very simple question, but can't seem to work it out!! I'm creating a date
This is probably a really newbie question (well, I'm pretty sure it is), but
This question might seem very specific but I am in need of some ideas
This might be a way to simple question, but I seem to miss the
This might seem like a silly question, but after asking some questions on stackoverflow
I am sure this is a fairly simple question but I can't seem to
my question might sound stupid to some of you, but I need some good

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.