You need to sign in to do that
Don't have an account?
neeraj87
Repeating a component in visualforce page
Hi All,
I have a page (MyTestPage) containing my custom component (MyComponent). What I want to do is repeat this component on this page. Something like below.
<apex:page controller="MyPageController"> <apex: repeat ....> <c: MyComponent/> </apex:repeat> </apex:page>
Is there any way to repeat a custom component using repeat? I have seen the documentation and so far I could not find any examples where a custom component was repeated on a page using repeat.
I am new to Salesforce so my idea might be wrong. In any case please let me know.
Thanks for the help.
Did you get any error while doing so?
I want to pass three different custom objects to that component and make a for loop to perform operations on that custom object.
Consider this as an example:
I have 3 custom objects: object1_c, object2_c, object3_c
I already have a controller where I am using one of the custom object (hardcoded its API name) in the form. I want to perform a loop where I can receive the custom object and give it to the form in the controller to do the work.