/** * If the id TagAttribute was specified, get it's value, otherwise generate * a unique id from our tagId. * * @see TagAttribute#getValue(FaceletContext) * @param ctx * FaceletContext to use * @return what should be a unique Id */ protected String getId(FaceletContext ctx) { if (this.id != null) { return this.id.getValue(ctx); } return ctx.generateUniqueId(this.tagId); }
String id = ctx.generateUniqueId(this.tagId);
if (parent != null) { String id = ctx.generateUniqueId(this.id);