Class RendererUtils

java.lang.Object
org.primefaces.renderkit.RendererUtils

public class RendererUtils extends Object
  • Field Details

  • Method Details

    • encodeCheckbox

      public static void encodeCheckbox(javax.faces.context.FacesContext context, boolean checked) throws IOException
      Throws:
      IOException
    • encodeCheckbox

      public static void encodeCheckbox(javax.faces.context.FacesContext context, boolean checked, boolean partialSelected, boolean disabled, String styleClass) throws IOException
      Throws:
      IOException
    • getRenderKit

      public static javax.faces.render.RenderKit getRenderKit(javax.faces.context.FacesContext context)
      Duplicate code from OmniFaces project under apache license: https://github.com/omnifaces/omnifaces/blob/master/license.txt Returns the RenderKit associated with the "current" view ID or view handler.

      The current view ID is the view ID that's set for the view root that's associated with the current faces context. Or if there is none, then the current view handler will be assumed, which is the view handler that's associated with the requested view.

      Returns:
      The RenderKit associated with the "current" view ID or view handler.
      Throws:
      NullPointerException - When faces context is unavailable.
      See Also:
    • encodeScriptTypeIfNecessary

      public static void encodeScriptTypeIfNecessary(javax.faces.context.FacesContext context) throws IOException
      HTML5 Doctype does not require the script type on JavaScript files.
      Parameters:
      context - the FacesContext
      Throws:
      IOException - if any error occurs