shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Shale Wiki] Update of "ViewControllerMapper" by CyrilBouteille
Date Tue, 11 Sep 2007 00:53:46 GMT
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:

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 [
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());}}}

View raw message