You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Douglas Ferguson <do...@douglasferguson.us> on 2010/02/17 23:59:47 UTC

Add header contributor to all pages in Application

Is it possible to add a header contributor to all page in an Application without making a base class?

D/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Add header contributor to all pages in Application

Posted by James Carman <ja...@carmanconsulting.com>.
The instantiation listener is called for every component (and thus page).
You check to see if the object is a page and then add the behavior to it

On Feb 17, 2010 8:10 PM, "Douglas Ferguson" <do...@douglasferguson.us>
wrote:

But how would I add that to every page in the App?


On Feb 17, 2010, at 5:05 PM, James Carman wrote:

> You could use an IComponentInstantiationListene...

Re: Add header contributor to all pages in Application

Posted by Douglas Ferguson <do...@douglasferguson.us>.
But how would I add that to every page in the App?

On Feb 17, 2010, at 5:05 PM, James Carman wrote:

> You could use an IComponentInstantiationListener/HeaderContributor I suppose.
> 
> http://wicket.apache.org/docs/1.4/org/apache/wicket/application/IComponentInstantiationListener.html
> 
> http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/HeaderContributor.html
> 
> 
> On Wed, Feb 17, 2010 at 5:59 PM, Douglas Ferguson
> <do...@douglasferguson.us> wrote:
>> Is it possible to add a header contributor to all page in an Application without making a base class?
>> 
>> D/
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Add header contributor to all pages in Application

Posted by James Carman <jc...@carmanconsulting.com>.
You could use an IComponentInstantiationListener/HeaderContributor I suppose.

http://wicket.apache.org/docs/1.4/org/apache/wicket/application/IComponentInstantiationListener.html

http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/HeaderContributor.html


On Wed, Feb 17, 2010 at 5:59 PM, Douglas Ferguson
<do...@douglasferguson.us> wrote:
> Is it possible to add a header contributor to all page in an Application without making a base class?
>
> D/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org