Re: setOutputMarkupId(true) on everything?

2017-08-01 Thread Jeroen Steenbeeke
You could try an IComponentInstantiationListener for that:

https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/application/IComponentInstantiationListener.html

You can set them in your Application class:

https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/Application.html#getComponentInstantiationListeners()

It seems harmless to me as well, but maybe I'm missing something important.

- Jeroen

2017-08-01 15:02 GMT+02:00 Entropy :

> While resolving our latest issue, a co-worker asked me why we don't just
> make
> a visitor to set every component to have setOutputMarkupId(true)?  It seems
> harmless, and corrects a common mistake people make of not setting it.
>
> Is there something I'm not seeing?  Is there a way to default this to true
> for all components other than a visitor in every page?  And if I did this,
> are there side effects that I am not seeing?  Some reason why this isn't
> standard behavior?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/
> setOutputMarkupId-true-on-everything-tp4678394.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Jeroen Steenbeeke


setOutputMarkupId(true) on everything?

2017-08-01 Thread Entropy
While resolving our latest issue, a co-worker asked me why we don't just make
a visitor to set every component to have setOutputMarkupId(true)?  It seems
harmless, and corrects a common mistake people make of not setting it.  

Is there something I'm not seeing?  Is there a way to default this to true
for all components other than a visitor in every page?  And if I did this,
are there side effects that I am not seeing?  Some reason why this isn't
standard behavior?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/setOutputMarkupId-true-on-everything-tp4678394.html
Sent from the Users forum mailing list archive at Nabble.com.

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