Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10170

Improve Converter finding if EL expression is semi-resolvable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4-Future
    • Fix Version/s: 4.0.0.CR1
    • Component/s: compatibility
    • Labels:
      None
    • Environment:

      RichFaces 4 svn rev. 20933

      Description

      example (#

      {bean.propertyNull}

      resolves to null):

      <h:inputText value="#

      {bean.propertyNull.zeitangabe}" /> outputs a input field

      <r:calendar value="#{bean.propertyNull.zeitangabe}

      " /> throws value="#

      {bean.propertyNull.zeitangabe}

      ": Target Unreachable, 'propertyNull' returned null

      Problem is in org.richfaces.component.util.SelectUtils.findConverter: method tries to locate a Converter even if informations for this are "uknown".

      Simple solution can be: find converter only for ValueExpression which leads to not null value, because if no value for "value" ValueExpression , then no conversion getAsString is necessary (at least is is true if spec does not mandates conversion for null value).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nbelaevski Nick Belaevski
                Reporter:
                markoc50 Martin Kočí
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: