Re: overriding getAssociatedMarkupStream

2008-05-15 Thread Eyal Golan
wow !! this wicket is sooo cool :) I did exactly what you suggested and it works like a charm. public IResourceStream getMarkupResourceStream(MarkupContainer container, Class containerClass) { if (html == null) { final DefaultMarkupResourceStreamProvider

Re: overriding getAssociatedMarkupStream

2008-05-14 Thread Eyal Golan
Hi, I tried implementing the IMarkupResourceStreamProvider in my web page: public IResourceStream getMarkupResourceStream(MarkupContainer container, Class containerClass) { if (html != null) { StringResourceStream myhtml = new StringResourceStream(new

Re: overriding getAssociatedMarkupStream

2008-05-14 Thread Igor Vaynberg
if you do not want the markup to be cached you have to also implement IMarkupCacheKeyProvider. returning null from getcachekey will prevent wicket from caching the markup. -igor On Wed, May 14, 2008 at 5:42 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, I tried implementing the

Re: overriding getAssociatedMarkupStream

2008-05-07 Thread Eyal Golan
ok, maybe I wasn't clear enough. The simple question is, why the add(HeaderContributor.forCss...)); is not added to the output markup when I override getAssociatedMarkupStream? Thanks On Tue, May 6, 2008 at 4:08 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi all, We have this method:

Re: overriding getAssociatedMarkupStream

2008-05-07 Thread Igor Vaynberg
you shouldnt be overriding that method, try implementing IMarkupResourceStreamProvider instead. -igor On Tue, May 6, 2008 at 11:20 PM, Eyal Golan [EMAIL PROTECTED] wrote: ok, maybe I wasn't clear enough. The simple question is, why the add(HeaderContributor.forCss...)); is not added to the