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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:21:13+00:00 2026-05-18T06:21:13+00:00

Im new about this technology, but I would like to know if is possible

  • 0

Im new about this technology, but I would like to know if is possible to create new object (html elements, such div/span/and so on…) dinamically on server and send it to the client, or if i can just load the ones made on client-side when i develop it in the application.

I don’t ask how to do it (i think its a delicate argument), but if I can, and (if yes) where i can get some stuff/example/tutorial to do this.

Example

What i usually do :

...
public void onSuccess(Boolean result) {
    if(result) {
        myFunction();
    }
}

...

myFunction() {
    InlineLabel label=new  InlineLabel();
    this.add(label)    
}

What im looking for :

...
public void onSuccess(InlineLabel result) {
    this.add(result) 
}

So, i don’t need to load in advance the Object, but load them only if i click on some button (or if i perform an action). This will save a lot of code (that is inutil, if i don’t do any action) loaded (as JavaScript) on the client.

As usual, thanks for your time!

  • 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-18T06:21:14+00:00Added an answer on May 18, 2026 at 6:21 am

    I’m not entirely sure I understand your question, but please feel free to amend your question or post a comment if I’ve missed the mark.

    The host page

    A GWT app is loaded in the following (simplified) process:

    • A host page (HTML) is loaded
    • A bootstrapping script is loaded
    • A compiled app script is loaded

    The host page can contain any HTML you want. The only requirement is that you include a <script> element that loads the GWT bootstrapping script.

    As a result, you can have the server return a page that contains any server-generated markup you like.

    Server-rendered HTML at runtime

    Once your app is running, you can send off asynchronous requests in your code to retrieve arbitrary data from the server. One option is to retrieve server-generated HTML and insert it into your application.

    For this option, you’ll want to instantiate an HTML widget, then use its setHTML method to insert the server-generated markup into the widget.

    Client-generated

    As an alternative, you can retrieve structured data from the server via GWT RPC. Objects created on a Java-based server are serialised by GWT on the server and deserialised on the client back into regular objects. You can then pull data out of these objects using accessor methods (getName, getId, etc.). At this point, you have several options:

    • Generate some HTML using StringBuilder and the like, then use setHTML on an HTML widget.
    • Generate DOM elements with the DOM class
    • Set the data into widgets and add them to panels or the root panel.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The compiler complains about this code: HashMap<String,int> userName2ind = new HashMap<String,int>(); for (int i=0;
everyone! new to here and been pondering about this myself for some times with
So I'm trying out this new TDD thing (about time haha). Anyways I have
I found a great explanation about the new RTTI in Delphi ,but I don't
I know this is not a technical question, but this is something I believe
I'm going to try this new cloud technology. So I think the best place
As the title suggests, I would like to see if this is something people
Boring intro: I know - DDD isn't about technology. As i see it -
I was reading this thread/post: https://stackoverflow.com/questions/262298/windows-c-ui-technology and am also wondering about a non .NET
I've recently started a new project, and we plan to create this in Silverlight.

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.