Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Is it possible to load UI components dynamically?

    Is it possible to load UI components dynamically?
    For example,
    When I make a project that includes the following entry point:
    Code:
    	@Override
    	public void onModuleLoad() {
    	
    		final SectionStack sectionStack = new SectionStack();  
                    
                    SectionStackSection section1 = new SectionStackSection("Blue Pawn");  
                    sectionStack.addSection(section1);
    
                    SectionStackSection section2 = new SectionStackSection("Red Pawn");  
                    sectionStack.addSection(section2);
            
                    sectionStack.draw();
    	 
            }
    This is kind of poor-man's reflection.
    However, my ideal case is that this sectionStack is generated dynamically with loading another each GWT project that has only a SectionStackSection.
    And I know it might be difficult because GWT does not support reflection.(I found the related post in this forum.)

    So, could you tell me the possibility to realize dynamic UI module loading by the following methods:
    A. using SmartGWT,
    B. using GWT Reflection and SmartGWT (I don't know whether SmartGWT supports GWT Reflection) ,
    C. using SmartClient,
    D. using another way?

    #2
    You can do this via GWT Code Splitting.

    Consider doing so once your application code exceeds perhaps 300-500k compressed (in the realm of 1000 screens). Before then, it's not generally worth doing.

    Comment

    Working...
    X