Re: Conversation Scope in JSF 2.0
I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Conversation Scope in JSF 2.0
Thank you. Have you test the conversation during session replication? Anyone try MyFaces Orchestra? Thomas Andraschko-2 wrote: I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Conversation Scope in JSF 2.0
I don't use codi/cdi conversations but just try it, it should work. If you would like to use OWB, there is an open issue which prevents session replication with Tomcat 7.0.22+ but there is also an patch available. https://issues.apache.org/jira/browse/OWB-669 2012/5/16 tclam tc...@hkeaa.edu.hk Thank you. Have you test the conversation during session replication? Anyone try MyFaces Orchestra? Thomas Andraschko-2 wrote: I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Conversation Scope in JSF 2.0
Hi! All the CDI @ConversationScoped gets stored in a @SessionScoped bean managed by the CDI container. Finally this will somewhen end up in the session (the 'when' is implementation specific). LieGrue, strub - Original Message - From: tclam tc...@hkeaa.edu.hk To: users@myfaces.apache.org Cc: Sent: Wednesday, May 16, 2012 9:23 AM Subject: Re: Conversation Scope in JSF 2.0 Thank you. Have you test the conversation during session replication? Anyone try MyFaces Orchestra? Thomas Andraschko-2 wrote: I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Conversation Scope in JSF 2.0
Hi struberg, Do you mean that all the @ConversationScoped bean is already stored in @SessionScoped bean in CDI specification? Or Do you mean that I have to wrap a @ConversationScoped bean with another @SessionScoped bean in my own coding? struberg wrote: Hi! All the CDI @ConversationScoped gets stored in a @SessionScoped bean managed by the CDI container. Finally this will somewhen end up in the session (the 'when' is implementation specific). LieGrue, strub - Original Message - From: tclam tc...@hkeaa.edu.hk To: users@myfaces.apache.org Cc: Sent: Wednesday, May 16, 2012 9:23 AM Subject: Re: Conversation Scope in JSF 2.0 Thank you. Have you test the conversation during session replication? Anyone try MyFaces Orchestra? Thomas Andraschko-2 wrote: I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856469.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: Conversation Scope in JSF 2.0
MyFaces Orchestra doesn't support session persistence because the conversation object isn't serializable, and will not work in a cluster environment. According to the official page (http://myfaces.apache.org/orchestra/index.html, see Limitations) there is still some work to be done. Because of that, we're now in the process of switching to CODI that it's fully serializable, and allows the session to be persisted/distributed. -Original Message- From: tclam [mailto:tc...@hkeaa.edu.hk] Sent: quarta-feira, 16 de Maio de 2012 02:49 To: users@myfaces.apache.org Subject: Conversation Scope in JSF 2.0 I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. *Disclaimer:* Deloitte refers to one or more of Deloitte Touche Tohmatsu Limited, a UK private company limited by guarantee, and its network of member firms, each of which is a legally separate and independent entity. Please see www.deloitte.com/about for a detailed description of the legal structure of Deloitte Touche Tohmatsu Limited and its member firms. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it.
Re: Conversation Scope in JSF 2.0
The context for handling all CODI @ConversationScoped beans ALREADY get stored in a @SessionScoped bean. Thus it will end up in the Session somehow. But this is impl and situation depending! In OWB we do NOT store @SessionScoped beans directly in the Session, because the http session is _damn_ slow. Instead we store it in an internal map, and only store it over if there is a request for replicating the Session. In OWB we call this mechanism 'FailOver'. LieGrue, strub - Original Message - From: tclam tc...@hkeaa.edu.hk To: users@myfaces.apache.org Cc: Sent: Wednesday, May 16, 2012 10:26 AM Subject: Re: Conversation Scope in JSF 2.0 Hi struberg, Do you mean that all the @ConversationScoped bean is already stored in @SessionScoped bean in CDI specification? Or Do you mean that I have to wrap a @ConversationScoped bean with another @SessionScoped bean in my own coding? struberg wrote: Hi! All the CDI @ConversationScoped gets stored in a @SessionScoped bean managed by the CDI container. Finally this will somewhen end up in the session (the 'when' is implementation specific). LieGrue, strub - Original Message - From: tclam tc...@hkeaa.edu.hk To: users@myfaces.apache.org Cc: Sent: Wednesday, May 16, 2012 9:23 AM Subject: Re: Conversation Scope in JSF 2.0 Thank you. Have you test the conversation during session replication? Anyone try MyFaces Orchestra? Thomas Andraschko-2 wrote: I use CODI in an clustered environemnt, no problems till now :) 2012/5/16 tclam tc...@hkeaa.edu.hk I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856260.html Sent from the MyFaces - Users mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33856469.html Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Conversation Scope in JSF 2.0
Because of that, we're now in the process of switching to CODI that it's fully serializable, and allows the session to be persisted/distributed. Yes, but please be aware that the EntityManager is still NOT Serializable! Even if some JPA providers claim it, they will loose state on serialisation! I triggered a discussion on the JPA EG regarding this. See http://java.net/jira/browse/JPA_SPEC-21 It's really annoying that JPA is still borked even after so many years :/ Feel free to vote for the spec issue as it seems that this still will be ignored because of political reasons (the different JPA vendors basically do not agree how to solve this best). LieGrue, strub - Original Message - From: Freire, Jose Luis (PT - Lisbon) jfre...@deloitte.pt To: MyFaces Discussion users@myfaces.apache.org Cc: Sent: Wednesday, May 16, 2012 10:34 AM Subject: RE: Conversation Scope in JSF 2.0 MyFaces Orchestra doesn't support session persistence because the conversation object isn't serializable, and will not work in a cluster environment. According to the official page (http://myfaces.apache.org/orchestra/index.html, see Limitations) there is still some work to be done. Because of that, we're now in the process of switching to CODI that it's fully serializable, and allows the session to be persisted/distributed. -Original Message- From: tclam [mailto:tc...@hkeaa.edu.hk] Sent: quarta-feira, 16 de Maio de 2012 02:49 To: users@myfaces.apache.org Subject: Conversation Scope in JSF 2.0 I am trying to implement conversation scope in backing bean of JSF for our application. At first, I am trying to use MyFaces Orchestra. It seems to work well. However, I am concerning the case when the application deployed in cluster environment and during session replication. I don't know if MyFaces CODI with OpenWebBean is a better choice. I have two questions to ask: (1) Does MyFaces Orchestra works well in cluster environment? Will the conversation maintains after session replication? (2) Does MyFaces CODI have any issues when deployed in cluster environment? I cannot found any information about this in its document. -- View this message in context: http://old.nabble.com/Conversation-Scope-in-JSF-2.0-tp33855502p33855502.html Sent from the MyFaces - Users mailing list archive at Nabble.com. *Disclaimer:* Deloitte refers to one or more of Deloitte Touche Tohmatsu Limited, a UK private company limited by guarantee, and its network of member firms, each of which is a legally separate and independent entity. Please see www.deloitte.com/about for a detailed description of the legal structure of Deloitte Touche Tohmatsu Limited and its member firms. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it.
jsf - odd jsp:include behavior
Hello, I'm currently using myfaces 1.1.9 for my web app and I am seeing a strange jsf behavior when using jsp:include. Below is what the include page looks like. Inside this include page, it has a h:commandLink inside of a regular HTML table. For some reasons, the JSF is generating the resulting HTML with the commandlink outside of this regular HTML table. If I put this exact code directly into the master page (the one with jsp:include), it works fine. jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:t=http://myfaces.apache.org/tomahawk; xmlns:a4j=http://richfaces.org/a4j; f:subview h:form table width=100% border=0 cellspacing=0 cellpadding=0 tr td align=right valign=top background=redesign/images/newtop.png table width=100% border=0 cellspacing=1 cellpadding=1 tr td width=20% img src=redesign/images/USAMoblity_White_HIRES.png alt=USA Mobility.com width=200 height=45 hspace=15 vspace=3 / /td td width=80% align=right valign=top right h:commandLink immediate=true style=align:right; CURSOR: pointer action=#{commonTaskBean.logoutFromMyAccountAndMSAM} h:outputText styleClass=subnavma style=text-transform:none; value=LOG OUT/ /h:commandLink /right /td /tr tr /tr tr /tr /table /td /tr /table /h:form /f:subview /jsp:root