I'm trying a rendered="{!If(Size<4,true,false)}"
but I keep getting the following error:
VisualForce Page
<apex:outputPanel rendered="{!If(avalistasSize<=4,true,false)}">
<div class="Avalista">
<table>
<tbody>
<tr>
<apex:repeat value="{!Avalist}" var="item" rendered="true" >
<td>
AVALISTA:
{!item.contact.Name}<br/>
{!item.contact.CPF__c}<br/>
END.: {!item.contact.MailingStreet}, CEP: {!item.contact.MailingPostalCode}, {!item.contact.MailingCity}-{!item.contact.MailingState}<br/>
<apex:outputText rendered="{!display[item.Id]}">
Ass: {!item.contact.Procurador_do_Contato__r.Name}<br/>
CPF: {!item.contact.Procurador_do_Contato__r.CPF__c}
</apex:outputText>
</td>
</apex:repeat>
</tr>
</tbody>
</table>
</div>
</apex:outputPanel>
Controller:
public Integer avalistasSize {get; set;}
public List <OpportunityContactRole> getAvalist(){
if(avalista==null){
avalista=[SELECT Id,contactId, contact.Name,contact.CPF__c,contact.MailingCity,contact.MailingStreet,contact.MailingState,
contact.MailingPostalCode, contact.Procurador_do_Contato__r.Name, contact.Procurador_do_Contato__r.CPF__c
FROM OpportunityContactRole
WHERE OpportunityId =: idOpp
];
}
avalistasSize = avalista.size();