1 Reply Latest reply on Feb 7, 2010 10:51 AM by bb bb

    Is there navigation rule to know the user came from .xhtml page?

    Rocky S Master
      <navigation from-action="#{facilityHome.persist}">
      <rule if-outcome="persisted



      Above navigation rule works, if action is performed on java side.
      I am looking for a navigation rule where i can figure out the user came from .xhtml page?

        • 1. Re: Is there navigation rule to know the user came from .xhtml page?
          bb bb Master

          Would you like disable the using of xhtml pages?
          If this is your purpose, just add the next lines to web.xml


          <security-constraint>
                    <display-name>Restrict raw XHTML Documents</display-name>
                    <web-resource-collection>
                         <web-resource-name>XHTML</web-resource-name>
                         <url-pattern>*.xhtml</url-pattern>
                    </web-resource-collection>
                    <auth-constraint />
               </security-constraint>