Re: How to use property attributes on column tags for DisplayTag tables in Freemarker templates?
Geoff Shuetrim <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
John,
Thanks for confirming that I should be OK with the column tag shown below.
I am not quite sure what suggests that I am missing a Jar file.
I am feeling my way with using the beanswrapper but so far what I have tried
(with no visible effects at all) is to add the following overriding method
to my customisation of the Freemarker servlet class.
@Override
protected Configuration createConfiguration() {
Configuration cfg = super.createConfiguration();
cfg.setObjectWrapper(ObjectWrapper.BEANS_WRAPPER);
return cfg;
}
I think that means that my POJOs get a beans wrapper rather than a default
object wrapper (which itself is an extension of the beans wrapper if I
follow the documentation correctly). Thus the URIs in the list of URIs that
are being exposed in the data model are all wrapped by the beans wrapper,
more or less as before. Is that where you were suggesting that I head with
this or was there something more direct I should be doing when placing the
list of URIs into the data model?
Many thanks
Geoff Shuetrim
2009/8/13 Newman, John W <[email protected]>
>
> [@display.column property="scheme" title="Scheme" ]
>
>
>
> Should work correctly… I have used that many times with the same stack you
> are using without any issues. Are you using BeansWrapper? If not that may
> be why, give it a shot.
>
>
>
[snip]
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user