On 11/14/07 3:03 PM, in article [EMAIL PROTECTED],
"Vjeran Marcinko" <[EMAIL PROTECTED]> wrote:
> Hello.
>
> After years of using Tapestry 4.0, I just started experimenting with T5,
> and although it brings much improvement, I noticed a few issues:
>
> 1. Biggest issue - most of serious web apps out there wil always have few
> servlets/filters defined in their web.xml, and thus using
> <url-pattern>/*</url-pattern> mapping for tapestry filter is not acceptable
> since there will be other mappings defined there. But problem is if one
> specifies for instance /web/* mapping for tapestry filter, that forces
> specific undesirable structure of packaging of tapestry related code:
> com.mycompany.myapp.pages.web
T5 is a filter though, so you should be able to chain them together. I
think it was designed to address precisely the point you bring up. It also
helps with that horrible /app kludge from older versions of the framework.
> 2. I know that Tapestry picked convention over configuration, but there is a
> small drawback with it since good packaging should be defined by domain
> logic, not by implementing technology.
> For instance, it is not advisable to have packages called "sessionbeans" and
> "entitybeans" in your EJB app, it is no good to have "dao", "model"
> etc...Similary, it is no good to have "pages", "components" etc... Domain
> packaging by having "users", "messages", "companies" is good. Of course,
> Tapestry allows subpackaging of "pages" and "components" packages, but thing
> is that if one has to define 2 packages when having many components or pages
> related to one domain module - "components.users" and "pages.users".
> I admit that this is no big issue, just small dissapointment that I have to
> structure my app now differently from what I believe is optimal.
I'm still new to T5 myself, but I'm pretty sure these are configurable. At
one level, I do agree with you. It's very odd to me to have to move
abstract pages out to a different package. At the same time though, it's a
bit relieving to have a common structure for Tapestry apps.
> 3. Automatic shortening of page names seems totaly unnecessary to me. (just
> my opinion), sicne it can just bring some small confusion sometimes. Anyway,
> I don't object so much if it is optiona lfeature, but I think I found a bug
> today -
> I have a page under
> com.mycompany.myapp.pages.users.Users
> In other words users/Users page. But when I referenced it, Tapestry rasied
> exception saying that page doesn't exist, only "users/" ??!
There is certainly some cruft around here. E.g., you can't have
com.example.app.pages.Users and com.example.app.pages.users.ListUsers. If
you try to access ListUsers, it'll complain about the context/activation for
the Users page. Likewise, I've yet to figure out how to have "index" pages
for anything other than the root package, where it's named Start by
convention.
> 4 Most of some special purpose methods can use naming convention or
> annotation demarcation to mark their special purpose. Like event ethods, or
> rendering phases. I don't see why onActivate and onPassivate don't follow
> consistency and have annotations to mark them?
Heh. I don't see why bother with the annotations if there's a method naming
convention. I much prefer the latter. It jives more with the convention
over configuration method, and I don't find it remarkably better than XML.
Now I have a JavaDoc page I keep open with all the annotations to figure out
which one to use when and what parameters each takes. Sure, there's some
IDE support, but not when you don't know what you need to use anyway.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]