[richfaces-issues] [JBoss JIRA] (RF-13747) a4j:commandLink does not have a default event name

Brian Leathem (JIRA) issues at jboss.org
Tue Jul 29 11:18:30 EDT 2014


    [ https://issues.jboss.org/browse/RF-13747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988715#comment-12988715 ] 

Brian Leathem commented on RF-13747:
------------------------------------

No reason as far as I know.  If you care to put together a Pull Request with this fix we'd be happy to land it in the next release.

> a4j:commandLink does not have a default event name
> --------------------------------------------------
>
>                 Key: RF-13747
>                 URL: https://issues.jboss.org/browse/RF-13747
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.5.0.Alpha3
>            Reporter: Frederick Kämpfer
>
> The following code causes an exception in Mojarra 2.2.7:
> {code}
> <h:form>
>            <a4j:commandLink>
>                   <a4j:ajax/>
>              </a4j:commandLink>
> </h:form>
> {code}
> {code}
> 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)
> {code}
> 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".



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the richfaces-issues mailing list