Question

i've got this jsf code

        <f:view>
    <rich:page pageTitle="My Page" 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

Was it helpful?

Solution

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top