You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jonny Wray <jo...@yahoo.com> on 2004/06/02 04:25:28 UTC

Re: What is the "user" in "ognl:user.name"?

This concept is pretty basic to using Tapestry. I'd go read up on OGNL, the
object graph navigation language that Tapestry uses.

To answer your question. user.name can translate to many things depending on
what user and name are (read the ognl docs for specifics). But, in the basic
case it translates to getUser().getName() called on the Tapestry page
defined by your template.

What defines this class? Well, again, this is a pretty fundamental part of
the way Tapestry works and there's multiple ways it can be done. You can do
it yourself explicitly or use Tapestry to define a page property implicitly.

As far as OGNL is concerned, it does not matter what class getUser()
returns, as long as that class has a getName() method.

On 6/2/04 7:13 PM, "zhuang" <zz...@21cn.com> wrote:

> Hi,everyone! I'm newbie to Tapestry, Please help me!
> 
> If we use "ognl:user.name" in out template file(*.html)
> what is the "user" meaning?
> 
> Is it a "Class"?   (--who and where define the class? why "user" not
> "User"?)
> or a "instance" of a Class?   (--who name it? and the Class is?)
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


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