Udo Schnurpfeil created TOBAGO-2467:
---------------------------------------

             Summary: Unhelpful error message for missing outcome URL and 
broken HTML
                 Key: TOBAGO-2467
                 URL: https://issues.apache.org/jira/browse/TOBAGO-2467
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
            Reporter: Udo Schnurpfeil


Having a <tc:link> or <tc:button> with attribute *outcome* and the value can't 
be found by the ViewHandler there will be an exception likeĀ 

java.lang.NullPointerException: Cannot invoke 
"jakarta.faces.view.ViewDeclarationLanguage.getViewMetadata(jakarta.faces.context.FacesContext,
 String)" because "vdl" is null

The rendering stops immediately and the HTML page is broken.

We want to fix this by logging this message (without stack trace) but with the 
missing path.

The path will be written in the HTML output, but might be leading to a 404 by 
clicking this link, of course.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to