i have already done that as a back up plan. Do you think wicket is a bit wierd in handling exceptions. On 20 Feb 2013 16:22, "Ondrej Zizka" <ozi...@redhat.com> wrote:
> How about wrapping it to a RuntimeException, or preferably, your own > subclass of it? > > Ondra > > > > On 02/20/2013 04:51 PM, Jayakrishnan R wrote: > >> In my project, I am using LoadableDetachableModel as given below. >> >> public ReportPage(final Objectm, final PageReference pr) throws >> CustomException{try{final LoadableDetachableModel<List<**MaintReport>> >> ldm = >> new LoadableDetachableModel<List<**MaintReport>>() { >> >> @Override >> protected List<MaintReport>load() { >> **// Some Database operations //** >> return x; >> } >> }; >> /* >> Several LoadableDetachableModels, PageableListViews, Panels, Fragments >> etc. >> */ } catch ( Exception ex){// create Custom Exception } finally { >> // Clean up of stuff } >> >> >> My problem is that I am using AbstractColumn to display the objects in the >> column and the overriden populateItem() method calls the load() >> internally. Since both the methods cannot throw Exceptions, I cannot >> really catch exceptions and display appropriate messages. >> >> Any help on this is really appreciated. >> >> >