Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4545

BeanValidator WARNING if no value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1, 2.3.10, 2.3-next-M7, 4.0.0-RC3
    • 2.3.11, 3.0.3, 2.3-next-M8, 4.0.0-RC4
    • General
    • None

    Description

      Currently if you have an InputTExt with no `value` the MyFaces BeanValidator logs a WARN.

       

              ValueExpression valueExpression = component.getValueExpression("value");
              if (valueExpression == null)
              {
                  log.warning("cannot validate component with empty value: " 
                          + component.getClientId(context));
                  return;
              } 

      PrimeFaces always throws this when using Custom Filters that have no `value` attribute like on the Showcase here: https://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml

       

       <f:facet name="filter">
          <p:selectOneMenu onchange="PF('customersTable').filter()" styleClass="ui-custom-filter">
               <f:selectItem itemLabel="All" itemValue="#{null}" noSelectionOption="true" />
                <f:selectItems value="#{dtFilterView.representatives}" />
          </p:selectOneMenu>
      </f:facet> 

      I wonder if we should only LOG.WAR if in JSF Stage Development but just let it go in PRODUCTION mode

      Attachments

        Activity

          People

            melloware Melloware
            melloware Melloware
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: