RE: onclick auto-added to script tags?
Using Wicket 1.4.3. Since things are working right now without the wicket:link/ tag, I'm going to leave it like that. -Original Message- From: bgooren [mailto:b...@iswd.nl] Sent: Thursday, November 26, 2009 6:26 AM To: users@wicket.apache.org Subject: RE: onclick auto-added to script tags? Well, I don't use Spring integration in my projects, so I cannot tell you for sure if that could be the reason for this. I do however find it unlikely that Spring integration would alter html tags. What you could try is step through the rendering process with a debugger and see what's happening with the wicket:link/ tag. See AutoLinkResolver and WicketLinkTagHandler. Which version of Wicket are you running? Loritsch, Berin C. wrote: I'm integrated with Spring/Hibernate, could this be a side effect from the SpringInvocationHandler? I've not added anything of the sort directly (i.e. I have not created any ComponentInstantiationListeners myself). I've removed the wicket:link/ blocks for now in my header and things are working as expected. That rules out a browser plugin being at fault. -- View this message in context: http://old.nabble.com/onclick-auto-added-to-%3Cscript%3E-tags--tp2650427 4p26526076.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: onclick auto-added to script tags?
Well, I don't use Spring integration in my projects, so I cannot tell you for sure if that could be the reason for this. I do however find it unlikely that Spring integration would alter html tags. What you could try is step through the rendering process with a debugger and see what's happening with the wicket:link/ tag. See AutoLinkResolver and WicketLinkTagHandler. Which version of Wicket are you running? Loritsch, Berin C. wrote: I'm integrated with Spring/Hibernate, could this be a side effect from the SpringInvocationHandler? I've not added anything of the sort directly (i.e. I have not created any ComponentInstantiationListeners myself). I've removed the wicket:link/ blocks for now in my header and things are working as expected. That rules out a browser plugin being at fault. -- View this message in context: http://old.nabble.com/onclick-auto-added-to-%3Cscript%3E-tags--tp26504274p26526076.html Sent from the Wicket - User 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
Re: onclick auto-added to script tags?
I'm using wicket:link/ blocks around javascript references as well and have never observed the behavior you describe. Do you auto-add a behavior to components which adds the onclick value? It's being added from somewhere, and is not default Wicket behavior. So it's either a browser plugin or an IBehavior added from, say, a ComponentInstantiationListener. Bas Loritsch, Berin C. wrote: I have my HTML header links for CSS and JavaScript surrounded in a wicket:link/ block so that it can resolve the context name, etc. Problem is that it causes unexpected and peculiar behavior: script type=text/javascript src=script/prototype.js/script Becomes script type=text/javascript src=script/prototype.js onclick=window.location.href='script/prototype.js';return false;/script Which is invalid markup, much less causing errors for me. How do I get rid of the onclick attribute? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/onclick-auto-added-to-%3Cscript%3E-tags--tp26504274p26511542.html Sent from the Wicket - User 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
RE: onclick auto-added to script tags?
I'm integrated with Spring/Hibernate, could this be a side effect from the SpringInvocationHandler? I've not added anything of the sort directly (i.e. I have not created any ComponentInstantiationListeners myself). I've removed the wicket:link/ blocks for now in my header and things are working as expected. That rules out a browser plugin being at fault. -Original Message- From: bgooren [mailto:b...@iswd.nl] Sent: Wednesday, November 25, 2009 7:07 AM To: users@wicket.apache.org Subject: Re: onclick auto-added to script tags? I'm using wicket:link/ blocks around javascript references as well and have never observed the behavior you describe. Do you auto-add a behavior to components which adds the onclick value? It's being added from somewhere, and is not default Wicket behavior. So it's either a browser plugin or an IBehavior added from, say, a ComponentInstantiationListener. Bas Loritsch, Berin C. wrote: I have my HTML header links for CSS and JavaScript surrounded in a wicket:link/ block so that it can resolve the context name, etc. Problem is that it causes unexpected and peculiar behavior: script type=text/javascript src=script/prototype.js/script Becomes script type=text/javascript src=script/prototype.js onclick=window.location.href='script/prototype.js';return false;/script Which is invalid markup, much less causing errors for me. How do I get rid of the onclick attribute? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/onclick-auto-added-to-%3Cscript%3E-tags--tp2650427 4p26511542.html Sent from the Wicket - User 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org