I am making a reference from a template that isn't working and, based on
what I see in my logs, it makes no sense to me.
Here is the template:
Thank you. Your new phone number is $tn.USFormattedTn
$tn is an object of class TelephoneNumber.
TelephoneNumber has a method String getUSFormattedTn(
Are you sure that getUSFormattedTn() is declared public and that
TelephoneNumber is a public class?
If so, double check directly that tn is in the context and is the
expected class by doing $tn.class right before or after the call to
$tn.USFormattedTn.
If all above checks out, you might as well t
Also, wouldn't the naming rules imply that method "getUSFormattedTn()"
be referenced as property "uSFormattedTn"?
Ray
On Mon, 2009-04-06 at 07:14 -0700, Nathan Bubna wrote:
> Are you sure that getUSFormattedTn() is declared public and that
> TelephoneNumber is a public class?
>
> If so, double
Both should work. We've always allowed $bar.getFoo() to be referenced
as $bar.foo or $bar.Foo
But you're right. It would be good to confirm whether
$tn.uSFormattedTn works, just to make sure something wasn't broken in
the release being used.
On Mon, Apr 6, 2009 at 10:01 AM, Raymond Auge wrote:
Nathan Bubna wrote:
Are you sure that getUSFormattedTn() is declared public and that
TelephoneNumber is a public class?
Yes.
If so, double check directly that tn is in the context
The log file entry below confirms that.
and is the
expected class by doing $tn.class right before or after the
On Mon, Apr 6, 2009 at 3:49 PM, Steve Cohen wrote:
> Nathan Bubna wrote:
>>
>> Are you sure that getUSFormattedTn() is declared public and that
>> TelephoneNumber is a public class?
>>
>
> Yes.
>>
>> If so, double check directly that tn is in the context
>
> The log file entry below confirms that.