Package org.apache.myfaces.trinidad.change

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


  @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


  @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

   
    if (imageFragment != null)
    {
      DocumentChange change = new AddChildDocumentChange(imageFragment);
     
      ChangeManager apm = RequestContext.getCurrentInstance().getChangeManager();
     
      apm.addDocumentChange(fc, uic, change);
    }
  }
View Full Code Here

      "http://homepage.mac.com/awiner/.Pictures/WindyHill/PaleSwallowtail.jpg")
    uic.getChildren().add(newChild);

    ComponentChange aca = new AddChildComponentChange(newChild);

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

      "Customer Company - Menlo Park");
    uic.getFacets().put("brandingAppContextual", newFacetComponent);

    ComponentChange afa = new SetFacetChildComponentChange("brandingAppContextual", newFacetComponent);

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

    }
   
    ComponentChange ra = new ReorderChildrenComponentChange(reorderedChildIdList);

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

      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

    {
      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

    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

      {
        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

TOP

Related Classes of org.apache.myfaces.trinidad.change.ChangeManager$AttributeConverter

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.