
public class IdeasFeedItem {
public Id IdeaId {get;set;}
public String Title {get;set;}
public String Body {get;set;}
public integer NumofComments{get;set;}
public Decimal VoteTotal {get;set;}
public String CreatorName {get;set;}
public String VoteType {get;set;}
public List<IdeaFeedComment> FeedComments { get; set; }
}
I binded all the values except the list. Can anyone help me to bind the list? Below is my repeat
<apex:repeat value="{!finalIdeaFeed}" var="idea">
<div style="margin-top:15px;">
<apex:inputHidden id="IdeaId" value="{!idea.IdeaId}"/>
<div style="border:1px solid;width:55px">
<apex:outputpanel rendered="{! idea.VoteType == 'Up' }"><apex:image style="max-width:150px; height:auto;" value="{!URLFOR($Resource.IdeasImage,'IdeasImage/promotebg_on.png')}"></apex:image><div>Promoted</div></apex:outputPanel>
<apex:outputpanel rendered="{! idea.VoteType == 'Down' }"><apex:image style="max-width:150px; height:auto;" value="{!URLFOR($Resource.IdeasImage,'IdeasImage/demotebg_on.png')}"></apex:image><div>Demoted</div></apex:outputPanel>
</div>
<div>Points: {!idea.VoteTotal}</div>
<div>{!idea.CreatorName}</div>
<div>Title: {!idea.Title}</div>
<div>Description:{!idea.Body}</div>
<apex:outputpanel rendered="{!idea.VoteType == null}">
<div><apex:outputLink onclick="promoteIdea('{!idea.IdeaId}')">Promote</apex:outputLink></div>
<div><apex:outputLink onclick="demoteIdea('{!idea.IdeaId}')">Demote</apex:outputLink></div>
</apex:outputpanel>
</div>
</apex:repeat>
Hi Vetriselvan,Please see the below code which is similar. Best RegardsKIRAN