tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Howard Lewis Ship <hls...@gmail.com>
Subject Re: Default binding prefixes
Date Fri, 01 Apr 2005 16:11:21 GMT
Things came out looking pretty good, but I tagged Tapestry's HEAD
before and after checking in the changes so it will be easy to back it
out should the need arise.

One thing I'm seeing is that there's a lot of:

<parameter .... default-binding="ognl"/>

Making me think that, after all, "ognl" should be the meta-default,
and we should find the cases that cause problems (such as
PageLink.page or Shell.title) and make those explicitly
default-binding="literal".

Other fun things:

<span jwcid="@FieldLabel" field="inputName"/>    --- "component" is the default
<form jwcid="@Form" listener="doSubmit"> ...  -- "listener" is the default
<img jwcid="@Image" image="myIcon"/>  -- "asset" is the default

On Mar 31, 2005 5:10 PM, Howard Lewis Ship <hlship@gmail.com> wrote:
> On Thu, 31 Mar 2005 17:06:41 -0500, Jamie <jamie@dang.com> wrote:
> > I see what you're saying better now (especially after our IM chat). It
> > makes sense that a listener is obviously a listener. That if you're
> > using <img jwcid="@Image" image="someAsset"/>, "image" would be an
> > expression.
> >
> 
> Well, actually I'd set the default-binding for Image.image to be
> "asset" since that's what you're typically passing.  If it's just a
> statically defined asset, you get to say:
> 
> <img jwcid="@Image" image="myAsset"/>
> 
> If you need to be dynamic:
> 
> <img jwcid="@Image" image="ognl:computeAsset()"/>


-- 
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Mime
View raw message