开发者

How to do Exception Handling in Wicket

I've read that wicket can't throw Checked exception. how to deal with this? What is a good way to implement exception handling in Wicket spri开发者_JAVA百科ng based application?

Mac


What do you mean, "Wicket can't throw". [citation needed] :)

Perhaps you read somewhere that wicket will not pass an exception to the servlet container in the default configuration?

I usually wrap specific components' methods with a try and change the page appropriately in catch, i.e. telling the user that something went wrong.

Update: And also, you have the error(), warn() etc. in every Component which works with Feedback stuff. See here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