Examples of BundleMapWrapper


Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

    if (UIComponentTag.isValueReference(basename)) {
      bundleBaseName = (String) context.getApplication().createValueBinding(basename).getValue(context);
    } else {
      bundleBaseName = basename;
    }
    Map toStore = new BundleMapWrapper(bundleBaseName);
    // TODO find a better way
    context.getExternalContext().getSessionMap().put(var, toStore);
//        .getRequestMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  public int doStartTag() throws JspException {

    FacesContext facesContext = FacesContext.getCurrentInstance();
    final ELContext elContext = facesContext.getELContext();

    Map toStore = new BundleMapWrapper((String) basename.getValue(elContext));
    // (session scope is needed to support ajax requests)
    facesContext.getExternalContext().getSessionMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  }

  public void apply(FaceletContext faceletContext, UIComponent parent)
      throws IOException, FacesException, ELException {
    String name = basename.getValue(faceletContext);
    BundleMapWrapper map = new BundleMapWrapper(name);
    FacesContext facesContext = faceletContext.getFacesContext();
    // TODO find a better way
    facesContext.getExternalContext().
        getSessionMap().put(var.getValue(faceletContext), map);
        //getRequestMap().put(var.getValue(faceletContext), map);
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  private String basename;

  private String var;

  public int doStartTag() throws JspException {
    Map toStore = new BundleMapWrapper(basename);
    // TODO find a better way
    FacesContext.getCurrentInstance().getExternalContext()
        .getSessionMap().put(var, toStore);
//        .getRequestMap().put(var, toStore);
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  }

  public void apply(FaceletContext faceletContext, UIComponent parent)
      throws IOException, FacesException, ELException {
    String name = basename.getValue(faceletContext);
    BundleMapWrapper map = new BundleMapWrapper(name);
    FacesContext facesContext = faceletContext.getFacesContext();
    // TODO find a better way
    facesContext.getExternalContext().
        getSessionMap().put(var.getValue(faceletContext), map);
        //getRequestMap().put(var.getValue(faceletContext), map);
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

    if (UIComponentTag.isValueReference(basename)) {
      bundleBaseName = (String) context.getApplication().createValueBinding(basename).getValue(context);
    } else {
      bundleBaseName = basename;
    }
    Map toStore = new BundleMapWrapper(bundleBaseName);
    // TODO find a better way
    context.getExternalContext().getSessionMap().put(var, toStore);
//        .getRequestMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  public int doStartTag() throws JspException {

    FacesContext context = FacesContext.getCurrentInstance();

    Map toStore = new BundleMapWrapper(getBasenameValue());
    // (session scope is needed to support ajax requests)
    context.getExternalContext().getSessionMap().put(getVarValue(), toStore);

    return EVAL_BODY_INCLUDE;
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

    if (UIComponentTag.isValueReference(basename)) {
      bundleBaseName = (String) context.getApplication().createValueBinding(basename).getValue(context);
    } else {
      bundleBaseName = basename;
    }
    Map toStore = new BundleMapWrapper(bundleBaseName);
    // TODO find a better way
    context.getExternalContext().getSessionMap().put(var, toStore);
//        .getRequestMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  private String basename;

  private String var;

  public int doStartTag() throws JspException {
    Map toStore = new BundleMapWrapper(basename);
    FacesContext.getCurrentInstance().getExternalContext()
        .getSessionMap().put(var, toStore);
//        .getRequestMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
View Full Code Here

Examples of org.apache.myfaces.tobago.util.BundleMapWrapper

  public int doStartTag() throws JspException {

    final FacesContext facesContext = FacesContext.getCurrentInstance();
    final ELContext elContext = facesContext.getELContext();

    final Map toStore = new BundleMapWrapper((String) basename.getValue(elContext));
    // (session scope is needed to support ajax requests)
    facesContext.getExternalContext().getSessionMap().put(var, toStore);

    return EVAL_BODY_INCLUDE;
  }
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.