You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by bu...@apache.org on 2004/09/01 22:23:51 UTC

DO NOT REPLY [Bug 31004] New: - Can't refer to inherited methods using $bean.getWhatever() syntax

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31004>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31004

Can't refer to inherited methods using $bean.getWhatever() syntax

           Summary: Can't refer to inherited methods using
                    $bean.getWhatever() syntax
           Product: Velocity
           Version: 1.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Source
        AssignedTo: velocity-dev@jakarta.apache.org
        ReportedBy: fgracely@lightbridge.com


I have a class structure where most of my beans extend a class that provides  
getPrefix() and getVersion() methods. I added the reference $bean.getPrefix() to 
one of my Velocity templates and it wasn't able to resolve the value. I had used 
the bean elsewhere in the same template so I know that it was in the context and 
associated with the name "bean". I may have just missed something in the 
documentation about this, but it is a real issue for me as I would have to 
propogate down all the super class methods to all of the extending beans.

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org