I've searched the forums and the internet, but have not found anything on this topic. Thanks for your time.
I have a popup which holds an object, either a simple af:inlineframe or my silverlight object.
Everything works great when I first show the popup but it takes a couple seconds to render the silverlight object. I'm trying to avoid this 2-3 second delay everytime I show the popup. The objects work well on the popup, no problem there. The problem arises when I hide and then re-show the popup. Doing so causes the objects on the popup to lose state. They get re-initalized which causes the 2-3 second delay to re-render the objects.
For example: If I put an inlinfe frame on the popup and run it. I can navigate within the inline frame to another page/state, then when I hide and re-show the popup the inline frame is re-rendered and the original page/state is displayed.
How do I maintain state between hiding and showing my popup?
Thanks for you're help!
Here is my structure (one half of the splitter has an inlineframe the second has my silverlight object, both lose state) :
<af:popup childCreation="immediate" autoCancel="disabled" id="popDoc"
binding="#{backingBeanScope.backing_Main.popDoc}" contentDelivery="immediate" animate="false">
<af:panelWindow id="pw1" binding="#{backingBeanScope.backing_Main.pw1}" resize="on"
stretchChildren="first" contentHeight="768" contentWidth="1024" modal="true"
closeIconVisible="true">
<af:panelSplitter id="pgl5" binding="#{backingBeanScope.backing_Main.pgl5}" orientation="vertical">
<f:facet name="second">
<af:inlineFrame id="if1" binding="#{backingBeanScope.backing_Main.if1}"
source="/RichEdit/RichEditHTMLBridgeSLTestPage.html"/>
</f:facet>
<f:facet name="first">
<af:panelGroupLayout layout="scroll" id="pgl6"
binding="#{backingBeanScope.backing_Main.pgl6}">
<af:inputText value="#{bindings.FullDoc.inputValue}" id="rtfDoc"
binding="#{backingBeanScope.backing_Main.rtfDoc}" clientComponent="true"
label="Label 1" visible="false"/>
<af:commandButton text="commandButton 1" id="cb3"
binding="#{backingBeanScope.backing_Main.cb3}" partialSubmit="true">
<af:clientListener method="rtfHide" type="click"/>
</af:commandButton>
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
width="100%" height="100%" id="silverlightPlugIn">
<param name="source" value="RichEdit/ClientBin/RichEditHTMLBridgeSL.xap.jpg" />
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
</object>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
</af:panelWindow>
<af:clientListener type="popupOpened" method="getrtfval"/>
</af:popup>