문제

I'm trying to make a simple exception handling in my Tapestry app where I'd display only certain info.

For that matter, I'm trying to use <dialog>.

However, I'm not sure how to call the actual dialog.showModal(); from Tapestry Java code.

I've been poking on the internet, and I've seen some mention putting my JS in Mixin, but I'm not quite sure how to accomplish that.

The exception can happen in any of the java code I'm running, so I'm not rly sure how to proceed there.

도움이 되었습니까?

해결책

Take a look at this recipe from the official Tapestry cookbook.

Basically, provide a custom ExceptionReport page that implements the ExceptionReporter interface and you are good to go.

Update: The jumpstart provides an example to help you out.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top