[prev in list] [next in list] [prev in thread] [next in thread]
List: velocity-dev
Subject: Re: Need a clarifcation about some issues
From: "Nathan Bubna" <nbubna () gmail ! com>
Date: 2007-04-29 17:18:39
Message-ID: 4d651da50704291018ra836b67w6ebcc0c1ece43d80 () mail ! gmail ! com
[Download RAW message or body]
On 4/29/07, Supun Kamburugamuva <supun06@gmail.com> wrote:
> Hi,
>
> My inner class was a private one. When I made it public everything
> worked well. Is it a issue that private inner classes are not working?
> (Henning suggested to open a Jira).
No. Classes and methods that are private or protected should not be
accessible within a template. No need to open an issue for this.
> Thanks,
> Supun.
>
>
>
> On 4/29/07, Nathan Bubna <nbubna@gmail.com> wrote:
> > On 4/28/07, Henning P. Schmiedehausen <hps@intermeta.de> wrote:
> > > "Supun Kamburugamuva" <supun06@gmail.com> writes:
> > >
> > > >2.I couldn't call inner class methods. I put an inner class object in
> > > >to Velocity context and then tried to call its methods from the
> > > >template. But it didn't work. Velocity just outputs the calling method
> > > >name.
> > >
> > > Yes, this is AFAIK a known restriction. Can you open a JIRA issue
> > > for this so that it does not get lost?
> >
> > No, even VelocityTools uses inner classes extensively. If the class
> > is public and the method is public, you should be good to go. It
> > doesn't make any difference whether the class is inner or outer.
> >
> > > Best regards
> > > Henning
> > >
> > > --
> > > Henning P. Schmiedehausen -- hps@intermeta.de | J2EE, Linux, |gls
> > > 91054 Buckenhof, Germany -- +49 9131 506540 | Apache person |eau
> > > Open Source Consulting, Development, Design | Velocity - Turbine guy |rwc
> > > |m k
> > > INTERMETA - Gesellschaft fuer Mehrwertdienste mbH - RG Fuerth, HRB 7350 |a s
> > > Sitz der Gesellschaft: Buckenhof. Geschaeftsfuehrer: Henning Schmiedehausen |n
> > >
> > > "Save the cheerleader. Save the world."
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> > > For additional commands, e-mail: dev-help@velocity.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> > For additional commands, e-mail: dev-help@velocity.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic