Project

General

Profile

Bug #7912

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

Added by Prasad Dixit 10 months ago. Updated 2 months ago.

Status:
Resolved
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

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

Actions
#1

Updated by Roel Standaert 10 months 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.

#2

Updated by jeroen zpam 10 months ago

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

#3

Updated by Prasad Dixit 10 months 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.

#4

Updated by Roel Standaert 9 months ago

  • Target version set to 4.5.1
#5

Updated by Korneel Dumon 9 months ago

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

Updated by Roel Standaert 9 months ago

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

Updated by Roel Standaert 9 months ago

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

Updated by Roel Standaert 9 months ago

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

Updated by Roel Standaert 9 months ago

  • Status changed from Implemented @Emweb to Resolved
#10

Updated by Roel Standaert 2 months ago

  • % Done changed from 0 to 100

Also available in: Atom PDF