Re: question on Configuration

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On Jul 3, 2008, at 7:17 AM, Zemian Deng wrote:

> Hi, what does Configuration#setStrictBeanModels flag do?

It's equivalent to BeansWrapper.setStrict()

> I am looking to turn off all Bean's method invocation on templates( I
> want strict read only exported models only ), is that the right flag
> to set?

Well, I'd go with  
BeansWrapper.setExposureLevel(BeansWrapper.EXPOSE_PROPERTIES_ONLY);

Attila.


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.