Class ScriptViewElementModelWriter
java.lang.Object
com.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter<ScriptViewElement>
com.foreach.across.modules.bootstrapui.elements.thymeleaf.ScriptViewElementModelWriter
- All Implemented Interfaces:
com.foreach.across.modules.web.ui.thymeleaf.ViewElementModelWriter<ScriptViewElement>
public class ScriptViewElementModelWriter
extends com.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter<ScriptViewElement>
Responsible for writing out
ScriptViewElement
, representing <script>
HTML nodes.
Script nodes may not be safely nested, and this writer will replace any nested script node by a regular
HTML node with a data-bum-ref-id
attribute. The replacement node will have most original attributes,
but the id attribute holds the HTML id
of an other <script>
element which will contain the
actual original content.
Client-side, the BootstrapUiModule.refTarget(node)
can be used to ensure you retrieve the actual target node.
Especially useful for scripts.
- Since:
- 2.1.1
- Author:
- Arne Vandamme
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeModel
(ScriptViewElement viewElement, com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model) Methods inherited from class com.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter
writeChildren, writeCloseElement, writeOpenElement
-
Constructor Details
-
ScriptViewElementModelWriter
public ScriptViewElementModelWriter()
-
-
Method Details
-
writeModel
public void writeModel(ScriptViewElement viewElement, com.foreach.across.modules.web.thymeleaf.ThymeleafModelBuilder model) - Specified by:
writeModel
in interfacecom.foreach.across.modules.web.ui.thymeleaf.ViewElementModelWriter<ScriptViewElement>
- Overrides:
writeModel
in classcom.foreach.across.modules.web.ui.elements.thymeleaf.AbstractHtmlViewElementModelWriter<ScriptViewElement>
-