Re: h:link not rendered

Splash Forums PrettyFaces Users h:link not rendered Re: h:link not rendered


I think you should be able to fix this issue without altering the PrettyFaces archive. Just implement your own ViewHandler by implementing ViewHandlerWrapper. Something like this:

public class PortalViewHandler extends ViewHandlerWrapper {

private final ViewHandler delegate;

public PortalViewHandler( ViewHandler delegate ) {
this.delegate = delegate;

public String deriveViewId( final FacesContext facesContext, final String rawViewId ) {
String viewId = super.deriveViewId( facesContext, rawViewId );
if( viewId == null ) {
// TODO: your special handling here
return viewId;

public ViewHandler getWrapped() {
return delegate;


Then add your implementation to your faces-config.xml like this:

<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="" xmlns:xsi=""



This should work. You implementation receives the PrettyViewHandler (or some other one if there are more) in the constructor and so you will be able to change just the behavior of this single method.