B4J Tutorial [ABMaterial] BuildNavigationBar vs ConnectNavigationBar?

Discussion in 'B4J Tutorials' started by MathiasM, May 28, 2019.

  1. MathiasM

    MathiasM Member Licensed User

    Hello

    I want to show a NavigationBar, But in the demo there is a BuildNavigationBar And ConnectNavigationBar, what is the point of both?

    I just use BuildNavigationBar and comment out ConnectNavigationBar and everything seems to work fine.

    Can anyone elaborate on this?

    Thanks
     
  2. alwaysbusy

    alwaysbusy Expert Licensed User

    Build (like in BuildPage, BuildNavigationBar) is for static content. It is generated when the jar runs and written directly into the html file.

    Connect (like in ConnectPage, ConnectNavigationBar) is for dynamic content. It is injected later into the browser.

    This is for example useful if you have a login box, and you don't want the user to be able to see the menu in the html source when not logged in yet. Or you want certain menu items only to be added depending on the rights he has.
     
    OliverA, MathiasM and Cableguy like this.
  3. MathiasM

    MathiasM Member Licensed User

  4. Cableguy

    Cableguy Expert Licensed User

    Also note that, creating a NavigationBar in one page does not mean it will be visible on all webapp pages. you need to "recreate" it in each page you wish it to be present.
     
    Last edited: May 28, 2019
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice