|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.Component
wicket.MarkupContainer
wicket.markup.transformer.AbstractOutputTransformerContainer
wicket.markup.transformer.XsltOutputTransformerContainer
public class XsltOutputTransformerContainer
A container which output markup will be processes by a XSLT processor prior to writing the output into the web response. The *.xsl resource must be located in the same path as the nearest parent with an associated markup and must have a filename equal to the component's id.
The containers tag will be the root element of the xml data applied for
transformation to ensure the xml data are well formed (single root element).
In addition the attribute
xmlns:wicket="http://wicket.sourceforge.net" is added to the
root element to allow the XSL processor to handle the wicket namespace.
Similar to this container, a IBehavior is available which does
the same, but does not require an additional Container.
XsltTransfomerBehavior,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class wicket.Component |
|---|
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange |
| Field Summary |
|---|
| Fields inherited from class wicket.Component |
|---|
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
| Constructor Summary | |
|---|---|
XsltOutputTransformerContainer(java.lang.String id)
Construct |
|
XsltOutputTransformerContainer(java.lang.String id,
IModel model)
Construct |
|
XsltOutputTransformerContainer(java.lang.String id,
IModel model,
java.lang.String xslFilePath)
Instead of using the default mechanism to determine the associated XSL file, it is given by the user. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMarkupType()
Get the type of associated markup for this component. |
java.lang.CharSequence |
transform(Component component,
java.lang.String output)
Will be invoked after all child components have been processed to allow for transforming the markup generated. |
| Methods inherited from class wicket.markup.transformer.AbstractOutputTransformerContainer |
|---|
newResponse, onComponentTagBody, onRender, setTransformBodyOnly |
| Methods inherited from class wicket.MarkupContainer |
|---|
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, internalDetach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, toString, visitChildren, visitChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XsltOutputTransformerContainer(java.lang.String id,
IModel model,
java.lang.String xslFilePath)
xslFilePath - XSL input file pathComponent.Component(String, IModel)
public XsltOutputTransformerContainer(java.lang.String id,
IModel model)
Component.Component(String, IModel)public XsltOutputTransformerContainer(java.lang.String id)
Component.Component(String)| Method Detail |
|---|
public java.lang.String getMarkupType()
MarkupContainer
getMarkupType in class MarkupContainerMarkupContainer.getMarkupType()
public java.lang.CharSequence transform(Component component,
java.lang.String output)
throws java.lang.Exception
ITransformer
transform in interface ITransformertransform in class AbstractOutputTransformerContainercomponent - The associated Wicket componentoutput - The markup generated by the child components
java.lang.ExceptionITransformer.transform(wicket.Component,
java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||