Re: missing key fail level

2009-05-31 Thread Joost Schouten (mailing lists)
as per my comment at : https://issues.apache.org/jira/browse/TAP5-721 I just started looking for a way on how to make this work and have an architecture question. The logic to handle a missing key message or exception lives in AbstractMessages and is quite straight forward. Adding a boolean field

Re: missing key fail level

2009-05-26 Thread Joost Schouten (mailing lists)
I just created a jira issue (https://issues.apache.org/jira/browse/TAP5-721) and will have a look over the weekend to see if I can supply a patch for this. I thought adding a boolean symbol along the lines of MISSING_MESSAGE_KEY_FAIL_WITH_EXCEPTION which defaults to false. Cheers, Joost On Wed, M

Re: missing key fail level

2009-05-26 Thread Thiago H. de Paula Figueiredo
On Tue, May 26, 2009 at 10:01 AM, Ulrich Stärk wrote: > On the other hand, Howard has modified Tapestry several times in order for > minor errors to be thrown as exceptions early on so that developers fix > their mistakes right away. Throwing an exception on a missing label seems to > fit in, at l

Re: missing key fail level

2009-05-26 Thread Ulrich Stärk
On the other hand, Howard has modified Tapestry several times in order for minor errors to be thrown as exceptions early on so that developers fix their mistakes right away. Throwing an exception on a missing label seems to fit in, at least for me. Maybe we can make it configurable so that everyo

Re: missing key fail level

2009-05-26 Thread Inge Solvoll
I believe the docs mention specifically that NOT throwing an exception is a nice feature :) On Tue, May 26, 2009 at 2:25 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, May 25, 2009 at 6:17 PM, Joost Schouten (mailing lists) > wrote: > > Hi, > > Hi! > > > Is there a way

Re: missing key fail level

2009-05-26 Thread Thiago H. de Paula Figueiredo
On Mon, May 25, 2009 at 6:17 PM, Joost Schouten (mailing lists) wrote: > Hi, Hi! > Is there a way to make tapestry throw an exception when it encounters > a missing key? I don't think so, but it looks like a nice feature. Please post a JIRA about it. ;) -- Thiago

missing key fail level

2009-05-25 Thread Joost Schouten (mailing lists)
Hi, Is there a way to make tapestry throw an exception when it encounters a missing key? I would prefer this over the silent printing of the "missing key" message on the page. If an exception is thrown my unit tests will pick up the incorrect rendering of the component/page in stead of me having t