Tabnine Logo
FacesWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
FacesWrapper
in
javax.faces

Best Java code snippets using javax.faces.FacesWrapper (Showing top 20 results out of 315)

origin: primefaces/primefaces

public static <T extends Renderer> T getUnwrappedRenderer(FacesContext context, String family, String rendererType, Class<T> rendererClass) {
  Renderer renderer = context.getRenderKit().getRenderer(family, rendererType);
  while (renderer instanceof FacesWrapper) {
    renderer = (Renderer) ((FacesWrapper) renderer).getWrapped();
  }
  return (T) renderer;
}
origin: org.apache.myfaces.core/myfaces-impl

public static boolean isMyFacesResponseStateManager(ResponseStateManager rsm)
{
  if (rsm instanceof MyfacesResponseStateManager)
  {
    return true;
  }
  else
  {
    ResponseStateManager rsm1 = rsm;
    while (rsm1 != null)
    {
      if (rsm1 instanceof MyfacesResponseStateManager)
      {
        return true;
      }
      if (rsm1 instanceof FacesWrapper)
      {
        rsm1 = ((FacesWrapper<? extends ResponseStateManager>) rsm1).getWrapped();
      }
      else
      {
        rsm1 = null;
      }
    }
    return false;
  }
}

origin: org.apache.myfaces.core/myfaces-impl

  public static MyfacesResponseStateManager getMyFacesResponseStateManager(ResponseStateManager rsm)
  {
    if (rsm instanceof MyfacesResponseStateManager)
    {
      return (MyfacesResponseStateManager) rsm;
    }
    else
    {
      ResponseStateManager rsm1 = rsm;
      while (rsm1 != null)
      {
        if (rsm1 instanceof MyfacesResponseStateManager)
        {
          return (MyfacesResponseStateManager) rsm1;
        }
        if (rsm1 instanceof FacesWrapper)
        {
          rsm1 = ((FacesWrapper<? extends ResponseStateManager>) rsm1).getWrapped();
        }
        else
        {
          rsm1 = null;
        }
      }
      return null;
    }
  }
}
origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

  public static MyfacesResponseStateManager getMyFacesResponseStateManager(ResponseStateManager rsm)
  {
    if (rsm instanceof MyfacesResponseStateManager)
    {
      return (MyfacesResponseStateManager) rsm;
    }
    else
    {
      ResponseStateManager rsm1 = rsm;
      while (rsm1 != null)
      {
        if (rsm1 instanceof MyfacesResponseStateManager)
        {
          return (MyfacesResponseStateManager) rsm1;
        }
        if (rsm1 instanceof FacesWrapper)
        {
          rsm1 = ((FacesWrapper<? extends ResponseStateManager>) rsm1).getWrapped();
        }
        else
        {
          rsm1 = null;
        }
      }
      return null;
    }
  }
}
origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

public static boolean isMyFacesResponseStateManager(ResponseStateManager rsm)
{
  if (rsm instanceof MyfacesResponseStateManager)
  {
    return true;
  }
  else
  {
    ResponseStateManager rsm1 = rsm;
    while (rsm1 != null)
    {
      if (rsm1 instanceof MyfacesResponseStateManager)
      {
        return true;
      }
      if (rsm1 instanceof FacesWrapper)
      {
        rsm1 = ((FacesWrapper<? extends ResponseStateManager>) rsm1).getWrapped();
      }
      else
      {
        rsm1 = null;
      }
    }
    return false;
  }
}
 
origin: org.apache.myfaces.core/myfaces-impl

private Method getPurgeMethod(Object instance, String methodName, Class<?>[] parameters)
{
  while (instance != null)
  {
    Method purgeMethod = null;
    try
    {
      purgeMethod = instance.getClass().getMethod(methodName, parameters);
    }
    catch (NoSuchMethodException e)
    {
      // No op, it is expected to found this case, so in that case
      // look for the parent to do the purge
    }
    if (purgeMethod != null)
    {
      return purgeMethod;
    }
    if (instance instanceof FacesWrapper)
    {
      instance = ((FacesWrapper)instance).getWrapped();
    }
  }
  return null;
}
origin: org.apache.myfaces.shared/myfaces-shared-core

  public static String getContractName(Resource resource)
  {
    while (resource != null)
    {
      if (resource instanceof ContractResource)
      {
        return ((ContractResource)resource).getContractName();
      }
      else if (resource instanceof FacesWrapper)
      {
        resource = (Resource)((FacesWrapper)resource).getWrapped();
      }
      else
      {
        resource = null;
      }
    }
    return null;
  }
}
origin: org.apache.myfaces.core/myfaces-impl

  public static String getContractName(Resource resource)
  {
    while (resource != null)
    {
      if (resource instanceof ContractResource)
      {
        return ((ContractResource)resource).getContractName();
      }
      else if (resource instanceof FacesWrapper)
      {
        resource = (Resource)((FacesWrapper)resource).getWrapped();
      }
      else
      {
        resource = null;
      }
    }
    return null;
  }
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

