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

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

Ok I fixed the issue on my side however there still is a problem there, we have 
to render an id if an onclick handler is set
it would be even better to always render an id.

The problem is <a href=".."jsf.ajax.request(this" />
will issue a window as source root, however we have to pass the issuing dom 
element to determine its parent form.

 I will adjust my code also to check for the event source if the parent form is 
not determinable by the source here.
(I am not sure how mojarra deals with all this but in either way)


> 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