Re: Can i "include" an external html fragment?

2011-07-14 Thread Martin Grigorov
Also see org.apache.wicket.markup.html.include.Include On Thu, Jul 14, 2011 at 6:51 PM, Andrea Del Bene wrote: > Hi Mike, > > take a look at interfaces IMarkupResourceStreamProvider and > IMarkupCacheKeyProvider. Using the first one you can implement method > getMarkupResourceStream which returns

Re: Can i "include" an external html fragment?

2011-07-14 Thread Andrea Del Bene
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

Can i "include" an external html fragment?

2011-07-14 Thread Mike Mander
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 bla to a file-server. In the HomePage class