Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13747

a4j:commandLink does not have a default event name

    Details

      Description

      The following code causes an exception in Mojarra 2.2.7:

      <h:form>
                 <a4j:commandLink>
                        <a4j:ajax/>
                   </a4j:commandLink>
      </h:form>
      

      Schwerwiegend:   javax.faces.view.facelets.TagException: /test.xhtml @17,32 <a4j:ajax> Event attribute could not be determined: null
      	at org.richfaces.view.facelets.html.AjaxHandler.resolveEventName(AjaxHandler.java:200)
      	at org.richfaces.view.facelets.html.AjaxHandler.applyNested(AjaxHandler.java:187)
      	at org.richfaces.view.facelets.html.AjaxHandler.apply(AjaxHandler.java:130)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:137)
      	at org.richfaces.view.facelets.html.BehaviorsAddingComponentHandlerWrapper.applyNextHandler(BehaviorsAddingComponentHandlerWrapper.java:53)
      	at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:203)
      	at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:120)
      

      After looking through the code it seems like it is caused by org.richfaces.component.UICommandLInk returning null in getDefaultEventName(). UICommandButton does the right thing by returning "click".

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fkaempfer Frederick Kämpfer
                Reporter:
                fkaempfer Frederick Kämpfer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified