PrimeFaces Overview Setup Installation
PrimeFaces Overview Setup Installation
Developed and taught by well-known author and developer. At public venues or onsite at your location.
For live training on JSF 2 and/or PrimeFaces, see http://courses.coreservlets.com/ or email [email protected].
Taught by the author of Core Servlets and JSP, More Servlets and JSP, and this tutorial. Available at public venues, or customized versions can be held on-site at your organization.
Courses developed and taught by Marty Hall Courses and taught JSP, by coreservlets.com experts (edited by Marty) Web Services, Hadoop, Android. Java, JSF 2, developed PrimeFaces, Servlets, Ajax, jQuery, Spring, Hibernate, RESTful
JSF 2, PrimeFaces, servlets/JSP, Ajax, jQuery, Android development, Java 6 or 7 programming, custom mix of topics Courses available in any state or country. Maryland/DC http://courses.coreservlets.com/ area companies can also choose afternoon/evening courses. Customized Java EE Training: Spring, Hibernate/JPA, GWT, Hadoop, SOAP-based and RESTful Web Services
Developed and taught by well-known author and developer. At public venues or onsite at your location. Contact [email protected] for details
Developed and taught by well-known author and developer. At public venues or onsite at your location.
RichFaces
http://www.jboss.org/richfaces
IceFaces
http://www.icesoft.org/
OpenFaces
http://openfaces.org/
Tomahawk
http://myfaces.apache.org/tomahawk/index.html
Trinidad
http://myfaces.apache.org/trinidad/index.html
8
10
Overview of PrimeFaces
Customized Java EE Training: http://courses.coreservlets.com/
Java, JSF 2, PrimeFaces, Servlets, JSP, Ajax, jQuery, Spring, Hibernate, RESTful Web Services, Hadoop, Android.
Developed and taught by well-known author and developer. At public venues or onsite at your location.
General Features
Rich visual components
Calendars, charts, sliders, image viewers, much more
Many are based on jQuery UI and jQuery plugins
Lightweight
Very low overhead to adding PrimeFaces components to existing JSF 2 apps
Optional theming
Rich skinning options, with interactive theme builder.
But can easily use components in existing JSF 2 app.
12
Types of Components
Input elements
Popup calendar, slider, autocompleter, masked fields, etc.
Popup windows
Dialog boxes, menus, Mac-like Growl notifications, etc
Grouping panels
Accordion panel, tab panel, scroll panel, dashboard, etc.
Charts
Bar charts, pie charts, line graphs, etc.
Image viewers
Many types of image galleries and viewers
Developed and taught by well-known author and developer. At public venues or onsite at your location.
Basic Installation
Most components
Download JAR file
http://www.primefaces.org/downloads.html Already included in app that goes with this tutorial
16
Documentation
Users Guide
http://www.primefaces.org/documentation.html
Moderately good by open source standards
Showcase
http://www.primefaces.org/showcase/ui/home.jsf
17
Has easy-to-copy facelets and Java code samples for each example
Developed and taught by well-known author and developer. At public venues or onsite at your location.
Results
20
Developed and taught by well-known author and developer. At public venues or onsite at your location.
22
Bean
@ManagedBean public class TestBean { private double number; private Date date; public double getNumber() { return (number); } public void setNumber(double number) { this.number = number; } public Date getDate() { return(date); } public void setDate(Date date) { this.date = date; } public String doAction() { return("show-test-data"); }
23
24
It works fine to use h:commandButton, but the advantage of p:commandButton is that the button picks up the fonts, sizes, and colors of the current theme. But, if you use p:commandButton, you have to use ajax="false" if you want it to behave just like h:commandButton. In general, it works fine to mix p:blah and h:blah elements in the same form, but the p:blah elements will automatically follow the PrimeFaces theme.
25
Results
26
Wrap-Up
Customized Java EE Training: http://courses.coreservlets.com/
Java, JSF 2, PrimeFaces, Servlets, JSP, Ajax, jQuery, Spring, Hibernate, RESTful Web Services, Hadoop, Android.
Developed and taught by well-known author and developer. At public venues or onsite at your location.
Summary
Component libraries
Add rich input or output GUI elements Normal JSF code and approaches still work
Extra GUI elements, not new framework!
Installation
Drop in JAR file, add declaration to <html>, go!
28
Questions?
JSF 2, PrimeFaces, Java 7, Ajax, jQuery, Hadoop, RESTful Web Services, Android, Spring, Hibernate, Servlets, JSP, GWT, and other Java EE training. Also see JSF 2 tutorial and PrimeFaces tutorial.
Developed and taught by well-known author and developer. At public venues or onsite at your location.