Re: Calling static methods

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Friday, July 11, 2008, 12:06:37 PM, Attila Szegedi wrote:

> On Jul 10, 2008, at 11:53 AM, Taras Tielkes wrote:
>
>> Daniel Dekany <ddekany <at> freemail.hu> writes:
>>
>>>> Can I call static methods on a bean that's part of the model?
>>>> The documentation isn't explicit here. However, it seems to work.
>>> Attila?
>>
>> Atilla?
>
>
> FreeMarker exposes any methods that java.beans.Introspector will  
> expose. If it exposes statics, we'll expose statics. If it doesn't, we
> won't either.
>
> Do you have an actual problem?
>
> I'm on vacation currently, so response times might be long.

The original complain was that the documentation of FM doesn't seem to
indicate this clearly. That one can call the static methods of objects
(instances) or not.

> Attila.

-- 
Best regards,
 Daniel Dekany


-------------------------------------------------------------------------
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.