How to include groovy snippet into another groovy template in JBoss EPP and Site Publisher?

Solution Verified - Updated -

Issue

How to include groovy snippets in dialog template so that the similar code could be externalized in a separate groovy template and referred in all the dialog templates? This way the groovy contents could be centrally changed in one single file.

Environment

  • JBoss Enterprise Portal Platform(EPP) 5.x
  • JBoss Site Publisher 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content