[jboss-user] [JBoss Seam] - Re: Long-running conversations and EntityHome

2007-09-13 Thread baz
I do a wild guess that your problem could be related with mine.

I do have no problem do work with entityHome Objects in the way which is used 
in a semgen generated app.
But...
When i try to initialize an entityHome from a javabean, no luck.
What i am trying to do is this:
@Name(genFieldplan)
  | //@Scope(ScopeType.CONVERSATION)
  | public class GenerateFieldplanBacking {
  | [...]
  | public void fetchEvaluation(){
  | log.info(UserEvaluationId : #0,calcEvaluationId());
  | evaluationHome.setEvaluationEvaluationId(calcEvaluationId());
  | //  Evaluation evaluation = evaluationHome.getInstance();
  | //  log.info(evaluation: #0, ID: 
#1,evaluation,(evaluation==null?null:evaluation.getEvaluationId()));
  | }
  | 
this code is called from this page:
  
  | h:form
  | h:commandButton action=#{genFieldplan.fetchEvaluation} 
id=search value=Search for Evaluation /
  | /h:form
  | rich:panel 
  | f:facet name=headerEvaluation/f:facet
  | 
  | s:decorate id=evaluationId template=/layout/display.xhtml
  | ui:define name=labelevaluationId/ui:define
  | #{evaluationHome.instance.evaluationId}
  | /s:decorate
  | [...]
  | 
What happens is this:
If no long running conversation is active, after pressing the commandbutton the 
evaluation is shown.

When i start a long-running-conversation(in *.page.xml for the page)
no evaluation is shown after pressing the button.

Is this what you mean?
And for others what do i make wrong? Any hints are welcomed
Ciao,
Carsten

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083903#4083903

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Long-running conversations and EntityHome

2007-09-13 Thread baz
I extended my page with this code:
s:decorate id=evaluationIdHome template=/layout/display.xhtml
  | ui:define name=labelHome evaluationId/ui:define
  | #{evaluationHome.evaluationEvaluationId}
  | /s:decorate
  | 
If my page starts a conversation this happens:
the home evaluationId is set correctly, but the instance id is empty.

When my page does not start a conversation, all is well as stated above.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083908#4083908

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083908
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Long-running conversations and EntityHome

2007-09-12 Thread matt.drees
EntityHome is conversation-scoped.  It gets used in long-running conversations 
in seam-gen apps.  So I don't think there's a need to turn it into an SFSB.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4083750#4083750

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083750
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user