xpoft / spring-vaadin

Spring and Vaadin integration
Other
55 stars 44 forks source link

Vaadin 7.1.0.beta1 compatibility? #16

Closed agile001 closed 11 years ago

agile001 commented 11 years ago

Hi,

I'm having a go using this add-on to get Spring integration going with an evaluation app using Vaadin 7.1.0.beta1 but not having much luck with it.

I'm getting a java.beans.IntrospectionException: type mismatch between read and write from ru.xpoft.vaadin.SpringUIProvider.createInstance(SpringUIProvider.java:33).

On investigation it seems like the getParent() / setParent() in com.vaadin.ui.AbstractComponent class have varying types, i.e. com.vaadin.shared.Connector vs com.vaadin.server.ClientConnector via the com.vaadin.ui.HasComponents interface.

Is it possible to get around this problem without the underlying changes from the Vaadin guys?

Regards, David E.

agile001 commented 11 years ago

FYI, I just found this ticket in relation to the issue --> http://dev.vaadin.com/ticket/11777

javapda commented 11 years ago

@agile001 I am experiencing the same issue and checked out the helpful ticket (http://dev.vaadin.com/ticket/11777) you mention.

Here is what was needed to get it working.

1) In pom.xml, uplifted spring and vaadin as shown below:

<spring.version>3.2.3.RELEASE</spring.version> <vaadin.version>7.1.0.beta1</vaadin.version>

2) Modify SpringVaadinServlet as shown:

protected VaadinServletService createServletService(DeploymentConfiguration deploymentConfiguration)
{
    VaadinServletService service=null;
    try {
        service = super.createServletService(deploymentConfiguration);
    } catch (ServiceException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
  ...

}

2a) Probably want to make a similar adjustment to

@Override
protected VaadinPortletService createPortletService(DeploymentConfiguration deploymentConfiguration)
{
    VaadinPortletService service=null;
    try {
        service = super.createPortletService(deploymentConfiguration);
    } catch (ServiceException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    ...
}

3) Install it in your local repository:

mvn install

4) try it out...

javapda commented 11 years ago

A forked version is located "git@bitbucket.org:javapda/spring-vaadin-integration-forked.git"

Once this gets resolved formally I will be disbanding this forked version in favor of the xpoft version.

xpoft commented 11 years ago

They fix this problem in Vaadin 7.1 Coming soon! )