Home » Tag Archives: JSF (page 2)

Tag Archives: JSF

Extending PrimeFaces CSV with Bean Validation

jsf-logo

Some of you already know that me and my co-author Mert Çalışkan are working on the 2. edition of the PrimeFaces Cookbook. The Packt Publishing allowed me to publish a small excerpt from one recipe of the new chapter “Client Side Validation”. It would help in letting the readers know about the book’s content. In this blog post, I would ...

Read More »

Building dynamic responsive multi-level menus with plain HTML and OmniFaces

jsf-logo

Recently, I had to create a responsive multi-level menu with JSF 2.2. Requirements: the menu should:                   be created with dynamic structure from backend be responsive, i.e. desktop- and mobile-friendly have submenu items with navigation links support touch events support keyboard accessibility PrimeFaces’ menus were not a choice. They can indeed be ...

Read More »

Developing a Data Export Utility with PrimeFaces

jsf-logo

My day job involves heavy use of data. We use relational databases to store everything, because we rely on enterprise level data management. Sometimes it is useful to have the ability to extract the data into a simple format, such as a spreadsheet, so that we can manipulate it as-needed. This post outlines the steps that I’ve taken to produce a effective and ...

Read More »

Getting Started with PrimeFaces Mobile

java-interview-questions-answers

Introduction If you have developed an application that utilizes PrimeFaces, or if you are planning to develop a web application for use on desktop and mobile devices, then consider PrimeFaces Mobile for your mobile implementation. This blog post will cover some basics to help you get started developing a mobile interface for an existing PrimeFaces application. However, the same procedures ...

Read More »

PrimeFaces 5.0 DataTable Column Toggler

jsf-logo

I have had an opportunity to work a bit with the PrimeFaces 5.0 DataTable, and the enhancements are great.  Today, I wanted to show just one of the new features…the DataTable column toggler.  This feature enables one to choose which columns are displayed via a list of checkboxes. To use a column toggler, simply add a commandButton to display picklist ...

Read More »

Don’t repeat expressions in facelets

jsf-logo

Have you ever seen repeated EL expressions in JSF like this one?                     <h:inputText value="#{oneBean.name}" rendered="#{anotherBean.showPerson}"/> <h:inputText value="#{oneBean.birthday}" rendered="#{anotherBean.showPerson}"/> <h:selectOneMenu value="#{oneBean.children}" style="#{anotherBean.showPerson ? 'display:block' : 'display:none'}"/> usw. Another example: <ui:include src="/include/somesnippet.xhtml"> <ui:param name="age" value="#{someBean.isMan(person) ? 63 : 60}"/> <ui:param name="money" value="#{someBean.isMan(person) and someBean.getCountry(person) eq 'de' ? 1000 : 900}"/> <ui:param name="big" ...

Read More »

Building and Testing JSF.next

jsf-logo

The JSF 2.3 Expert Group is hard at work determining which features will be part of the upcoming release.  The JSF Team been working hard improving CDI alignment, among other things.  There are already a number of new features in the JSF 2.3 codebase that you can begin to test. I will attempt to keep this post updated with the ...

Read More »

Why you should avoid JSF

jsf-logo

For a long time JSF for me was just another webframework I didn’t cared too much about. This changed. After being forced to use it for a couple of months now, I consider it a major project risk in almost all cases. Here I present the reasons for this verdict. Bad entanglement of UI and processing Logic. The official tutorial ...

Read More »

WAI-ARIA support for AutoComplete widget

jsf-logo

In this post I would like to discuss the accessibility for an AutoComplete widget. A typically AutoComplete widget provides suggestions while you type into the field. On my current work I implemented an JSF component on basis of Twitter’s Typeahead – a flexible JavaScript library that provides a strong foundation for building robust typeaheads. The Typeahead widget has a solid ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials