Re: How to process a bean and hash at the same time?

Guo Du <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
On Sat, May 15, 2010 at 4:23 AM, ipolevoy <[email protected]> wrote:
> Map: ${da_bean.age}
> Bean: ${da_bean.name}
> Is there a way to achieve this easier? Am I going in the wrong direction?
By default bean wrapper, you may implement all Map method such as
put(key,value), get(key), but NOT implement map interface as FM treat
map object differently. FM will look at getter first (for
da_bean.name) for normal java bean, if not found, will looking for
get(key) signature (for da_bean.age).

-Guo

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