public class ImportConstantsTagHandler
extends javax.faces.view.facelets.TagHandler
TagHandler
for the ImportConstants
component.Constructor and Description |
---|
ImportConstantsTagHandler(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) |
protected Map<String,Object> |
collectConstants(Class<?> type)
Collects all constants of the given
Class . |
protected Class<?> |
getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute,
javax.faces.view.facelets.FaceletContext ctx)
Gets the
Class from the TagAttribute . |
protected Map<String,Object> |
getConstants(javax.faces.context.FacesContext facesContext,
Class<?> type)
Get all constants of the given
Class . |
public ImportConstantsTagHandler(javax.faces.view.facelets.TagConfig config)
public void apply(javax.faces.view.facelets.FaceletContext ctx, javax.faces.component.UIComponent parent) throws IOException
IOException
protected Class<?> getClassFromAttribute(javax.faces.view.facelets.TagAttribute attribute, javax.faces.view.facelets.FaceletContext ctx)
Class
from the TagAttribute
.attribute
- The TagAttribute
.ctx
- The FaceletContext
.Class
.protected Map<String,Object> getConstants(javax.faces.context.FacesContext facesContext, Class<?> type)
Class
.facesContext
- The FacesContext
.type
- The class which includes the constants.Map
with the constants.Copyright © 2020. All rights reserved.