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

UIComponentBase.saveAttachedState now handles collections instead only lists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.8, 2.1.2
    • JSR-314
    • None

    Description

      Since JSF 2.0, the javadoc of UIComponentBase.saveAttachedState says this:

      "... This method supports saving attached objects of the following type: Objects, null values, and Collections of these objects. If any contained objects are not Collections and do not implement StateHolder, they must have zero-argument public constructors. The exact structure of the returned object is undefined and opaque, but will be serializable. ..."

      In JSF 1.2 Lists instead Collections are handled. It is a small change, because usually StateHolder is implemented to deal with special cases.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            lu4242 Leonardo Uribe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: