[jboss-user] [JBoss Seam] - Re: Logging in and null outjected objects

oblivion1200 do-not-reply at jboss.com
Wed Oct 3 08:15:21 EDT 2007


I am not logged in now. I click on that link on first page

  | <s:link view="/user.xhtml" action="#{bidder.outjectUser()}" value="#{auction.users.login}"/>
  | 

bidder object

  | @Stateful
  | @Name("bidder")
  | public class Bidder implements _Bidder
  | {
  | 	@In(required=false)
  | 	private Auctions auction;
  | 	
  | 	@PersistenceContext(type=PersistenceContextType.EXTENDED)
  | 	private EntityManager entityManager;
  | 	
  |     	@Out(required=false,scope=ScopeType.SESSION)
  |    	private Users auctionUser;
  | 
  | 	public void outjectUser(){
  | 		auctionUser = auction.getUser();
  | 	}
  | 

Here goes logging, because:

  | <page view-id="/user.xhtml" login-required="true" />	
  | 

second page - user.xhtml

  | <h:outputText value="Nick"/>:<h:outputText value="#{auctionUser.login}"/><br/>
  | <h:outputText value="Imie"/>:<h:outputText value="#{auctionUser.name}"/><br/>
  | 

Outjection works ok when I am logged in. If I am not logged in , the login process erases outjected auctionUser and no value on user.xhtml is displayed.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091014#4091014

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091014



More information about the jboss-user mailing list