protected void applyNextHandler(FaceletContext ctx, UIComponent c) throws IOException, FacesException, ELException { // first allow c to get populated this.nextHandler.apply(ctx, c); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { for (int i = 0; i < len; i++) { this.children[i].apply(ctx, parent); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { this.nextHandler.apply(ctx, parent); }
public void applyDefinition(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { this.nextHandler.apply(ctx, parent); }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { this.nextHandler.apply(ctx, parent); }
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, ELException { if (this.name == name || this.name != null && this.name.equals(name)) { this.nextHandler.apply(ctx, parent); return true; } return false; } }
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, ELException { if (name != null) { DefineHandler handler = (DefineHandler) this.handlers.get(name); if (handler != null) { handler.applyDefinition(ctx, parent); return true; } else { return false; } } else { this.nextHandler.apply(ctx, parent); return true; } } }
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, ELException { if (name != null) { if (this.handlers == null) { return false; } DefineHandler handler = (DefineHandler) this.handlers.get(name); if (handler != null) { handler.applyDefinition(ctx, parent); return true; } else { return false; } } else { this.nextHandler.apply(ctx, parent); return true; } }
public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException, FacesException, FaceletException, ELException { if (name != null) { if (this.handlers == null) { return false; } DefineHandler handler = (DefineHandler) this.handlers.get(name); if (handler != null) { handler.applyDefinition(ctx, parent); return true; } else { return false; } } else { this.nextHandler.apply(ctx, parent); return true; } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { this.next.apply(ctx, parent); ctx.getFacesContext().getExternalContext().getRequestMap().put("facelets.Encoding", this.encoding); }
protected void applyNextHandler(FaceletContext faceletContext, UIComponent separator) throws IOException, FacesException, ELException { if (ComponentSupport.isNew(separator)) { UIComponent component = (UIComponent) separator.getFacets().remove(Facets.LABEL); nextHandler.apply(faceletContext, component); separator.getFacets().put(Facets.LABEL, component); } else { nextHandler.apply(faceletContext, separator.getFacet(Facets.LABEL)); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { try { this.nextHandler.apply(ctx, parent); } catch (Exception e) { if (this.var != null) { ctx.setAttribute(this.var.getValue(ctx), e); } } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, ELException { boolean b = this.test.getBoolean(ctx); if (this.var != null) { ctx.setAttribute(var.getValue(ctx), new Boolean(b)); } if (b) { this.nextHandler.apply(ctx, parent); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { if (parent == null) { throw new TagException(this.tag, "Parent UIComponent was null"); } parent.getAttributes().put(KEY, this.name.getValue(ctx)); try { this.nextHandler.apply(ctx, parent); } finally { parent.getAttributes().remove(KEY); } } }
protected void applyNextHandler(FaceletContext faceletContext, UIComponent menuCommand) throws IOException, FacesException, ELException { if (ComponentSupport.isNew(menuCommand)) { UIComponent component = (UIComponent) menuCommand.getFacets().remove(getFacetName()); nextHandler.apply(faceletContext, component); menuCommand.getFacets().put(getFacetName(), component); } else { nextHandler.apply(faceletContext, menuCommand.getFacet(getFacetName())); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { ctx.extendClient(this); boolean found = false; try { found = ctx.includeDefinition(parent, this.name); } finally { ctx.popClient(this); } if (!found) { this.nextHandler.apply(ctx, parent); } }
protected void applyNextHandler(FaceletContext ctx, UIComponent panel) throws IOException, FacesException, ELException { if (ComponentSupport.isNew(panel)) { // ensure that input has no parent (isNew) UIComponent input = (UIComponent) panel.getChildren().remove(1); try { input.getAttributes().put("tobago.panel", panel); nextHandler.apply(ctx, input); } finally { input.getAttributes().remove("tobago.panel"); } UIComponent date = null; if (panel.getChildCount() > 1) { date = (UIComponent) panel.getChildren().get(1); } panel.getChildren().add(input); if (date != null) { panel.getChildren().add(date); } } else { UIComponent input = (UIComponent) panel.getChildren().get(1); nextHandler.apply(ctx, input); } }
/** * Given the passed FaceletContext, apply our child FaceletHandlers to the * passed parent * * @see FaceletHandler#apply(FaceletContext, UIComponent) * @param ctx * the FaceletContext to use for applying our FaceletHandlers * @param parent * the parent component to apply changes to * @throws IOException * @throws FacesException * @throws FaceletException * @throws ELException */ private void include(DefaultFaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { this.refresh(parent); this.root.apply(new DefaultFaceletContext(ctx, this), parent); this.markApplied(parent); }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { FunctionMapper orig = ctx.getFunctionMapper(); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
/** * @see com.sun.facelets.Facelet#apply(javax.faces.context.FacesContext, * javax.faces.component.UIComponent) */ public void apply(FacesContext facesContext, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { DefaultFaceletContext ctx = new DefaultFaceletContext(facesContext, this); this.refresh(parent); ComponentSupport.markForDeletion(parent); this.root.apply(ctx, parent); ComponentSupport.finalizeForDeletion(parent); this.markApplied(parent); }