[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to