@SuppressWarnings("unchecked")
private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression)
{
  if (originalValueExpression instanceof LocationValueExpression)
  {
    return new LocationMethodExpression(
        ((LocationValueExpression)originalValueExpression).getLocation(), 
        reWrapMethodExpression(createdMethodExpression, 
            ((LocationValueExpression)originalValueExpression).getWrapped()));
  }
  else if (originalValueExpression instanceof FacesWrapper && 
      ((FacesWrapper)originalValueExpression).getWrapped() instanceof ValueExpression)
  {
    return reWrapMethodExpression(createdMethodExpression, 
        (ValueExpression) ((FacesWrapper)originalValueExpression).getWrapped());
  }
  else
  {
    return createdMethodExpression;
  }
}

origin: org.primefaces/primefaces

public static <T extends Renderer> T getUnwrappedRenderer(FacesContext context, String family, String rendererType, Class<T> rendererClass) {
  Renderer renderer = context.getRenderKit().getRenderer(family, rendererType);
  while (renderer instanceof FacesWrapper) {
    renderer = (Renderer) ((FacesWrapper) renderer).getWrapped();
  }
  return (T) renderer;
}
origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

@SuppressWarnings("unchecked")
private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression, ValueExpression originalValueExpression)
{
  if (originalValueExpression instanceof LocationValueExpression)
  {
    return new LocationMethodExpression(
        ((LocationValueExpression)originalValueExpression).getLocation(), 
        reWrapMethodExpression(createdMethodExpression, 
            ((LocationValueExpression)originalValueExpression).getWrapped()));
  }
  else if (originalValueExpression instanceof FacesWrapper && 
      ((FacesWrapper)originalValueExpression).getWrapped() instanceof ValueExpression)
  {
    return reWrapMethodExpression(createdMethodExpression, 
        (ValueExpression) ((FacesWrapper)originalValueExpression).getWrapped());
  }
  else
  {
    return createdMethodExpression;
  }
}

origin: org.apache.myfaces.core/myfaces-impl

flash = ((FacesWrapper<? extends Flash>) flash).getWrapped();
origin: org.apache.myfaces.core/myfaces-impl

handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
origin: org.apache.myfaces.core/myfaces-impl

if (validatorIdAvailable && entry.getKey().equals(validatorId))
  if (((ValidatorHandler)((FacesWrapper<ValidatorHandler>)entry.getValue()).getWrapped())
      .isDisabled(ctx))
origin: org.apache.myfaces.core/myfaces-impl

flowHandler = ((FacesWrapper<FlowHandler>)flowHandler).getWrapped();
origin: org.apache.myfaces.core.internal/myfaces-shaded-impl

handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
origin: org.apache.myfaces.core/myfaces-impl

@SuppressWarnings("unchecked")
private MethodExpression reWrapMethodExpression(MethodExpression createdMethodExpression,
                        ValueExpression originalValueExpression)
{
  if (originalValueExpression instanceof LocationValueExpression)
  {
    return new LocationMethodExpression(
        ((LocationValueExpression) originalValueExpression).getLocation(),
        reWrapMethodExpression(createdMethodExpression,
            ((LocationValueExpression) originalValueExpression).getWrapped()),
        ((LocationValueExpression) originalValueExpression).getCCLevel());
  }
  else if (originalValueExpression instanceof FacesWrapper &&
      ((FacesWrapper) originalValueExpression).getWrapped() instanceof ValueExpression)
  {
    return reWrapMethodExpression(createdMethodExpression,
        (ValueExpression) ((FacesWrapper) originalValueExpression).getWrapped());
  }
  else
  {
    return createdMethodExpression;
  }
}
origin: org.apache.myfaces.core/myfaces-shaded-impl

handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
handler = ((FacesWrapper<? extends ComponentHandler>)handler).getWrapped();
origin: org.apache.myfaces.core/myfaces-impl

((FacesWrapper<Validator>)validator).getWrapped());
origin: org.apache.myfaces.shared/myfaces-shared-core

flash = ((FacesWrapper<? extends Flash>) flash).getWrapped();
javax.facesFacesWrapper

Javadoc

Any wrapper class in JSF that must provide access to the object it wraps must implement this interface.

The expected usage of all subclasses is to provide a constructor that takes an instance of type T, which sets the instance variable that is returned from the getWrappedmethod.

Most used methods

  • getWrapped
    A class that implements this interface uses this method to return an instance of the class being wra

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • JLabel (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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