Class JKPanelGridRenderer

java.lang.Object
jakarta.faces.render.Renderer
org.primefaces.renderkit.CoreRenderer
org.primefaces.component.panelgrid.PanelGridRenderer
com.jk.web.faces.renderers.JKPanelGridRenderer

public class JKPanelGridRenderer extends org.primefaces.component.panelgrid.PanelGridRenderer
This class is a renderer that is used for rendering a PrimeFaces PanelGrid component.

This renderer extends the standard PrimeFaces `PanelGridRenderer` to fix a bug related to non-rendered components that caused the final tr element not to be printed in the HTML output.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Field Summary

    Fields inherited from class org.primefaces.component.panelgrid.PanelGridRenderer

    LAYOUT_FLEX, LAYOUT_GRID, LAYOUT_TABULAR

    Fields inherited from class jakarta.faces.render.Renderer

    PASSTHROUGH_RENDERER_LOCALNAME_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    This method constructs a new JKPanelGridRenderer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encodeDynamicBody(jakarta.faces.context.FacesContext context, org.primefaces.component.panelgrid.PanelGrid grid, int columns)
    This method is used for encoding the dynamic body of the PanelGrid.

    Methods inherited from class org.primefaces.component.panelgrid.PanelGridRenderer

    encodeChildren, encodeEnd, encodeFlexGridBody, encodeGridBody, encodeGridFacet, encodeGridLayout, encodeRow, encodeStaticBody, encodeTableBody, encodeTableFacet, encodeTableLayout, getRendersChildren

    Methods inherited from class org.primefaces.renderkit.CoreRenderer

    buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId

    Methods inherited from class jakarta.faces.render.Renderer

    convertClientId, decode, encodeBegin, getConvertedValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JKPanelGridRenderer

      public JKPanelGridRenderer()
      This method constructs a new JKPanelGridRenderer.
  • Method Details

    • encodeDynamicBody

      public void encodeDynamicBody(jakarta.faces.context.FacesContext context, org.primefaces.component.panelgrid.PanelGrid grid, int columns) throws IOException
      This method is used for encoding the dynamic body of the PanelGrid.
      Overrides:
      encodeDynamicBody in class org.primefaces.component.panelgrid.PanelGridRenderer
      Parameters:
      context - Specifies the FacesContext for the current request.
      grid - Specifies the PanelGrid component to be rendered.
      columns - Specifies the number of columns in the grid.
      Throws:
      IOException - if an I/O exception has occurred.