How to do Activiti workflow integration with JSF application - jsf

I am new to Activiti workflow. I just wanted to implement a JSF application with activiti workflow with out maven dependency. I am using JPA for databases connectivity. How to do it?

activiti-cdi might be the keyword you are looking for. It makes the integration with (among others) JSF pretty easy, see for example this tutorial: http://www.bpm-guide.de/2011/09/17/build-your-own-activiti-task-explorer-with-cdi-and-jsf-2/

There are different tools to implement workflows in JSF.
Is simple: http://www.imixs.org/jee/examples/jsf_example.html
I recommend the most is "Spring Web Flow" - Simple example: http://www.springbyexample.org/examples/simple-spring-web-flow-webapp.html
Regards,

Related

Spring Integration IDE

I remember seeing the palette in Spring Tool Suite (long time back) to design the Spring Integration work flow which I cannot find in Spring Tool Suite 4.x. Can someone tell me if it is available as a separate add-on or how do I enable it?
Thanks.
See the answer to this question and associated comments.
It is not currently available in STS 4.x, although, as stated by Martin Lippert there, the 3.9.x tooling can still be installed.
Bear in mind that it was limited to a single XML configuration file and many modern Spring Integration applications use Spring Boot auto-configuration and the Java DSL which cannot be rendered by the graph; Spring Integration now provides a runtime graph that can be rendered by a number of tools and works with any configuration technology.

JSF modification in Groovy way?

Somewhere in Grails family I had a lecture about conneting JSF / Groovy / Grails. I.e. less configuration, more convention, Groovy session bean returning "next" navigation link etc.
Very interesting at intellectual level, but i think these tools have acceptance by totally different teams / people. JSF (standard, certified etc) in corporate programming, G* technologies at small, independent development.
Meet anybody real project using such mixing?
(To understand my POV: in web programming I prefer Wicket, JSF in prototype, I'm quite new in Groovy, and no real project in Grails)
We have both JSF and Grails applications. We are in the process of sunseting the JSF applications and all new applications in Grails. I have read that the LinkedIn site used Grails on a larger projects with much success. I am still on the Grails 2.X platform. Switching developers from JSF to Grails was an easy transition for me and generally provides a large increase in productivity over JSF. I highly recommend Grails over JSF.

Is there any tutorial on how to set up a simple CRUD web app on TomEE using just JPA and JSF?

I'm a fan of Tomcat and would really like to use TomEE but having a hard time configuring TomEE why isn't there a simple tutorial explaining step by step, setup of a simple JSF and JPA CRUD web app on TomEE.
If there is I really haven't found it, so please share it here.
Here an example. I think it will work for you

Looking for source to understand JSF code with the database insert & read

I need your help in getting detailed examples about how I can read/insert into database using JSF code for its different components. I am a beginner in JSF and I have the basics, however, I need the best source which it has helpful, easy and detailed steps to understand the techniques for connecting to the DB and how to insert or read data from the database.
I tried to search, but I found the lessons are not helpful or not described in details. Kindly assist me.
JSF is for the web/presentation tier. You could implement the db access in the managed bean (also web tier) through plain JDBC, but I wouldn't recommend it.
You should separate the db access into the persistence tier. For that you can start off by looking at JPA for persistence and EJB for the business logic connecting the persistence tier and the web tier. There are other solutions, but I point out these two, because the tutorials are available at the JavaEE tutorials site. You'll want to focus on Part VII: Enterprise Beans and PartVIII: Persistence. The tutorial is a good place to start to learn JavaEE. There's a bunch of examples that can be run from the GlassFish server. As a bonus, all examples use JSF for the front end ;-)
Interaction with databases has no relation with JSF web component based framework. You're searching instead for an Object Relational Mapping (ORM) framework to get started with. This is one of those framework: Hibernate Tutorial.

Is JSF2 usable in concert with the "Snaps" web UI framework based on Eclipse Virgo?

Snaps is a (rather new) web framework growing out of the Eclipse Virgo community that (will) allow dynamic, componentized web UIs by exploiting the OSGi infrastructure. Apparently it is the heir of "Slices", the previous attempt at this.
What I am wondering is whether there is any work ongoing in looking at how JSF (2) can be combined with such an approach? Is this at all possible? If so, is there any concrete work ongoing?
There is no work going on looking at JSF specifically or any other Web framework for that matter. Snaps aims to give you the dynamic runtime ability to compose your web app without restricting your choice of web framework in any way. It definitely doesn't aim to be another web framework.
I know some people have had JSF running on Virgo so I don't see any reason that you can't use it with snaps although I haven't tried it so I can't say for certain. If you do find a problem raise a bug on the Virgo project :)
Chris.
In case you're still interested:
At the Virgo formus I know there is some guy who does have it running with FancyFaces.
If you might have found another solution, would be glad to hear.
Grts

Resources