Or you could do as the quickstart archetype does:

 public static void
contributeApplicationDefaults(MappedConfiguration<String, String>
configuration)
    {
        configuration.add(TapestryConstants.PRODUCTION_MODE_SYMBOL, "false");
    }

That is, while you are actively developing the app, leave this in.
When you get near production, remove the configuration, and specify it
as -Dtapestry.production-mode=false on the command line as needed.

On Feb 17, 2008 7:00 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> yes :)
>
> either that,
> or pass the value to your ExceptionReporter
> and have customized page for both dev and production :)
>
> Davor Hrg
>
> On Feb 17, 2008 2:49 PM, Geoff Callender
>
> <[EMAIL PROTECTED]> wrote:
> > So you're suggesting that I test the value of the system property
> > tapestry.production-mode in AppModule and use it to condition whether
> > I contribute an ExceptionReporter.  Is that right?
> >
> >
> > On 17/02/2008, at 11:49 PM, Davor Hrg wrote:
> >
> > > you can use that symbol in your custom erro page too,
> > > either omit the contribution,
> > > or display different message
> > >
> > > On Feb 17, 2008 1:25 PM, Geoff Callender
> > > <[EMAIL PROTECTED]> wrote:
> > >> Is there a way to make it use your own custom exception report page
> > >> only if -Dtapestry.production-mode=true?
> > >>
> > >>
> > >> On 17/02/2008, at 10:47 PM, Geoff Callender wrote:
> > >>
> > >>> I like it - I think it's the right default.  Just need to make sure
> > >>> everyone's aware of it.
> > >>>
> > >>> Geoff
> > >>>
> > >>> On 17/02/2008, at 9:58 PM, Davor Hrg wrote:
> > >>>
> > >>>> it's exactly that
> > >>>>
> > >>>> On Feb 17, 2008 11:20 AM, Chris Poulsen <[EMAIL PROTECTED]>
> > >>>> wrote:
> > >>>>> Hi,
> > >>>>>
> > >>>>> Could this be related to the introduction of production mode ?
> > >>>>>
> > >>>>> I had to add:
> > >>>>>
> > >>>>>                   <systemProperties>
> > >>>>>                       <systemProperty>
> > >>>>>                           <name>tapestry.production-mode</name>
> > >>>>>                           <value>false</value>
> > >>>>>                       </systemProperty>
> > >>>>>                   </systemProperties>
> > >>>>>
> > >>>>> Into the maven-jetty-plugin configuration to get the nice
> > >>>>> exception page
> > >>>>>
> > >>>>> HTH
> > >>>>>
> > >>>>> --
> > >>>>> Chris
> > >>>>>
> > >>>>>
> > >>>>> Joost Schouten (ml) wrote:
> > >>>>>> I'm experiencing the same with 5.0.11
> > >>>>>>
> > >>>>>> Cheers,
> > >>>>>> Joost
> > >>>>>>
> > >>>>>> Geoff Callender wrote:
> > >>>>>>> Is anyone else seeing this?  The exception report page in
> > >>>>>>> T5.0.10 has
> > >>>>>>> no detail - I'm getting only a heading and the exception, eg.
> > >>>>>>> An unexpected application exception has occurred.
> > >>>>>>>
> > >>>>>>> Render queue error in BeginRender[examples/jodatime/1:pagelink]:
> > >>>>>>> java.lang.ClassNotFoundException: caught an exception while
> > >>>>>>> obtaining
> > >>>>>>> a class file for jumpstart.web.components.DateMidnightField
> > >>>>>>>
> > >>>>>>> Cheers,
> > >>>>>>>
> > >>>>>>> Geoff
> > >>>>>>
> > >>>>>>
> > >>>>>> ---------------------------------------------------------------------
> > >>>>>> 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]
> > >>>>>
> > >>>>>
> > >>>>
> > >>>> ---------------------------------------------------------------------
> > >>>> 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]
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to