Class CascadeSelectRenderer

    • Constructor Detail

      • CascadeSelectRenderer

        public CascadeSelectRenderer()
    • Method Detail

      • getConvertedValue

        public Object getConvertedValue​(javax.faces.context.FacesContext context,
                                        javax.faces.component.UIComponent component,
                                        Object submittedValue)
                                 throws javax.faces.convert.ConverterException
        Overrides:
        getConvertedValue in class InputRenderer
        Throws:
        javax.faces.convert.ConverterException
      • encodeEnd

        public void encodeEnd​(javax.faces.context.FacesContext context,
                              javax.faces.component.UIComponent component)
                       throws IOException
        Overrides:
        encodeEnd in class javax.faces.render.Renderer
        Throws:
        IOException
      • encodeLabel

        protected void encodeLabel​(javax.faces.context.FacesContext context,
                                   CascadeSelect cascadeSelect,
                                   List<javax.faces.model.SelectItem> itemList,
                                   String valueToRender)
                            throws IOException
        Throws:
        IOException
      • encodeTrigger

        protected void encodeTrigger​(javax.faces.context.FacesContext context)
                              throws IOException
        Throws:
        IOException
      • encodePanel

        protected void encodePanel​(javax.faces.context.FacesContext context,
                                   CascadeSelect cascadeSelect,
                                   List<javax.faces.model.SelectItem> itemList)
                            throws IOException
        Throws:
        IOException
      • encodeList

        protected void encodeList​(javax.faces.context.FacesContext context,
                                  CascadeSelect cascadeSelect,
                                  javax.faces.model.SelectItem[] items,
                                  boolean isSublist)
                           throws IOException
        Throws:
        IOException
      • encodeListItems

        protected void encodeListItems​(javax.faces.context.FacesContext context,
                                       CascadeSelect cascadeSelect,
                                       javax.faces.model.SelectItem[] selectItems)
                                throws IOException
        Throws:
        IOException
      • findItemByValue

        protected javax.faces.model.SelectItem findItemByValue​(javax.faces.context.FacesContext context,
                                                               javax.faces.component.UIComponent component,
                                                               javax.faces.convert.Converter converter,
                                                               List<javax.faces.model.SelectItem> selectItems,
                                                               String value)
        Recursive method used to find a SelectItem by its value.
        Parameters:
        context - FacesContext
        the - current UI component to find value for
        converter - the converter for the select items
        selectItems - the List of SelectItems
        value - the input value to search for
        Returns:
        either the SelectItem found or NULL if not found
      • encodeChildren

        public void encodeChildren​(javax.faces.context.FacesContext facesContext,
                                   javax.faces.component.UIComponent component)
                            throws IOException
        Overrides:
        encodeChildren in class javax.faces.render.Renderer
        Throws:
        IOException
      • getRendersChildren

        public boolean getRendersChildren()
        Overrides:
        getRendersChildren in class javax.faces.render.Renderer
      • getSubmitParam

        protected String getSubmitParam​(javax.faces.context.FacesContext context,
                                        javax.faces.component.UISelectOne selectOne)
        Specified by:
        getSubmitParam in class SelectOneRenderer