You need to sign in to do that
Don't have an account?
mayank_friend52
Can we call one Apex:Component inside the other Apex:Component
Hello,
Can we call one Apex:Component inside the other Apex:Component?
Please suggest some ways to accomplish this.
Thanks,
Mayank
Can we call one Apex:Component inside the other Apex:Component?
Please suggest some ways to accomplish this.
Thanks,
Mayank
Something like:
Then you have the outer one:
Then in your page:
Should be as basic as that.
(Incidentally, this post really should go in the Visualforce topic...despite the "apex" namespace, visualforce isn't Apex.)
Thanks for the quick response.
It works.
But can you suggest me a way to send some value from page to component while on page load.
Thanks,
Mayank
If you just need a hand getting started with passing values between pages and components, I would suggest looking at the Visualforce developer guide. Or working through the Visualforce workbook.
Hello Peter,
Thanks for the reply.
Exact Business Scenario:
I have a code which is to be use in many pages,the only difference is the parameter to be pass from every page, like an user id, so rather writing them in every page, I would like to use component for that and reuse that component in every page.
Please tell me , is that possible to achieve this.
Thanks,
Mayank
Have a go.
If you have troubles, certainly check back:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_elements_markup.htm