Hi Mike,
take a look at interfaces IMarkupResourceStreamProvider and
IMarkupCacheKeyProvider. Using the first one you can implement method
getMarkupResourceStream which returns an IResourceStream with your
custom HTML. The second interface has a method called getCacheKey. You
must override it returning a simple null value. You have to do this in
order to avoid HTML caching for your component and to be sure that it
always loads updated content from server.
Hi,
i would like to provide a way for our designer to change the homepage
layout outside of the web-app.
But i'm not sure how to do it.
Usecase:
Wicket homepage contains a "div-placeholder" for the main-content.
Designer uploads a html fragment with <div>bla</div> to a file-server.
In the HomePage class i add a component loading the file content from
the server by a constant url.
Is this possible?
Thanks
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org