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

  • Home
  • SEARCH
  • 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 6383047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:36:02+00:00 2026-05-25T02:36:02+00:00

Scenario: my application makes use of uibinder. I have a splitlayout panel with: a

  • 0

Scenario: my application makes use of uibinder. I have a splitlayout panel with:

  • a menu on the left side of the screen with a few hyperlinks (history support);

  • a central SimplePanel bound to the historychanged event like this:

    String historyToken = event.getValue();
    content.setWidget(new Label(historyToken));

  • not very useful right? Now I want to populate my center panel with a dynamically created widget.

  • I know that reflection is not possible on the client-side.

  • So how can I decide what class to create / add to my content panel, and avoid an awful if / else if / else if / … block of code, based on the history token?

  • I was thinking about using constants in a more elegant “switch” way, but it’s substantially the same solution.

  • 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-25T02:36:03+00:00Added an answer on May 25, 2026 at 2:36 am

    Ok, the solution is using DeferredBinding and write a code generator for a “factory” class.

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

Sidebar

Related Questions

Scenario I have a windows forms application. I want to use two different WCF
IN my application I use DBAware components exclusively (except a few places). I have
We have an existing application that makes use of the System.IO.Packaging.Package class for reading
Scenario: I have a console application that needs to access a network share with
Scenario I have a Windows Forms Application. Inside the main form there is a
Scenario I have a background worker in my application that runs off and does
Scenario I have a C# windows forms application that has a number of processes.
I am using Ninject in MVC3 application. One of my resolvable dependencies makes use
Here is the scenario. I have an file outside of my Grails application that
I'm developing an iPhone application that makes heavy use of Core Data, primarily for

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.