Dear Wiki user, You have subscribed to a wiki page or wiki category on "Shale Wiki" for change notification.
The following page has been changed by Adrian Mitev: http://wiki.apache.org/shale/ViewControllerMapper ------------------------------------------------------------------------------ == Custom Implementation == - To modify the mapping between view ids and managed bean names you can replace the !DefaultViewControllerMapper with an own implementation. As Craig explained [http://mail-archives.apache.org/mod_mbox/shale-user/200608.mbox/browser here], you have to add the mapper to the application scope using ServletContextListener. In the 'contextInitialized' method put the following code:{{{ + To modify the mapping between view ids and managed bean names you can replace the DefaultViewControllerMapper with an own implementation. As Craig explained [http://mail-archives.apache.org/mod_mbox/shale-user/200608.mbox/browser here], you have to add the mapper to the application scope using ServletContextListener. In the 'contextInitialized' method put the following code:{{{ ServletContext context = event.getServletContext(); context.setAttribute(FacesConstants.VIEW_MAPPER, new MyViewControllerMapper());}}}
