[richfaces-issues] [JBoss JIRA] (RF-8608) rich:effect name does not properly create the JS function to be called

Marek Będkowski (JIRA) jira-events at lists.jboss.org
Thu Mar 8 16:17:36 EST 2012


    [ https://issues.jboss.org/browse/RF-8608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12675300#comment-12675300 ] 

Marek Będkowski commented on RF-8608:
-------------------------------------

If you experience this problem and still using richfaces 3.3.x - please ignore comment above by Thomas Cerny, it doesn't change anything (btw I've no idea how it should since it's just swapping variable name in the local context).

To make it quick - just apply the supplied patch (processEffect.js.patch) to the formentioned processEffect.js file - current solution there uses two of the top 10 JS worst practices: with and eval :)

Enjoy!
                
> rich:effect name does not properly create the JS function to be called
> ----------------------------------------------------------------------
>
>                 Key: RF-8608
>                 URL: https://issues.jboss.org/browse/RF-8608
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-misc, regression
>    Affects Versions: 3.3.3.Final
>            Reporter: Tomas Cerny
>             Fix For: 3.Future
>
>         Attachments: processEffect.js.patch, richFacesRegister.xhtml
>
>
> rich:effect name does not properly create the JS function..
> Consider your documentation example:
> <!--  invoking by JavaScript -->
> <div id="contentDiv">...</div>
> <input type="button" onclick="hideDiv({duration:0.7})" value="Hide" />
> <input type="button" onclick="showDiv()" value="Show" />
> <rich:effect  name="hideDiv"  for="contentDiv" type="Fade" />
> <rich:effect  name="showDiv"  for="contentDiv" type="Appear" />
> it worked on the older version but in 3.3.3 so I must downgrade :|
> This is my browser complaint:
> Error: Effect[A.type] is not a constructor
> Source File: http://localhost/a4j/g/3_3_3.Final/org/richfaces/ui.pack.js
> Line: 15201

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list