Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-2339

Remove event listener attributes from components with server events in favor of f:ajax usage

    Details

      Description

      Several of the new Liferay Faces Alloy components have the ability to broadcast events on the server, as demonstrated in the following "Server Events" use-cases:

      Listening for server events is currently accomplished by specifying an attribute on the component tag. For example:

      <alloy:accordion tabExpandListener="#{accordionBackingBean.tabExpandListener}" tabCollapseListener="#{accordionBackingBean.tabCollapseListener}">
      	<f:ajax event="tabCollapse" render="feedback" />
      	<f:ajax event="tabExpand" render="feedback" />
      ...
      </alloy:accordion>
      

      The usage should be improved so that the listener attributes are removed from their respective components and specified using the f:ajax "listener" attribute instead:

      <alloy:accordion>
      	<f:ajax event="tabCollapse" listener="#{accordionBackingBean.tabCollapseListener}" render="feedback" />
      	<f:ajax event="tabExpand" listener="#{accordionBackingBean.tabExpandListener}" render="feedback" />
      ...
      </alloy:accordion>
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                liferay-faces-3.2.5-ga6
                liferay-faces-4.2.5-ga6