You can split your FacesMessages into global and field specific messages.
Tag: JSF
Syntax Highlighter
Just installed the Syntax Highlighter from Alex Gorbatchev, and like it quite a bit… here’s an example. public int factorial( int number ) { if( number == 1 ) { return 1; } return number * factorial( number – 1 ); } The key is to use a name=”code” and class=”java” (or xml, or others…)… Continue reading Syntax Highlighter
iPhone User Interface
Michael Yuan has a quick article about using Seam to program web apps for the iPhone in Seam. He’s using the iui framework, which looks pretty nice. It gives you the music player/everything look and feel in a web page. See the demo for an example.
Convert Date Time
JSF has a well known problem with date entry and timezones… luckily those folks working on JBoss Seam have a fix. Just make sure you use the tag instead of the and everything will be peachy.
Nesting Seam Validation Tags
Here’s an interesting one that caused me to stumble for a while… If you are leveraging Seam’s field-level validation and are mixing it with Rich Faces components, you have to be conscious of how you nest your tags. For example, this caused validation to be skipped: When clicking on the save button, you will bypass… Continue reading Nesting Seam Validation Tags
JSF Tricks
Here are a few tricks over at the MyFaces Wiki: Executing an action when a drop-down value changes Executing an action when the enter key is pressed The latter is helpful when the Ajax4JSF components stop the enter key from submitting a form / executing an action. The rest of the wiki is a little… Continue reading JSF Tricks