You need to sign in to do that
Don't have an account?
Abhilash Mishra 13
using same Dynamic component Twice or more?
Hi,
using same Dynamic component Twice or more?
can this be achieved and how?
I have this component and I am trying to user this more than one's.
It does not give any error, but however only the last one renders.
Here is the page:
here is the controlller
Need Help?
Regards
Abhilash MIshra
using same Dynamic component Twice or more?
can this be achieved and how?
I have this component and I am trying to user this more than one's.
It does not give any error, but however only the last one renders.
Here is the page:
<apex:page controller="mycustomcontroller"> <apex:dynamicComponent componentValue="{!footerDetails}"/> </apex:page>
here is the controlller
public with sharing class mycustomcontroller { public list<string> getfooterlinks(){ return new list<string>{'user','Leads',' Account' ,'contact'}; } public Component.Apex.datalist getfooterDetails(){ Component.Apex.datalist dt= new Component.Apex.datalist(); dt.expressions.value='{!footerlinks}'; dt.styleclass='footer-link-list'; dt.var='s'; Component.Apex.outputlink otl=new Component.Apex.outputlink(); otl.value='#'; Component.Apex.outputText ot= new Component.Apex.outputText(); ot.expressions.value='{!s}'; otl.childComponents.add(ot); dt.childComponents.add(otl); return dt; } }
Need Help?
Regards
Abhilash MIshra