Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
22. Apr 2008, 13:04 CET | Link

Hi, I want to redirect user to different pages if user is member redirect to...or if admin redirect to...

In seam example i found redirection to simple page:

        <navigation from-action="#{identity.login}">
            <rule if="#{identity.loggedIn}">
                <redirect view-id="/pages/system.xhtml"/>
            </rule>
        </navigation>
        <navigation from-action="#{identity.login}">
            <rule if="#{s:hasRole('member')}">
                <redirect view-id="/pages/member.xhtml"/>
            </rule>
            <rule if="#{s:hasRole('administrator')}">
                <redirect view-id="/pages/system.xhtml"/>
            </rule>
        </navigation>

Is this possible in that way?

1 Reply:
23. Apr 2008, 04:28 CET | Link

I don't see why not. Have you tried it?