Hi!
Does Wicket have this functionality built-in? Would it make sense?
public abstract class AbstractHeaderJavaScriptBehavior extends AbstractBehavior
implements IHeaderContributor {
/**
* @see
org.apache.wicket.behavior.AbstractBehavior#renderHead(org.apache.wicket.markup.html.IHeader
unless you are planning to reuse such snippets it is cleaner to let
your component implement IHeaderContributor.
-igor
On Sat, Feb 14, 2009 at 2:52 AM, Martin Makundi
wrote:
> Hi!
>
> Does Wicket have this functionality built-in? Would it make sense?
> public abstract class AbstractHeaderJavaScr
> unless you are planning to reuse such snippets it is cleaner to let
> your component implement IHeaderContributor.
So if I make a Panel implement IHeaderContributor, the renderHead will
automatically be called? This would be very nice. Maybe it should be
more apparent from the framework?
**
Mar
yep, thats how it works. any component can implement iheadercontributor.
-igor
On Sat, Feb 14, 2009 at 11:29 PM, Martin Makundi
wrote:
>> unless you are planning to reuse such snippets it is cleaner to let
>> your component implement IHeaderContributor.
>
> So if I make a Panel implement IHeader
Tnx. :) Why don't the component implement iheadercontributor already?
It would be more obvious then..
**
Martin
2009/2/15 Igor Vaynberg :
> yep, thats how it works. any component can implement iheadercontributor.
>
> -igor
>
> On Sat, Feb 14, 2009 at 11:29 PM, Martin Makundi
> wrote:
>>> unless
Since when does a Label, Link, Image, WebMarkupContainer contribute to
the section of a page?
It definitely is not obvious to me that such should be the case.
Martijn
On Sun, Feb 15, 2009 at 8:15 PM, Martin Makundi
wrote:
> Tnx. :) Why don't the component implement iheadercontributor already?