Thanks for the exception code, that's most helpful. Where did you get it? I'd like to be able to just look this type of thing up rather then bugging everyone on the list about it.

As for the site, they do want to make it more dynamic. It seems the easiest approach is to bite the bullet and get it all ported over in one shot. Additionally, site maintenence is much simpler with Tapestry, we can use components to manage navigation, basic layout, etc. rather then having 1000 navbars :)

Mike

----- Original Message ----- From: "Kevin Menard" <[EMAIL PROTECTED]>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Friday, June 23, 2006 11:34 AM
Subject: Re: Porting Existing Site To Tapestry


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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to