Package org.apache.myfaces.trinidad.context

Examples of org.apache.myfaces.trinidad.context.ComponentContextChange


    ComponentContextManager compCtxMgr = null;
    if (!_inSuspendOrResume)
    {
      compCtxMgr = RequestContext.getCurrentInstance().getComponentContextManager();
      ComponentContextChange change = compCtxMgr.peekChange();
      if (change instanceof CollectionComponentChange &&
          ((CollectionComponentChange)change)._component == this)
      {
        // Remove the component context change if one was added
        compCtxMgr.popChange();
View Full Code Here


    ComponentContextManager compCtxMgr = null;
    if (!_inSuspendOrResume)
    {
      compCtxMgr = RequestContext.getCurrentInstance().getComponentContextManager();
      ComponentContextChange change = compCtxMgr.peekChange();
      if (change instanceof CollectionComponentChange &&
          ((CollectionComponentChange)change)._component == this)
      {
        // Remove the component context change if one was added
        compCtxMgr.popChange();
View Full Code Here

    try
    {
      ComponentContextManager compCtxMgr =
        RequestContext.getCurrentInstance().getComponentContextManager();
      ComponentContextChange change = compCtxMgr.peekChange();

      if (change instanceof CollectionComponentChange &&
          ((CollectionComponentChange)change)._component == this)
      {
        // Remove the component context change if one was added
View Full Code Here

      return;
    }

    ComponentContextManager compCtxMgr =
      RequestContext.getCurrentInstance().getComponentContextManager();
    ComponentContextChange change = compCtxMgr.peekChange();

    if (!(change instanceof CollectionComponentChange) ||
        ((CollectionComponentChange)change)._component != this)
    {
      _LOG.warning("COLLECTION_NOT_IN_CONTEXT", getId());
View Full Code Here

      // Next, remove the context change that was added in setupVisitingContext:
      ComponentContextManager componentContextManager =
        RequestContext.getCurrentInstance().getComponentContextManager();

      ComponentContextChange contextChange = componentContextManager.popChange();

      // Validate the state of the context change stack:
      if (!(contextChange instanceof VisitDebugContextChange) ||
          ((VisitDebugContextChange)contextChange)._component != this)
      {
View Full Code Here

      // Next, remove the context change that was added in setupChildrenVisitingContext:
      ComponentContextManager componentContextManager =
        RequestContext.getCurrentInstance().getComponentContextManager();

      ComponentContextChange contextChange = componentContextManager.popChange();
      // Validate the state of the context change stack:
      if (!(contextChange instanceof VisitChildrenDebugContextChange) ||
          ((VisitChildrenDebugContextChange)contextChange)._component != this)
      {
        throw new IllegalStateException(_getInvalidContextChangeMessage(
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.context.ComponentContextChange

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.