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 CyrilBouteille:
http://wiki.apache.org/shale/ViewControllerMapper

The comment on the change is:
seems like the VIEW_MAPPER moved up to org.apache.shale.view.Constants in 1.0.4

------------------------------------------------------------------------------
  
  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/[EMAIL 
PROTECTED] 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());}}}
+ context.setAttribute(org.apache.shale.view.Constants.VIEW_MAPPER, new 
MyViewControllerMapper());}}}
  

Reply via email to