-
1. Re: @Out-jection fails to work in certain conditions - Bewar
pmuir Oct 19, 2007 8:43 AM (in response to gothmog)To clarify, there is no outjection going on here at all.
-
2. Re: @Out-jection fails to work in certain conditions - Bewar
igx89 Oct 19, 2007 12:13 PM (in response to gothmog)One solution would be to have "@Out private Item item;" in TestPageAction.
-
3. Re: @Out-jection fails to work in certain conditions - Bewar
norman.richards Oct 19, 2007 3:10 PM (in response to gothmog)Can you verify that your example does or doesn't work if you change the scope to SESSION and remove the @Begin. (still using an entity)
-
4. Re: @Out-jection fails to work in certain conditions - Bewar
gothmog Oct 19, 2007 6:01 PM (in response to gothmog)Hi Norman,
Yes I can confirm that by simply changing the scope to SESSION and removing the @Begin does make the example work.
I also tried the @Out(required=false) Item and changed the page to read the @Out-jected item instead of the action class getter and left the scope as CONVERSATION. I got the following:
1. The @Create annotation method did fire, makes sense as there is now no reference to the testPage class in the rendering as all reference is to the out-jected item variable.
2. The example works, albeit slightly differently as item is null to begin with until you press the New Item link, but otherwise everything works as expected.
If I force the @Create to run by inserting a dummy #{testPage.item} into the page, leave the scope as CONVERSATION the example goes back to not working.
If I use @Factory("item") instead of create the example fails. (Scope is still CONVERSATION)
If I change the scope to SESSION and use @Factory("item") the example fails
If I change the scope to SESSION and use @Create (with and without forcing the @Create method to run) the example works!
Hope this helps, its sure baffling me. It seems curious combinations of @Create @Factory and session scope are causing the failure
As an aside does anyone know why jboss 4.2 keeps running out of PermGen Space on deployment?
I am using:
Seam 2.0.0BETA
RichFaces 3.1.0
Jboss 4.2.GA -
5. Re: @Out-jection fails to work in certain conditions - Bewar
norman.richards Oct 19, 2007 6:58 PM (in response to gothmog)Ok. This sounds suspiciously like a problem that I thought was fixed. I'll take a look at your test case in a little bit.
-
6. Re: @Out-jection fails to work in certain conditions - Bewar
norman.richards Oct 22, 2007 10:01 PM (in response to gothmog)I've come back to this and tried to reproduce your problem, but I cannot reproduce your issue.