[
https://jira.jboss.org/jira/browse/RF-8608?page=com.atlassian.jira.plugin...
]
Tomas Cerny updated RF-8608:
----------------------------
code generated on the new version 3.3.3: (broken)
<script
type="text/javascript">Richfaces.effect.create({'name':'showOpenDiv','params':{},'type':'BlindDown','attachId':'register:openDiv'}
)</script>
<script
type="text/javascript">Richfaces.effect.create({'name':'hideOpenLink','params':{duration:0.0,from:0.5,to:0},'type':'Fade','attachId':'register:openLink'}
)</script>
<script
type="text/javascript">Richfaces.effect.create({'name':'showOpenLink','params':{delay:0.8,duration:0.9,from:0.5,to:1.0},'type':'Appear','attachId':'register:openLink'}
)</script>
<script
type="text/javascript">Richfaces.effect.create({'name':'hideOpenDiv','params':{},'type':'Squish','attachId':'register:openDiv'}
)</script>
code generated on the new version 3.3.1: (works)
<script type="text/javascript">//<![CDATA[
showOpenDiv = function () { return Richfaces.processEffect(Object.extend(Object.extend(
Object.extend({type:'BlindDown'},{targetId:'register:openDiv',attachId:'register:openDiv'}),
Object.extend ({},{})), arguments[0]||{})); };
//]]></script>
<script type="text/javascript">//<![CDATA[
hideOpenLink = function () { return Richfaces.processEffect(Object.extend(Object.extend(
Object.extend({type:'Fade'},{targetId:'register:openLink',attachId:'register:openLink'}),
Object.extend ({},{duration:0.0,from:0.5,to:0})), arguments[0]||{})); };
//]]></script>
<script type="text/javascript">//<![CDATA[
showOpenLink = function () { return Richfaces.processEffect(Object.extend(Object.extend(
Object.extend({type:'Appear'},{targetId:'register:openLink',attachId:'register:openLink'}),
Object.extend ({},{delay:0.8,duration:0.9,from:0.5,to:1.0})), arguments[0]||{})); };
//]]></script>
<script type="text/javascript">//<![CDATA[
hideOpenDiv = function () { return Richfaces.processEffect(Object.extend(Object.extend(
Object.extend({type:'Squish'},{targetId:'register:openDiv',attachId:'register:openDiv'}),
Object.extend ({},{})), arguments[0]||{})); };
//]]></script>
Hope I am more convincing now :)
rich:effect name does not properly create the JS function to be
called
----------------------------------------------------------------------
Key: RF-8608
URL:
https://jira.jboss.org/jira/browse/RF-8608
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 3.3.3.Final
Reporter: Tomas Cerny
Priority: Blocker
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 contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira