Actually, instead of fixing the documentation, we could better fix the
problem here. I'll look into it later today.

Eelco


On 11/9/06, Erik Brakkee <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
> I just solved a problem where I used a headercontributor (following Eelco's
> blog http://chillenious.wordpress.com/page/2/) using
>
> add(HeaderContributor.forJavaScript (getClass(), "script.js"));
>
> On some pages it turned out that this same resource was included twice with
> different URLs. What happened was that I used
>
> new MyComponnt(parent, id) {
>     public void isRequired() {
>         return true;
>     }
> };
>
> Effectively creating a new component referring to the same resource.
>
> The problem was solved by using MyComponent.class instead of getClass(0 in
> the component implementation. Shouldn't the javadocs say something about
> this that it is advised to use      MyComponent.class instead of getClass()
> to avoid multiple inclusion of the same resource?
>
> Cheers
>   Erik
>
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to