[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-10 Thread [EMAIL PROTECTED]
Any non-null result that does not have an explicit navigation rule defined is 
ignored by the navigation handler" So just return "success".

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

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-10 Thread andrew.rw.robinson
Oh, that would explain it, thanks. 

Yes it is returning null, as I thought that was the appropriate result in the 
pages.xml if you don't want to change the navigation. If I return a non-null 
result, the navigation handler will be invoked. Is there a happy medium (like 
Outcome.REDISPLAY)?

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

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-10 Thread [EMAIL PROTECTED]
Is onLoad() returning null in the cases where @Begin is failing?  The 
conversation interceptor interprets null as a failure condition.  

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

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-10 Thread andrew.rw.robinson
I got it to work by starting the conversation with a factory method instead of 
just relying on the page load method.

I made the following adjustments:
  @Out(scope=ScopeType.CONVERSATION, value="adminUserList", required=false)
  |   private List users;
  | 
  |   @Out(required=false, scope=ScopeType.CONVERSATION) @Valid
  |   private User editingUser;
  | 
  | ...
  |   @Begin(join=true)
  |   @Factory("adminUserList")
  |   public String onLoad() ...
  | 

And in the xhtml:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956474#3956474

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-09 Thread andrew.rw.robinson
Here is some more information with seam's logging turned up:

18:31:10,020 DEBUG [Lifecycle] destroying conversation context
  | 18:31:10,020 DEBUG [Contexts] destroying: userAdminPword
  | 18:31:10,020 DEBUG [Contexts] destroying: facesMessages
  | 18:31:10,020 DEBUG [Contexts] destroying: entityManager
  | 18:31:10,020 DEBUG [ManagedPersistenceContext] destroying seam managed 
persistence context for persistence unit: java:/bethanyEntityManagerFactory
  | 18:31:10,023 DEBUG [Contexts] destroying: userAdmin
  | 18:31:10,024 DEBUG [SeamInterceptor] not intercepted: destroy
  | 18:31:10,036 DEBUG [Contexts] destroying: currentUser
  | 18:31:10,036 DEBUG [Lifecycle] flushing server-side conversation context
  | 

For some reason, the @Begin(join=true) on my "public String onLoad()" method 
seems to be being ignored. So when I click a link, my list is no longer around 
as the conversation is dead. 

Will keep looking, but not sure why Seam is ignoring the @Begin

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

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Can't get a conversational stateful bean to work

2006-07-09 Thread andrew.rw.robinson
Sorry, forgot to mention that clicking on the link two times in a row works in 
that navigation works, but the user is the wrong user (it ends up always being 
the first user in the data table)

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

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


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user