-
1. Re: Possible reasons why a DataModelSelection isn't selectin
smokingapipe Feb 3, 2007 7:30 AM (in response to smokingapipe)I found out that when my action is getting called, the DataModel is null, which would explain why the selection is also null. Now I need to figure out what is setting this DataModel to null. It makes no sense.
Doing even the simple things in Seam can be quite challenging sometimes because it can be so hard to figure out where and why something is being set. -
2. Re: Possible reasons why a DataModelSelection isn't selectin
smokingapipe Feb 3, 2007 7:42 AM (in response to smokingapipe)Now this is even more strange. I have noticed that when I surf around on my site to other screens that have DataModels, and then I go back to the page that wasn't working, suddenly that page is working!
Is there any explanation for this? I have it totally repeatable. This is in Seam 1.1.0. I assume this is a bug in Seam? -
3. Re: Possible reasons why a DataModelSelection isn't selectin
smokingapipe Feb 3, 2007 7:49 AM (in response to smokingapipe)And I figured out the problem. The conversation becomes a long-running (non-temporary) conversation if there is a @Begin method. My @Begin method was returning a String. The method itself didn't do anything useful so I had it return null as the string. This does not work! That nukes the conversation. I'm not sure what it should return if the return type is String, but when I set the return type to void, everything worked.
There are many subtle gotchas in this that are hard to debug. I need to put together some notes maybe. -
4. Re: Possible reasons why a DataModelSelection isn't selectin
pmuir Feb 3, 2007 4:52 PM (in response to smokingapipe)@Begin
@Begin
Specifies that a long-running conversation begins when this method returns a non-null outcome without exception.
so (a) use a void method or (b) just return a string like "success". If your JSF page doesn't have a navigation rule for this it will just ignore it... -
5. Re: Possible reasons why a DataModelSelection isn't selectin
smokingapipe Feb 3, 2007 9:18 PM (in response to smokingapipe)Cool, thanks for the pointer on that. That was the problem. I just didn't immediately know to look at the @Begin method signature. Now I know.