You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Matthew B. Payne (JIRA)" <ta...@jakarta.apache.org> on 2006/07/28 19:47:14 UTC

[jira] Created: (TAPESTRY-1026) PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.

PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.
-------------------------------------------------------------------------------------------------------------

                 Key: TAPESTRY-1026
                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1026
             Project: Tapestry
          Issue Type: Bug
    Affects Versions: 4.0.2
            Reporter: Matthew B. Payne


Page specifications are supposed to be optional.  However, the PageSpecificationResolverImpl does not find templates in all the same places/paths that is searches for actual .page specifications. 

java class for page -->
com.pennmutual.csc.pages.admin.ManageUsers

My .application file
[code]
<?xml version="1.0"?>

<!DOCTYPE application PUBLIC 
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
  
<application>  
  <meta key="org.apache.tapestry.page-class-packages" value="com.pennmutual.csc.pages"/>
  <meta key="org.apache.tapestry.component-class-packages" value="com.pennmutual.csc.components"/>
  <page name="Home" specification-path="AccountHome.page"/>
  <library id="Contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>	
  <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
  
</application>
[/code]

e.g. default package is. com.pennmutual.csc.pages
root templates/specs are in /WEB-INF/csc
The url of the page that is not found is http://localhost:8080/cee/admin/ManageUsers.html
If I put a page/specification file in /WEB-INF/csc/admin the page is found (Correct)
If I delete that page specification and just put my template in {webroot}/admin/, page specification is implicitly created (Correct).

***If I put my template in {webroot}/WEB-INF/csc/admin with no .page specification, the template is not found and no "implicit" specfication is create (InCorrect).**



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TAPESTRY-1026) PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.

Posted by "Matthew B. Payne (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-1026?page=comments#action_12424137 ] 
            
Matthew B. Payne commented on TAPESTRY-1026:
--------------------------------------------

after above if you just search/add the following lines, it may do the trick

    templateResource = getWebInfAppLocation().getRelativeResource(templateName);
			if (templateResource.getResourceURL() != null)
            {
                setupImplicitPage(templateResource, namespaceLocation);
                return;
            }

> PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1026
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1026
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>            Reporter: Matthew B. Payne
>
> Page specifications are supposed to be optional.  However, the PageSpecificationResolverImpl does not find templates in all the same places/paths that is searches for actual .page specifications. 
> java class for page -->
> com.pennmutual.csc.pages.admin.ManageUsers
> My .application file
> [code]
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC 
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>   
> <application>  
>   <meta key="org.apache.tapestry.page-class-packages" value="com.pennmutual.csc.pages"/>
>   <meta key="org.apache.tapestry.component-class-packages" value="com.pennmutual.csc.components"/>
>   <page name="Home" specification-path="AccountHome.page"/>
>   <library id="Contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>	
>   <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
>   
> </application>
> [/code]
> e.g. default package is. com.pennmutual.csc.pages
> root templates/specs are in /WEB-INF/csc
> The url of the page that is not found is http://localhost:8080/cee/admin/ManageUsers.html
> If I put a page/specification file in /WEB-INF/csc/admin the page is found (Correct)
> If I delete that page specification and just put my template in {webroot}/admin/, page specification is implicitly created (Correct).
> ***If I put my template in {webroot}/WEB-INF/csc/admin with no .page specification, the template is not found and no "implicit" specfication is create (InCorrect).**

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Resolved: (TAPESTRY-1026) PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.

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

Jesse Kuhnert resolved TAPESTRY-1026.
-------------------------------------

    Resolution: Fixed
      Assignee: Jesse Kuhnert

I think this is fixed now, let me know if it's not. 

> PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1026
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1026
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>            Reporter: Matthew B. Payne
>         Assigned To: Jesse Kuhnert
>             Fix For: 4.1.2
>
>
> Page specifications are supposed to be optional.  However, the PageSpecificationResolverImpl does not find templates in all the same places/paths that is searches for actual .page specifications. 
> java class for page -->
> com.pennmutual.csc.pages.admin.ManageUsers
> My .application file
> [code]
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC 
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>   
> <application>  
>   <meta key="org.apache.tapestry.page-class-packages" value="com.pennmutual.csc.pages"/>
>   <meta key="org.apache.tapestry.component-class-packages" value="com.pennmutual.csc.components"/>
>   <page name="Home" specification-path="AccountHome.page"/>
>   <library id="Contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>	
>   <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
>   
> </application>
> [/code]
> e.g. default package is. com.pennmutual.csc.pages
> root templates/specs are in /WEB-INF/csc
> The url of the page that is not found is http://localhost:8080/cee/admin/ManageUsers.html
> If I put a page/specification file in /WEB-INF/csc/admin the page is found (Correct)
> If I delete that page specification and just put my template in {webroot}/admin/, page specification is implicitly created (Correct).
> ***If I put my template in {webroot}/WEB-INF/csc/admin with no .page specification, the template is not found and no "implicit" specfication is create (InCorrect).**

