peterl1084 / cdiexample Goto Github PK
View Code? Open in Web Editor NEWVaadin CDI example project
Vaadin CDI example project
Hi. Thanks for the great starter project. I'm trying to extend this for my own purposes. The first thing I need to do is extend the domain model to contain some additional entities. The problem is that if I have a one-to-many relationship in the Customer class which is lazily loaded, it doesn't appear to get loaded unless I force it to load inside the EJB business method. This seems to defeat the purpose of having lazy loading. Is there an easy way to apply the transaction-per-request pattern here?
Thanks.
Currently the isRequired state for first name doesn't have any other effect except for visual identification. Persisting this will result in JPA validation exception.
Maybe there is some special way to enforce validation on fields with Maddon?
Please note that this example does not work when the PUSH + websocket is enabled. Issue related to apache shiro and the below exception is raised
Caused by: org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
Thanks
I have just a small question, as we are using the database as a support for user authentication (user entity on the backend package), why the shiro ini file still exist
Thanks for helps
Hi
Could you please explain what is th euse of having UUID and Revision columns in any table. Noticed that you have added these columns in AbstractEntity
Hi,
I was testing some scenario and it seems that the apache shiro integrated is not working properly. Below is the scenario I have done:
1 - Login first time correctly (OK)
2- logout bu clicking on menu button
3- Manually enter the following URI: http://localhost:8080/ui/#!icons
4- The icon view is showed without displaying the menu (only the view)
Normally in the last step, the login view is prompt to the user as he has already logout.
Maybe we can verify if the user is authenticated on the navigator beforeChangeView listener but this is now part of the cdi-helpers addon.
Any hint or helps ??
Thanks
CustomerEditor should show notification about reserved username if given name already exists in the database
How to configure username/password. Or is there any default username/password for system.
Hi,
I was using as a base for one project. When I try to logout and login, I got this exception error:
Caused by: org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton. This is an invalid application configuration.
In my project I am using the Apache shiro session object to cache some variables. So this exception appears when I login again (after doing a logout) and trying to store an object on the apache shiro session.
Any hint or help on the cause of the issue ??
Thanks
Hi, thanks for this great example. I am using it as a start for another project.
In one of my views, I run a runnable instance to get some object from a database. at the start of the thread, I fire up an event to disable the navigation and at the end I enable it again. Sometimes, I got the error below saying that the Event is null. Any help to fix this issue.
Thanks
at com.vaadin.cdi.internal.UIBean.(UIBean.java:42) [vaadin-cdi-1.0.2.jar:1.0.2]
at com.vaadin.cdi.internal.UIScopedContext.wrapBean(UIScopedContext.java:50) [vaadin-cdi-1.0.2.jar:1.0.2]
at com.vaadin.cdi.internal.AbstractVaadinContext.get(AbstractVaadinContext.java:156) [vaadin-cdi-1.0.2.jar:1.0.2]
at com.vaadin.cdi.internal.ContextWrapper.get(ContextWrapper.java:49) [vaadin-cdi-1.0.2.jar:1.0.2]
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:612) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:232) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:117) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:44) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:85) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:80) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:69) [weld-core-1.1.16.Final-redhat-1.jar:1.1.16.Final-redhat-1]
I tried with download source and import as existing maven project and started on Tomcat 8 server. I get
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ui]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:871)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
....
SEVERE: Failed to destroy end point associated with ProtocolHandler ["ajp-nio-8009"]
java.lang.NullPointerException
at org.apache.tomcat.util.net.NioEndpoint.releaseCaches(NioEndpoint.java:304)
at org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:480)
at org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:818)
at org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:532)
at org.apache.catalina.connector.Connector.destroyInternal(Connector.java:1023)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:588)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:859)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:305)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
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.