[ http://issues.apache.org/jira/browse/MYFACES-357?page=all ]

sean schofield updated MYFACES-357:
-----------------------------------

    Version: Nightly Build

> id attribute not correctly rendered in some cases
> -------------------------------------------------
>
>          Key: MYFACES-357
>          URL: http://issues.apache.org/jira/browse/MYFACES-357
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Aaron Donovan
>     Priority: Minor

>
> I was getting javascript errors with the tree2 component due to img tags not 
> having their id attribute rendered.  My experience with MyFaces is about two 
> hours, so I'm not sure about this but my fix was to 
> modify HtmlRenderUtils.writeIdifNecessary from
> if(component.getId()!=null && 
> !component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
>         {
>             writer.writeAttribute(HTML.ID_ATTR, 
> component.getClientId(facesContext),null);
>         }
> to
> if(component.getId()!=null && 
> component.getId().startsWith(UIViewRoot.UNIQUE_ID_PREFIX))
>         {
>             writer.writeAttribute(HTML.ID_ATTR, 
> component.getClientId(facesContext),null);
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to