/** * @param id * @see javax.faces.component.UIComponentBase#setId(java.lang.String) */ public void setId(String id) { original.setId(id); }
@Override public void setId(String id) { if (BridgeUtil.isPortletRequest()) { if (namespace == null) { getContainerClientId(FacesContext.getCurrentInstance()); } id = namespace; } super.setId(id); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
/** * <p>Create a new {@link UIViewRoot} instance with default property * values.</p> */ public UIViewRoot() { super(); setRendererType(null); setId(createUniqueId()); }
@Override public void setId(String id) { if (BridgeUtil.isPortletRequest()) { // Turns out that in Facelets the UIViewRoot doesn't seem to have its id set -- i.e. its null // So recognize null and change to a uniqueId if (id == null) { id = createUniqueId(); } // Turns out some Faces impls (the RI) , on restoreView, manually sets the id from // the extracted state prior to telling the component to restore itself from this state. // (At which point the self restore overwrites any id set prior.). As this manual // set is using the already encoded (saved) value we could end up with a doubly // encoded id until the restore overwrites. To avoid this -- first test if // its already encoded and don't re-encode. if (!id.startsWith(PORTLET_NAMESPACE_ID_PREFIX)) { ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext(); id = PORTLET_NAMESPACE_ID_PREFIX + ec.encodeNamespace("") + "_" + id; } } super.setId(id); }
public AjaxViewRoot(UIViewRoot original) { super(original); renderIdsExpr = FacesContext.getCurrentInstance().getApplication().createValueBinding(RENDER_IDS_EXPRESSION); original.setId(createUniqueId()); swapChildren(original, this); setId(original.getId() + "_ajax"); }
private UIComponent findComponentSpecially(final FacesContext context) { UIViewRoot parentComponent = PageContextUtil .getCurrentViewRootAttribute(pageContext); if (parentComponent == null) { parentComponent = context.getViewRoot(); PageContextUtil.setCurrentViewRootAttribute(pageContext, parentComponent); if (parentComponent.getAttributes().get( InternalConstants.CURRENT_VIEW_ROOT) == null) { setProperties(parentComponent); if (id != null) { parentComponent.setId(id); } parentComponent.getAttributes().put( InternalConstants.CURRENT_VIEW_ROOT, InternalConstants.CURRENT_VIEW_ROOT); } else if (binding == null) { setProperties(parentComponent); } } return parentComponent; }
view.setId(view.createUniqueId(context, null)); view.markInitialState();
view.setId(view.createUniqueId(context, null)); view.markInitialState();
view.setId(view.createUniqueId(context,null));
view.setId(view.createUniqueId(context,null));
view.setId(view.createUniqueId(context, null));