Class FieldTag
java.lang.Object
org.webpieces.templating.impl.tags.TemplateLoaderTag
org.webpieces.templating.impl.tags.FieldTag
- All Implemented Interfaces:
org.webpieces.ctx.api.extension.Tag,HtmlTag
challenging to get right so heavily tested
1. on first GET request must render bean from an enum, array, collection, or just prmitive field as string
2. on second GET request must render flash IF set(even if null!!!) or the bean BUT the twist is flash is all Strings
-
Field Summary
Fields inherited from class org.webpieces.templating.impl.tags.TemplateLoaderTag
svc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertTagArgs(Map<Object, Object> tagArgs, Map<String, Object> pageArgs, groovy.lang.Closure<?> body, String srcLocation) protected Stringprotected StringgetFilePath(GroovyTemplateSuperclass callingTemplate, Map<Object, Object> args, String srcLocation) getName()protected org.webpieces.templating.impl.tags.FieldTag.ResultreworkNameForArrayOnly(String fieldName, Map<String, Object> pageArgs) Methods inherited from class org.webpieces.templating.impl.tags.TemplateLoaderTag
initialize, runTag
-
Constructor Details
-
FieldTag
-
-
Method Details
-
getName
-
getErrorClass
-
getFilePath
protected String getFilePath(GroovyTemplateSuperclass callingTemplate, Map<Object, Object> args, String srcLocation) - Overrides:
getFilePathin classTemplateLoaderTag
-
convertTagArgs
protected Map<String,Object> convertTagArgs(Map<Object, Object> tagArgs, Map<String, Object> pageArgs, groovy.lang.Closure<?> body, String srcLocation) - Specified by:
convertTagArgsin classTemplateLoaderTag
-
reworkNameForArrayOnly
-