The purpose of this taglib is to define a ui composition pattern to leverage template layout.
The taglib will expose the following tags :
- ui:composition: The main tag. It takes a template attribute and it has ui:define tags as childrens.
- ui:define: The children tags. It takes a name attribute and
a composition attribute which is a trick to create the parent<->children relationship. The body content of each ui:define tags will be used inside the ui:composition template.
The taglibWriting taglib in Grails is a breeze on the contrary of frameworks like JSF.
Composition contains a simple map:
The "table" template
This taglib can replace Sitemesh layout however Sitemesh provides convention over configuration for layouts and Sitemesh is in Java and therefore much faster than Groovy .
UI composition pattern is more generic and leverage template layout and template reusing.
 Mean response time for 50 concurrent thread :