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

Passing parameters from component to page
Hello Everyone
I have a component with three images(google charts)
Component:
<apex:component controller="TestChartController2a">
<apex:image rendered="{!IF(chart1.accountCount > 0, true, false)}" url="https://fdrclient.com/proxy-1.0/proxy?..........."> </apex:image>
<apex:image rendered="{!IF(chart1.accountCount > 5, true, false)}" url="https://fdrclient.com/proxy-1.0/proxy?..........."> </apex:image>
<apex:image rendered="{!IF(chart1.accountCount > 10, true, false)}" url="https://fdrclient.com/proxy-1.0/proxy?............"> </apex:image>
</apex:component>
I am calling this component on a page.
Visualforce page:
<apex:page showHeader="false" sidebar="false" controller="TestChartController2a"> <apex:stylesheet value="{!$Resource.CustomerPortalCSS}" />
.........................
.........................
<apex:outputPanel >
<apex:outputLabel > <c:Test_Chart_2_a /> </apex:outputLabel>
</apex:outputPanel>
.........................
.........................
</apex:page>
Right now i can have a rerender on the whole component inside the page. But I want a separate rerender functionality on three images of component.
How can i link page to all three images separately.(by some id, value etc), instead of the whole component.
Thanks for your time
Sidharth
I got it working. I directly called th eimages into the visualforce page form controller, instead of passing them through components. And it worked.
Still figuring out how ot pass parameters from components to visual force page.
All Answers
The only solution i got, is to have a separate component for every imgae, and call them all in the visualforce page, and add separate rerender functionality to each component.
But this led to multiple components, which i want to neglect.
Any idea on how to achieve this?
I got it working. I directly called th eimages into the visualforce page form controller, instead of passing them through components. And it worked.
Still figuring out how ot pass parameters from components to visual force page.