[jboss-user] [JBoss Seam] - Re: why list empty

luc_yuan do-not-reply at jboss.com
Thu Jan 31 05:37:52 EST 2008


i change a little about my getList()

   
  |         public List getList() {
  | 		if(list != null)
  | 			System.out.println(list.size() + "***************");
  | 		else
  | 			System.out.println("sssssssssssssssssss");
  | 		return list;
  | 	}
  |    

   and i got 
   
  |        19:36:30,656 INFO  [STDOUT] Hibernate:
  |     select
  |         kokyaku0_.kokyaku_cd as kokyaku1_17_,
  |         kokyaku0_.start_date as start2_17_,
  |         kokyaku0_.kokyaku_tel as kokyaku3_17_,
  |         kokyaku0_.kokyaku_fax as kokyaku4_17_,
  |         kokyaku0_.tanto_cd as tanto17_17_,
  |         kokyaku0_.kokyaku_name as kokyaku5_17_,
  |         kokyaku0_.kokyaku_kana as kokyaku6_17_,
  |         kokyaku0_.kokyaku_addr as kokyaku7_17_,
  |         kokyaku0_.kokyaku_mail as kokyaku8_17_,
  |         kokyaku0_.kokyaku_ninzu as kokyaku9_17_,
  |         kokyaku0_.kokyaku_president_name as kokyaku10_17_,
  |         kokyaku0_.kokyaku_shihon as kokyaku11_17_,
  |         kokyaku0_.kokyaku_date as kokyaku12_17_,
  |         kokyaku0_.kokyaku_gyosyu as kokyaku13_17_,
  |         kokyaku0_.kokyaku_naiyo as kokyaku14_17_,
  |         kokyaku0_.create_date as create15_17_,
  |         kokyaku0_.apply_date as apply16_17_
  |     from
  |         kokyaku kokyaku0_
  |     where
  |         lower(kokyaku0_.kokyaku_cd) like concat(lower(?)) limit ?
  | 19:36:30,687 INFO  [STDOUT] 1
  | 19:36:30,687 INFO  [STDOUT] in search------------
  | 19:36:31,296 INFO  [STDOUT] sssssssssssssssssss
  |    
so here shows the list have been null when navigation to the page,i wonder if it is something about lifecycle.
     and my list is extended from EntityQuery ----Query----PersistenceController----Controller,nothing special about the scope,i am at a lost

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

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



More information about the jboss-user mailing list