I think he's correct here, we should remove the 'name' attribute for the
el version, unless we keep it the same as the non-EL version. In my
opinion, that would just cause a ton of confusion and it'd be better to
just remove it.
On Thu, 11 Mar 2004, Drew Davidson wrote:
> Fabrizio Giustina wrote:
>
> >
> >Right, you will never use <display:table name="userList"> without ${}...
> >
> >the "name" attribute expects a reference to a list object: in the "old style" this
> >was done using a custom sintax, in the EL version this is done using the standard
> >expression language. It works in the same way all the other jstl tags work.
> >If you need your list to be choosen dinamically you can set a different variable
> >before the display:table tag.
> >
> >Sorry Tim, but I still don't think that using el to generate an expression which is
> >then re-evaluated using a different sintax can be a good design...
> >
> >
>
> I agree completely, Fabrizio. The alternative is to evaluate the
> expression to a String then use that String to look up the object in
> page/session/request/servletContext, as you mentioned before on this thread.
>
> Much better to let the EL handle the entire lookup process and return a
> List. The "name" attribute then becomes a bit misnamed, however,
> because now it's more like:
>
> <display:table name="${expr}" ...>
>
> but it's not a "name", it's a "list"
>
> <display:table list="${expr}"> ...>
>
> Is this something that is not likely to change? This is the "API" that
> displaytag will be stuck with for a long time, and naming of things is
> very important, as are the concepts you expose. Since it's relatively
> early in the life of displaytag you might consider looking at how the
> tag attributes are named and how they work to make sure that they make
> sense for the direction you want to go.
>
> - Drew
>
>
--
John York
Software Engineer
CareerSite Corporation
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel