Friday, September 21, 2012
Monday, September 10, 2012
|Carousel and LightBox|
PrimeFaces offers a component called a Light Box (<p:lightBox />) which supports <iframe /> elements directly. You can see an example from the PrimeFaces showcase for how to use it.
I thought I would share a more interesting approach using a <p:caraousel /> object to display multiple <iframe /> elements in a more "sexy" approach.
The cool thing is that the code is really easy to implement!
The code was developed using NetBeans 7.2 and Apache Maven. The code can be downloaded here: iframe-example.zip
Sunday, September 09, 2012
altattribute on <img /> tag.
A best practice when considering your design is to make sure that the form will perform the expected behavior prior to adding AJAX. Once the AJAX is enabled, check to make sure that the behavior is still as expected.
Saturday, September 08, 2012
A JSF forum question was asked on how to update a JSF element outside of a <h:form/> element. This is one solution using <f:ajax/>.
I saw this question on a NetBeans forum from a new developer.
"How do you disable a button on a page after one click?"I figured since I was going to answer the question anyway, I would publish a quick example of one way to do it.
|PrimeFaces 3.4 Data Table|
The example was developed using Maven on NetBeans 7.2. The source code can be downloaded from here: advanced-table.zip.