Coder Social home page Coder Social logo

embedded-ui's People

Contributors

alejandro-du avatar thisisbinh avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

frezelth

embedded-ui's Issues

Cleaning embedded UIs

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

Vaadin 8 compatibility

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
``

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.