On Fri, 23 Jun 2006 12:27:21 -0400, Michael Grundvig
<[EMAIL PROTECTED]> wrote:
1) How do I capture a Tapestry error that was caused by a missing page
(a 404). With friendly URLs enabled I get the nice Tapestry error page
when someone uses an invalid page. I need this to go to the custom 404
page for the site.
You're going to want to make something like the following contributions to
HiveMind:
<contribution configuration-id="tapestry.InfrastructureOverrides">
<property name="exceptionPresenter"
object="service:exceptionPresenter"/>
</contribution>
<!-- Custom exception page. -->
<service-point id="exceptionPresenter"
interface="org.apache.tapestry.error.ExceptionPresenter">
<invoke-factory service-id="hivemind.BuilderFactory" model="singleton">
<construct class="com.servprise.www.services.ExceptionHandler">
<set-object property="exceptionPageName"
value="infrastructure:exceptionPageName"/>
<set-object property="requestExceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="responseRenderer"
value="infrastructure:responseRenderer"/>
<set-object property="debug"
value="app-property:debug"/>
<set-object property="emailService"
value="service:emailService"/>
</construct>
</invoke-factory>
</service-point>
Replacing the service with your own class that implements
org.apache.tapestry.error.ExceptionPresenter.
2) Has anyone tried to port this large of a static site into Tapestry
directly?
3) Anyone used a war this large before? It's my biggest by far.
Out of curiosity, why are you converting a statice site to Tapestry? It
seems counter-intuitive to me, unless your plan is to gradually make it
more dynamic.
--
Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]