dWebSpec Dictionary
CONTEXT: descriptors->behavior-repeat




All Details Standard Only Platform Only
Structured Web info and helpTechnologies
 Home Page
 Product Page
 Download Page
 Feedback
Javascript Tree Menu

Results for:

 behavior-repeat 
Prev  Topic  Next

Much of what is discussed in this section are repetition of the discussion in the behavior-define and behavior logic descriptors.

Just like the logic behavior could use to determine visibility of segments, the repeat behavior could be used to determine the rendering of a segment zero, once or many times.

The repeat behavior, just like the behavior-define, could expose objects to the elements within the segments that it encloses.

 JSF  

The repeat define loop that controls the rendering of a repeat region. A collection is also defined, a member object of which is presented in every iteration of the loop.

The definition aspects is as discussed under the topic of the behavior-define section.

The loop aspect is illustrated with the JSTL tag below. This is for illustration, the appropriateness of this tag for JSF is limited, this owing to the component tree arrangement.

<c:forEach items=="#{books}"
	var="i" begin="1" end="20" step="1" varStatus ="status"<
define-idvar
value:Obegin
value:Nend
value:Stepstep
data-sourceitems

The common use of repeat region is to render tabular list, to satisfy this need, JSF provide the dataTable component, which includes a repeat region internally. See the component type description for more information on dataTable.

More details are available in the attributes descriptions

type id data-source value define-id define-class define-scope
Prev Next