私の JSF ページでは、チェックボックスの値に基づいていくつかのコンテンツを表示しています。このコンテンツを再レンダリングするときに、フェードインやフェードアウトなどの効果を追加するにはどうすればよいですか? みたいなイベントonRender
とかあるの?
これは私がこれまでに得たものですが、効果は示されていません:
<t:selectBooleanCheckbox title="Yes" label="Yes" value="#{myBean.booleanValue}">
<a4j:support ajaxSingle="true" event="onchange" reRender="panel"/
</t:selectBooleanCheckbox>
<t:div id="panel">
<rich:effect name="hideDiv" for="myPanelGrid" type="Opacity" params="duration:0.8,from:1.0,to:0.1"/>
<rich:effect name="showDiv" for="myPanelGrid" type="Opacity" params="duration:0.8,from:0.1,to:1.0"/>
<t:panelGrid columns="2" rendered="#{myBean.booleanValue}" id="myPanelGrid">
...
...
...
</t:panelGrid>
</t:div>