[richfaces-issues] [JBoss JIRA] (RF-13747) a4j:commandLink does not have a default event name
Frederick Kämpfer (JIRA)
issues at jboss.org
Tue Jul 29 11:08:29 EDT 2014
[ https://issues.jboss.org/browse/RF-13747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12988710#comment-12988710 ]
Frederick Kämpfer commented on RF-13747:
----------------------------------------
Yes, maybe. It used to work fine in 4.3.4 though. I am using it only previously to remove the execute.. render... limitRender... attribute clutter from the commandLink-tag. But if you decide not to fix it, I can work around it.
I was just wondering why the commandLink doesn't have a default event name (which is required for it to work) while the commandButton has the "click" event name.
> 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