开发者

how to use rich:effect with a4j:include

i've got this jsf code

        <f:view>
    <rich:page pageTitle="My Pa开发者_C百科ge" markupType="xhtml">
...
<rich:panel id="content">
            <a4j:include viewId="#{MyBacking.viewId}" />
        </rich:panel>

and after trying a number of different ways, I've still not managed to place the following correctly in my code:

<rich:effect for="window" event="onload"  type="BlindDown" params="targetId:'<different tags depending on where I place this tag>',duration:2.8" />

My aim is to have the changed element in the a4j:included part of the page change but with the effect in use. I've tried putting it in my included page, or just after the f:view and rich:page tags in the calling page but to no avail. The demo doesn't take includes into account so I'm a bit stuck. Thanks


Just target the a panel inside the rich:panel: targetId:'contentPanel'

and then

<rich:panel ..>
    <h:panelGroup layout="block" id="contentPanel">
        <a4j:include viewId="#{MyBacking.viewId}">
           <ui:param name="targetIdParam" value="putYourTargetIdHere" />
        </a4j:include>
    <h:panelGroup>
</rich:panel>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