You need to sign in to do that
Don't have an account?
snippets@sf
Custom Component : Page Controller Method calling
Hi,
After clinking an action in Component controller. i would like to call and method in PageController. and rerender a pannel in Main Page.
Page Start --------
<MyComponent>
[Component Action] ------[ onclick of this action in Component Controller this component will rerender, but how can i rerender my pannel]
</MyComponent>
<my pannel>
</my pannel>
Page Close -------
Please Help..
Hello,
Please refer following which explain how to define action for custom components with example:
http://salesforce.stackexchange.com/questions/8130/can-we-use-a-custom-visualforce-component-twice-on-the-same-visualforce-page
http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_lifecycle_example.htm
Hope it helps!
Thanks,
still i am unable to iorn out the solution
I have used component extensively and now i am in a fix,
any one any solution.
If I understand the question aright, the need is to call a Main Page controller method from within a component. In that case, there is an example of this in the Apex Developer Guide. The example is located under References | ApexPages Namespace | Action Class. However, since links to the online DG's always seem to break over time, here is the relevant code:
Component code: Page code: Page Controller code:
Hope that helps!
Doug