/** * Get the mark id for the given tag. * * @param context the Facelet context. * @param component the UI component. * @return the mark id. */ protected String getMarkId(FaceletContext context, UIComponent component) { return context.generateUniqueId(owner.getTagId()); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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(_delegate.getTagId()); }
/** * 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(_delegate.getTagId()); }
/** * 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(_delegate.getTagId()); }
@Override public void apply(FaceletContext context, UIComponent parent) throws IOException { DelegatingVariableMapper variableMapper = getDelegatingVariableMapper(context); ValueExpression valueExpression = variableMapper.resolveWrappedVariable(name); if (valueExpression == null) { if (defaultValue != null) { valueExpression = defaultValue.getValueExpression(context, Object.class); } else if ("id".equals(name)) { valueExpression = createValueExpression("#{'j_ido" + context.generateUniqueId(this.tagId) + "'}", String.class); } } variableMapper.setVariable(name, valueExpression); }
@Override public void apply(FaceletContext context, UIComponent parent) throws IOException { DelegatingVariableMapper variableMapper = getDelegatingVariableMapper(context); ValueExpression valueExpression = variableMapper.resolveWrappedVariable(name); if (valueExpression == null) { if (defaultValue != null) { valueExpression = defaultValue.getValueExpression(context, Object.class); } else if ("id".equals(name)) { valueExpression = createValueExpression("#{'j_ido" + context.generateUniqueId(this.tagId) + "'}", String.class); variableMapper.setWrappedVariable(name, valueExpression); return; } } variableMapper.setVariable(name, valueExpression); }
String id = ctx.generateUniqueId(this.tagId);
String id = ctx.generateUniqueId(this.tagId);
String id = ctx.generateUniqueId(this.tagId);
if (parent != null) { String id = ctx.generateUniqueId(this.id); FacesContext context = ctx.getFacesContext();
if (parent != null) { String id = ctx.generateUniqueId(this.id); FacesContext context = ctx.getFacesContext();
if (parent != null) { String id = ctx.generateUniqueId(this.id); FacesContext context = ctx.getFacesContext();
if (parent != null) { String id = ctx.generateUniqueId(this.id); FacesContext context = ctx.getFacesContext();
String id = ctx.generateUniqueId(owner.getTagId());
String id = ctx.generateUniqueId(owner.getTagId());
String id = ctx.generateUniqueId(owner.getTagId());
String id = ctx.generateUniqueId(this.id);