writer.writeAttribute("class", styleClass, null);
if(viewId != null) {
if(viewId.equals("home"))
href = href + "home";
else {
UIComponent viewComponent = rightControl.findComponent(rightControl.getView());
if(viewComponent == null)
throw new FacesException("Cannot find component \"" + rightControl.getView() + "\" in view.");
href = href + viewComponent.getClientId(facesContext);
}