Also see org.apache.wicket.markup.html.include.Include On Thu, Jul 14, 2011 at 6:51 PM, Andrea Del Bene <[email protected]> wrote: > 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: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
