You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org> on 2007/10/24 12:37:50 UTC

[jira] Resolved: (TAPESTRY-796) page-service-encoder for external service no longer working

     [ https://issues.apache.org/jira/browse/TAPESTRY-796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-796.
--------------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 4.2)
                   4.1.4

Dont think we should carry this along any more.

> page-service-encoder for external service no longer working
> -----------------------------------------------------------
>
>                 Key: TAPESTRY-796
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-796
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 4.0
>         Environment: 4.0rc1, Tomcat 5.5.9, OS X 10.4.3
>            Reporter: Paul Cantrell
>             Fix For: 4.1.4
>
>
> Using the page-service-encoder to map a file extension to the external page service no longer works.
> If I create these three files, the Home page correctly links to Page 2:
> Home.html:
>     <html>
>     <body>
>         <h1>Home Page</h1>
>         <a href="#" jwcid="@ExternalLink" page="Page2">Page 2</a>
>     </html>
> Page2.html:
>     <html>
>     <body>
>         <h1>Page 2</h1>
>     </html>
> Page2.java:
>     // insert default page package and imports here
>     public class Page2 extends BasePage implements IExternalPage {
>         public void activateExternalPage(Object[] x, IRequestCycle y) { }
>     }
> However, if I add this single configuration to my Hivemodule:
>     <contribution configuration-id="tapestry.url.ServiceEncoders">
>       <page-service-encoder id="external" extension="html" service="external" />
>     </contribution>
> ...then every link goes to the home page. The link on Home correctly gets encoded as /myapp/Page2.html, but that request just brings up the Home page again.
> No errors appear in the log file.
> The Tapestry servlet is mapped in web.xml as follows:
>   <servlet>
>     <servlet-name>tapestry</servlet-name>
>     <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>tapestry</servlet-name> <url-pattern>/*</url-pattern>
>   </servlet-mapping>
> This didn't get a response on the user mailing list, so I'm presuming it's a legitimate bug.
> This worked in Tapestry 4.0b6, but broken when I upgraded to rc1.

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