I have implemented something with a similar need, where I load markup from a database, and want to let my application control when it is ready for updating. Ideally I would like to have it work outside of development mode - so I don't have to leave resource polling - i.e. the ModificationWatcher thread running and polling frequently in production.

if Application.markupCache could be changed from private to protected I could implement my own MarkupCache.

I could then override MarkupCache.getMarkup() and use custom business logic to determine whether to reload a container's markup before deferring to super.getMarkup()

Can Application.markupCache be make protected? so in Application.init() I can plug in a custom implementation?

thx,
evan


Juergen Donnerstag wrote:
Wicket caches the markup loaded. Hence you'll see it loaded only once.
However in development mode ModificationWatcher receives a request to
check regularly if the file (IResourceStream) has been changed (modify
date). If yes, the cache is cleared and all markup files are reloaded
on request.

Juergen

On 5/27/06, Suhail Ahmed <[EMAIL PROTECTED]> wrote:
Hi,

I have been developing on Wicket for a couple of weeks. I have come
to the point where I have overridden newMarkupResourceStream on Page
and is using this method to laod a page definition file from outside
the Wicket classpath. However I see that this method is called only
once. Is this true? If true, is there a way to have this method
called again since I am using a cache instance to store the page
definition and would like the newMarkupResourceStream method called
when the cache is invalidated or expires. Thank you in advance.

su./hail


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to