3 Replies Latest reply: Nov 8, 2012 5:03 AM by Daniel Merchán RSS

    Using EL in navigation model

    sgcmnk
      Hi All,

      I am using webcenter portal application. I want to check a condition and based on that condition i want to navigate to the specific page, which i think can be done with a bean call from a commandlink on action attribute.

      May i know how to implement this on Navigation model as i dont know how to call a bean on url field of navigation model. Or possibly is it possible to overide the url field on navigation model with a bean method call in action attribute of command link and navigate to the specific page based on the return attribute.

      We are unable to implement the navigation model in our portal, as we dont know how to overcome this.

      Kindly help us


      Thanks
      S. Muthukumaran
        • 1. Re: Using EL in navigation model
          Bijesh Krishnadas
          Can you use the visible attribute in the navigation model to achieve your use-case? Based on an EL condition one or the other page link may be displayed.
          • 2. Re: Using EL in navigation model
            sgcmnk
            Hi All,

            As i m new to implementing Navigation model, can you please elaborate the above with an example which helps to understand better.

            Thanks a lot.


            S. Muthukumaran
            • 3. Re: Using EL in navigation model
              Daniel Merchán
              Hi.

              Bijesh is referring to visible attribute of each item of your navigation model:
              <url visible="#{Your EL EXPRESSION}" id="Home"
                       factoryClass="oracle.webcenter.portalframework.sitestructure.rc.AdfPageResourceFactory"
                       url="page://oracle/webcenter/portalapp/pages/home.jspx">
                    <attributes>
                      <attribute attributeId="Title" value="HOME" isKey="true"
                                 resourceBundle="com.merchan.portal.PortalBundle"/>
                      <attribute attributeId="ExternalId" value="defaultMenu" isKey="false"/>
                      <attribute attributeId="Redirect" value="false" isKey="false"/>
                    </attributes>
                    <contents/>
                  </url>
              In visible attribute you can invoke a EL Expression (Manage Bean) to determinate if this item is going to be showed in your navigation.

              If it isn't valid for your requeriment please share more details about it.

              Regards.

              Edited by: Daniel Merchán on 08-nov-2012 11:02