Shasi Mitra wrote:There are so many optionsXXXXX kludges.
Annotations imply JSF2. In JSF2, it's usually simpler to use View Scope.
I should point out, in addition, that the EL is all wrong here. You shouldn't be tagging the action value as a method call (with parentheses). The mere fact that it's an action means that the EL target must be a method accepting no arguments and the parentheses aren't needed to drive the point home.
Likewise, "rendered="#{!isIdDefined}. Which doesn't provide a bean/property pairing, such as "#{userHome.isIdDefined}", is missing the closing double-quote, and would actually be attempting to invoke a property-get method named isIsIdDefined.
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.