Details
Description
The following logging message appears even when the view is specifically configured not to be an ICEfaces view:
INFO: ICEfaces disabled for view /nonicefaces.xhtml (h:head and h:body tags must be used)
BridgeSetup should not log anything in this case (when the configuration is explicit.)
public void processEvent(SystemEvent event) throws AbortProcessingException {
final FacesContext context = FacesContext.getCurrentInstance();
if (!EnvUtils.isICEfacesView(context)) {
if (log.isLoggable(Level.INFO)) {
log.log(Level.INFO, "ICEfaces disabled for view " + context.getViewRoot().getViewId() +
" (h:head and h:body tags must be used)");
}
return;
}
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
I've separated the logic that checks:
If ICEfaces is not configured for a view, either globally using the org.icefaces.render.auto (which defaults to true if it's not set explicitly) or using the <ice:config render="true" /> component, then no check is made for the h:head and h:body components and nothing is logged.
If ICEfaces is configured for a view, then a check for h:head and h:body components is done and, if not found, a WARNING level log statement is written.