PrimeFaces-Spring Code Generation
May 26, 2011 17 Comments
SkySoftware, creator of MyEclipse for Spring Tool has put a screencast on Video demonstrating PrimeFaces-Spring code generation from database schemas. Great work! Tool is awesome, feedback I can give is to update PrimeFaces version and use p:* form components and allow an option in wizard to select the theme to use.
Also friends at SpringSource contacted me to provide an update on JSF-PrimeFaces addon for Spring ROO. Can’t reveal much other than “stay tuned” a bit more.
https://jira.springsource.org/browse/ROO-516
Generating of CRUD web applications (JSP, JSF, etc.) from database schemas is not a new concept. It exists definitely 10 years yet. A lot of tools can do that. More flexible and unversal would be generating of code from UML activity diagramms, BPM, BEPL or similar workflows. I know a couple of tools having this feature. I’m using e.g. WebML / WebRatio – http://www.webml.org (my favorite). Can SkySoftware (SpringTool) this too? Or they are restricted to PrimeFaces-Spring code generation from database schemas? Just interesting. Thanks.
I’m not the one to ask.
As far as I know they can also generate GWT, Iphone, SWF, MVC …
Yes, thanks Cagatay. My question was – can they generate code more flexible from UML design (especially activity diagramms) or only by reading of database schemas? But ok. Thanks for the info.
I have asked because WebML / WebRatio can only generate the code for JSP / ASP.NET, but not for JSF at the moment. You have to write an own XSL to transfrom diagramms to JSF. I’m not a good expert in XSL transformation and asked you therefore if SpringTool can do JSF code generation from some declarative descriptions (like XMI as UML format)
.
Exciting stuff going on!
I love Roo but ditched MyEclipse a while ago…but now downloading again to check out their JSF integration.
And I guess you already know about the project but just in case, http://www.springfuse.com/ generates Spring + JSF2 + Primefaces apps too.
Keep up the awesome work!
Jochen
@Oleg,
My experience is that UML is *generated* if needed to visually show things, but the code is the basis (or the DB schema). A training by Jim Coplien confirmed my experience. Only ‘old school’ architects (funny read is how Coplien sees architecture. It fits almost perfectly with my view). So not being able to generate from ULM is a non issue for me.
What I do like to have is e.g. a maven artifact for this, so I’m IDE independent.
Glad to hear that you are tagging with SpringSource on the Roo project. I’ve been tuned to this addon for a long time, and I can’t wait to hear more news. Spring and Primefaces are both great!
Just to let everybody know, I just started working on a primefaces plugin for Seam Forge. It’s kind of like Spring Roo (from what I’ve heard) Once something is available, I’ll write a blog about it.
Hi Ronald, author of Seam Forge is a friend of mine. We’d be glad to announce your work to community.
it is very preliminary, but announcing work has started can never hurt.. I might also ‘improve’ the richfaces part with displaying datagrids for repeating elements instead of what it is now, but focus will be on primefaces. Initially it will also use metawidget, but later on it should also be possible to generate ui’s without metawidget (although I like it, I will not force people to use it). I’ll write a blog later this week and you can reference that in an announcement
If he is your friend, maybe you can ask him to have a look at http://lists.jboss.org/pipermail/forge-users/2011-June/000031.html
The rest is progressing nicely…
uhmm.. kukeltje == Ronald van Kuijk
Done;
Thanks
Ronald, Lincoln just replied;
Do you use twitter?
Yes, I know, I’m in contact with him now. Not about this issue, that was fixed over a week ago, but more general about scaffolding etc..
And no, sorry, not twitter… Way to busy to be preoccupied with tweeting
The primefaces plugin is in https://github.com/kukel/forge-plugin-primefaces… Basically you add a primefaces facet to a project via seamforge and then it adds the repository, asks you which version you want to add and adds the dependencies to the pom. After that you can do an set-theme and it adds the dependency then to the pom and sets primefaces.THEME for you.
More to come, especilly the scaffolding will be realy nice… Think of 80% of http://www.hascode.com/2011/02/creating-a-sample-java-ee-6-blog-application-with-jpa-ejb-cdi-jsf-and-primefaces-on-glassfish/ being done in less then 5 minutes with way more entities…