Announcement

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

    Front end components

    smartgwt power 3.1

    I have a sort-of multi-window application: i.e. there are multiple distinct contexts each with is own UI.

    Which is the best practice in this scenario?

    1) Hard coded html menu pointing to different html pages each hosting a smartwt app?
    2) Smartgwt generated menu (should I simply output HTMLFlow() objects to compose a:
    [html]
    <ul>
    <li>...</li>
    </ul>
    [/html]
    or is there a better solution?) and a huge EntryPoint derived class to handle the context switch.

    Thank you.

    #2
    Both solutions are valid - use these questions to drive your decision:

    Do you want to be able to redeploy the different applications separately? This is an argument for a simple HTML menu.

    Do you have some users with low bandwidth who might get faster downloads if the apps were split up? This is an argument for a simple HTML menu.

    Is there a large subset of users that will use multiple apps in the same session? This is an argument for a single combined app.

    Comment


      #3
      Originally posted by Isomorphic View Post
      Both solutions are valid - use these questions to drive your decision:

      Do you want to be able to redeploy the different applications separately? This is an argument for a simple HTML menu.

      Do you have some users with low bandwidth who might get faster downloads if the apps were split up? This is an argument for a simple HTML menu.

      Is there a large subset of users that will use multiple apps in the same session? This is an argument for a single combined app.
      I've been for separate pages for each sub-module.
      A nice and simple <ul><li>..</li></ul> menu is sitting on top of the page.
      But still I have a couple of problems:
      # the smartgwt ListGrid overlays over everything so I cannot click on the menu.
      # the page shows no scrollbar so I cannot move enything

      The page is fairly simple by now:
      Code:
      public void onModuleLoad() {
      		Layout mainContentLayer = new VLayout();
      		mainContentLayer.setWidth100();
      		mainContentLayer.setHeight100();
      
      		Label title = new Label("<h1>Customer management</h1>");
      
      		final Canvas customerGrid = getCustomerListGrid();
      		customerGrid.setHeight100();
      
      		mainContentLayer.addMember(title);
      		mainContentLayer.addMember(customerGrid);
      
      		mainContentLayer.draw();
      	}
      How should I approach this?

      Thank you.

      Comment


        #4
        Originally posted by devep1 View Post
        I've been for separate pages for each sub-module.
        A nice and simple <ul><li>..</li></ul> menu is sitting on top of the page.
        But still I have a couple of problems:
        # the smartgwt ListGrid overlays over everything so I cannot click on the menu.
        # the page shows no scrollbar so I cannot move enything
        I can reply to myself :-)

        Layout is fixed at 0,0 so setTop(x) made the job.

        Code:
        public void onModuleLoad() {
        		Layout mainContentLayer = new VLayout();
        
        		mainContentLayer.setTop(96);
        		mainContentLayer.setWidth100();
        		mainContentLayer.setHeight100();
        
        		Label title = new Label("<h1>Customer management</h1>");
        
        		final Canvas customerGrid = getCustomerListGrid();
        		customerGrid.setHeight100();
        
        		mainContentLayer.addMember(title);
        		mainContentLayer.addMember(customerGrid);
        
        		mainContentLayer.draw();
        	}

        Comment

        Working...
        X