Hi, I've fixed this for 1.3.

As a workaround for 1.2, this is what you can do:

Don't update the script tag directly, but enclose it in a div, like this:

<div wicket:id="script">
  <span style="display:none">This is an invisible tag to prevent buggy
IE ignoring the script>
  <script type="text/javascript">here comes the script</script>
</div>

Btw, as a sidenote, i noticed this in your code:

protected void onComponentTag(final ComponentTag tag)
 {
   add(new AttributeModifier("type", true, new Model("text/javascript")));
   add(new AttributeModifier("language", true, new Model("JavaScript")));
}
This is wrong. As a result on every render two attribute modifiers
will be added (this would even throw an exception in 1.3, as you are
changing component during the render).
This is how it should look like:

tag.put("type", "text/javascript");
tag.put("language", "JavaScript");

-Matej

On 6/14/07, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
> Forgot to mention this is on 1.2.6 havent tried with 1.3.
>
> Nino Saturnino Martinez Vazquez Wael wrote:
> > Hi Im starting a new thread as my old one has died.
> >
> > You can see it here :
> > http://www.nabble.com/-GMAP-contrib--IE7-Ajax-target-appendJavascript-not-working--t3883506.html
> >
> > But to make a long story short.
> >
> > Problem are when we replace our javascript container via ajax IE doesnt
> > update it or calls the old one. If we create new javascript
> > functions(function myfunction1..2..3) instead it gives a javascript
> > exception shown in wicket ajax debug window, again this is only on IE
> > browsers.
> >
> > I've looked trough JIRA and could not find anything that poped into my
> > eyes say that it was related.
> >
> > I've created a quickstart project showing the behavior, see that its
> > working with FF and not with IE6 and IE7:
> >
> > http://www.badongo.com/file/3410432
> >
> > regards Nino
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to