[richfaces-issues] [JBoss JIRA] (RF-13090) <rich:jQuery> named functions not working as documented
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Mon Aug 5 12:07:26 EDT 2013
[ https://issues.jboss.org/browse/RF-13090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukáš Fryč reopened RF-13090:
-----------------------------
> <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
> Assignee: Vincent Wülcknitz
> Priority: Minor
> Labels: richfaces
> Fix For: 4.5.0.Alpha1
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> 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:
> {code}
> <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'})"/>
> {code}
> 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:
> {code}
> <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'})"/>
> {code}
> 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
More information about the richfaces-issues
mailing list