Solved

RichFaces effect when render

Posted on 2010-11-26
3
1,129 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
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 59

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Today I am discussing AJAX problems in IE7 and I bet this will helps many guys out here who have problems with AJAX work. Lets start with the discovery of problem and then we will talk about its different solutions. My last two projects included …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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.

772 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