[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-25 Thread [EMAIL PROTECTED]
Read up on outjection in the seam reference manual. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099027#4099027 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099027 ___

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-24 Thread [EMAIL PROTECTED]
Try h:selectOneMenu id=principalId value=#{activityList.principalId} onchange=javascript:document.getElementById('weekActivity').submit(); | f:selectItems value=#{usersByManager}/ | /h:selectOneMenu View the original post :

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-24 Thread chlol
thank you,pete! as you said,the method is invoked once,but i cann't still understand: 1.how the page know the method usersByManager in UserList? 2.if i have the same factory method in another class,what's the result? View the original post :

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-23 Thread chlol
up View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4098096#4098096 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098096 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-22 Thread chlol
look forward to anybody help on edge ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097673#4097673 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097673 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-18 Thread [EMAIL PROTECTED]
Use lazy initialization e.g. @Create or @Factory. Do not put expensive logic in javabean methods View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096505#4096505 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096505

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-18 Thread chlol
i use the @Factory,but can't solve the question my list bean generated jboss gen: package cn.sh.guanghua.manhour.service.admin; | | import org.jboss.seam.Component; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.Name;

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-17 Thread amitev
Yes. The getters are invoked more than once per request, you should NOT put expensive logic in getter method. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4095912#4095912 Reply to the post :

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-17 Thread chlol
thank you,amitev! The getters are invoked more than once per request,the first,i think it is not a good idea, the second in f:selectItems value=#{userList.selectItem}/ ,the expression only accept the getter method. and in my project,i have many getter method,in which having expensive logic.

[jboss-user] [JBoss Seam] - Re: the method invoked twice, when render the page once!

2007-10-17 Thread chlol
when using the non-get method,the method are invoked more than once per request! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4096370#4096370 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096370