문제

I'm implementing an error page for my application, and would like to know how to implement a wicket ExternalLink to the previous page? I think I have to save the parameters, or the whole URL of the previous page, but I'm not sure and I don't know how to do that.. do you have any idea?

I'm using Wicket / WicketPages..

도움이 되었습니까?

해결책

You could create a Link that has a setReponsePage(YourClass.class, pageParameters) in the onClick. However, you lose the state that the previous page had.

Alternatively, you could try a javascript:history.go(-1). This would try to go back to the previous page within the browser.

It totally depends on what you define as 'the last page'

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