Accessing property via "Unary Accessor"
Sven Schliesing <[email protected]> Wed, 08 Mar 2006 01:15:44 +0100
| Newsgroups | gmane.comp.java.webmacro.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm having a class "Board" which has a private property "title". For
this property there is also a public getter "getTitle()", so that
webmacro can access it via "$board.Title"
Unfortunately this was so uncommon to me, that I tried "$board.title"
for nearly two hours now before realizing what I was doing wrong.
What is the reason (I'm pretty sure that there is a good one :) ) that
the accessor is not (also) trying "getTitle()" when using
"$board.title"? The property is "title" and not "Title", so. In general
a template designer should not even care about that. He should know what
properties the Bean got ("title" in my case) and not how their getters
are spelled.
Or am I getting something totally wrong? :)
Thanks for your help!
Greetings from snowy Hamburg
Sven
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642