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; } }
compositeFacetPanel.setId(uid);
compositeFacetPanel.setId(uid);
.append("__f_") .append("cc_facet").toString()); compositeFacetPanel.setId(uid);
= (UIPanel) context.getApplication().createComponent( context, UIPanel.COMPONENT_TYPE, null); tempParent.setId(context.getViewRoot().createUniqueId(context, null)); String baseKey = tempParent.getId(); baseKey = baseKey.startsWith(UIViewRoot.UNIQUE_ID_PREFIX) ? baseKey.substring(4) : baseKey;
existingRoot.setViewId(VIEW_ID); UIPanel panel = new UIPanel(); panel.setId("panel1"); UIOutput output = new UIOutput(); output.setValueBinding("binding", this.jsfMock.facesContext().getApplication().createValueBinding("#{myBean.output}"));