문제

we have a "static", non-wicket CMS website and we want to include a dynamic wicket page/component in one of the static pages. Our idea was to use jQuery's load() method to load the content. And include wickets ajax js files in the header.

This worked more or less. But to make it work, the base-url of the page had to be redirected to the ajax endpoint of the wicket server.

Our latest and best solution is to include the page in an iFrame. Is there any more elegant way to do this?

도움이 되었습니까?

해결책

We have a similar thing, but we have made it by using the exact opposite of you. We include html fragment of the static content via Wicket and render our component inside.

다른 팁

I think, including (rich dynamic) Wicket content via ajax call, from static page, can break native Wicket power, action flow in statefull pages.

Opposite strategy (from cedric.gatay) seems better.

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