This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Factory questionsjmenden Aug 6, 2008 3:45 PM (in response to bashan)The two ways to use Factory are described here: http://docs.jboss.com/seam/2.0.3.CR1/reference/en-US/html_single/#d0e3905 You are using the first way. As for directly accessing the method, sure, it is just a Java call, but if you directly access it it will be like any other Java call, called each time you make the call. Try just doing #{video} which accesses it via the Factory. 
- 
        2. Re: Factory questionbashan Aug 6, 2008 4:04 PM (in response to bashan)So as far as I understand the Factroy pattern won't help me if I will be having to use the method getVideo() in my backing bean itself. for example, I want to do in my bean:private List<Video> relatedVideos; public List<Video> getRelatedVideos() { if (relatedVideos == null) { relatedVideos = myDAO.getRelatedVideos(getVideo()) } return relatedVideos; }Of course I can't access the video member directly since I am risking in null pointer exception...Am I right? no neat solution to this issue in Seam? Thanks, 
 Guy.
 
    