Tapestry
  1. Tapestry
  2. TAPESTRY-1026

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 4.1.2
    • Component/s: None
    • Labels:
      None

      Description

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

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568095 ] jira [ 12590031 ]
        Mark Thomas made changes -
        Workflow jira [ 12377007 ] Default workflow, editable Closed status [ 12568095 ]
        Jesse Kuhnert made changes -
        Assignee Jesse Kuhnert [ jkuhnert ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Fix Version/s 4.1.2 [ 12312202 ]
        Matthew B. Payne created issue -

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Matthew B. Payne
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development