Giter VIP home page Giter VIP logo

embed-for-vaadin's People

Contributors

coekie avatar snicoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

embed-for-vaadin's Issues

Create Maven archetype

A maven archetype would ease a bit more the integration and be useful for demo/test purpose. This could become an easy way to report known issues.

HTTP session is not managed properly

the tomcat embed API for some reason does not manage the HTTP session properly. If one starts two vaadin applications they timeout each other.

To reproduce:

  • Start embed for vaadin and invoke some action on the screen
  • Start a second copy and invoke some action (the same or another one, it does not matter)
  • Go back to the first vaadin application, invoke an action

Expected: it simply works
Actual: a "Session expired" message is displayed. When it gets resolved, switching back to the second application leads to a session expired as well

Tracing that, the HTTP session is null in AbstractApplicationServlet#getExistingApplication

URL parameter

It would be very handy to be able to specify parameters to the opened url. For example, adding a "#anchor" to the following url to open directly a specific section : http://localhost:2173/#anchor.

For example you could add a new property in the configuration file like "url_parameters" which is concatenated to the base url, and it should be possible to add it as a program argument also

Update to Vaadin 7 beta 2

The beta2 has some significant changes in the API compared to the alpha. The changes from Root to UI is the most visible one but they are others change on the way that will affect some of the features that embed for vaadin provides.

Development header should be an option

Right now, the development header for a component is mandatory unless one extend the API. It should be an option in the builder because it has some impact on the styling.

Release embed for vaadin 0.6

Embed for Vaadin hasn't moved for quite some time.

Checking it still works properly against the latest 7.x release is also required.

Upgrade to Vaadin 7 beta3

In beta2, we used to be able to override the VaadinServletService to provide the list of UIProviders to use. In the case of embedding a component that was already built, we just return a singleton list with our special ui provider that returns that very specific component.

This seems to have changed in beta3.

Disturbing log when specifying port

When specifying a port, first logs seems to point that the port is automatically generated when it is not and the specified port is used.

Starting the application like this :

EmbedVaadin.forApplication(MyApplication.class)
.withHttpPort(8080)
.start();

Logs show this :

23:12:58.254 [main] DEBUG c.b.c.vaadin.embed.EmbedVaadinConfig - Using EmbedVaadinConfig{port=0, context=, webapp dir=/var/folders/lx/4zbpjm8j5g78pm2s0qbs_xr00000gn/T/1334178778246-0}
23:12:58.474 [main] INFO c.b.c.v.e.AbstractEmbedVaadinTomcat - Deploying application to [http://localhost:[auto]/]
Apr 11, 2012 11:12:59 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 11, 2012 11:12:59 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Apr 11, 2012 11:12:59 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Apr 11, 2012 11:13:00 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [115] milliseconds.
Apr 11, 2012 11:13:00 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
23:13:00.322 [main] INFO c.b.c.v.e.AbstractEmbedVaadinTomcat - Application has been deployed to [http://localhost:8080/]

The first two lines shows that the port is 0 and then [auto].
The last log line shows the correct port and the application is started on the right port, it's just the logs that are confusing.

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.