Discussion:
[FreeMarker-user] Freemarker and CDI @Named
Ivo Sestren Junior
2015-05-19 14:35:53 UTC
Permalink
Hi,

I have a class with @Named("title")
And in template i have: <title>${title.getTitle()}</title>


But this is not working, his showing variable title its null.

But my class its never calling.

How i use CDI @Named in Freemarker?
Daniel Dekany
2015-05-19 18:30:22 UTC
Permalink
This must some misunderstanding. FreeMarker itself doesn't care about
CDI or @Named, it never did. It only sees the variables that are
present in the data-model object that's passed to
Template.process(dataModel, writer). What's you data model?
Post by Ivo Sestren Junior
Hi,
And in template i have: <title>${title.getTitle()}</title>
But this is not working, his showing variable title its null.
But my class its never calling.
--
Thanks,
Daniel Dekany
b***@me.com
2015-05-19 17:22:06 UTC
Permalink
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

Loading...