This content has been marked as final.
Show 2 replies
-
1. Re: Accessing Faces Servlet url-pattern
matt.drees Oct 25, 2008 3:19 AM (in response to nathandennis)does ViewHandler.getActionUrl() do what you need? If not, you can dig into how mojarra's default jsf ViewHandler implements this and use the same technique.
-
2. Re: Accessing Faces Servlet url-pattern
nathandennis Oct 25, 2008 8:49 PM (in response to nathandennis)brilliant,,,
FacesContext ctx = FacesContext.getCurrentInstance(); ViewHandler viewHandler = ctx.getApplication().getViewHandler(); String url = viewHandler.getActionURL(ctx, "/some/resource.xhtml");
works great. i hadnt used this approach before.
thanks for the help.