Hi,

[EMAIL PROTECTED] a écrit :
> I 'm trying to choose which page must be displayed after login action.
> For example, I want that, after login, advanced_search_page must be 
> displayed. Here is my deployment-fragment :
> 
> <extension target="faces-config#NAVIGATION">
>   
>   
>     <navigation-case>
>       <from-outcome>home</from-outcome>
>       <to-view-id>/search/search_form.xhtml</to-view-id>
>       <redirect />
>     </navigation-case>
>   
>     
>    </extension>
> 
> I hoped this navigation-case would override the "native one", redirecting 
> "home" to view-id : nxstartup.xhtml
> It just doesn't work. I noticed that this navigation-case gets merged to 
> nuxeo.war/WEB-INF/faces-config.xml, but without overriding the suitable 
> navigation-case ( from-outcome : home).

Yes i'm not sure navigation cases can be overriden.
Besides you need nxstartup.xhtml, it does additional work (like setting 
the current document context) through seam pages mechanism.

> What is the proper way to do what I want ?

Try that one, pages declarations do override each other:

<extension target="pages#PAGES">
   <!-- Post login and 'home' view handler -->
   <page view-id="/nxstartup.xhtml"
       action="#{startupHelper.initDomainAndFindStartupPage('Default 
domain', 'advanced_search_page')}" />

</extension>

Just make sure it is added to pages.xml after the standard one.

Regards,

-- 
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to