Hi guys,

I am developing a heavy traffic web site entirely in Wicket 7 and I have
some questions about page caching.

The approach I took was to generate the product page HTML from Wicket
statically saving these files to be served direct to the user as a Wicket
Resource.

These pages has a Wicket contact form panel witch are dynamically loaded
using my own ajax that calls the mounted form panel from and manually
updates the HTML the the form panel generated markup.

//pseudo code ^^

//normal wicket form panel
mount("ad/contact")

//static page page
mount("/ad/page{#id}", Resource("/static/produtc-details-{#id}.html"))

This is working, but is not a good solution as I could only manage to get
the entire form html.
Inside the contact form I have a captcha that has an ajax link to refresh
its image.

I would like to have a #formContainer at the static page then using the
Wicket.Ajax be able to refresh the container HTML (ad/contact) and when the
captcha needs the refresh, only the captcha has to be updated, so the user
doesn't loose the form text he could have inserted.

It is possible to load the contact form from the static generated HTML
using the Wicket.Ajax and have the ajax component update working?

If you guys have a better approach to this problem, please let me know.
Thanks

-- 

Marcel Barbosa Pinto
55 11 98255 8288

Reply via email to