compiler.addTagDecorator((TagDecorator) ReflectionUtil.forName(decorator).newInstance()); if (log.isLoggable(Level.FINE))
/** * Load the various decorators for Facelets. * * @param context * the current FacesContext * @param compiler * the page compiler */ protected void loadDecorators(FacesContext context, Compiler compiler) { String param = WebConfigParamUtils.getStringInitParameter(context.getExternalContext(), PARAMS_DECORATORS); if (param != null) { for (String decorator : param.split(";")) { try { compiler.addTagDecorator((TagDecorator) ReflectionUtil.forName(decorator).newInstance()); if (log.isLoggable(Level.FINE)) { log.fine("Successfully loaded decorator: " + decorator); } } catch (Exception e) { log.log(Level.SEVERE, "Error Loading decorator: " + decorator, e); } } } }
/** * Load the various decorators for Facelets. * * @param context * the current FacesContext * @param compiler * the page compiler */ protected void loadDecorators(FacesContext context, Compiler compiler) { String param = WebConfigParamUtils.getStringInitParameter(context.getExternalContext(), PARAMS_DECORATORS); if (param != null) { for (String decorator : param.split(";")) { try { compiler.addTagDecorator((TagDecorator) ReflectionUtil.forName(decorator).newInstance()); if (log.isLoggable(Level.FINE)) { log.fine("Successfully loaded decorator: " + decorator); } } catch (Exception e) { log.log(Level.SEVERE, "Error Loading decorator: " + decorator, e); } } } }
c.addTagDecorator(decObj); log.fine("Successfully Loaded Decorator: " + decs[i]);
c.addTagDecorator(decObj); log.fine("Successfully Loaded Decorator: " + decs[i]);