You need to sign in to do that
Don't have an account?

Page Partial Refresh
Hi,
I have a component and a componentcontroller.
I am calculating a value in controller and using the value in component.
Page has a command button:
<apex:commandButton action="{!calculateSelectedIdNamePairs}" onClick="initMe();"
value="Button" reRender="initDownload" />
and a div that contains script
<div id="initDownload">
<script>
// some javascript that opens an applet with parameters
function initMe()
{
var popup = window.open("AppletPage?selectedIdNamePairs={!selectedIdNamePairs}", "downloadManager", "width=610,height=410");
}
</script>
</div>
But when i inspect the page i saw that, it is trying to open a page "AppletPage?selectedIdNamePairs=" So selectedIdNamePairs is blank. I checked the component controller using System.debugs and it is returning values correctly.
I am not sure this code is updating the page partially to use my selectedIdNamePairs value in onClick or onComplete.
How can I achieve this?
Thanks,
John
instead of <div id="initDownload">, try this
<apex:outputPanel id="initDownload">
...
</apex:outputPanel>
All Answers
instead of <div id="initDownload">, try this
<apex:outputPanel id="initDownload">
...
</apex:outputPanel>
Thanks. That solved the problem ;)