Tuesday, September 17, 2013

JSF Errors: JSF1010: Illegal view ID .. . The ID must begin with ''/''

The error message "JSF 1010 Illegal view ID ..." states clearly you provided bad VIEW ID somewhere in your jsf/xhtml code. Oh, remember, VIEW ID is not a component ID:)

The error could be raised in classes (Mojarra) com.sun.faces.application.ViewHandlerImpl or com.sun.faces.application.MultipleViewHandlerImpl in method:
public String getActionURL(FacesContext context, String viewId){
     ...
     if (viewId.charAt(0) != '/') {

       // The error will be raised HERE

     }
     ...
}

No comments:

Post a Comment