|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
AWFor is the fundamental unrolling contruct for repeated content. It's body is re-evaluated for each item in the supplied list.
Typical use:
<a:For item="$currentItem" list="$myItems">
<tr>
<td>$currentItem.name</td>
<td>$currentItem.description</td>
</tr>
</a:For>
| Bindings | |||
|---|---|---|---|
list
*
|
This list (java.util.List, native Array, etc) containing the items being unrolled. |
AWOrderedList (get) |
|
item
|
Binding pushed into for each iteration |
Object (set) |
|
count
|
Maximum number of items to iterate over |
int (get) |
|
index
|
Binding pushed with the index of the current item |
int (set) |
|
start
|
The index of the initial item to be unrolled. (Can be used in concert with count to process a sub-section of the list) |
int (get) |
|
scopeSubcomponentsByItem
|
Rarely used (use with caution). Normally any stateful subcomponents in a repetition are associated by position (index). If, instead, they should be associated by the object identity of the items in the loop, scopeSubcomponentsByItem can be set to true. (This can be useful in contexts where, for instance, items in a table can shift position and any stateful components in the table should "move" with their items). |
boolean (get) |
|
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWBaseElement
ariba.ui.aribaweb.core.AWBindableElement
ariba.ui.aribaweb.core.AWContainerElement
ariba.ui.aribaweb.core.AWFor
public class AWFor
| Constructor Summary | |
|---|---|
AWFor()
|
|
| Method Summary | |
|---|---|
AWBinding |
_count()
|
AWBinding |
_index()
|
AWBinding |
_item()
|
AWBinding |
_itemClassName()
|
AWBinding |
_list()
|
Object |
_orderedListInComponent(AWComponent component)
|
AWBinding |
_start()
|
int |
_startIndex(AWComponent component)
|
void |
applyValues(AWRequestContext requestContext,
AWComponent component)
The receiver should take any form values (or query string parameters) that it owns from the AWRequestContext.request(). |
void |
init(String tagName,
Map bindingsHashtable)
|
AWResponseGenerating |
invokeAction(AWRequestContext requestContext,
AWComponent component)
The receiver should determine if it is the intended recipient of the current action (by checking the AWRequestContext.request() AWRequest.senderId()) and,
if so, handle the action and return the result. |
void |
renderResponse(AWRequestContext requestContext,
AWComponent component)
The receiver should render its content to the AWRequestContext.response() |
String |
toString()
|
| Methods inherited from class ariba.ui.aribaweb.core.AWContainerElement |
|---|
add, appendTo, contentElement, continueVisit, setContentElement, validate |
| Methods inherited from class ariba.ui.aribaweb.core.AWBindableElement |
|---|
allBindings, determineInstance, tagName |
| Methods inherited from class ariba.ui.aribaweb.core.AWBaseElement |
|---|
bareStringContent, clone, determineInstance, lineNumber, setLineNumber, setTemplateName, startVisit, templateName |
| Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
|---|
debugString, ensureFieldValuesClear, getFieldValue, init, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ariba.ui.aribaweb.core.AWElement |
|---|
clone |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, init, isKindOfClass, setFieldValue |
| Methods inherited from interface ariba.ui.aribaweb.core.AWCycleableReference |
|---|
determineInstance |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, init, isKindOfClass, setFieldValue |
| Methods inherited from interface ariba.ui.aribaweb.core.AWVisitable |
|---|
startVisit |
| Constructor Detail |
|---|
public AWFor()
| Method Detail |
|---|
public void init(String tagName,
Map bindingsHashtable)
init in interface AWBindableinit in class AWBindableElementpublic AWBinding _list()
public AWBinding _item()
public AWBinding _count()
public AWBinding _index()
public AWBinding _start()
public AWBinding _itemClassName()
public final int _startIndex(AWComponent component)
public Object _orderedListInComponent(AWComponent component)
public void applyValues(AWRequestContext requestContext,
AWComponent component)
AWCycleableAWRequestContext.request().
applyValues in interface AWCycleableapplyValues in class AWContainerElementrequestContext - the context for the current request.component - the current parent component
public AWResponseGenerating invokeAction(AWRequestContext requestContext,
AWComponent component)
AWCycleableAWRequestContext.request() AWRequest.senderId()) and,
if so, handle the action and return the result.
invokeAction in interface AWCycleableinvokeAction in class AWContainerElementrequestContext - the context for the current request.component - the current parent component
public void renderResponse(AWRequestContext requestContext,
AWComponent component)
AWCycleableAWRequestContext.response()
renderResponse in interface AWCycleablerenderResponse in class AWContainerElementrequestContext - the context for the current request.component - the current parent componentpublic String toString()
toString in class AWBaseElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||