-- 
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] Updated: (TAPESTRY-1026) PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-1026?page=all ]

Jesse Kuhnert updated TAPESTRY-1026:
------------------------------------

    Fix Version/s: 4.1.2

> PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1026
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1026
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>            Reporter: Matthew B. Payne
>             Fix For: 4.1.2
>
>
> Page specifications are supposed to be optional.  However, the PageSpecificationResolverImpl does not find templates in all the same places/paths that is searches for actual .page specifications. 
> java class for page -->
> com.pennmutual.csc.pages.admin.ManageUsers
> My .application file
> [code]
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC 
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>   
> <application>  
>   <meta key="org.apache.tapestry.page-class-packages" value="com.pennmutual.csc.pages"/>
>   <meta key="org.apache.tapestry.component-class-packages" value="com.pennmutual.csc.components"/>
>   <page name="Home" specification-path="AccountHome.page"/>
>   <library id="Contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>	
>   <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
>   
> </application>
> [/code]
> e.g. default package is. com.pennmutual.csc.pages
> root templates/specs are in /WEB-INF/csc
> The url of the page that is not found is http://localhost:8080/cee/admin/ManageUsers.html
> If I put a page/specification file in /WEB-INF/csc/admin the page is found (Correct)
> If I delete that page specification and just put my template in {webroot}/admin/, page specification is implicitly created (Correct).
> ***If I put my template in {webroot}/WEB-INF/csc/admin with no .page specification, the template is not found and no "implicit" specfication is create (InCorrect).**

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (TAPESTRY-1026) PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.

Posted by "Matthew B. Payne (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-1026?page=comments#action_12424135 ] 
            
Matthew B. Payne commented on TAPESTRY-1026:
--------------------------------------------

Don't have a patch, but start looking in code around line 189 in PageSpecificationResolverImpl 

e.g. 
====> this part looks for just a template in /{webroot}/admin/ManageUsers.html

    // The wierd one ... where we see if there's a template in the application root
            // location.

            String templateName = _simpleName + "." + getTemplateExtension();

            Resource templateResource = getContextRoot().getRelativeResource(templateName);

            if (_log.isDebugEnabled())
                _log.debug(ResolverMessages.checkingResource(templateResource));

            if (templateResource.getResourceURL() != null)
            {
                setupImplicitPage(templateResource, namespaceLocation);
                return;
            }
====> after this it should search /WEB-INF/csc/admin/ManageUsers.html



> PageSpecificationResolverImpl doesn't search "implict" page specifications/templates in all the right places.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1026
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1026
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 4.0.2
>            Reporter: Matthew B. Payne
>
> Page specifications are supposed to be optional.  However, the PageSpecificationResolverImpl does not find templates in all the same places/paths that is searches for actual .page specifications. 
> java class for page -->
> com.pennmutual.csc.pages.admin.ManageUsers
> My .application file
> [code]
> <?xml version="1.0"?>
> <!DOCTYPE application PUBLIC 
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN" 
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>   
> <application>  
>   <meta key="org.apache.tapestry.page-class-packages" value="com.pennmutual.csc.pages"/>
>   <meta key="org.apache.tapestry.component-class-packages" value="com.pennmutual.csc.components"/>
>   <page name="Home" specification-path="AccountHome.page"/>
>   <library id="Contrib" specification-path="classpath:/org/apache/tapestry/contrib/Contrib.library"/>	
>   <library id="tacos" specification-path="/net/sf/tacos/Tacos.library"/>
>   
> </application>
> [/code]
> e.g. default package is. com.pennmutual.csc.pages
> root templates/specs are in /WEB-INF/csc
> The url of the page that is not found is http://localhost:8080/cee/admin/ManageUsers.html
> If I put a page/specification file in /WEB-INF/csc/admin the page is found (Correct)
> If I delete that page specification and just put my template in {webroot}/admin/, page specification is implicitly created (Correct).
> ***If I put my template in {webroot}/WEB-INF/csc/admin with no .page specification, the template is not found and no "implicit" specfication is create (InCorrect).**

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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