-
1. Re: lossing of attributes in the request scope of jsf
vadymkarpenko Nov 9, 2006 7:55 AM (in response to vadymkarpenko)in addition to my post, I use :
JBoss AP 4.0.4.GA
JBoss Portal 2.1.4.CR1 -
2. Re: lossing of attributes in the request scope of jsf
ssilvert Nov 9, 2006 10:52 AM (in response to vadymkarpenko)This sort of JSF portlet works fine for others. Must be something wrong with your configuration.
-
3. Re: lossing of attributes in the request scope of jsf
vadymkarpenko Nov 10, 2006 4:08 AM (in response to vadymkarpenko)I understand that this looks like a very simple problem.
But I still have a question on our example "HelloWorldJSFPortlet". In this portlet you are using<managed-bean> <description>Basic UserBean</description> <managed-bean-name>user</managed-bean-name> <managed-bean-class>org.jboss.portlet.hello.bean.User</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> </managed-bean>
and it works ok because the score is session. But if you change the scope to request it doesn't work.
I have started this example like web app in tomcat, and it works ok with the scope request.
So I think that this is some of the problem of jsf portlet.
I have examined portal-core.war on this aspect . You have there beans in the request scope but you are using them to change session scope beans. So you are not using there request scope beans at the result page.
I will appreciate if you will answer on this problem. -
4. Re: lossing of attributes in the request scope of jsf
theute Nov 10, 2006 4:57 AM (in response to vadymkarpenko)Stan,
could it be because between the action phase and the render phase, there is another HTTP request (a redirection) ? So when you call an action you actually do *2* HTTP requests. (I don't know how you handled that).
I think at some point you could tell JBoss Portal to avoid the redirection. But then you trigger the action twice on a refresh. -
5. Re: lossing of attributes in the request scope of jsf
ssilvert Nov 16, 2006 11:04 AM (in response to vadymkarpenko)It's a bug in MyFacesGenericPortlet. I'm going to fix it as soon as I can.
Stan -
6. Re: lossing of attributes in the request scope of jsf
ssilvert Nov 20, 2006 6:11 PM (in response to vadymkarpenko)I committed a simple fix for this. It will be in the next version of MyFaces 1.1.
Handling the request attributes will also be addressed in the spec for JSR-301.
Stan -
7. Re: lossing of attributes in the request scope of jsf
leman_1 Jan 5, 2007 4:25 AM (in response to vadymkarpenko)Hello,
I am having the same type of problem with a Struts based application. I am using an existing application and trying to get it running as a portlet. There are a lot of cases where the actions save objects as request attributes. On the forwarded to jsp page the usebean call fails saying the bean doesn't exist in the request.
The example struts application doesn't try to do this anywhere. I don't know if I am missing something from the configuration files.
Any help would be greatly appeciated. -
8. Re: lossing of attributes in the request scope of jsf
domyalex Jan 5, 2007 5:23 PM (in response to vadymkarpenko)Uh.... in which version of MyFaces will the fix be available? I recently switched to 1.1.4 but realized that the problem persisted.
Regards
Alejandro -
9. Re: lossing of attributes in the request scope of jsf
ssilvert Jan 5, 2007 5:48 PM (in response to vadymkarpenko)"domyalex" wrote:
Uh.... in which version of MyFaces will the fix be available? I recently switched to 1.1.4 but realized that the problem persisted.
Regards
Alejandro
Fixed in 1.1.5. You can use a nightly build.
We are also talking about doing a patch branch for 1.1.4. If so, it will be included in that.
Stan -
10. Re: lossing of attributes in the request scope of jsf
theute Jan 8, 2007 5:18 AM (in response to vadymkarpenko)Thank you Stan !