Class CoreRenderer

    • Constructor Detail

      • CoreRenderer

        public CoreRenderer()
    • Method Detail

      • renderChildren

        protected void renderChildren​(javax.faces.context.FacesContext context,
                                      javax.faces.component.UIComponent component)
                               throws IOException
        Throws:
        IOException
      • renderChild

        protected void renderChild​(javax.faces.context.FacesContext context,
                                   javax.faces.component.UIComponent child)
                            throws IOException
        Throws:
        IOException
      • getResourceURL

        protected String getResourceURL​(javax.faces.context.FacesContext context,
                                        String value)
      • getResourceRequestPath

        protected String getResourceRequestPath​(javax.faces.context.FacesContext context,
                                                String resourceName)
      • renderPassThruAttributes

        protected void renderPassThruAttributes​(javax.faces.context.FacesContext context,
                                                javax.faces.component.UIComponent component,
                                                List<String> attrs)
                                         throws IOException
        Throws:
        IOException
      • renderPassThruAttributes

        @SafeVarargs
        protected final void renderPassThruAttributes​(javax.faces.context.FacesContext context,
                                                      javax.faces.component.UIComponent component,
                                                      List<String>... attrs)
                                               throws IOException
        Throws:
        IOException
      • renderDynamicPassThruAttributes

        protected void renderDynamicPassThruAttributes​(javax.faces.context.FacesContext context,
                                                       javax.faces.component.UIComponent component)
                                                throws IOException
        Throws:
        IOException
      • renderDomEvents

        protected void renderDomEvents​(javax.faces.context.FacesContext context,
                                       javax.faces.component.UIComponent component,
                                       List<String> eventAttrs)
                                throws IOException
        Throws:
        IOException
      • renderPassThruAttributes

        protected void renderPassThruAttributes​(javax.faces.context.FacesContext context,
                                                javax.faces.component.UIComponent component,
                                                String[] attrs,
                                                String[] ignoredAttrs)
                                         throws IOException
        Throws:
        IOException
      • renderOnchange

        protected void renderOnchange​(javax.faces.context.FacesContext context,
                                      javax.faces.component.UIComponent component)
                               throws IOException
        Throws:
        IOException
      • renderOnclick

        protected void renderOnclick​(javax.faces.context.FacesContext context,
                                     javax.faces.component.UIComponent component,
                                     String command)
                              throws IOException
        Throws:
        IOException
      • renderDomEvent

        protected void renderDomEvent​(javax.faces.context.FacesContext context,
                                      javax.faces.component.UIComponent component,
                                      String domEvent,
                                      String behaviorEvent,
                                      String behaviorEventAlias,
                                      String command)
                               throws IOException
        Throws:
        IOException
      • renderHiddenInput

        protected void renderHiddenInput​(javax.faces.context.FacesContext context,
                                         String id,
                                         String value,
                                         boolean disabled)
                                  throws IOException
        Renders a hidden input field commonly use for holding state for a component. Properly handles all attributes and renders as autocomplete="off" so browsers don't hold onto state between page refreshes.
        Parameters:
        context - the FacesContext
        id - the id of the hidden field
        value - the value of the hidden field, can be NULL
        disabled - whether the hidden field is disabled or not
        Throws:
        IOException - if any error occurs
      • buildDomEvent

        protected String buildDomEvent​(javax.faces.context.FacesContext context,
                                       javax.faces.component.UIComponent component,
                                       String domEvent,
                                       String behaviorEvent,
                                       String behaviorEventAlias,
                                       String command)
      • shouldRenderAttribute

        protected boolean shouldRenderAttribute​(Object value)
      • isValueBlank

        public boolean isValueBlank​(String value)
      • preConfiguredAjaxRequestBuilder

        protected <T extends javax.faces.component.UIComponent & AjaxSourceAjaxRequestBuilder preConfiguredAjaxRequestBuilder​(javax.faces.context.FacesContext context,
                                                                                                                                T source)
      • preConfiguredAjaxRequestBuilder

        protected AjaxRequestBuilder preConfiguredAjaxRequestBuilder​(javax.faces.context.FacesContext context,
                                                                     javax.faces.component.UIComponent component,
                                                                     AjaxSource source,
                                                                     javax.faces.component.UIForm form)
      • buildAjaxRequest

        protected <T extends javax.faces.component.UIComponent & AjaxSourceString buildAjaxRequest​(javax.faces.context.FacesContext context,
                                                                                                     T source)
      • buildAjaxRequest

        protected <T extends javax.faces.component.UIComponent & AjaxSourceString buildAjaxRequest​(javax.faces.context.FacesContext context,
                                                                                                     T source,
                                                                                                     javax.faces.component.UIForm form)
      • buildAjaxRequest

        protected String buildAjaxRequest​(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          AjaxSource source,
                                          javax.faces.component.UIForm form,
                                          Map<String,​List<String>> params)
      • buildNonAjaxRequest

        protected String buildNonAjaxRequest​(javax.faces.context.FacesContext context,
                                             javax.faces.component.UIComponent component,
                                             javax.faces.component.UIComponent form,
                                             String decodeParam,
                                             boolean submit)
      • buildNonAjaxRequest

        protected String buildNonAjaxRequest​(javax.faces.context.FacesContext context,
                                             javax.faces.component.UIComponent component,
                                             javax.faces.component.UIComponent form,
                                             String decodeParam,
                                             Map<String,​List<String>> parameters,
                                             boolean submit)
      • encodeClientBehaviors

        protected void encodeClientBehaviors​(javax.faces.context.FacesContext context,
                                             javax.faces.component.behavior.ClientBehaviorHolder component)
                                      throws IOException
        Throws:
        IOException
      • decodeBehaviors

        protected void decodeBehaviors​(javax.faces.context.FacesContext context,
                                       javax.faces.component.UIComponent component)
      • getEventBehaviors

        protected String getEventBehaviors​(javax.faces.context.FacesContext context,
                                           javax.faces.component.behavior.ClientBehaviorHolder cbh,
                                           String event,
                                           List<javax.faces.component.behavior.ClientBehaviorContext.Parameter> parameters)
      • shouldWriteId

        protected boolean shouldWriteId​(javax.faces.component.UIComponent component)
      • getWidgetBuilder

        protected WidgetBuilder getWidgetBuilder​(javax.faces.context.FacesContext context)
      • getStyleClassBuilder

        protected StyleClassBuilder getStyleClassBuilder​(javax.faces.context.FacesContext context)
      • getStyleBuilder

        protected StyleBuilder getStyleBuilder​(javax.faces.context.FacesContext context)
      • renderValidationMetadata

        protected void renderValidationMetadata​(javax.faces.context.FacesContext context,
                                                javax.faces.component.EditableValueHolder component)
                                         throws IOException
        Throws:
        IOException
      • getHighlighter

        protected String getHighlighter()
      • isGrouped

        protected boolean isGrouped()
      • renderDummyMarkup

        protected void renderDummyMarkup​(javax.faces.context.FacesContext context,
                                         javax.faces.component.UIComponent component,
                                         String clientId)
                                  throws IOException
        Used by script-only widget to fix #3265 and allow updating of the component.
        Parameters:
        context - the FacesContext.
        component - the widget without actual HTML markup.
        clientId - the component clientId.
        Throws:
        IOException
      • endsWithLenghtUnit

        protected boolean endsWithLenghtUnit​(String val)