Package org.ajax4jsf.builder.config

Examples of org.ajax4jsf.builder.config.TagBean


      addResources(localBeanInstance, rendererBean, config);

      String componentName = null;
     
      TagBean tag = componentBean.getTag();
      if (tag != null) {
        componentName = tag.getName();
      }
     
      if (componentName == null) {
        TagHandlerBean taghandler = componentBean.getTaghandler();
        if (taghandler != null) {
View Full Code Here


    context.put("generator",this);
    Template template = getTemplate();
    // Put common properties
    for (Iterator<ComponentBean> iter = config.getComponents().iterator(); iter.hasNext();) {
      ComponentBean component = (ComponentBean) iter.next();
      TagBean tag = component.getTag();
      if ( null !=  tag && null !=tag.getClassname() && tag.isGenerate()) {
        info("Create tag class file "+component.getClassname());
        context.put("component", component);
        if (null != component.getRenderer()) {
          context.put("renderer", component.getRenderer());
        } else {
View Full Code Here

    context.put("generator",this);
    Template template = getTemplate();
    // Put common properties
    for (Iterator iter = config.getValidators().iterator(); iter.hasNext();) {
      ValidatorBean validator = (ValidatorBean) iter.next();
      TagBean tag = validator.getTag();
      if ( null !=  tag && null !=tag.getClassname() && tag.isGenerate()) {
        info("Create tag class file "+validator.getClassname());
        context.put("validator", validator);
       
        context.put("tag", validator.getTag());
        context.put("package", validator.getTag().getPackageName());
View Full Code Here

    VelocityContext context = new VelocityContext();
    Template template = getTemplate();
    // Put common properties
    List<ListenerBean> listeners = config.getListeners();
    for (ListenerBean bean : listeners) {
      TagBean tagHandler = bean.getTag();
      if ( null != tagHandler && tagHandler.isGenerate() && null !=tagHandler.getClassname()) {
        context.put("tag", tagHandler);
        context.put("listener", bean);

        String resultPath = tagHandler.getClassname().replace('.', '/')
        + ".java";
        File javaFile = new File(getDestDir(), resultPath);
        File javaDir = javaFile.getParentFile();
        if (!javaDir.exists()) {
          javaDir.mkdirs();
View Full Code Here

    Template template = getTemplate();
    // Put common properties
    for (Iterator iter = config.getComponents().iterator(); iter.hasNext();) {
      ComponentBean component = (ComponentBean) iter.next();
      TagBean tag = component.getTag();
      if ( null !=  tag && null !=tag.getClassname() && tag.isGenerate()
          && tag.getTest() != null) {
        info("Create test class file for tag " + component.getTag().getSimpleClassName());
        context.put("component", component);
        if (null != component.getRenderer()) {
          context.put("renderer", component.getRenderer());
        } else {
View Full Code Here

    context.put("generator",this);
    Template template = getTemplate();
    // Put common properties
    for (Iterator iter = config.getConverters().iterator(); iter.hasNext();) {
      ConverterBean converter = (ConverterBean) iter.next();
      TagBean tag = converter.getTag();
      if ( null !=  tag && null !=tag.getClassname() && tag.isGenerate()) {
        info("Create tag class file "+converter.getClassname());
        context.put("converter", converter);
       
        context.put("tag", converter.getTag());
        context.put("package", converter.getTag().getPackageName());
View Full Code Here

TOP

Related Classes of org.ajax4jsf.builder.config.TagBean

Copyright © 2018 www.massapicom. 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.