Re: PrettyFaces Navigation?

Splash Forums PrettyFaces Users PrettyFaces Navigation? Re: PrettyFaces Navigation?

#20266

azakovorotny
Participant

Hi Lincoln,

I think it is a common issue with PrettyFaces: when JSF navigation rules are used PrettyFaces mapping does not have a chance to re-write outbound URL. I.e. there is no way to have a login URL written like this http://localhost/login if, for example, the following rule matches:

`<navigation-rule>

<from-view-id>/*</from-view-id>

<navigation-case>

<from-action>#{identity.logout}</from-action>

<if>#{not identity.loggedIn}</if>

<to-view-id>/login.xhtml</to-view-id>

<redirect/>

</navigation-case>

</navigation-rule>`

with url mapping in pretty-config.xml like this:

<url-mapping id="login">
<pattern value="/#{tnt: serviceManager.tenantName}/login"/>
<view-id value="/dir/login.jsf"/>
</url-mapping>

Could it be caused by Seam Faces’ ViewConfig rule?:

@FacesRedirect
@ViewPattern("/*")
@AccessDeniedView("/denied.xhtml")
@LoginView("/login.xhtml")
ALL

thank you.

Andy