You need to sign in to do that
Don't have an account?
TechBie
apex:repeat
I have a problem with <apex:repeat> tag. I don't wanna reppeat certain elements inside my apex: repeat. please check my code below.
<apex:repeat var="v" value="{!list 1}">
<apex:outtputpanel layout="none" rendered="{!if(v.post_no__c!=null,true,false)}"
<tr>
<td > post no </td>
<td><apex:outputField value="{!v.post_no__c}" /></td
</tr>
</apex:repeat>
In my above code, I put <td> and <tr> inside repeat so that they are also got displayed based on the number of iterations. I want to restrict the number of iterations. please don't suggest javascript why because I am using this VF as pdf and passing id to the pdf from the controller. Once after clicking on the button 'generate pdf' then only values are passed to 'list1' in the code.
I think it would be somewhat difficult to answer if there are any persons who can answer please let me know.
Thanks in Advance.
<apex:repeat var="v" value="{!list 1}">
<apex:outtputpanel layout="none" rendered="{!if(v.post_no__c!=null,true,false)}"
<tr>
<td > post no </td>
<td><apex:outputField value="{!v.post_no__c}" /></td
</tr>
</apex:repeat>
In my above code, I put <td> and <tr> inside repeat so that they are also got displayed based on the number of iterations. I want to restrict the number of iterations. please don't suggest javascript why because I am using this VF as pdf and passing id to the pdf from the controller. Once after clicking on the button 'generate pdf' then only values are passed to 'list1' in the code.
I think it would be somewhat difficult to answer if there are any persons who can answer please let me know.
Thanks in Advance.
Omar Becerra
Try to reduce the values that "list1" has in the Apex controller.