Well I got it to work by combining Info from here:

        http://thread.gmane.org/gmane.comp.java.tapestry.user/64654/focus=64655

and here:

        http://tapestry.apache.org/error-page-recipe.html

--------------------------------------------------------------------------------

Index.java page:

           Object onActivate(Object obj) {
             return Error404.class;
           }

Error404.java:

         public class Error404
            {

                @Property
                @Inject
                @Symbol(SymbolConstants.PRODUCTION_MODE)
                private boolean productionMode;

                @Inject
                private RequestGlobals requestGlobals;

                public void setupRender() {

                   
requestGlobals.getHTTPServletResponse().setStatus(HttpServletResponse.SC_NOT_FOUND);
                }
            }



TML:

        <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";>
          <head>
            <title>Resource not found.</title>
          </head>
          
           <body>

                
Page or resource not found.
  <br/>

                <t:if test="! productionMode">
                     http://bit.ly/Rcfayf 
                </t:if>

          </body>
        </html>

Cheers
Russell John-Baptiste



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/No-404-error-is-raised-tp3212773p5715638.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to