Re: [Trinidad] Ask for the backing bean's scope in application.
Palvin schrieb: Hi, I'm studing usage the trinidad components recently and I've found that some of the tutorials set the backing bean's scope is session in their demon always and I'm doubt it's performance in auctual project. Who can provide some advise about it. If anyone can provide a more actual tutorials it's very appreciation of my. This is really a general JSF question, not specific to Trinidad. You are quite right to be worried about the use of session. It works fine for simple demo and tutorial applications, but applications with lots of users do have to be worried about session-scope usage. Unfortunately there isn't an easy answer. This subject could easily fill a couple of chapters in a good JSF textbook - but as far as I know, no JSF textbook has yet written about this subject. The best solution is to just use request-scope for everything. However in practice this can be very inconvenient to do. There are a number of libraries that provide a conversation scope for beans, which is somewhere in between request and session scope. In other words, it works like session-scope, but makes it easier to remove objects from the session when they are no longer needed. You might like to look at: * Myfaces Orchestra * Trinidad page flow * Seam * Spring WebFlow The Myfaces Orchestra site has an overview of what conversation scope is, and what the difference is between the above implementations. Regards, Simon -- -- Emails in mixed posting style will be ignored -- (http://en.wikipedia.org/wiki/Posting_style)
[Trinidad] Ask for the backing bean's scope in application.
Hi, I'm studing usage the trinidad components recently and I've found that some of the tutorials set the backing bean's scope is session in their demon always and I'm doubt it's performance in auctual project. Who can provide some advise about it. If anyone can provide a more actual tutorials it's very appreciation of my. Thanks a lots. Palvin
Who can provide a trinidad components usage manual?
Hi, Can anybody provide a trinidad components usage manual? The developer guide only provide few components explain, I like all the components of its, but I can't find the components' usage detail. Where can I find it? Thanks a lots! Palvin
Re: Who can provide a trinidad components usage manual?
hi, have you already looked at the trinidad-examples source code [1]? (links of the deployed version are at [2]). regards, gerhard [1] http://svn.apache.org/repos/asf/myfaces/trinidad/trunk/trinidad-examples/ [2] http://irian.at/adfFaces 2009/4/10 Palvin pal...@towada.com.cn Hi, Can anybody provide a trinidad components usage manual? The developer guide only provide few components explain, I like all the components of its, but I can't find the components' usage detail. Where can I find it? Thanks a lots! Palvin -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces
Re: [Trinidad] What resets the pageFlowScope ?
Bump! Sorry, I just want a hint before digging into the code... Thanks. Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br On Thu, Feb 26, 2009 at 5:04 PM, Walter Mourão walter.mou...@gmail.comwrote: Hi folks, in a specific commandAction the pageFlowScope is reseting ( I see the change in the _afPfm token ). What is the rule that makes the pageFlowScope continue the same instance between pages ? Thanks in advance, Walter Mourão http://waltermourao.com.br http://arcadian.com.br http://oriens.com.br
Re: [Trinidad] Ask for the backing bean's scope in application.
Thanks for your advise studing... - Original Message - From: Simon Kitching skitch...@apache.org To: MyFaces Discussion users@myfaces.apache.org Sent: Friday, April 10, 2009 5:51 PM Subject: Re: [Trinidad] Ask for the backing bean's scope in application. Palvin schrieb: Hi, I'm studing usage the trinidad components recently and I've found that some of the tutorials set the backing bean's scope is session in their demon always and I'm doubt it's performance in auctual project. Who can provide some advise about it. If anyone can provide a more actual tutorials it's very appreciation of my. This is really a general JSF question, not specific to Trinidad. You are quite right to be worried about the use of session. It works fine for simple demo and tutorial applications, but applications with lots of users do have to be worried about session-scope usage. Unfortunately there isn't an easy answer. This subject could easily fill a couple of chapters in a good JSF textbook - but as far as I know, no JSF textbook has yet written about this subject. The best solution is to just use request-scope for everything. However in practice this can be very inconvenient to do. There are a number of libraries that provide a conversation scope for beans, which is somewhere in between request and session scope. In other words, it works like session-scope, but makes it easier to remove objects from the session when they are no longer needed. You might like to look at: * Myfaces Orchestra * Trinidad page flow * Seam * Spring WebFlow The Myfaces Orchestra site has an overview of what conversation scope is, and what the difference is between the above implementations. Regards, Simon -- -- Emails in mixed posting style will be ignored -- (http://en.wikipedia.org/wiki/Posting_style)