You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2007/05/22 19:50:16 UTC

[jira] Created: (TAPESTRY-1491) No way to get the logical page name for a page instance

No way to get the logical page name for a page instance
-------------------------------------------------------

                 Key: TAPESTRY-1491
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1491
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0
            Reporter: Howard M. Lewis Ship


There is no way to get the logical name of page from a page instance.  This is something that belongs in ComponentResources.

It is needed because ComponentSource.getPage(String) takes the logical page name, but there's no way to generate that name in code; you can "guess" using getClass().getSimpleName() but that's not accurate for page classes in a sub-package.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-1491) No way to get the logical page name for a page instance

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-1491:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> No way to get the logical page name for a page instance
> -------------------------------------------------------
>
>                 Key: TAPESTRY-1491
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1491
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>
> There is no way to get the logical name of page from a page instance.  This is something that belongs in ComponentResources.
> It is needed because ComponentSource.getPage(String) takes the logical page name, but there's no way to generate that name in code; you can "guess" using getClass().getSimpleName() but that's not accurate for page classes in a sub-package.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-1491) No way to get the logical page name for a page instance

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1491.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.5

It's now available via the inject ComponentResources, as method getPageName().

In addition, converted a number of internal services to use the logical page name (in a canonical form) to identify the page, rather than the fully qualified class name.  This should be more readable in a number of ways, since the class name is only really needed when first instantiating the page. It cuts down, in a minor way, the amount of data serialized inside forms, and shortens some of the toString() output for components & etc.

> No way to get the logical page name for a page instance
> -------------------------------------------------------
>
>                 Key: TAPESTRY-1491
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1491
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.5
>
>
> There is no way to get the logical name of page from a page instance.  This is something that belongs in ComponentResources.
> It is needed because ComponentSource.getPage(String) takes the logical page name, but there's no way to generate that name in code; you can "guess" using getClass().getSimpleName() but that's not accurate for page classes in a sub-package.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org