Constructor and Description |
---|
ClayAmalgam() |
Modifier and Type | Method and Description |
---|---|
void |
clayForEach(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator attribute of the
Clay component. |
void |
clayImport(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator attribute of the
Clay component. |
void |
clayOut(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator attribute of the
Clay component. |
String |
decode(String value)
Decodes a string value using the
decodeMap . |
String |
encode(String value)
Encodes a string value using the
encodeMap . |
protected void |
replace(StringBuffer document,
Map context)
Replaces tokens in the
document with matching tokens in
the context . |
protected void replace(StringBuffer document, Map context)
Replaces tokens in the document
with matching tokens in
the context
.
document
- containing tokens to replacecontext
- tokenspublic String encode(String value)
Encodes a string value using the encodeMap
.
value
- source stringpublic String decode(String value)
Decodes a string value using the decodeMap
.
value
- source stringpublic void clayOut(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator
attribute of the
Clay
component. It expects that
the value
attribute will contain an html string that
represents an HTML node. The value will be encode or decode depending on
the value of the escapeXml
optional attribute. The default
is "false".
context
- faces contextcomponent
- claydisplayElementRoot
- config beanpublic void clayImport(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator
attribute of the
Clay
component. It expects that
the url
attribute will contain the file to import relative
to the web context root. The content of the file will be encode or decode
depending on the value of the escapeXml
optional
attribute. The default doesn't apply any encoding.
context
- faces contextcomponent
- claydisplayElementRoot
- config beanpublic void clayForEach(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object displayElementRoot)
This is a method binding "validator" signature that can be bound to the
shapeValidator
attribute of the
Clay
component. It expects four
attributes value, bodyJsfid, var and scope. The value
attribute is like a dataTable. It should be a value binding expression
that is a Map, List or Object[]. The bodyJsfid
attribute
is root of the subtree that will be repeated in the for loop. The
var
attribute is the tag used to cache a Map of the bound
objects. It will always be loaed in "session" scope. Limitation exists
because the "shapeValidator" event is only called when the component is
created. This means that you must take care in removing the
var
object from session scope.
context
- facescomponent
- claydisplayElementRoot
- config beanCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.