opensubscriber
   Find in this group all groups
 
Unknown more information…

t : tapestry-user@jakarta.apache.org 5 May 2006 • 5:44AM -0400

Re: weird ognl problem
by Dan Adams

REPLY TO AUTHOR
 
REPLY TO GROUP




Wow. That was actually it. Man, I need some sleep. Thanks tho.

On Thu, 2006-05-04 at 16:25 -0500, Paul Cantrell wrote:
> Just a sanity check: Make sure that the OGNL is referring to the  
> class you think it is, not some other class that just happens to have  
> an isShowMessages() method.
>
> You could do this by renaming isShowMessages() to isShowMessagesFoobar
> (), and make sure that this causes a "no property" exception as  
> expected for "ognl:showMessages".
>
> Another way to check would be to output "ognl:class.name" (not sure  
> if that actually works...).
>
> P
>
> On May 4, 2006, at 4:10 PM, Dan Adams wrote:
>
> > Okay, I'm getting some weirdness with ognl. I have a component with 2
> > parameters:
> >
> > @Parameter(defaultValue="true")
> > public abstract boolean isShowMessages();
> >
> > @Parameter
> > public abstract Block getPreContent();
> >
> > In the template, if I do "ognl:preContent" I get a "no property"
> > exception and if I do "ognl:getPreContent()" I get a "no method"
> > exception. But if I do "ognl:showMessages" or "ognl:isShowMessages()"
> > those both work. Any ideas? Is tapestry not enhancing the class
> > correctly? I have T4.0 and ognl 2.6.7.
> >
> > --
> > Dan Adams
> > Software Engineer
> > Interactive Factory
> > 617.235.5857
>
> _________________________________________________________________
> Piano music podcast: http://inthehands.com
> Other interesting stuff: http://innig.net
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jaka...
> For additional commands, e-mail: tapestry-user-help@jaka...
>
--
Dan Adams
Software Engineer
Interactive Factory
617.235.5857


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jaka...
For additional commands, e-mail: tapestry-user-help@jaka...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.