Solved

RichFaces effect when render

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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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 A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
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.

623 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