alejandro-du / embedded-ui Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi,
I'm trying to embed several UIs in one "master UI".
This master UI has 2 views, each one embedding a UI.
It works fine but there is a problem with the cleaning of UIs, it seems that each time I access the view a new UI is initialized (which is normal) but the previous UIs are not cleaned up from the client DOM.
The heartbeat is sent multiple times, once per UI accessed.
Would there be a way to do a clean up on detach() of the EmbeddedUI ?
Thanks!
Thomas
Dear,
We're currently trying to integrate Microservice with their own GUI, but facing some difficulties with Vaadin.
I'm trying to use you component, but getting errors and I don't know if they are related to my usage or the incompatibility with Vaadin 8.
Could you help ?
Best regards
Alexandre
Some code
@Springview(name = AdUserView.VIEW_NAME)
@uiscope
public class AdUserView extends VerticalLayout implements View {
public static final String VIEW_NAME = "AdUserView";
private static final long serialVersionUID = 1L;
public AdUserView() {
final VaadinUIComponent browser = new VaadinUIComponent( "http://localhost:8081/users/" );
browser.setSizeFull();
setSizeFull();
addComponent( browser );
}
@Override
public void enter(final ViewChangeListener.ViewChangeEvent event) {
Notification.show( "AdUserView::Enter" );
}
}
Some errors when accessing remote app :
Mon Jun 12 11:22:57 GMT+000 2017 com.vaadin.client.communication.DefaultConnectionStateHandler
INFO: Reconnect attempt 781 for XHR
com.vaadin.DefaultWidgetSet-0.js:5848 Mon Jun 12 11:22:58 GMT+000 2017 com.vaadin.client.communication.DefaultConnectionStateHandler
INFO: Re-sending last message to the server...
com.vaadin.DefaultWidgetSet-0.js:5848 Mon Jun 12 11:22:58 GMT+000 2017 com.vaadin.client.communication.XhrConnection
INFO: Sending xhr message to server: {"csrfToken":"8165448b-f220-4325-b781-f8faba37ee4d","rpc":[["0","com.vaadin.shared.ui.ui.UIServerRpc","resize",[1029,393,1272,467]]],"syncId":0,"clientId":0,"wsver":"8.0.6"}
com.vaadin.DefaultWidgetSet-0.js:5541 POST http://localhost:8081/users/UIDL/?v-uiId=0 404 ()
Rs @ com.vaadin.DefaultWidgetSet-0.js:5541
aGb @ com.vaadin.DefaultWidgetSet-0.js:5668
gFb @ com.vaadin.DefaultWidgetSet-0.js:2928
CCb @ com.vaadin.DefaultWidgetSet-0.js:5495
dDb @ com.vaadin.DefaultWidgetSet-0.js:5849
Lb @ com.vaadin.DefaultWidgetSet-0.js:5847
(anonymous) @ com.vaadin.DefaultWidgetSet-0.js:2646
Rh @ com.vaadin.DefaultWidgetSet-0.js:2407
Uh @ com.vaadin.DefaultWidgetSet-0.js:4997
(anonymous) @ com.vaadin.DefaultWidgetSet-0.js:3507
com.vaadin.DefaultWidgetSet-0.js:5848 Mon Jun 12 11:22:58 GMT+000 2017 com.vaadin.client.communication.DefaultConnectionStateHandler
WARNING: Server returned 404 for xhr
eab @ com.vaadin.DefaultWidgetSet-0.js:5848
rFd @ com.vaadin.DefaultWidgetSet-0.js:5389
qFd @ com.vaadin.DefaultWidgetSet-0.js:3420
wFd @ com.vaadin.DefaultWidgetSet-0.js:3011
BFd @ com.vaadin.DefaultWidgetSet-0.js:2062
XCb @ com.vaadin.DefaultWidgetSet-0.js:5039
mGb @ com.vaadin.DefaultWidgetSet-0.js:5850
Ks @ com.vaadin.DefaultWidgetSet-0.js:3859
Xs @ com.vaadin.DefaultWidgetSet-0.js:5848
(anonymous) @ com.vaadin.DefaultWidgetSet-0.js:3489
Rh @ com.vaadin.DefaultWidgetSet-0.js:2407
Uh @ com.vaadin.DefaultWidgetSet-0.js:4997
(anonymous) @ com.vaadin.DefaultWidgetSet-0.js:3507
com.vaadin.DefaultWidgetSet-0.js:5848 Mon Jun 12 11:22:58 GMT+000 2017 com.vaadin.client.communication.DefaultConnectionStateHandler
INFO: Reconnect attempt 4 for XHR
``
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.