Project

General

Profile

Actions

Bug #7912

closed

Accessing WpopupMenu crashes in Widgetset mode. Works fine in regular mode

Added by Prasad Dixit over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
12/14/2020
Due date:
% Done:

100%

Estimated time:

Description

Hi,

My code is largely based on Popup menu example here: https://www.webtoolkit.eu/widgets/navigation/popup-menu

The code works just fine in the regular mode (EntryPointType Application). However, in WidgetSet mode, when the PushButton with popup menu defined by setMenu is clicked, the application crashes with following message:

JavaScript error: {""exception_description"":""Cannot read property 'display' of undefined"",""exception_js"":"" ...}

I tried it with Wt 4.04 and latest RC 4.5.0. In both cases, result is the same.


Related issues 1 (0 open1 closed)

Has duplicate Bug #7914: WPopupMenu in WidgetSet application gives Wt internal error; code: undefined, description: Cannot read property 'display' of undefinedClosed12/14/2020

Actions
Actions #1

Updated by Roel Standaert over 3 years ago

Are you using WidgetSet mode within another Wt application? I think they may be conflicting with each other. Try setJavaScriptClass to make sure the WidgetSet application uses a different class name.

Actions #2

Updated by jeroen zpam over 3 years ago

wow coincidence i just reported the same thing with wt3.7 ...

Actions #3

Updated by Prasad Dixit over 3 years ago

Roel - No, it is just a single Wt application running in WidgetSet mode in a web page.

@Jorem : Good to know that I am not the only one having this issue.

Actions #4

Updated by Roel Standaert over 3 years ago

  • Target version set to 4.5.1
Actions #5

Updated by Korneel Dumon over 3 years ago

  • Status changed from New to Implemented @Emweb
  • Assignee set to Korneel Dumon
Actions #6

Updated by Roel Standaert over 3 years ago

  • Related to Bug #7914: WPopupMenu in WidgetSet application gives Wt internal error; code: undefined, description: Cannot read property 'display' of undefined added
Actions #7

Updated by Roel Standaert over 3 years ago

  • Related to deleted (Bug #7914: WPopupMenu in WidgetSet application gives Wt internal error; code: undefined, description: Cannot read property 'display' of undefined)
Actions #8

Updated by Roel Standaert over 3 years ago

  • Has duplicate Bug #7914: WPopupMenu in WidgetSet application gives Wt internal error; code: undefined, description: Cannot read property 'display' of undefined added
Actions #9

Updated by Roel Standaert about 3 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #10

Updated by Roel Standaert over 2 years ago

  • % Done changed from 0 to 100
Actions #11

Updated by Roel Standaert over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF