Project

General

Profile

Actions

Bug #14595

closed

WTemplate::renderTemplate() sets the event handlers of bound widgets

Added by Romain Mardulyn about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
06/12/2026
Due date:
% Done:

0%

Estimated time:

Description

WTemplate::renderTemplate() does render the widgets bound to the WTemplate into the given stream as html. This is done using WWidget::htmlText(), which also make the application execute the JavaScript necessary for the widget to function correctly.

This is an issue, because WTemplate::renderTemplate() does not require or make the WTemplate part of the DOM tree. This can lead to JavaScript being called on DOM elements that do not exists on the client side, leading to errors.

Actions #1

Updated by Romain Mardulyn about 2 months ago

  • Description updated (diff)
Actions #2

Updated by Romain Mardulyn about 2 months ago

  • Target version set to 4.13.4
Actions #3

Updated by Romain Mardulyn about 2 months ago

  • Target version changed from 4.13.4 to 4.13.3
Actions #4

Updated by Romain Mardulyn about 2 months ago

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)
Actions #5

Updated by Matthias Van Ceulebroeck about 2 months ago

  • Assignee set to Matthias Van Ceulebroeck
Actions #6

Updated by Romain Mardulyn about 2 months ago

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn
Actions #7

Updated by Romain Mardulyn about 2 months ago

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: Atom PDF