ailto:[EMAIL PROTECTED]
Sent: Friday, October 06, 2006 4:21 PM
To: velocity-user@jakarta.apache.org
Subject: Re: Problem getting value from Map.
"Daryl Beattie" <[EMAIL PROTECTED]> writes:
>class DataHolder extends HashMap {
> public Value getA() {
>return this.get(n
"Daryl Beattie" <[EMAIL PROTECTED]> writes:
>class DataHolder extends HashMap {
> public Value getA() {
>return this.get(new Name("a")); //$NON-NLS-1$
> }
> @Override
> public Value get(Object key) {
>return super.get(new Name(key.toString()));
> }
>}
Quick question: Shouldn't that
.
-Original Message-
From: Barbara Baughman [mailto:[EMAIL PROTECTED]
Sent: Friday, October 06, 2006 3:07 PM
To: Velocity Users List
Subject: RE: Problem getting value from Map.
My guess is because "a" is translated by Velocity as a String, not a
Name object.
Barbara Baughman
X21
>
>
> -Original Message-
> From: Matthias Hendler [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 06, 2006 11:15 AM
> To: Velocity Users List
> Subject: Re: Problem getting value from Map.
>
> Hello Daryl,
>
> well, your class is package private and it must
Daryl.
-Original Message-
From: Matthias Hendler [mailto:[EMAIL PROTECTED]
Sent: Friday, October 06, 2006 11:15 AM
To: Velocity Users List
Subject: Re: Problem getting value from Map.
Hello Daryl,
well, your class is package private and it must be of public type.
You added a packa
your class must be declared as "public"
On 10/6/06, Daryl Beattie <[EMAIL PROTECTED]> wrote:
Hi Velocity people,
Okay, first off; I tried searching for answers to this, but
the mailing list archive is not searchable (in any way that I could
find), so if this question is a faq, ple
Hello Daryl,
well, your class is package private and it must be of public type.
You added a package private class into the velocity context.
This class is not accessible for velocity.
Declare the class BO public and it should work.
What else might confuse you - it confused me :-) - is, that if a