Project

General

Profile

Actions

Bug #1835

closed

AuthWidget inside a WContainer restarts WApplication

Added by Anonymous about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/12/2013
Due date:
% Done:

0%

Estimated time:

Description

Another issue I found migrating to Wt 3.3.0:

I have an AuthWidget inside a WContainerWidget (authContainer).

When the user is logged out, the only thing he sees is this authContainer.

When the user logs in, I hide the authContainer using authContainer->hide(), and I populate another container with the main webapp. This way I can use a custom "Logout" button, and when the user logs out, I clear the main webapp container, and I show authContainer again.

It used to work in Wt 3.2.3, but not in Wt 3.3.0: when i call hide() on authContainer, the application just reboots saying "signal from dead session sending reload".

A workaround is to toggle a css class with "display: none": this way it works just fine.

Actions #1

Updated by Koen Deforche about 11 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.1

Hey,

Just found out about this issue last night too ... This should be fixed in git.

Another workaround is to specialize AuthWidget and call the protected member create() from within the constructor.

Regards,

koen

Actions #2

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF