[ 
https://issues.apache.org/jira/browse/MYFACES-2715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12867392#action_12867392
 ] 

Werner Punz commented on MYFACES-2715:
--------------------------------------

Well I think the scripts are at fault here  as well not the renderer.
According to the spec of the issuing element is a dom not it must pass
(that also means a dom node without identifier)

The problem here is that
<h:commandLink onclick="alert('xxx');" />
renders into
<a href=".." onclick"alert('xxx');" />

I will fix the issue from my side, because I have clearly an error here, a form 
node is passed
and I run into a form could not be determined error, which is obviously a bug 
from my side.
Whether we need to enforce an id on such a component is another issue then.

Werner


> CommandLink didnt have id by default, will cause ajax problem
> -------------------------------------------------------------
>
>                 Key: MYFACES-2715
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2715
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>            Reporter: Mark Li
>
> <h:commandLink/>
> will output
> <a hre="#" onclick="om..."/>
> not id by default.
> I think it will cause ajax problem.
> suggestion:
> in HtmlLinkRendererBase.java
> should use  HtmlRendererUtils.writeIdAndName(writer, component, 
> facesContext);(or other stuff can add id attribute)
> instead of 
> HtmlRendererUtils.writeIdIfNecessary(writer, component, facesContext);

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to