Re: Injection Time

Splash Forums PrettyFaces Users Injection Time Re: Injection Time

#21263

Another thing that was surprising for me is that the request isn’t wrapped into a PrettyFacesWrappedRequest when using dynaview. So the translation of path parameters to query parameters won’t work. Any reason why the request isn’t wrapped? At least this would allow to get the path parameter values like this:

<url-mapping id="menu">
<pattern value="/#{menuEntryName : navigationBean.menuEntryName}/" />
<view-id value="#{navigationBean.getViewPath}"/>
</url-mapping>

public class NavigationBean {

public String getViewPath() {

ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
String menuEntryName = externalContext.getRequestParameterMap().get("menuEntryName");

}

}