public String getResourcePath(FacesContext context, String library, String resourceName) { return RenderKitUtils.getResourcePath(context, library, resourceName); } }
public String getResourcePath(FacesContext context, String library, String resourceName) { return RenderKitUtils.getResourcePath(context, library, resourceName); } }
public String getResourcePath(FacesContext context, String library, String resourceName) { return RenderKitUtils.getResourcePath(context, library, resourceName); } }
public String getButtonIcon(FacesContext facesContext, UIComponent component) { boolean disable = (Boolean) component.getAttributes().get(OPTION_DISABLED); String buttonIcon = (String) component.getAttributes().get("buttonIcon"); if (disable) { buttonIcon = (String) component.getAttributes().get("buttonDisabledIcon"); } if (buttonIcon != null && buttonIcon.trim().length() != 0) { buttonIcon = RenderKitUtils.getResourceURL(buttonIcon, facesContext); } else { buttonIcon = disable ? CALENDAR_DISABLE_ICON_RESOURCE_NAME : CALENDAR_ICON_RESOURCE_NAME; buttonIcon = RenderKitUtils.getResourcePath(facesContext, "org.richfaces.images", buttonIcon); } return buttonIcon; }
public String getButtonIcon(FacesContext facesContext, UIComponent component) { boolean disable = (Boolean) component.getAttributes().get(OPTION_DISABLED); String buttonIcon = (String) component.getAttributes().get("buttonIcon"); if (disable) { buttonIcon = (String) component.getAttributes().get("buttonDisabledIcon"); } if (buttonIcon != null && buttonIcon.trim().length() != 0) { buttonIcon = RenderKitUtils.getResourceURL(buttonIcon, facesContext); } else { buttonIcon = disable ? CALENDAR_DISABLE_ICON_RESOURCE_NAME : CALENDAR_ICON_RESOURCE_NAME; buttonIcon = RenderKitUtils.getResourcePath(facesContext, "org.richfaces.images", buttonIcon); } return buttonIcon; }
public String getButtonIcon(FacesContext facesContext, UIComponent component) { boolean disable = (Boolean) component.getAttributes().get(OPTION_DISABLED); String buttonIcon = (String) component.getAttributes().get("buttonIcon"); if (disable) { buttonIcon = (String) component.getAttributes().get("buttonDisabledIcon"); } if (buttonIcon != null && buttonIcon.trim().length() != 0) { buttonIcon = RenderKitUtils.getResourceURL(buttonIcon, facesContext); } else { buttonIcon = disable ? CALENDAR_DISABLE_ICON_RESOURCE_NAME : CALENDAR_ICON_RESOURCE_NAME; buttonIcon = RenderKitUtils.getResourcePath(facesContext, "org.richfaces.images", buttonIcon); } return buttonIcon; }
@Override public void processEvent(ComponentSystemEvent event) throws AbortProcessingException { super.processEvent(event); FacesContext context = getFacesContext(); Map<String, UIComponent> facets = getFacets(); UIComponent component = facets.get("progress"); if (component == null) { try { component = context.getApplication().createComponent(context, "org.richfaces.ProgressBar", "org.richfaces.ProgressBarRenderer"); } catch (FacesException e) { // To work without ProgressBar. } if (component != null) { component.setId(getId() + "_pb"); facets.put("progress", component); } } if (component != null) { String resourcePath = RenderKitUtils.getResourcePath(context, "org.richfaces", "fileUploadProgress"); component.getAttributes().put("resource", resourcePath); } }
@Override public void processEvent(ComponentSystemEvent event) throws AbortProcessingException { super.processEvent(event); FacesContext context = getFacesContext(); Map<String, UIComponent> facets = getFacets(); UIComponent component = facets.get("progress"); if (component == null) { try { component = context.getApplication().createComponent(context, "org.richfaces.ProgressBar", "org.richfaces.ProgressBarRenderer"); } catch (FacesException e) { // To work without ProgressBar. } if (component != null) { component.setId(getId() + "_pb"); facets.put("progress", component); } } if (component != null) { String resourcePath = RenderKitUtils.getResourcePath(context, "org.richfaces.dynamic", "fileUploadProgress"); component.getAttributes().put("resource", resourcePath); } if (event.getSource() == this) { if (event instanceof PostAddToViewEvent) { this.getAttributes().put("queuedFileUploadEvents", new AtomicInteger(0)); } } }