Examples of ChangeManager


Examples of org.apache.myfaces.trinidad.change.ChangeManager

    }
   
    ComponentChange ra = new ReorderChildrenComponentChange(reorderedChildIdList);

    FacesContext fc = FacesContext.getCurrentInstance();
    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    apm.addComponentChange(fc, uic, ra);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

      if (facets.get(removableFacetNames[i]) != null)
      {
        facets.remove(removableFacetNames[i]);
        ComponentChange rfa = new RemoveFacetComponentChange(removableFacetNames[i]);
        FacesContext fc = FacesContext.getCurrentInstance();
        ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
        apm.addComponentChange(fc, uic, rfa);
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

    {
      List<UIComponent> children = uic.getChildren();
      children.remove(removableChild);
      ComponentChange rca = new RemoveChildComponentChange(removableChildId);
      FacesContext fc = FacesContext.getCurrentInstance();
      ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
      apm.addComponentChange(fc, uic, rca);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

    String attribName,
    Object attribValue
    )
  {
    FacesContext fc = FacesContext.getCurrentInstance();
    ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
    ComponentChange aa = new AttributeComponentChange(attribName, attribValue);
    apm.addComponentChange(fc, uic, aa);
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

      {
        ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
        // Used by SessionChangeManager to confirm that the state was not restored.
        ec.getRequestMap().put(DOCUMENT_CREATED_KEY, Boolean.TRUE);
      }
      ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
      cm.applyComponentChangesForCurrentView(FacesContext.getCurrentInstance());
    }
    return super.doEndTag();
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

  @Override
  public ChangeManager getChangeManager()
  {
    FacesContext context = __getFacesContext();
    Map<String, Object> appMap = context.getExternalContext().getApplicationMap();
    ChangeManager changeManager = _getHeldProperty(appMap, _CHANGE_MANAGER_KEY, ChangeManager.class);

    if (changeManager == null)
    {
      changeManager = _createChangeManager();
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

   
    // Apply changes once we have a stable UIComponent subtree is completely
    //  created. End of document tag is a best bet.
    if (component instanceof UIXDocument)
    {
      ChangeManager cm = RequestContext.getCurrentInstance().getChangeManager();
      cm.applyComponentChangesForCurrentView(FacesContext.getCurrentInstance());
    }
    return super.doEndTag();
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

  @Override
  public ChangeManager getChangeManager()
  {
    FacesContext context = __getFacesContext();
    Map<String, Object> appMap = context.getExternalContext().getApplicationMap();
    ChangeManager changeManager = _getHeldProperty(appMap, _CHANGE_MANAGER_KEY, ChangeManager.class);
   
    if (changeManager == null)
    {
      changeManager = _createChangeManager();
     
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

  @Override
  public ChangeManager getChangeManager()
  {
    FacesContext context = __getFacesContext();
    Map<String, Object> appMap = context.getExternalContext().getApplicationMap();
    ChangeManager changeManager = (ChangeManager)appMap.get(_CHANGE_MANAGER_KEY);

    if (changeManager == null)
    {
      changeManager = _createChangeManager();
      appMap.put(_CHANGE_MANAGER_KEY, changeManager);
View Full Code Here

Examples of org.apache.myfaces.trinidad.change.ChangeManager

  @Override
  public ChangeManager getChangeManager()
  {
    FacesContext context = __getFacesContext();
    Map<String, Object> appMap = context.getExternalContext().getApplicationMap();
    ChangeManager changeManager = _getHeldProperty(appMap, _CHANGE_MANAGER_KEY, ChangeManager.class);

    if (changeManager == null)
    {
      changeManager = _createChangeManager();
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.