Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-737 Need To Establish Currency for Table Events
  3. TRINIDAD-771

returnListener from a commandButton is broken in a table facet

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.3-core
    • 1.0.4-core, 1.2.3-core
    • Components
    • None

    Description

      if you add a returnListener to a commandButton which is defined in a table facet, the listener is not called.
      Here is a short example:

      <tr:table var="row" value="#

      {backing.allRows}

      ">
      <f:facet name="footer">
      <tr:panelButtonBar>
      <tr:commandButton text="Hit me" partialSubmit="true"
      useWindow="true" immediate="true"
      action="dialog:openHitMeDialog"
      returnListener="#

      {backing.handleReturn}

      " />
      </tr:panelButtonBar>
      </f:facet>
      <tr:column>
      <f:facet name="header">
      <tr:outputText value="Header 1"
      </f:facet>
      <tr:outputText value="#

      {row.data}

      " />
      </tr:column>
      </tr:table>

      The handleReturn method is not called if you close the popup via RequestContext.getCurrentInstance().returnFromDialog(..)

      Without the patch from trinidad issue 737, the returnListener is called again.

      Attachments

        1. JIRA-771.patch
          2 kB
          Max Starets

        Activity

          People

            matzew Matthias Wessendorf
            rottstock Sven Rottstock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: