Portlet Factory, Version 6.1.2
Repeated Region builder
Use the Repeated Region builder to repeat part of an HTML page.
Both the HTML and (the effect of) the control builders that affect controls within the block are repeated. You can repeat a section a fixed number of times. Repeated Region duplicates a block of HTML, once for each element in a list. It is very tolerant about which fields you fill in. If you specify a counter variable, it keeps track of the count and makes it available to you, whether or not you are repeating based on a count or just repeating for all the elements in a list.
This builder correctly eliminates the block if the repeat variables result in no iterations. For example, if you provide it with an empty list, or if the End Count and Start Count fields evaluate to From 1 to 0, nothing from inside the repeated block is displayed.
Quick tips
- The Start Count and End Count inputs can be used to display a set number of rows at a time. For example, if there are 20 elements in the structure and you want to display five of them at a time, you could create Next and Previous buttons that set the variables specified for the Start Count and End Count inputs to an appropriate value and then redisplay the page.
- To use the Repeated Region builder effectively, have all of the following elements available within the model:
- An XML variable that is populated with repeating data
- A loop variable in which to store each iteration of the data
- HTML with elements to be repeated
- Builders that display data from the loop variable onto those HTML elements (the Dynamic Table builder is often used for this purpose).
Parent topic: Builder help
- About using the builder call editor
The builder call editor allows you to specify all the input values to a builder call.
- Locating control builder calls on pages
Each page location technique results in the generation of a Page Location string that determines on what pages, and where on those pages, the control builder calls are added.
- Repeated Region builder inputs
This topic describes the inputs for the Repeated Region builder.
- Repeating a region a fixed number of times
The second use of the Repeated Region builder is to repeat a fixed number of iterations.
- Skipping elements in a repeated region
The Repeated Region builder lets you skip a segment of a repeated region.
- Using repeated regions in a web application
When you are using this builder to duplicate a section of a page for each element in a list, provide three items of information: the section of the page to be repeated, the list to repeat over, and a loop variable.
- Use of filtering for elements that have no container element
The Repeated Region and Paging Assistant builders support inputs which enable repeated elements that have other siblings.
- Overview: creating forms
You can create forms in IBM® WebSphere Portlet Factory applications in several ways.
Library | Support |