Feature #1062
openWCompositeWidget::setImplementation is not reftected when Javascript version is used
0%
Description
Hello!
WCompositeWidget instance is created and implementation is set (setImplementation).
Then from another thread (using WServer::post) new implementation is set and triggerUpdate() is called.
But the widget keeps showing old implementation (in javascript version).
This works in HTML version.
It is not documented if setImplementation() can be run more than once.
BR
Updated by Koen Deforche over 12 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
- Target version set to 3.2.0
Hey,
setImplementation() can only be set (once, or multiple times) before the widget has been rendered.
To change the implementation after it has been rendered, is not supported, and requires some work since we need to replace the previous implementation (which has a different DOM id) with the new implementation...
I suggest we document that this is not possible (yet).
Regards,
koen
Updated by Boris Nagaev over 12 years ago
Hello!
Yes, it should be documented.
It would be great, if implementation changing were supported.
BR
Updated by Koen Deforche over 12 years ago
- Status changed from Feedback to InProgress
- Target version deleted (
3.2.0)
Moved to a feature request.