Primefaces JSF 2 crud framework

Community Driven Extensions Project
Post Reply
ignasl
Posts: 6
Joined: 03 Aug 2010, 11:42

05 Nov 2012, 02:33

Hi I have created some cool (at least I think so :) ) CRUD application that could be used as a base for your own application startup. I wanted to share it here since I hope to catch some early adopters attention :) It is very fresh project so its not very polished yet but it has born from real work with real world projects so basically it is very usable and practical even at this stage. It is created for spring/tomcat/hibernate/jsf 2/primefaces stack, but in future I think it could be expanded to more choices.
Here is little sneakpeak of how you create lazyloading datatable for entity Customer with searchfields (and search working right out of box):

Code: Select all

      <hf:searchPanel columns="4" backingBean="#{customerBean}">
			<hf:searchField label="#{messages['customer.name']}" field="name" />
			<hf:searchField label="#{messages['customer.city']}" field="city" />
			<hf:searchField label="#{messages['customer.address']}" field="address" />
			<hf:searchField label="#{messages['customer.email']}" field="email" />
			<hf:searchField label="#{messages['customer.phone']}" field="phone" />
			<!-- Search with drop down -->
			<hf:searchEntityField label="#{messages['customer.city']}" field="city" childField="name" listBean="#{cityBean}" />
			<hf:searchField label="#{messages['customer.age']}" field="age" />
		</hf:searchPanel>

		<hf:dataList label="#{messages['customers.search.results']}"  backingBean="#{customerBean}">
			<hf:column label="#{messages['customer.name']}" field="name" />
			<hf:column label="#{messages['customer.city']}" field="city" childField="name" />
			<hf:column label="#{messages['customer.address']}" field="address" />
			<hf:column label="#{messages['customer.email']}" field="email" />
			<hf:column label="#{messages['customer.phone']}" field="phone" />
			<hf:column label="#{messages['customer.age']}" field="age" />
			<hf:actionsColumn />
		</hf:dataList>
Check it out at http://code.google.com/p/happyfacescrud/ and let me know if you like it and if you have any ideas. This can be very valuable framework if you have lots of crud pages even in this early stage (I've been using similar things from seam/jsf1 days and now decided to share it with the world :) )

d34d_d3v1l
Posts: 193
Joined: 01 Nov 2012, 04:48

01 Dec 2012, 13:43

Cool... Too bad I didn´t see this before.
I´ve just created my "filter" component "datatable" component and "confirmDelete" component
:(

but lets keep in touch:

mtnoronha7@gmail.com
INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
INFO: Initializing Mojarra 2.1.10
INFO: Running on PrimeFaces 3.5
INFO: Running on PrimeFaces Extensions 0.6.1

ignasl
Posts: 6
Joined: 03 Aug 2010, 11:42

13 Jul 2014, 11:45

Hello, I want to update about this project a bit. I finally found time to upload archetype to maven central and now you can try it out simply like this:

Code: Select all

mvn archetype:generate -DarchetypeGroupId=com.github.happyfaces -DarchetypeArtifactId=happyfaces-archetype -DarchetypeVersion=1.0.2 -DgroupId=com.test -DartifactId=MyTestApp
If you need more info: http://intelligentjava.wordpress.com/20 ... omponents/

Happy JSF and Primefaces coding! :)

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests