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

Paul Rivera commented on MYFACES-1981:
--------------------------------------

On a similar case, outputLinkDynamic is also not rendering onfocus and onblur.

given:
  <s:outputLinkDynamic 
      resourceRendererClass="#{testLinkBean.resourceRenderer}" 
      value="Click Here"
      onfocus="myfunc();"
      onblur="myfunc();"
      onmouseover="myfunc();">
    <h:outputText value="click here"/>
  </s:outputLinkDynamic>

the rendered html is:
<a onmouseover="myfunc();" 
href="/MYFACES11-Playground/faces/myFacesExtensionResource/org.apache.myfaces.custom.outputlinkdynamic.OutputLinkDynamicRenderer/12223178/?_renderer=org.apache.myfaces.playground.TestResourceRenderer">click
 here</a>

I'm putting this here since the fix for both is the same. (i.e. if you fix one, 
the other one gets fixed as well)

> outputLink does not render onfocus and onblur
> ---------------------------------------------
>
>                 Key: MYFACES-1981
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1981
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.7-SNAPSHOT
>         Environment: tomcat 6.0.16
> java 1.6.0
> myfaces 1.1.7-snapshot
>            Reporter: Paul Rivera
>            Priority: Minor
>
> onfocus and onblur are not rendered in outputLink.  Although, these 
> attributes are declared in the tld for the outputLink tag.  Here's my jsf 
> snippet:
> <f:view>
>   <h:outputLink value="http://SomeURL"; onfocus="myfunc();" onblur="myfunc();" 
> onmouseover="myfunc();" >
>     <h:outputText value="Click Me"/>
>   </h:outputLink>    
> </f:view>
> And this is what gets rendered:
> <a id="_idJsp0" name="_idJsp0" href="http://SomeURL"; 
> onmouseover="myfunc();">Click Me</a>

-- 
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