You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by Martin Makundi <ma...@koodaripalvelut.com> on 2011/10/08 09:06:59 UTC

Proposal for 1.4.x

Hi!

For debugging, in Component.java:

    try {
      modelChanging();
      model.setObject(object);
      modelChanged();
    } catch (Throwable t) {
      throw new RuntimeException("PageRelativePath: " +
getPageRelativePath(), t);
    }


**
Martin

Re: Proposal for 1.4.x

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Sometimes there is an exception in model update (propertymodels, etc.)
and is hard to know which component caused the problem. This component
path will help to resolve which component was guilty.

**
Martin

2011/10/8 Martin Grigorov <mg...@apache.org>:
> ?
>
> catching Throwable is not good, Exception is enough
> But can you give more details
>
> On Sat, Oct 8, 2011 at 10:06 AM, Martin Makundi
> <ma...@koodaripalvelut.com> wrote:
>> Hi!
>>
>> For debugging, in Component.java:
>>
>>    try {
>>      modelChanging();
>>      model.setObject(object);
>>      modelChanged();
>>    } catch (Throwable t) {
>>      throw new RuntimeException("PageRelativePath: " +
>> getPageRelativePath(), t);
>>    }
>>
>>
>> **
>> Martin
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>

Re: Proposal for 1.4.x

Posted by Martin Grigorov <mg...@apache.org>.
?

catching Throwable is not good, Exception is enough
But can you give more details

On Sat, Oct 8, 2011 at 10:06 AM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Hi!
>
> For debugging, in Component.java:
>
>    try {
>      modelChanging();
>      model.setObject(object);
>      modelChanged();
>    } catch (Throwable t) {
>      throw new RuntimeException("PageRelativePath: " +
> getPageRelativePath(), t);
>    }
>
>
> **
> Martin
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com