tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Field (JIRA)" <j...@apache.org>
Subject [jira] Commented: (TAP5-633) Allow page classes to have a "Page" suffix that is not included in the URL
Date Mon, 09 Nov 2009 12:36:32 GMT

    [ https://issues.apache.org/jira/browse/TAP5-633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774946#action_12774946
] 

Paul Field commented on TAP5-633:
---------------------------------

Thanks for the URL rewriting idea - I've tried it out quickly but I wasn't keen that I still
had to use the Page postfix in the .tml files (e.g. when creating a link to the page) - I
think that would be confusing.

I also had a quick go at advising ComponentClassResolver, but I realised that when Tapestry
reports the list of known components (on startup and on exception pages) it would still list
the paths including the "Page" postfix - which, again, I think would be confusing.


> Allow page classes to have a "Page" suffix that is not included in the URL
> --------------------------------------------------------------------------
>
>                 Key: TAP5-633
>                 URL: https://issues.apache.org/jira/browse/TAP5-633
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.1.0.2
>            Reporter: Paul Field
>            Priority: Minor
>
> I have an application with a lot of read-only pages. For example, I have a page that
shows a company and I would like a URI such as:  /company/1234
> However, if I name the page class "Company" then I get a naming clash with the domain
object "Company". What I would like to do is call the Tapestry 5 class "CompanyPage" - after
all, that is what the class represents and it's certainly how the team refers to that thing
internally and with our business (i.e. "Have you seen the new company page?").
> So, please could the ComponentClassResolverImpl remove the suffix "Page" (if it exists)
from the class name when it constructs the logical page name?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message