protected UIPanel createImplicitPanelGroup(FacesContext facesContext, String parentId) { Application application = facesContext.getApplication(); UIPanel implicitPanelGroup = (UIPanel) application.createComponent(UIPanel.COMPONENT_TYPE); Map<String, Object> implicitPanelGroupAttributes = implicitPanelGroup.getAttributes(); implicitPanelGroupAttributes.put(MOJARRA_IMPLICIT_PANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_CREATED_UIPANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_ADDED_BY_HANDLER, Boolean.TRUE); UniqueIdVendor uniqueIdVendor = facesContext.getViewRoot(); String seed = parentId.concat("_").concat(IMPLICIT_FACET_NAME); String implicitPanelGroupId = uniqueIdVendor.createUniqueId(facesContext, seed); implicitPanelGroup.setId(implicitPanelGroupId); return implicitPanelGroup; } }
protected UIPanel createImplicitPanelGroup(FacesContext facesContext, String parentId) { Application application = facesContext.getApplication(); UIPanel implicitPanelGroup = (UIPanel) application.createComponent(UIPanel.COMPONENT_TYPE); Map<String, Object> implicitPanelGroupAttributes = implicitPanelGroup.getAttributes(); implicitPanelGroupAttributes.put(MOJARRA_IMPLICIT_PANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_CREATED_UIPANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_ADDED_BY_HANDLER, Boolean.TRUE); UniqueIdVendor uniqueIdVendor = facesContext.getViewRoot(); String seed = parentId.concat("_").concat(IMPLICIT_FACET_NAME); String implicitPanelGroupId = uniqueIdVendor.createUniqueId(facesContext, seed); implicitPanelGroup.setId(implicitPanelGroupId); return implicitPanelGroup; } }
protected UIPanel createImplicitPanelGroup(FacesContext facesContext, String parentId) { Application application = facesContext.getApplication(); UIPanel implicitPanelGroup = (UIPanel) application.createComponent(UIPanel.COMPONENT_TYPE); Map<String, Object> implicitPanelGroupAttributes = implicitPanelGroup.getAttributes(); implicitPanelGroupAttributes.put(MOJARRA_IMPLICIT_PANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_CREATED_UIPANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_ADDED_BY_HANDLER, Boolean.TRUE); UniqueIdVendor uniqueIdVendor = facesContext.getViewRoot(); String seed = parentId.concat("_").concat(IMPLICIT_FACET_NAME); String implicitPanelGroupId = uniqueIdVendor.createUniqueId(facesContext, seed); implicitPanelGroup.setId(implicitPanelGroupId); return implicitPanelGroup; } }
protected UIPanel createImplicitPanelGroup(FacesContext facesContext, String parentId) { Application application = facesContext.getApplication(); UIPanel implicitPanelGroup = (UIPanel) application.createComponent(UIPanel.COMPONENT_TYPE); Map<String, Object> implicitPanelGroupAttributes = implicitPanelGroup.getAttributes(); implicitPanelGroupAttributes.put(MOJARRA_IMPLICIT_PANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_CREATED_UIPANEL, Boolean.TRUE); implicitPanelGroupAttributes.put(MYFACES_ADDED_BY_HANDLER, Boolean.TRUE); UniqueIdVendor uniqueIdVendor = facesContext.getViewRoot(); String seed = parentId.concat("_").concat(IMPLICIT_FACET_NAME); String implicitPanelGroupId = uniqueIdVendor.createUniqueId(facesContext, seed); implicitPanelGroup.setId(implicitPanelGroupId); return implicitPanelGroup; } }
toolbar.getAttributes().put(Attributes.ICON_SIZE, UIToolBar.ICON_SMALL); toolbar.getAttributes().put(Attributes.LABEL_POSITION, UIToolBar.LABEL_OFF);
faceletContext.getFacesContext().getApplication().createComponent( faceletContext.getFacesContext(), UIPanel.COMPONENT_TYPE, null); compositeFacetPanel.getAttributes().put(ComponentSupport.COMPONENT_ADDED_BY_HANDLER_MARKER, Boolean.TRUE); compositeComponentBase.getFacets().put(UIComponent.COMPOSITE_FACET_NAME, compositeFacetPanel);
tempParent.getAttributes().put("oam.vf.DYN_WRAPPER", baseKey); tempParent.subscribeToEvent(PostRestoreStateEvent.class, new RefreshDynamicComponentListener(taglibURI, tagName, attributes, baseKey)); tempParent.getAttributes().put("oam.vf.DYN_WRAPPER", baseKey); requiresRefresh = true;