Solved

RichFaces effect when render

Posted on 2010-11-26
3
1,132 Views
Last Modified: 2012-05-10
On my JSF-page, I'm showing some content based on the value of a checkbox. How can I attach an effect (like fading) when this content is shown?

Here is what I got so far, but the effect is now showing.
<t:selectBooleanCheckbox title="Ja" label="Ja" value="#{myBean.booleanValue}">
      <a4j:support ajaxSingle="true" event="onchange" reRender="panel"/>
</t:selectBooleanCheckbox>


<t:div id="panel">
   <rich:effect for="panel" type="Opacity" params="duration:0.8,from:1.0,to:0.3" />
   <t:panelGrid columns="2" rendered="#{myBean.booleanValue}">
...
...
...
   </t:panelGrid>
</t:div>

Open in new window

0
Comment
Question by:jstakk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
RockSC earned 500 total points
ID: 35287085
Hi,

you need give a name to effect to invoke by javascript.
like this:

<t:selectBooleanCheckbox title="Ja" label="Ja" value="#{myBean.booleanValue}">
      <a4j:support ajaxSingle="true" event="onchange" reRender="panel" oncomplete="myRichEffect()" />
</t:selectBooleanCheckbox>

<rich:effect name="myRichEffect" for="panel" type="Opacity" params="duration:0.8,from:1.0,to:0.3" />
<t:div id="panel">
   <t:panelGrid columns="2" rendered="#{myBean.booleanValue}">
...
...
...
   </t:panelGrid>
</t:div>

Open in new window


See "Typical variants of usage" here:
http://livedemo.exadel.com/richfaces-demo/richfaces/effect.jsf?c=effect&tab=usage
0
 
LVL 60

Expert Comment

by:Kevin Cross
ID: 36929530
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hibernate insert example 13 51
eclipse console opening separately 2 50
Javascript/JQuery - HtmlEncode (?) Ajax Result 1 94
Ajax and PHP 4 57
Hello World !, Thanks : My Sincere thanks to @Michael Male who encouraged me to write an article on this in my  blog (http://scribblejava.wordpress.com). Introduction:       There are several technical issues a developer may face in his…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question