Good hand resources?

I've been working with JSF for some time now and using Apache-Trinidad tags. I like to evolve using this a lot, but I keep hearing big things about faces. Does anyone out there use it, and what exactly does it give you?

I looked at the facelets site ( https://facelets.dev.java.net/ ) but it doesn't explain the benefits very well or any tutorials about faces. I looked at google but everything seems to be from 2005 or 2006, since then of course there have been many changes since then.

Anyone want to hear their opinion on faces or point me to good resources?

+1


source to share


3 answers


The facial threads have not changed. It is a very simple templating engine that acts like a JSF view handler and replaces jsp.

The old resources are still valid.



  • Uses xml for templates.
  • You can use EL anywhere.
  • Very few tags.
  • Very simple
  • ...

In my humble opinion, this is a much better approach for creating an interface than JSP.

+1


source


It's a really wonderful thing about the face. They did it right the first time, so I guess he didn't need to update it. It also seems like something like facelets is turning into a JSF 2.0 spec. ( http://jcp.org/en/jsr/detail?id=314 )

At one of the places where I work, I just converted a project from JSF 1.1 to JSF 1.2 with facelets and I really love it. I got from him:



  • Templates (no tiles)
  • Better debugging (debug views instead of stack traces)
  • ui: repeat and c: if etc
  • Can use html mixed with tags, allowing me to use a normal html table with colspans without the extra taglib if that's what I want.
  • almost the same as jsp so easy to convert pages.
  • Loading your own components is now very easy.

As far as resources go, I think the old ones are still valid.

+1


source


I'm just getting started with facelets, and so far the best resource I've found is The Complete Guide to Apache MyFaces and Facelets by Apress. While you probably won't need the other chapters since you've worked with Trinadad tags, I found examples they use to explain that layouts provide a good concrete foundation. I am constantly referencing text to extract bits of code.

PS Here's a link from Google Books , it will at least give you an idea of ​​what's inside.

0


source







All Articles