Changing /faces in Framework Portal URL

ADF Applications and WebCenter Framework Portal applications displays the Faces Servlet present in the URL, by default /faces.

It can be changed to a different one following next:

  • Change web.xml file changing/adding the following:
  • Add your new context-root to the Faces Servlet.

    <servlet-mapping>    
          <servlet-name>Faces Servlet</servlet-name>    
          <url-pattern>/faces/*</url-pattern>    
          <url-pattern>/merchan/*</url-pattern>    
        </servlet-mapping>

  • Check and add the new Faces Servlet context to each Filter using the Faces Servlet as mapping.

    <filter-mapping>    
          <filter-name>lifecycleLockFilter</filter-name>    
          <url-pattern>/faces/*</url-pattern>    
          <url-pattern>/merchan/*</url-pattern>    
        </filter-mapping>

  • Change the index.html to point the new Faces Servlet mappingNo puedo
  • Create a Java Filter to rewrite URLs requesting /faces from the internal libraries. For example PortalAdminServlet redirects to /faces/oracle.../admin.jspx

 

Subscribe to email updates

Recent Posts