Brian Deterling
Brian Deterling

Reputation: 13724

How can I hide extra component span tags in Tapestry?

If I use a span tag to render a component like <span jwcid="@If" .../>, my HTML ends up with a bunch of useless span tags. Most of the time, that's ok, but in some cases, it's interfering with my CSS or making the page invalid. Is there a way to tell Tapestry to process the tag, but not actually render it?

Upvotes: 2

Views: 1298

Answers (1)

Jan Soltis
Jan Soltis

Reputation: 4429

Take a look at org.apache.tapestry.renderTags Tapestry configuration property:

Specifies whether or not some block level components will render their template tag names by default.

This currently affects the If, Else and For components.

You can also specify the renderTag parameter for a particular component instance, see the If component documentation.

Upvotes: 2

Related Questions