Package javax.faces.view.facelets

Examples of javax.faces.view.facelets.MetaRuleset.addRule()


    }

    public MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset metaRuleset = wrappedHandlerDelegate.createMetaRuleset(type);
        for (MetaRule metaRule : metaRules) {
            metaRuleset.addRule(metaRule);
        }
        return metaRuleset;
    }

    public void applyAttachedObject(FacesContext context, UIComponent parent) {
View Full Code Here


        super(config);
    }

    protected MetaRuleset createMetaRuleset(Class type) {
        MetaRuleset m = super.createMetaRuleset(type);
        m.addRule(META_RULE);
        return m;
    }

    static class AjaxPollHandlerMetaRule extends MetaRule {
        public Metadata applyRule(String name, TagAttribute attribute, MetadataTarget meta) {
View Full Code Here

 
  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
   
    metaRuleset.addRule(new MethodRule("closeListener", null, new Class[]{CloseEvent.class}));
    metaRuleset.addRule(new MethodRule("toggleListener", null, new Class[]{ToggleEvent.class}));
   
    return metaRuleset; 
  }
}
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
   
    metaRuleset.addRule(new MethodRule("closeListener", null, new Class[]{CloseEvent.class}));
    metaRuleset.addRule(new MethodRule("toggleListener", null, new Class[]{ToggleEvent.class}));
   
    return metaRuleset; 
  }
}
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] dateSelectEventClass = new Class[]{DateSelectEvent.class};
   
    metaRuleset.addRule(new MethodRule("selectListener", null, dateSelectEventClass));
   
    return metaRuleset;
  }
}
View Full Code Here

    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] selectEventClasses = new Class[]{NodeSelectEvent.class};
    Class[] expandEventClasses = new Class[]{NodeExpandEvent.class};
    Class[] collapseEventClasses = new Class[]{NodeCollapseEvent.class};
   
    metaRuleset.addRule(new MethodRule("nodeSelectListener", List.class, selectEventClasses));
    metaRuleset.addRule(new MethodRule("nodeExpandListener", List.class, expandEventClasses));
    metaRuleset.addRule(new MethodRule("nodeCollapseListener", List.class, collapseEventClasses));
   
    return metaRuleset;
  }
View Full Code Here

    Class[] selectEventClasses = new Class[]{NodeSelectEvent.class};
    Class[] expandEventClasses = new Class[]{NodeExpandEvent.class};
    Class[] collapseEventClasses = new Class[]{NodeCollapseEvent.class};
   
    metaRuleset.addRule(new MethodRule("nodeSelectListener", List.class, selectEventClasses));
    metaRuleset.addRule(new MethodRule("nodeExpandListener", List.class, expandEventClasses));
    metaRuleset.addRule(new MethodRule("nodeCollapseListener", List.class, collapseEventClasses));
   
    return metaRuleset;
  }
}
View Full Code Here

    Class[] expandEventClasses = new Class[]{NodeExpandEvent.class};
    Class[] collapseEventClasses = new Class[]{NodeCollapseEvent.class};
   
    metaRuleset.addRule(new MethodRule("nodeSelectListener", List.class, selectEventClasses));
    metaRuleset.addRule(new MethodRule("nodeExpandListener", List.class, expandEventClasses));
    metaRuleset.addRule(new MethodRule("nodeCollapseListener", List.class, collapseEventClasses));
   
    return metaRuleset;
  }
}
View Full Code Here

  @SuppressWarnings("unchecked")
  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] eventClasses = new Class[]{CloseEvent.class};
   
    metaRuleset.addRule(new MethodRule("closeListener", null, eventClasses));
   
    return metaRuleset; 
  }
}
View Full Code Here

  protected MetaRuleset createMetaRuleset(Class type) {
    MetaRuleset metaRuleset = super.createMetaRuleset(type);
    Class[] paramList = new Class[]{String.class, String[].class};
   
    MetaRule metaRule = new MethodRule("commandHandler", String.class, paramList);
    metaRuleset.addRule(metaRule);
   
    return metaRuleset;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.