Skip to content

Commit

Permalink
https://github.com/jakartaee/faces/issues/1705
Browse files Browse the repository at this point in the history
Backport WARNING message into Mojarra 4.0
  • Loading branch information
BalusC authored and jasondlee committed May 18, 2023
1 parent e30e351 commit e1951b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public void apply(FaceletContext ctx, UIComponent parent) throws IOException {
root = (UIViewRoot) parent;
} else {
root = ctx.getFacesContext().getViewRoot();
if (root != null && LOGGER.isLoggable(Level.WARNING)) {
LOGGER.log(Level.WARNING, "faces.metadata.invalid.location", root.getViewId());
}
}
if (root == null) {
if (LOGGER.isLoggable(Level.SEVERE)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ faces.context.partial_visit_context_unvisited_children=JSF1098: The following cl
faces.lifecycle.invalid.referer=JSF1099: Referer [sic] header value {0} does not appear to be a protected view. Preventing display of viewId {1}
faces.lifecycle.invalid.origin=JSF1100: Origin [sic] header value {0} does not appear to be a protected view. Preventing display of viewId {1}
faces.externalcontext.flash.force.write.cookie.failed=JSF1102: The system was configured to force writing the flash cookie, but the write failed.
faces.metadata.invalid.location=JSF1103: The metadata facet must be a direct child of the view in viewId {0}

0 comments on commit e1951b1

Please sign in to comment.