Package org.ajax4jsf.renderkit.compiler

Examples of org.ajax4jsf.renderkit.compiler.TemplateContext


        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, topLevel);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, topLevel);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here


        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, topLevel);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, topLevel);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here

      template = getTemplate(base, resourceContext);
    } catch (IOException e) {
      return null;
    }
    UIComponent component = (UIComponent) (data instanceof UIComponent ? data:null);
    TemplateContext templateContext = new TemplateContext(null,context,component);
    Object value = template.getValue(templateContext);
    if(null == value){
      int hashCode = SkinFactory.getInstance().getSkin(context).hashCode(context);
      value = ByteBuffer.allocate(4).putInt(hashCode).array();
    }
View Full Code Here

        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, topLevel);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, topLevel);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here

      template = getTemplate(base, resourceContext);
    } catch (IOException e) {
      return null;
    }
    UIComponent component = (UIComponent) (data instanceof UIComponent ? data:null);
    TemplateContext templateContext = new TemplateContext(null,context,component);
    Object value = template.getValue(templateContext);
    if(null == value){
      int hashCode = SkinFactory.getInstance().getSkin(context).hashCode(context);
      value = ByteBuffer.allocate(4).putInt(hashCode).array();
    }
View Full Code Here

      template = getTemplate(base, resourceContext);
    } catch (IOException e) {
      return null;
    }
    UIComponent component = (UIComponent) (data instanceof UIComponent ? data:null);
    TemplateContext templateContext = new TemplateContext(null,context,component);
    Object value = template.getValue(templateContext);
    if(null == value){
        SkinFactory skinFactory = SkinFactory.getInstance();
        int hashCode = skinFactory.getSkin(context).hashCode(context);
        int baseHashCode = skinFactory.getBaseSkin(context).hashCode(context);
View Full Code Here

        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, topLevel);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, topLevel);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here

        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, color);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, color);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here

        source = getResource(PanelMenuIconDisc.class.getName()).getUri(context, topLevel);
      } else if (iconType.equals("grid")) {
        source = getResource(PanelMenuIconGrid.class.getName()).getUri(context, topLevel);
      } else {
        //TODO by nick - dima - TemplateContext is deprecated and shouldn't be used
        source = (String)getUtils().encodeResourceURL(new  TemplateContext(this,context,component),iconType);
      }
    }
    return source;
  }
View Full Code Here

TOP

Related Classes of org.ajax4jsf.renderkit.compiler.TemplateContext

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.