and I guess FreemarkerUtil then does it's magic and adds all public methods to the data model. Great stuff and thanks again! This

Actually no, FreeMarker supports beans in a transparant way. So the class (no matter if a handler like here or a model like in paragraphs) can expose any bean which can then be accessed:

${model.bean.prop} --> model.getBean().getProperty()

FreeMarker also supports method calls:

${model.myMethod(content)}

This makes the combination of having a Java bean (model or handler in our case) and FreeMarker as template language so handy and powerful.

Philipp

----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to