Class DynaFormRenderer
java.lang.Object
javax.faces.render.Renderer
org.primefaces.renderkit.CoreRenderer
org.primefaces.extensions.component.dynaform.DynaFormRenderer
public class DynaFormRenderer
extends org.primefaces.renderkit.CoreRenderer
Renderer for
DynaForm
component.- Since:
- 0.5
- Version:
- $Revision$
- Author:
- Oleg Varaksin / last modified by $Author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class javax.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
encodeBody
(javax.faces.context.FacesContext fc, DynaForm dynaForm, List<DynaFormRow> dynaFormRows, boolean extended, boolean visible) void
encodeChildren
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) void
encodeEnd
(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component) protected void
encodeFacet
(javax.faces.context.FacesContext fc, DynaForm dynaForm, String name, int totalColspan, String styleClass, String role, boolean extended, boolean visible) protected void
encodeMarkup
(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel dynaFormModel, boolean nestedGrid) protected void
encodeScript
(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel dynaFormModel) protected void
encodeStatic
(javax.faces.context.FacesContext fc, DynaForm dynaForm, String name, int totalColspan, String styleClass) boolean
protected int
getTotalColspan
(DynaFormModel dynaFormModel) protected void
preRenderLabel
(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel model) protected void
renderControl
(javax.faces.context.FacesContext fc, DynaForm dynaForm, javax.faces.context.ResponseWriter writer, String controlCommonClass, DynaFormControl element, String styleClass) protected void
renderLabel
(javax.faces.context.ResponseWriter writer, String labelCommonClass, DynaFormLabel element, String styleClass) protected void
renderNestedModel
(javax.faces.context.FacesContext fc, DynaForm dynaForm, javax.faces.context.ResponseWriter writer, DynaFormModelElement element, String styleClass) Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, encodeIndexedId, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getIconOnlyButtonText, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, logDevelopmentWarning, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderAttribute, renderButtonValue, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderRTLDirection, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, getConvertedValue
-
Field Details
-
FACET_HEADER_REGULAR
- See Also:
-
FACET_FOOTER_REGULAR
- See Also:
-
FACET_HEADER_EXTENDED
- See Also:
-
FACET_FOOTER_EXTENDED
- See Also:
-
FACET_BUTTON_BAR
- See Also:
-
FACET_STATIC_TOP
- See Also:
-
FACET_STATIC_BOTTOM
- See Also:
-
GRID_CLASS
- See Also:
-
NESTED_GRID_CLASS
- See Also:
-
CELL_CLASS
- See Also:
-
CELL_FIRST_CLASS
- See Also:
-
CELL_LAST_CLASS
- See Also:
-
LABEL_CLASS
- See Also:
-
LABEL_INVALID_CLASS
- See Also:
-
LABEL_INDICATOR_CLASS
- See Also:
-
LABEL_CONTROL_TYPE_CLASS_FORMAT
- See Also:
-
FACET_BUTTON_BAR_TOP_CLASS
- See Also:
-
FACET_BUTTON_BAR_BOTTOM_CLASS
- See Also:
-
FACET_HEADER_CLASS
- See Also:
-
FACET_FOOTER_CLASS
- See Also:
-
FACET_STATIC_TOP_CLASS
- See Also:
-
FACET_STATIC_BOTTOM_CLASS
- See Also:
-
EXTENDED_ROW_CLASS
- See Also:
-
BUTTON_BAR_ROLE
- See Also:
-
GRID_CELL_ROLE
- See Also:
-
-
Constructor Details
-
DynaFormRenderer
public DynaFormRenderer()
-
-
Method Details
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext fc, javax.faces.component.UIComponent component) throws IOException - Overrides:
encodeEnd
in classjavax.faces.render.Renderer
- Throws:
IOException
-
encodeMarkup
protected void encodeMarkup(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel dynaFormModel, boolean nestedGrid) throws IOException - Throws:
IOException
-
encodeScript
protected void encodeScript(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel dynaFormModel) throws IOException - Throws:
IOException
-
encodeFacet
protected void encodeFacet(javax.faces.context.FacesContext fc, DynaForm dynaForm, String name, int totalColspan, String styleClass, String role, boolean extended, boolean visible) throws IOException - Throws:
IOException
-
encodeBody
protected void encodeBody(javax.faces.context.FacesContext fc, DynaForm dynaForm, List<DynaFormRow> dynaFormRows, boolean extended, boolean visible) throws IOException - Throws:
IOException
-
renderNestedModel
protected void renderNestedModel(javax.faces.context.FacesContext fc, DynaForm dynaForm, javax.faces.context.ResponseWriter writer, DynaFormModelElement element, String styleClass) throws IOException - Throws:
IOException
-
renderControl
protected void renderControl(javax.faces.context.FacesContext fc, DynaForm dynaForm, javax.faces.context.ResponseWriter writer, String controlCommonClass, DynaFormControl element, String styleClass) throws IOException - Throws:
IOException
-
renderLabel
protected void renderLabel(javax.faces.context.ResponseWriter writer, String labelCommonClass, DynaFormLabel element, String styleClass) throws IOException - Throws:
IOException
-
encodeStatic
protected void encodeStatic(javax.faces.context.FacesContext fc, DynaForm dynaForm, String name, int totalColspan, String styleClass) throws IOException - Throws:
IOException
-
preRenderLabel
protected void preRenderLabel(javax.faces.context.FacesContext fc, DynaForm dynaForm, DynaFormModel model) -
getTotalColspan
-
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) - Overrides:
encodeChildren
in classjavax.faces.render.Renderer
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildren
in classjavax.faces.render.Renderer
-