Jake Trent

Tag: Facelets

Facelets Template Includes and Params

Facelets is a great template framework that sits on top of JSF. They have some fun template includes and parameters that you can pass into the included templates. Here is an example with one gotcha pertaining to the parameter name.

Read more

Create Custom Facelets Component

Facelets is a great addition to jsf. It is very extensible, and it makes creating custom components even easier. It’s fantastic. This is almost TOO easy. If you have a pile of view markup and/or client-side logic, then this is a good option. And by good, I mean awesome.

Read more

Loop Index in ui:repeat

Sometimes it’s useful to know what the invariant value is for your loop within a facelets loop. I use ui:repeat a lot, but have seen some problems with it in the past. If you want to get the loop index for your ui:repeat, you may be disappointed. Basically, it requires that you use a different looping mechanism. A nice alternative is the a4j:repeat, which offers the same functionality, plus more awesomeness…

Read more

JSF Won't Submit Null in ui:repeat

It stinks when your jsf components don’t do what they’re supposed to or even what they usually do. This was the case with my h:inputText field when trying to submit a null value – but! only within a ui:repeat component.

Read more