You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jan Vissers <Ja...@cumquat.nl> on 2007/06/04 21:45:51 UTC

T4.1.1 - Why is ServiceEncoder always called on external page?

Using this setup in hivemodule.xml

 <contribution configuration-id="tapestry.url.ServiceEncoders">
   <page-service-encoder id="page" extension="html" service="page" />
   <direct-service-encoder id="direct" stateless-extension="direct"
                stateful-extension="sdirect" />
   <extension-encoder id="extension" extension="svc" after="*" />
   <encoder id="viewcard" before="external"
object="instance:com.cumquatit.refapp.view.tapestry.viewencoders.ViewCardEncoder,pageName=pages/ResearchCardpage,url=/card"
/>
   <page-service-encoder id="external" extension="external"
                service="external" />
    </contribution>


Why is it that all of my external pages 'go through' the 'viewcard'
service encoder? I would have expected only 'pages/ResearchCardpage' being
encoded/decoded.

Hoping anyone can clear this up,
Thanks,

-J


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


Re: T4.1.1 - Why is ServiceEncoder always called on external page?

Posted by Jan Vissers <Ja...@cumquat.nl>.
Arrgh, my mistake.
Missed the pageName.equals(_pageName) check in the encode method.

Sorry

> Using this setup in hivemodule.xml
>
>  <contribution configuration-id="tapestry.url.ServiceEncoders">
>    <page-service-encoder id="page" extension="html" service="page" />
>    <direct-service-encoder id="direct" stateless-extension="direct"
>                 stateful-extension="sdirect" />
>    <extension-encoder id="extension" extension="svc" after="*" />
>    <encoder id="viewcard" before="external"
> object="instance:com.cumquatit.refapp.view.tapestry.viewencoders.ViewCardEncoder,pageName=pages/ResearchCardpage,url=/card"
> />
>    <page-service-encoder id="external" extension="external"
>                 service="external" />
>     </contribution>
>
>
> Why is it that all of my external pages 'go through' the 'viewcard'
> service encoder? I would have expected only 'pages/ResearchCardpage' being
> encoded/decoded.
>
> Hoping anyone can clear this up,
> Thanks,
>
> -J
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



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