Spring integration

@Ed Ross

entityManager and applicationContext will be initialized after constructor call.
but in constructor they are null. You can use them in @PostConstruct procedere.

How can I Autowire classes, extended from VerticalLayout (without implementing View)?

You had to annotate your class with “@Component” and this class had to be in a package which is scanned by spring.


@Component
CustomLayout extends VerticalLayout {
...
}

And I don’t need Spring Integration addon?

No not for that, the Spring Integration is to simplyfy the use of views in Vaadin. If you want to autowire your Layout to your view, you have just to do what I’ve told you.

When adding

to ivy.xml, the resolve complains with the following message:

Some projects fail to be resolved
Impossible to resolve dependencies of com.example#v7proj;working@localhost
download failed: javax.activation#activation;1.0.2!activation.jar

I tried to add the activation.jar version 1.0.2 to the build path, but that did not resolve this.

Any ideas on how I can resolve this dependency.

Thanks for your support
Henrik

Hi,
thanks for this great add-on

Is it possible to have one example for apacheshiro using login page as a vaadin view ??

Thanks

Hi I hope you also build this with Vaadin 6+ support. Really want to use this one on my project because it’s hard to integrate spring in vaadin.

Hey!

Is it possible to replace freemarker with jsp in spring-security example form https://github.com/xpoft/vaadin-samples?

I created WEB-INF/jsp/login.jsp file and commented out lines 10-32 in src/main/webapp/WEB-INF/servlet-context.xml and pasted

<bean id="jspViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
    <property name="prefix" value="/WEB-INF/jsp/" />
    <property name="suffix" value=".jsp" />
</bean>

but it wouldn’t worked. Vaadin servlet output was taken instead jsp.

I think using freemarker only for one page is redundant.

Sometimes vaadin stops working. Message appears on the page:

Widgetset does not contain implementation for com.sun.proxy.$Proxy26. Check its component connector’s @Connect mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions.

What can I do with this?

I am using Vaadin 7.1.1 and Eclipse. I am not quite familiar with setting up Spring and I am not an Ivy expert … so I cannot get the integration going.
Can anyone post an Eclipse project with a simple Vaadin 7 Spring integration example, or even better can anyone tell me step by step what to do after I created a Vaadin 7 project in eclipse (with Ivy Dependency Management)? I would really appreciate that …

I have an issue with getting an Autowired bean to be initialized.

I have an open question on stackoverflow. Can you guys take a look and point me in the right direction?


http://stackoverflow.com/questions/22564895/vaadin-7-spring-vaadinspringintegration-add-on-autowired-bean-is-null

hi, Chris

I meet a problem with an View which extends an AbstractView. Can you have a look ?
https://vaadin.com/forum#!/thread/5091289

Hello, I’m trying to implement spring in a other addon, but I’m not getting because it is not found the path of bean jar I want to instantiate.
I wanted to know if this addon I solved this problem.
It works on another addon? this proven?
From already thank you very much

Javier

Can you provide an exampel how you have done it

Thanks

Hello Alexander,

add-on SpringVaadinIntegration v2.0.2. is incompatible with new Vaadin 7.2.0.
Do you plan any new version of SpringVaadinIntegration, or this project is dead?

Hi!

Yes. I’m going to resolve this problem.
Thx for your patience.

Hi,

could you maybe provide an example where you use an actual View for the login using shiro in your samples? I don’t get how to do it and I found only an example where a freemarker template is used for the login view.

Really great addon! Thank you very much!

I’ve updated the add-on for Vaadin 7.2.

So I “played around” for quite some time now and still was not able to get apache shiro working with a java-login view.

As far as I understood, the problem is that you can’t simply declare the url of your login view in the shiro configuration (e.g. #!login ) as everything after the “#” wont’t be send to the server (see
http://en.wikipedia.org/wiki/Fragment_identifier
) and apache shiro is working on the server side. Is this correct?

On the other side I saw this issue:
https://github.com/xpoft/spring-vaadin/issues/36

So I suspect it still might be possible somehow.

Way up the Thread I read that I somehow have to deal with it by using a custom UI Provider, but unfortunately I did not manage to get it working.

There are multiple requests to this issue spread over the thread, but no real solutions, altough it seems that some people have it working.

Is really no one out there that could provide a full example?

Thank you in advance!