hi sandeep,

the reason to do so is to have prettier URLs.

When developing an application you tend to 
group your pages into logical packages. lets 
assume your application is able to change
Customer and Address objects. So you'll have
a bunch of pages in the respective packages.
Its very common to have a CustomerList and a
AddressList page that diplays the result of a search.
not altering the URL would result in following page
URLs:
address/addresslist/
customer/customerlist/
(funny note: i really had a customer that considered
above urls as invalid or faulty, because of the 
duplication; he expected something like addresslist/)

T5 will recognize this pattern and change these URLs
to: 
address/list
customer/list

What are the alternatives? You could rename your pages
to List, but then you'll end up with multiple List classes in
different packages. Or you  could add an own UrlRewriteRule
for every list page. 


i hope this helps
g,
kris



Von:    sandeepraj singh <sandeepraj.si...@atosorigin.com>
An:     users@tapestry.apache.org
Datum:  10.05.2010 08:35
Betreff:        Tapestry5 template name simplification




hi,

As per the tapestry5 documentation
"
In certain cases, Tapestry will simplify the the logical name of a page. 
For
example, the page class org.example.pages.address.Create Address will be
given a logical name of "address/Create" (the redundant "Address" is 
removed
as a suffix) "



I wanted to understand, why does tapestry5 take extra pains to do it. Is
there a huge advantage for doing this? 
Any explanation would help because, otherwise it looks confusing to see an
altered URL.

Thanks
Sandeep
-- 
View this message in context: 
http://old.nabble.com/Tapestry5-template-name-simplification-tp28508162p28508162.html

Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Reply via email to