Package javax.faces.context

Examples of javax.faces.context.PartialViewContextFactory


        assertNotReleased();

        if (_partialViewContext == null)
        {
            //Get through factory finder
            PartialViewContextFactory factory = (PartialViewContextFactory)
                FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            // Put actual facesContext as param, not this - this can be wrapped
            _partialViewContext = factory.getPartialViewContext(FacesContext.getCurrentInstance());
        }
        return _partialViewContext;
    }
View Full Code Here


        assertNotReleased();

        if (_partialViewContext == null)
        {
            //Get through factory finder
            PartialViewContextFactory factory = (PartialViewContextFactory)
                FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            _partialViewContext = factory.getPartialViewContext(this);
        }
        return _partialViewContext;
    }
View Full Code Here

        assertNotReleased();

        if (_partialViewContext == null)
        {
            //Get through factory finder
            PartialViewContextFactory factory = (PartialViewContextFactory)
                FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            // Put actual facesContext as param, not this - this can be wrapped
            _partialViewContext = factory.getPartialViewContext(FacesContext.getCurrentInstance());
        }
        return _partialViewContext;
    }
View Full Code Here

        assertNotReleased();

        if (_partialViewContext == null)
        {
            //Get through factory finder
            PartialViewContextFactory factory = (PartialViewContextFactory)
                FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            // Put actual facesContext as param, not this - this can be wrapped
            _partialViewContext = factory.getPartialViewContext(FacesContext.getCurrentInstance());
        }
        return _partialViewContext;
    }
View Full Code Here

  @Override
  public PartialViewContext getPartialViewContext()
  {
    if (_partialViewContext == null)
    {
      PartialViewContextFactory f = (PartialViewContextFactory)
                      FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
      _partialViewContext = f.getPartialViewContext(this);
    }

    return _partialViewContext;
  }
View Full Code Here

    }

    public void testIsAjaxRequest()
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        PartialViewContextFactory factory = new MockPartialViewContextFactory();

        PartialViewContext pvContext = factory
                .getPartialViewContext(facesContext);
        assertFalse(pvContext.isAjaxRequest());

        externalContext.addRequestHeader("Faces-Request", "partial/ajax");

        pvContext = factory.getPartialViewContext(facesContext);
        assertTrue(pvContext.isAjaxRequest());
    }
View Full Code Here

    public PartialViewContext getPartialViewContext()
    {
        if (_partialViewContext == null)
        {
            //Get through factory finder
            PartialViewContextFactory factory = (PartialViewContextFactory) FactoryFinder
                    .getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            _partialViewContext = factory.getPartialViewContext(this);
        }
        return _partialViewContext;
    }
View Full Code Here

  public FlowFacesContext(RequestContext context, FacesContext wrapped) {
    this.context = context;
    this.wrapped = wrapped;
    this.externalContext = new FlowExternalContext(context, wrapped.getExternalContext());
    PartialViewContextFactory factory = JsfUtils.findFactory(PartialViewContextFactory.class);
    PartialViewContext partialViewContextDelegate = factory.getPartialViewContext(this);
    this.partialViewContext = new FlowPartialViewContext(partialViewContextDelegate);
    setCurrentInstance(this);
  }
View Full Code Here

    @Override
    public PartialViewContext getPartialViewContext()
    {
        if (this.partialViewContext == null)
        {
            PartialViewContextFactory partialViewContextFactory = (PartialViewContextFactory)
                    FactoryFinder.getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);
            this.partialViewContext = partialViewContextFactory.getPartialViewContext(this);
        }
        return this.partialViewContext;
    }
View Full Code Here

  }

  @Override
  public PartialViewContext getPartialViewContext() {
    if (partialViewContext == null) {
      PartialViewContextFactory partialViewContextFactory = (PartialViewContextFactory) FactoryFinder.
      getFactory(FactoryFinder.PARTIAL_VIEW_CONTEXT_FACTORY);

      partialViewContext = partialViewContextFactory.getPartialViewContext(this);
    }

    return partialViewContext;
  }
View Full Code Here

TOP

Related Classes of javax.faces.context.PartialViewContextFactory

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.