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

Allow non-String submitted values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.2-SNAPSHOT
    • 2.0.2
    • JSR-314
    • None
    • myfaces trunk

    Description

      Myfaces are too strict and always assume submitted value as String. Comparing with Mojarra and Trinidad:

      1)org.apache.myfaces.shared.renderkit.RendererUtils.getStringValue(FacesContext, UIComponent):

      myfaces: IllegalArgumentException ("Submitted value of type String expected")
      mojarra, trinidad: call EditableValueHolder.getSubmittedValue().toString() in this situation

      2) org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(FacesContext, UIOutput, Object)
      myfaces: IllegalArgumentException("Submitted value of type String expected")
      mojarra: CastClassExpection if sumbittedValue is not String
      trinidad: class submittedValue.toString in this situation

      toString() solution will handle all situations and will allow submitted values other type than String

      Attachments

        1. MYFACES-2910.patch
          3 kB
          Martin Kočí

        Activity

          People

            Unassigned Unassigned
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: