By W.ZH Mar 2013 First take a look web.xml, it point to index.html, then when you open the index.html, In PS3 and PS4 versions it is setted to <meta http-equiv=”refresh” content=”0;url=./faces/pages_home”/>
So index.html will guide the page to this one as the home. Why you must name this home as the “pages_home”? can name as others or not? We can open the faces-config.xml to take a look: <navigation-rule> <from-view-id>*</from-view-id> <navigation-case> <from-outcome>login_success</from-outcome> <to-view-id>/pages_home</to-view-id> <redirect/> </navigation-case> <navigation-case> <from-outcome>logout_success</from-outcome> <to-view-id>/pages_home</to-view-id> <redirect/> </navigation-case> </navigation-rule>
So we can see that login and logout by default use this view id as the home page, we must keep all these define same. If not, after log out, you will see a URL 404 not found error. Of coz you can change it, but they must keep them unified or point to correct different view to make landing/login/logout all works point to correct pages. In PS5, this wcnav_defaultSelection is defined in where? I do not find it, I think it should be a servlet that in the WC API lib. Links : https://kr.forums.oracle.com/forums/thread.jspa?threadID=2420463&tstart=0&messageID=10484934 http://www.yonaweb.be/webcenter_tutorial/closer_look_at_navigation_model
|