protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) { StringBuffer content = new StringBuffer(); Iterator iter = findNextByType(TextHandler.class); while (iter.hasNext()) { TextHandler text = (TextHandler) iter.next(); content.append(text.getText(context)); } if (component instanceof UIStyle) { ((UIStyle) component).setStyle(content.toString()); } }
protected void onComponentCreated(FaceletContext context, UIComponent component, UIComponent parent) { StringBuffer content = new StringBuffer(); Iterator iter = findNextByType(TextHandler.class); while (iter.hasNext()) { TextHandler text = (TextHandler) iter.next(); content.append(text.getText(context)); } if (component instanceof UIScript) { ((UIScript) component).setScript(content.toString()); } }
protected void onComponentCreated(FaceletContext ctx, UIComponent c, UIComponent parent) { StringBuffer content = new StringBuffer(); Iterator iter = findNextByType(TextHandler.class); while (iter.hasNext()) { TextHandler text = (TextHandler) iter.next(); content.append(text.getText(ctx)); } c.getAttributes().put("value", content.toString()); c.getAttributes().put("escape", Boolean.FALSE); c.setTransient(true); }