code is emotional
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:Ignore what Greg said. JSF 2 does not use tag libraries. Tag libraries are for JSPs and in JSF version 2, you don't use JSPs, you use View Template Language (xhtml) files.
Your number 1 problem is that you're referring to the JSF-instantiated instance of "NameWrapper" on your View Definition as literally "NameWrapper".
The convention in JSF when auto-instantiating an object is that the name of that object will be its simple classname (without package name) and with the first character of the classname folded down to lower-case.
In other words, code like this:
This corresponds to the JavaBean convention that class names begin upper-case but instance names begin lower-case.
There's probably more that's wrong as well, since a mis-defined property will generally either be ignored by JSF or will throw an Exception (usually a NullPointerException). I recommend stripping the page down to a bare minimum and building it up bit by bit until you find what element causes it to fail to render. Unfortunately, JSF, like certain other webapp frameworks, doesn't always log why it fails to render a page.
One other thing: In JSF 2.0 and later, it's recommended to use the h:head and h:body JSF tags instead of the raw HTML head and body tags. The JSF version 2 rendering functions use those tags as anchor points for the CSS and javascript that gets generated. These tags didn't exist in JSF version 1.
code is emotional
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |