You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2009/04/09 17:27:12 UTC

[jira] Commented: (TAP5-633) Allow page classes to have a "Page" suffix that is not included in the URL

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

Howard M. Lewis Ship commented on TAP5-633:
-------------------------------------------

Create a package named company and create a class CompanyIndex.

Tapestry will strip off "Company" because it matches the package name, and "Index" because its by itself, resulting in a base URL of "/company" to which the page activation context will be added.

> 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.