* @see com.sun.faces.facelets.tag.composite.AttachedObjectTargetHandler#newAttachedObjectTargetImpl()
*/
@Override
AttachedObjectTargetImpl newAttachedObjectTargetImpl() {
BehaviorHolderAttachedObjectTargetImpl target = new BehaviorHolderAttachedObjectTargetImpl();
TagAttribute event = this.getAttribute("event");
if (null != event) {
target.setEvent(event.getValue());
}
TagAttribute defaultAttr = this.getAttribute("default");
if (null != defaultAttr) {
FacesContext facesContext = FacesContext.getCurrentInstance();
FaceletContext ctx = (FaceletContext) facesContext.getAttributes()
.get(FaceletContext.FACELET_CONTEXT_KEY);
target.setDefaultEvent(defaultAttr.getBoolean(ctx));
}
return target;
}