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

ResponseWriter with null argment fro componentForElement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.9m9
    • 1.1.0
    • None
    • None

    Description

      In some instances of the MyFaces custom components, the
      startElement(..)
      is called with a null componentForElement.
      This causes a problem for the integration of MyFaces' custom components
      with some 3rd-party ResponseWriters.

      See JSF 1.1 specification:
      Section 6.4 of the JSF specification states that the
      ResponseWriter.startElement(String name, UIComponent
      componentForElement)
      method allows a null argument for the componentForElement parameter "to
      indicate that the element has no corresponding component".
      The specification goes on to state that "the prescence of this
      parameter
      allows tools to provide their own implementation of
      ResponseWriter".

      For example:

      Pass in a component reference to the startElement method on the
      ResponseWriter. E.g. if your UIComponent is a PanelGrid, and you want to
      emit <table><tr><td>... you would use writer.startElement("table",
      gridpanel);
      writer.startElement("tr", gridpanel);
      writer.startElement("td", gridpanel);

      Attachments

        1. tomahakw_r239274_patch.txt
          101 kB
          Frank Ye
        2. share_r239274_patch.txt
          2 kB
          Frank Ye
        3. src.tgz
          46 kB
          Frank Ye
        4. myfaces-1.0.9.zip
          67 kB
          Frank Ye

        Activity

          People

            mmarinschek Martin Marinschek
            frankye Frank Ye
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: