+ c.getClass().getName()); this.setAttributes(ctx, c);
protected void setAttributes(FaceletContext ctx, Object instance) { super.setAttributes(ctx, instance); Application app = ctx.getFacesContext().getApplication(); AliasBean aliasBean = (AliasBean) instance; String value = valueAttr.getValue(); if (UIComponentTag.isValueReference(value)) { aliasBean.setValueBinding("value", app.createValueBinding(valueAttr .getValue())); } else { aliasBean.setValue(value); } String alias = aliasAttr.getValue(); if (UIComponentTag.isValueReference(alias)) { aliasBean.setValueBinding("alias", app.createValueBinding(aliasAttr .getValue())); } else { aliasBean.setAlias(alias); } }
protected void setAttributes(FaceletContext ctx, Object instance) { super.setAttributes(ctx, instance); System.out.println("**** ajax wrapper"); AjaxWrapper component = (AjaxWrapper) instance;
protected void setAttributes(FaceletContext ctx, Object instance) { super.setAttributes(ctx, instance); AjaxWrapper component = (AjaxWrapper) instance; try { component.setName(this.name.getValue(ctx)); if (this.service!=null && this.service.isLiteral()) component.setService(this.service.getValue(ctx)); if (this.style!=null) component.setStyle(this.style.getValue(ctx)); if (this.script!=null) component.setScript(this.script.getValue(ctx)); if (this.template!=null) component.setTemplate(this.template.getValue(ctx)); if (this.selected!=null) component.setSelected(this.selected.getValue(ctx)); if (this.options!=null) component.setOptions(this.options.getValue(ctx)); if (this.args!=null) component.setArgs(this.args.getValue(ctx)); if (this.value!=null && this.value.isLiteral()) component.setValue(this.value.getValue(ctx)); } catch (Exception e) { throw new javax.faces.FacesException("Unable to process attributes of jMaki component: " + component.getId(),e); } } }