id = viewRoot.createUniqueId();
String ddId = clientId + separator + viewroot.createUniqueId(); String ddName = clientId + "_rppDD"; String labelId = null;
private String getUniqueId(FacesContext context) { if (uniqueId == null) { uniqueId = context.getViewRoot().createUniqueId(); } return uniqueId; }
/** * Provides a unique id for this component instance. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> * * @return the identifier. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> * * @return the identifier. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> * * @return the identifier. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> * * @return the identifier. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
/** * <p><span class="changed_modified_2_2">Generate</span> an * identifier for a component. The identifier will be prefixed with * UNIQUE_ID_PREFIX, and will be unique within <span * class="changed_added_2_2">the non-{@link NamingContainer} child * sub-trees of</span> this UIViewRoot.</p> * * @return the identifier. */ public String createUniqueId() { return createUniqueId(getFacesContext(), null); }
private String generateId(FacesContext context, UIComponent namingContainerAncestor) { if (namingContainerAncestor instanceof UniqueIdVendor) { return ((UniqueIdVendor) namingContainerAncestor).createUniqueId(context, null); } return context.getViewRoot().createUniqueId(); }
@Override public void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) { UIWebsocket component = (UIWebsocket) c; component.getAttributes().put("initComponentId", ComponentSupport.getViewRoot(ctx, parent).createUniqueId()+"_wsinit"); }
/** * <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()); }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { if (parent != null) { UIComponent c = new UILiteralText(this.txtString); c.setId(ComponentSupport.getViewRoot(ctx, parent).createUniqueId()); this.addComponent(ctx, parent, c); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { if (parent != null) { try { ELText nt = this.txt.apply(ctx.getExpressionFactory(), ctx); UIComponent c = new UIText(this.alias, nt); c.setId(ComponentSupport.getViewRoot(ctx, parent).createUniqueId()); this.addComponent(ctx, parent, c); } catch (Exception e) { throw new ELException(this.alias + ": "+ e.getMessage(), e.getCause()); } } }