public class RepeatTagHandler extends javax.faces.view.facelets.TagHandler
This component encapsulates a c:forEach tag inside a nxu:set tag, to be able to control when the sub-components should be re-created in the case of an ajax re-render.
Modifier and Type | Field and Description |
---|---|
protected javax.faces.view.facelets.TagAttribute |
begin |
protected javax.faces.view.facelets.TagConfig |
config |
protected javax.faces.view.facelets.TagAttribute |
end |
protected javax.faces.view.facelets.TagAttribute |
id |
protected javax.faces.view.facelets.TagAttribute |
index |
protected javax.faces.view.facelets.TagAttribute |
items |
protected javax.faces.view.facelets.TagAttribute |
itemsId |
protected static String |
ITERATION_VAR_PREFIX |
protected javax.faces.view.facelets.TagAttribute |
renderTime |
protected javax.faces.view.facelets.TagAttribute |
status |
protected javax.faces.view.facelets.TagAttribute |
step |
protected javax.faces.view.facelets.TagAttribute |
tranzient |
protected javax.faces.view.facelets.TagAttribute |
value
Deprecated.
|
protected javax.faces.view.facelets.TagAttribute |
var |
protected javax.faces.view.facelets.TagAttribute |
varStatus |
Constructor and Description |
---|
RepeatTagHandler(javax.faces.view.facelets.TagConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
apply(javax.faces.view.facelets.FaceletContext ctx,
javax.faces.component.UIComponent parent)
Encapsulate the call to a c:forEach tag in an SetTagHandler exposing the value and making sure the tagConfigId
changes when the value changes (see NXP-11434).
|
protected javax.faces.view.facelets.TagAttribute |
copyAttribute(javax.faces.view.facelets.TagConfig tagConfig,
javax.faces.view.facelets.TagAttribute attribute) |
protected List<javax.faces.view.facelets.TagAttribute> |
copyAttributes(javax.faces.view.facelets.TagConfig tagConfig,
javax.faces.view.facelets.TagAttribute... attributes) |
protected javax.faces.view.facelets.TagAttribute |
createAttribute(javax.faces.view.facelets.TagConfig tagConfig,
String name,
String value) |
protected javax.faces.view.facelets.TagAttribute |
getItemsAttribute() |
protected String |
getTagConfigId(javax.faces.view.facelets.FaceletContext ctx) |
protected String |
getVarName(String id) |
protected boolean |
renderTime(javax.faces.view.facelets.FaceletContext ctx) |
protected static final String ITERATION_VAR_PREFIX
protected final javax.faces.view.facelets.TagConfig config
@Deprecated protected final javax.faces.view.facelets.TagAttribute value
protected final javax.faces.view.facelets.TagAttribute items
protected final javax.faces.view.facelets.TagAttribute itemsId
protected final javax.faces.view.facelets.TagAttribute var
protected final javax.faces.view.facelets.TagAttribute index
protected final javax.faces.view.facelets.TagAttribute status
protected final javax.faces.view.facelets.TagAttribute begin
protected final javax.faces.view.facelets.TagAttribute end
protected final javax.faces.view.facelets.TagAttribute step
protected final javax.faces.view.facelets.TagAttribute tranzient
protected final javax.faces.view.facelets.TagAttribute varStatus
protected final javax.faces.view.facelets.TagAttribute id
protected final javax.faces.view.facelets.TagAttribute renderTime
public RepeatTagHandler(javax.faces.view.facelets.TagConfig config)
protected javax.faces.view.facelets.TagAttribute getItemsAttribute()
protected String getTagConfigId(javax.faces.view.facelets.FaceletContext ctx)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException, javax.faces.FacesException, javax.faces.view.facelets.FaceletException, javax.el.ELException
See also NXP-15050: since 6.0, anchor handler in component tree to ensure proper ajax refresh when iteration value changes.
IOException
javax.faces.FacesException
javax.faces.view.facelets.FaceletException
javax.el.ELException
protected boolean renderTime(javax.faces.view.facelets.FaceletContext ctx)
protected String getVarName(String id)
protected javax.faces.view.facelets.TagAttribute createAttribute(javax.faces.view.facelets.TagConfig tagConfig, String name, String value)
protected javax.faces.view.facelets.TagAttribute copyAttribute(javax.faces.view.facelets.TagConfig tagConfig, javax.faces.view.facelets.TagAttribute attribute)
protected List<javax.faces.view.facelets.TagAttribute> copyAttributes(javax.faces.view.facelets.TagConfig tagConfig, javax.faces.view.facelets.TagAttribute... attributes)
Copyright © 2017 Nuxeo. All rights reserved.