Bug #1835
closedAuthWidget inside a WContainer restarts WApplication
0%
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.
Updated by Koen Deforche over 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
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed