public static WebXml getWebXml(ExternalContext context) { WebXml webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); if (webXml == null) { init(context); webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); } return webXml; }
public static WebXml getWebXml(ExternalContext context) { WebXml webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); if (webXml == null) { init(context); webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); } return webXml; }
public static WebXml getWebXml(ExternalContext context) { WebXml webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); if (webXml == null) { init(context); webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); } return webXml; }
public static WebXml getWebXml(ExternalContext context) { WebXml webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); if (webXml == null) { init(context); webXml = (WebXml)context.getApplicationMap().get(WEB_XML_ATTR); } return webXml; }
public static void update(ExternalContext context) { if (getWebXml(context).isOld(context)){ WebXml.init(context); } }
public static void update(ExternalContext context) { if (getWebXml(context).isOld(context)){ WebXml.init(context); } }
public static void update(ExternalContext context) { if (getWebXml(context).isOld(context)){ WebXml.init(context); } }
public static void update(ExternalContext context) { if (getWebXml(context).isOld(context)) { WebXml.init(context); } }
protected void initMyFaces() { try { Boolean b = (Boolean)portletContext.getAttribute(FACES_INIT_DONE); if (b == null || b.booleanValue() == false) { log.trace("Initializing MyFaces"); //Load the configuration ExternalContext externalContext = new PortletExternalContextImpl(portletContext, null, null); //And configure everything // TODO: FIX PORTLET STUFF FOR JSF 1.2 // new FacesConfigurator(externalContext).configure(); // parse web.xml - not sure if this is needed for portlet WebXml.init(externalContext); portletContext.setAttribute(FACES_INIT_DONE, Boolean.TRUE); } else { log.info("MyFaces already initialized"); } } catch (Exception ex) { log.error("Error initializing MyFacesGenericPortlet", ex); } log.info("PortletContext '" + portletContext.getRealPath("/") + "' initialized."); }