This content has been marked as final.
Show 2 replies
-
1. Re: null component check in the view -- how does it work?
holgerprause Aug 1, 2006 11:21 PM (in response to allonrauer)Well as far as i understand it works like this:
first, seam looks if a object for this variable exists, in all scopes, if none was found, seams looks if a component with such a name exists ->
(the code u posted) if yes , it will be created.
currentUser would only be never null when u write something like this:
@Name("currentUser")
public class User {
....
} -
2. Re: null component check in the view -- how does it work?
gavin.king Aug 2, 2006 12:34 PM (in response to allonrauer)No, the reason is that some context variables do not have components bound to them.
In those cases, the app is responsible for explicitly setting the value of the context variable.