Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

JET FAQ Why my custom container tag does not process its body content ?


I defined a custom Container tag for my Jet transformation, but I cannot launch any process on its body content.


There are two steps for defining a custom container tag with custom body process :

First, you need to override method setBodyContent() from superclass :

public void setBodyContent(JET2Writer bodyContent) {
  tagContent = bodyContent.toString();

Note : if you wish to keep on writing body content on your generated file, you will have to call super.setBodyContent(...)

You also have to specify in plugin definition that your containerTag has to use your own treatment on its body content :

1. Open plugin.xml, Extension Tab

2. Select the needed tag

3. Set the processContents element on the right on custom

See Also

Back to the M2T-JET-FAQ

Back to the top