Wicket
  1. Wicket
  2. WICKET-3669

<script> element in Ajax requests is executed twice in Opera 11

    Details

      Description

      I have component with behavior which adds <script> element in Behavior.onComponentRendered() to respons. This javascript is to be processed in browser when component is rendered. This works pretty well when component is rendered during standard HTTP request. But when the same code is called from Ajax request, this script runs on browser two times!

      There is some magic in Ajax request processing in wicket-ajax.js: only for Opera and IE these <script> elements from responses are added to HTML and page <header> element as well. Comment says that this is workaround for these browsers, maybe in older versions of Opera dynamically adding element into HTML doesn't run <script> elements within, but now could be obsolete.

      1. testcase-WICKET-3669.tar.gz
        8 kB
        Martin Schayna
      2. testcase-WICKET-3669-second.tar.gz
        8 kB
        Martin Schayna

        Activity

        Martin Schayna created issue -
        Martin Schayna made changes -
        Field Original Value New Value
        Attachment testcase-WICKET-3669.tar.gz [ 12478262 ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 1.4.18 [ 12316329 ]
        Fix Version/s 1.5-RC5 [ 12316423 ]
        Resolution Fixed [ 1 ]
        Martin Schayna made changes -
        Attachment testcase-WICKET-3669-second.tar.gz [ 12486323 ]
        Martin Grigorov made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Jeremy Thomerson made changes -
        Fix Version/s 1.4.19 [ 12317570 ]
        Fix Version/s 1.4.18 [ 12316329 ]
        Igor Vaynberg made changes -
        Fix Version/s 1.4.20 [ 12318545 ]
        Fix Version/s 1.4.19 [ 12317570 ]
        Martin Grigorov made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Fix Version/s 6.0.0 [ 12315431 ]
        Fix Version/s 1.4.20 [ 12318545 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Schayna
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development