org.apache.tapestry5.corelib.components
Class Loop
java.lang.Object
org.apache.tapestry5.corelib.components.Loop
@SupportsInformalParameters
@Events(value="synchronizeValues")
public class Loop
- extends Object
Basic looping class; loops over a number of items (provided by its source parameter), rendering its body for each
one. It turns out that gettting the component to not store its state in the Form is very tricky and, in
fact, a series of commands for starting and ending heartbeats, and advancing through the iterator, are still stored.
For a non-volatile Loop inside the form, the Loop stores a series of commands that start and end heartbeats and store
state (either as full objects when there the encoder parameter is not bound, or as client-side objects when there is
an encoder). For a Loop that doesn't need to be aware of the enclosing Form (if any), the formState parameter should
be bound to 'none'.
When the Loop is used inside a Form, it will generate an EventConstants.SYNCHRONIZE_VALUES
event to inform its container what values were submitted and in what order.
|
Constructor Summary |
Loop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Loop
public Loop()
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.