congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
FacesLifecycle.getPhaseId
Code IndexAdd Tabnine to your IDE (free)

How to use
getPhaseId
method
in
org.jboss.seam.contexts.FacesLifecycle

Best Java code snippets using org.jboss.seam.contexts.FacesLifecycle.getPhaseId (Showing top 7 results out of 1,395)

origin: org.jboss.seam/jboss-seam

private static boolean isInPhase()
{
 return FacesLifecycle.getPhaseId()!=null;
}
origin: org.jboss.seam/jboss-seam

@Override
protected boolean isFacesContextActive()
{ 
 return FacesContext.getCurrentInstance() != null && FacesLifecycle.getPhaseId() != null;
}
origin: org.jboss.seam/jboss-seam

private static PhaseId getPhaseId()
{
 PhaseId phaseId = FacesLifecycle.getPhaseId();
 if (phaseId==null)
 {
   throw new IllegalStateException("No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed)");
 }
 return phaseId;
}
origin: org.jboss.seam/jboss-seam

@Override
protected void storeConversationToViewRootIfNecessary()
{
 FacesContext facesContext = FacesContext.getCurrentInstance();
 if ( facesContext!=null && (FacesLifecycle.getPhaseId()==PhaseId.RENDER_RESPONSE || FacesLifecycle.getPhaseId()==PhaseId.RESTORE_VIEW) )
 {
   FacesPage.instance().storeConversation();
 }
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-ui-select2

/**
 * @deprecated since 7.10: JSF resources mechanism allows to detect resources already included in the page natively.
 */
@Deprecated
public boolean mustIncludeResources() {
  FacesContext facesContext = FacesContext.getCurrentInstance();
  if (facesContext != null) {
    PhaseId currentPhaseId = FacesLifecycle.getPhaseId();
    if (currentPhaseId.equals(PhaseId.RENDER_RESPONSE)) {
      HttpServletRequest request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
      if (request.getAttribute(SELECT2_RESOURCES_MARKER) != null) {
        return false;
      } else {
        request.setAttribute(SELECT2_RESOURCES_MARKER, "done");
        return true;
      }
    }
  }
  return false;
}
origin: org.jboss.seam/jboss-seam

private void storePageflowToViewRootIfNecessary()
{
 FacesContext facesContext = FacesContext.getCurrentInstance();
 if ( facesContext!=null && FacesLifecycle.getPhaseId()==PhaseId.RENDER_RESPONSE )
 {
   FacesPage.instance().storePageflow();
 }
}
origin: org.jboss.seam/jboss-seam

if (facesContext != null)
  if (FacesLifecycle.getPhaseId() == RESTORE_VIEW )
org.jboss.seam.contextsFacesLifecyclegetPhaseId

Popular methods of FacesLifecycle

  • beginExceptionRecovery
  • endRequest
  • setPhaseId
  • beginRequest
  • clearPhaseId
  • getRequestPath
  • invalidateSession
    Invalidate the session, no matter what kind of session it is (portlet or servlet). Why is this metho
  • resumeConversation
  • resumePage
  • saveRequestPath
    with rewriting, the filter chain might not have access to the post-rewrite request information. we'l

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Reference (javax.naming)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now