Questions tagged [repeat]

apex:repeat is a Visualforce iteration component that allows you to output the contents of a collection according to a structure that you specify. The collection can include up to 1,000 items.

Filter by
Sorted by
Tagged with
1
vote
2answers
697 views

apex:inputText not working inside nested apex:repeat tags

I am trying to have multiple text-boxes inside a table cell. I am creating the table using apex:repeat tag and the multiple text-boxes using another apex:repeat tag nested in the earlier one. The ...
2
votes
0answers
519 views

apex:inputCheckboxes not retaining state inside apex:repeat

If the checkboxes are re-rendered, you can see that your input has been ignored. Whether re-rendered or not, the controller is unaware of your input upon form submission (it throws the exception that ...
0
votes
1answer
138 views

Displaying class properties in a VF repeat

I have a VF page that combines Contact, Account, Asset and related information to assist with Case entry. Our Assets contain Part Numbers, Serial Numbers and other information, but do not include the ...
1
vote
1answer
5k views

How to iterate over a list of objects in visualforce

I have a controller extension with the method GetAttributes that returns a list of Attribute objects, how can I iterate over them with apex:repeat? Controller Method: public List<...
0
votes
2answers
2k views

display 10 records in table using repeat

I am getting an error in the below code..Its a very simple one actually but i am missing someething I am just trying to show 10 record in a table using apex:repeat VF page <apex:page controller="...
2
votes
2answers
2k views

SOLVED: Rerendering item in a parallel repeat tag

I'm refactoring a page (advanced clone tool with grnadchild records) to be more dynamic and extensible, but some of my rerendering refuses to work under the new DOM model. You can see in the page ...
5
votes
2answers
4k views

How to add page breaks to visual force page rendered as pdf so that a dynamically rendered list in apex repeat tag does not strech the table lines

I have created a VF page rendered as pdf for QuoteLineItems in which I have added the list inside <apex:repeat> tags inside a html table row which again is inside another table.The problem ...
1
vote
1answer
984 views

Render item from related list on Visualforce Page

I'm trying to render an item from one related list on PDF. the structure is following: I have Sales Order, where is lookup field to Company, on Company is related list of Bank Accounts which I need to ...
3
votes
1answer
2k views

How to fetch data dynamically on each “Tab” click?

I have a scenario where in a VisualForce page, there are multiple tabs with some repeating values. On clicking each tab, data needs to be fetched dynamically. Currently I am implementing the tabs ...
2
votes
1answer
1k views

apex:outputPanel condition for apex:repeat won't render table properly

I'm working on creating PDF Purchase order page in VisaulForce. I get stuck when rendering Purchase order line items, which are related items to Purchase order. All worked great until I put a ...
2
votes
1answer
691 views

Rerender is not triggered within <apex:repeat> block

I have a scenario where there are repeating Tabs. Within each tab, there are multiple drop-down lists (say DL1, DL2, DL3). DL2 is dynamically generated based on the value selected from DL1. And DL3 is ...
1
vote
1answer
1k views

apex param in apex repeat (pass parameter to controller in repeat) not working

I have an apex:repeat and I want to use and apex:param in it. The repeater shows the userName of the person who liked the feed (like.user.Name). And if this userName is same as the person who has ...
1
vote
1answer
749 views

apex:inputFile Error actionRegion tag not resolving issue

Can some one please let me know why I am getting this error here? <apex:page controller="abc"> <apex:form> <apex:actionFunction name="addRow" action="{!addRow}" reRender="...
0
votes
1answer
1k views

Split textfield value to use as values for apex:repeat

I am trying to figure out how to use the value of a custom field (textfield or textarea) as the values for an apex:repeat in a visualforce page. For example, I have a custom field, issues__c, that ...
4
votes
1answer
3k views

How to create tabs for an apex:tabPanel dynamically with apex:repeat and rerender?

I have an inputfield in my form which is a lookup. When I select a record from the list of lookup records (clicking the small magnifying glass) I am reading the id of that record and querying the ...
0
votes
0answers
644 views

Collapsible header for every <apex:pageBlockTable> records. Is it possible?

I wanted to have a collapsible header for each records (100, 50, 10 in screenshot) that the pageblocktable generates for order lines. For now there is just 1 collapsible header for all order lines. I ...
1
vote
2answers
3k views

Displaying list content on visualforce page in a grid view

I have a list of a custom obj records containing data and image url. I am passing this list to an apex repeat on the visualforce page and want to display those records in a grid layout as shown in the ...
1
vote
1answer
719 views

Display limited repeat values in one pdf page [duplicate]

Is there any way of limiting the displayed repeat values in one page? Ex: Display first two values in first page, next two values in the next page etc ? I tried to find a way of doing this but I ...
1
vote
1answer
502 views

Limit number of tables displayed in one page (When using Apex:Repeat), when redering as pdf to avoid page/table breaks

I have the following VF page, but when I render it as pdf the Apex:repeat tables break in the middle to the next page. I'm thinking of limiting the tables displayed in each page to avoid table breaks. ...
3
votes
3answers
3k views

The input text <apex:inputtext> in a repeat (for loop) doesn't work with the validation required field

I have a custom object Team member contains four text fields First Name , Surname, location and job title and First Name and Surname is a required fields (When i create them i make them required). ...
3
votes
1answer
658 views

Pass different values as componentvalue to <apex:dynamiccomponent> in <apex:repeat>

<apex:repeat value="{!blocksThatAreComponents}" var="key"> <div id="{!key}"> <apex:dynamicComponent componentValue="{!PageComponentsMap[key]}" /> ...
2
votes
3answers
8k views

apex repeat on multiple list values with one common id

I have 2 lists list<Attachment> and list<Calls__C>. The relation is Attachment.parentid=CAlls__c.Account__C. Now I want single repeat that will traverse through these two lists in ...
2
votes
1answer
3k views

How to select one radio button from each radio group in visualforce page?

i am trying to select only one radio button from a table which has been built by <apex:repeat control. Now the issue is, user can select all of the radio buttons in a logical group of radio buttons....
6
votes
1answer
7k views

visualforce IF syntax

So I need to use an inline if statement in my visualforce page to decide whether or not I need to render an outputText. However I keep hitting a syntax error so I am hoping someone here will catch my (...
1
vote
1answer
2k views

outputText using a function with param

So I am trying to iterate through a list of custom objects and print out the information that I need. The issue is that with this object I cannot guarantee where the information I need is so I made a ...
4
votes
1answer
929 views

Visualforce list using Apex function and parameter

So at the moment I have a VisualForce Page that uses the following code: <apex:page standardController="Contact" extensions="RelationshipTreeController"> <apex:repeat value="{!...
11
votes
4answers
7k views

How to detect first or last iteration of apex:repeat

I currently have some VisualForce which uses an <apex:repeat/> element and inserts commas in between the items like so: <apex:variable var="idx" value="{!0}"/> <apex:repeat value="{!...
0
votes
3answers
4k views

Rerender not working, what am I doing wrong?

I have to display some selectable images in an apex:repeat. The user can upload as many images as they need (the images are uploaded to AWS S3). When a new image is uploaded I need to refresh the ...
3
votes
1answer
4k views

Select a row using checkbox wrapper class

I have a pageblock with 2 columns and a checkbox column in Apex:repeat. Im trying to select the whole by selecting the checkbox. when I select the checkbox, the value is not being captured. Yes im ...
-1
votes
1answer
959 views

Apex repeat to manipulate data in list not working [closed]

I am using apex: repeat tag to repeat data in a textbox. I have a custom setting on the vf page and a number field. I want to concatenate both in a textfield. And repeat the concatenated values again ...
0
votes
1answer
7k views

Unable to display map of <string, list> in repeat

I have a map Map of String(key) and List(value). The list is a list of a wrapper class object I initialize the map: map.put('x', new List); map.put('y', new List); I populate the map like: map....
2
votes
2answers
570 views

Formatting Date in Visualforce - Complex version

I have this code <font face="Arial">Invoice Date: <apex:repeat value="{!Opportunity.Invoices__r}" var="line2"> {!line2.Invoice_Date__c} </apex:repeat> </font> which ...
1
vote
1answer
903 views

Toggling visibility of an individual component inside an <apex:repeat>

Let's say I want to iterate over a List of objects based on a class in my controller (myObject), and have a commandButton to display a pageblock within the apex:repeat. <apex:repeat value="{!...
0
votes
1answer
531 views

Set method not called in apex:repeat

I am displaying a set of questions and answer for it is either yes or no. these set of questions come from a object. the set method is not getting executed. below is my code The objectName is the ...
2
votes
1answer
1k views

Highlight row on selected ( apex repeat )

I need to highlight the row on click of anchor link. <apex:repeat value="{!Requests}" var="request"> <tr> <td>&...
6
votes
1answer
3k views

Unknown Property Error When Invoking object properties with in Apex:repeat

I have an apex component which displays a list of Albums and Images under each album. Here is the code for the component global class AttachmentModel { public ID Id; public DateTime CreatedDate; ...
5
votes
1answer
5k views

How to prevent rendering of a specific item in the <apex:repeat> loop?

I have the following code: <ul data-role="listview" data-filter="false"> <apex:repeat value="{!Proposals}" var="item"> <li> <a href="{!$Page....
5
votes
1answer
1k views

include component seems to be having issues with merge-field syntax inside of a repeat component

I am trying to place an apex:include inside of an apex:repeat component. But I am getting a compile error: <apex:repeat value="{!placeholders}" var="placeholder"> {!placeholder} - {!...

1 2 3