You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "YING WANG (JIRA)" <ji...@apache.org> on 2010/03/08 23:03:27 UTC
[jira] Created: (OWB-321) Conversation beans could not be populated
to non-faces request by a JSF redirect navigation rule
Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
------------------------------------------------------------------------------------------------
Key: OWB-321
URL: https://issues.apache.org/jira/browse/OWB-321
Project: OpenWebBeans
Issue Type: Bug
Components: Injection and Lookup
Affects Versions: M4
Reporter: YING WANG
Assignee: Gurkan Erdogdu
I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
<navigation-rule>
<from-view-id>/cellphonebuy.xhtml</from-view-id>
<navigation-case>
<from-outcome>toListingPage</from-outcome>
<to-view-id>/cellphonelist.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Re: [jira] Created: (OWB-321) Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
Posted by Gurkan Erdogdu <gu...@yahoo.com>.
Hi Ying;
I have added you in JIRA. After that you are able to work on issues (assign,resolve etc..)
Thanks;
--Gurkan
________________________________
From: YING WANG (JIRA) <ji...@apache.org>
To: dev@openwebbeans.apache.org
Sent: Tue, March 9, 2010 12:03:27 AM
Subject: [jira] Created: (OWB-321) Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
------------------------------------------------------------------------------------------------
Key: OWB-321
URL: https://issues.apache.org/jira/browse/OWB-321
Project: OpenWebBeans
Issue Type: Bug
Components: Injection and Lookup
Affects Versions: M4
Reporter: YING WANG
Assignee: Gurkan Erdogdu
I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
<navigation-rule>
<from-view-id>/cellphonebuy.xhtml</from-view-id>
<navigation-case>
<from-outcome>toListingPage</from-outcome>
<to-view-id>/cellphonelist.jsp</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
___________________________________________________________________
Yahoo! Türkiye açıldı! http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
Re: [jira] Updated: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by Gurkan Erdogdu <cg...@gmail.com>.
But we can support it anyway! :) So, conversation context is used by core
JSP/Servlet environment.
Thanks,
--Gurkan
2010/3/11 Gurkan Erdogdu <cg...@gmail.com>
> Hello Ying;
>
> After re-reading ConversationContext from specification, I think that there
> is some misunderstanding regard to non-faces-request term.
> ConversationContext is used in JSF environments in the specification, not in
> JSP or Core Servlet.
>
> When specification says non-faces-request, I think that it wants to talk
> about JSF GET requests, i.e GET requests handled by JSF Servlet and go
> through WebBeansPhaseListener. When it talks about Faces-Request, it wants
> to emphasize that requests coming from JSF Form submitting via commandButton
> or commandLink. Therefore, if you do not use </redirect> in
> faces-config.xml, you have to give cid via URL, like
> http://localhost:vbxbvdf/page.jsf?cid=1 etc.
>
> Therefore I think that, it is not necessary to handle JSP case redirects.
>
> Thanks;
>
> --Gurkan
>
>
> 2010/3/11 YING WANG (JIRA) <ji...@apache.org>
>
>
>> [
>> https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> YING WANG updated OWB-321:
>> --------------------------
>>
>> Attachment: owb321.patch
>>
>> Could someone help review my change? Thanks in advance.
>>
>> > Conversation beans could not be populated to non-faces request by a JSF
>> redirect navigation rule
>> >
>> ------------------------------------------------------------------------------------------------
>> >
>> > Key: OWB-321
>> > URL: https://issues.apache.org/jira/browse/OWB-321
>> > Project: OpenWebBeans
>> > Issue Type: Bug
>> > Components: Injection and Lookup
>> > Affects Versions: M4
>> > Reporter: YING WANG
>> > Assignee: YING WANG
>> > Fix For: 1.0.0
>> >
>> > Attachments: owb321.patch
>> >
>> >
>> > I have the following JSF redirect navigation rule, which redirect a JSF
>> page to a jsp page:
>> > <navigation-rule>
>> > <from-view-id>/cellphonebuy.xhtml</from-view-id>
>> > <navigation-case>
>> > <from-outcome>toListingPage</from-outcome>
>> > <to-view-id>/cellphonelist.jsp</to-view-id>
>> > <redirect/>
>> > </navigation-case>
>> > </navigation-rule>
>> > However, in cellphonelist JSP page, I could not access beans of the
>> conversation context and "No active conversation context" Exception is
>> thrown. I do see the cid parameter being appended at the end of my jsp link.
>> > According to 8th and 9th bullets under 6.7.4, a long-run conversation
>> context should be populated to non-face requests if JSF redirect is used or
>> the application generates a link with such cid parameter. (please assign to
>> me)
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> You can reply to this email to add a comment to the issue online.
>>
>>
>
>
> --
> Gurkan Erdogdu
> http://gurkanerdogdu.blogspot.com
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
Re: [jira] Updated: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by Gurkan Erdogdu <cg...@gmail.com>.
Hello Ying;
After re-reading ConversationContext from specification, I think that there
is some misunderstanding regard to non-faces-request term.
ConversationContext is used in JSF environments in the specification, not in
JSP or Core Servlet.
When specification says non-faces-request, I think that it wants to talk
about JSF GET requests, i.e GET requests handled by JSF Servlet and go
through WebBeansPhaseListener. When it talks about Faces-Request, it wants
to emphasize that requests coming from JSF Form submitting via commandButton
or commandLink. Therefore, if you do not use </redirect> in
faces-config.xml, you have to give cid via URL, like
http://localhost:vbxbvdf/page.jsf?cid=1 etc.
Therefore I think that, it is not necessary to handle JSP case redirects.
Thanks;
--Gurkan
2010/3/11 YING WANG (JIRA) <ji...@apache.org>
>
> [
> https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> YING WANG updated OWB-321:
> --------------------------
>
> Attachment: owb321.patch
>
> Could someone help review my change? Thanks in advance.
>
> > Conversation beans could not be populated to non-faces request by a JSF
> redirect navigation rule
> >
> ------------------------------------------------------------------------------------------------
> >
> > Key: OWB-321
> > URL: https://issues.apache.org/jira/browse/OWB-321
> > Project: OpenWebBeans
> > Issue Type: Bug
> > Components: Injection and Lookup
> > Affects Versions: M4
> > Reporter: YING WANG
> > Assignee: YING WANG
> > Fix For: 1.0.0
> >
> > Attachments: owb321.patch
> >
> >
> > I have the following JSF redirect navigation rule, which redirect a JSF
> page to a jsp page:
> > <navigation-rule>
> > <from-view-id>/cellphonebuy.xhtml</from-view-id>
> > <navigation-case>
> > <from-outcome>toListingPage</from-outcome>
> > <to-view-id>/cellphonelist.jsp</to-view-id>
> > <redirect/>
> > </navigation-case>
> > </navigation-rule>
> > However, in cellphonelist JSP page, I could not access beans of the
> conversation context and "No active conversation context" Exception is
> thrown. I do see the cid parameter being appended at the end of my jsp link.
> > According to 8th and 9th bullets under 6.7.4, a long-run conversation
> context should be populated to non-face requests if JSF redirect is used or
> the application generates a link with such cid parameter. (please assign to
> me)
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com
[jira] Updated: (OWB-321) Conversation beans could not be populated
to non-faces request by a JSF redirect navigation rule
Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gurkan Erdogdu updated OWB-321:
-------------------------------
Issue Type: New Feature (was: Bug)
Fix Version/s: 1.1.0
(was: 1.0.0-CR1)
Affects Version/s: 1.0.0-CR1
(was: M4)
Priority: Minor (was: Major)
Component/s: Context and Scopes
(was: Injection and Lookup)
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: New Feature
> Components: Context and Scopes
> Affects Versions: 1.0.0-CR1
> Reporter: YING WANG
> Assignee: YING WANG
> Priority: Minor
> Fix For: 1.1.0
>
> Attachments: owb321.patch
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by "YING WANG (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844217#action_12844217 ]
YING WANG commented on OWB-321:
-------------------------------
Ok, sounds good. I will keep this open.
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
> Attachments: owb321.patch
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844209#action_12844209 ]
Gurkan Erdogdu commented on OWB-321:
------------------------------------
I think that we can provide extensions later on after completing specification and passing TCK. Therefore we can close this issue for the time being.
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
> Attachments: owb321.patch
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OWB-321) Conversation beans could not be populated
to non-faces request by a JSF redirect navigation rule
Posted by "YING WANG (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
YING WANG updated OWB-321:
--------------------------
Attachment: owb321.patch
Could someone help review my change? Thanks in advance.
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
> Attachments: owb321.patch
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (OWB-321) Conversation beans could not be populated
to non-faces request by a JSF redirect navigation rule
Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gurkan Erdogdu updated OWB-321:
-------------------------------
Fix Version/s: 1.0.0
Assignee: YING WANG (was: Gurkan Erdogdu)
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by "YING WANG (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844204#action_12844204 ]
YING WANG commented on OWB-321:
-------------------------------
Thanks a lot Gurkan for clarifying. I must be tooo focus on the wording. I got "Non-Faces request" definition from some tutorial from Sun and it says it could be a servlet or JSP page (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSFIntro10.html).
Do you think it is appropriate to support conversation context for jsp in this scenario (any potential issue)? I do not want to break anything later because of this ;)
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
> Attachments: owb321.patch
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by "Sven Linstaedt (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843324#action_12843324 ]
Sven Linstaedt commented on OWB-321:
------------------------------------
In case this issue arises using myfaces:
I have tested the conversation context against mojarra, and redirect context propagation was working (about 4 months ago). I would suggest checking myfaces for a bug, before rendering this an OWB one. Could you verify myfaces passes redirect URL creation through ViewHandler#getRedirectURL [1]? Afaik all URLs created for redirect should pass this method.
[1] http://java.sun.com/javaee/javaserverfaces/2.0/docs/api/javax/faces/application/ViewHandler.html
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OWB-321) Conversation beans could not be
populated to non-faces request by a JSF redirect navigation rule
Posted by "YING WANG (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OWB-321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843741#action_12843741 ]
YING WANG commented on OWB-321:
-------------------------------
Thanks Sven for the info, I tested again, the reirect just works fine with cid appended at the end of each redirect URL. And JSF to JSF redirect also works.
The problem only happens when the redirect URL is a Jsp(non-jsf request), in which case, the conversation context is not restored by WebBeansPaseListener since it is not a JSF page.
Sven, do you remember if you ran jsf -> jsp redirection test?
> Conversation beans could not be populated to non-faces request by a JSF redirect navigation rule
> ------------------------------------------------------------------------------------------------
>
> Key: OWB-321
> URL: https://issues.apache.org/jira/browse/OWB-321
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Injection and Lookup
> Affects Versions: M4
> Reporter: YING WANG
> Assignee: YING WANG
> Fix For: 1.0.0
>
>
> I have the following JSF redirect navigation rule, which redirect a JSF page to a jsp page:
> <navigation-rule>
> <from-view-id>/cellphonebuy.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>toListingPage</from-outcome>
> <to-view-id>/cellphonelist.jsp</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
> However, in cellphonelist JSP page, I could not access beans of the conversation context and "No active conversation context" Exception is thrown. I do see the cid parameter being appended at the end of my jsp link.
> According to 8th and 9th bullets under 6.7.4, a long-run conversation context should be populated to non-face requests if JSF redirect is used or the application generates a link with such cid parameter. (please assign to me)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.