How to make a action and link to the domain view

Hi

i m trying to add a link in the USER_MENU_ACTIONS to the domain listing : the navigation from one domain to another not being quite user friendly.

I naively created a new action with a link to the outcome “view_domain” : the view_domains.xhtml is indeed displayed, but the current document is still displayed (no NavigateTo occurs).

Do I have to build achain or something live that or is there a simpler way ?

0 votes

1 answers

1451 views

ANSWER



Two solutions I ve found for the link parameter of my custom action :

#{navigationContext.navigateToId('id_of_my_domain')}

or

#{navigationContext.goHome()}

Both are using “view_domains.xhtml”, ex :

        <action id="link_to_domains2" label="Domaines 2" link="#{navigationContext.goHome()}" order="100" >
                <category>USER_MENU_ACTIONS</category>
                <filter-id>not_anonymous</filter-id>
                <property name="url">view_domains.xhtml</property>
        </action>
0 votes