Vincent Wülcknitz created RF-13090:
--------------------------------------
Summary: <rich:jQuery> named functions not working as documented
Key: RF-13090
URL: https://issues.jboss.org/browse/RF-13090
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-misc
Affects Versions: 4.3.2
Reporter: Vincent Wülcknitz
Priority: Minor
I have found some strange behaviour with the <rich:jQuery> component when you
implement named functions like described in the component reference:
http://docs.jboss.org/richfaces/latest_4_3_X/Component_Reference/en-US/html/chap-Component_Reference-Layout_and_appearance.html#sect-Component_Reference-richjQuery-Named_queries
If I implement the given code from the reference:
#
<h:graphicImage width="50" value="/images/price.png"
onmouseover="enlargePic(this, {pwidth:'60px'})" onmouseout="releasePic(this)"
/>
<h:graphicImage width="50" value="/images/discount.png"
onmouseover="enlargePic(this, {pwidth:'100px'})" onmouseout="releasePic(this)"
/>
...
<rich:jQuery name="enlargePic" query="animate({width:options.pwidth})" />
<rich:jQuery name="releasePic" query="animate({width:'50px'})"/>
only the onmouseover calls will work. The prictures will get bigger but not
smaller onmouseout.
I found out that if I do some small changes to the onmouseout call it works
fine:
#
<h:graphicImage width="50" value="/images/price.png"
onmouseover="enlargePic(this, {pwidth:'60px'})"
onmouseout="releasePic(this,{})" />
<h:graphicImage width="50" value="/images/discount.png"
onmouseover="enlargePic(this, {pwidth:'100px'})"
onmouseout="releasePic(this,{})" />
...
<rich:jQuery name="enlargePic" query="animate({width:options.pwidth})" />
<rich:jQuery name="releasePic" query="animate({width:'50px'})"/>
It only works when adding a second parameter to the call even if its empty.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues