Return-Path: X-Original-To: apmail-deltaspike-commits-archive@www.apache.org Delivered-To: apmail-deltaspike-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7734B10494 for ; Sat, 15 Feb 2014 11:58:56 +0000 (UTC) Received: (qmail 10745 invoked by uid 500); 15 Feb 2014 11:58:55 -0000 Delivered-To: apmail-deltaspike-commits-archive@deltaspike.apache.org Received: (qmail 10701 invoked by uid 500); 15 Feb 2014 11:58:54 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 10693 invoked by uid 99); 15 Feb 2014 11:58:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 11:58:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Feb 2014 11:58:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B4D3A23888E4; Sat, 15 Feb 2014 11:58:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1568620 - /deltaspike/site/trunk/content/jsf.mdtext Date: Sat, 15 Feb 2014 11:58:30 -0000 To: commits@deltaspike.apache.org From: tandraschko@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140215115830.B4D3A23888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tandraschko Date: Sat Feb 15 11:58:30 2014 New Revision: 1568620 URL: http://svn.apache.org/r1568620 Log: cosmetics Modified: deltaspike/site/trunk/content/jsf.mdtext Modified: deltaspike/site/trunk/content/jsf.mdtext URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/jsf.mdtext?rev=1568620&r1=1568619&r2=1568620&view=diff ============================================================================== --- deltaspike/site/trunk/content/jsf.mdtext (original) +++ deltaspike/site/trunk/content/jsf.mdtext Sat Feb 15 11:58:30 2014 @@ -180,7 +180,7 @@ Don't forget to set the ClientWindowRend - @ViewAccessScoped - @GroupedConversationScoped -#Scopes (TODO) +#Scopes ## @WindowScoped The window-scope is like a session per window. That means that the data is bound to a window/tab and it not shared between windows (like the session scope does). Usually you need the window-scope instead of the session-scope. There aren't a lot of use-cases which need shared data between windows. @@ -192,7 +192,7 @@ The window-scope is like a session per w //... } -## @ViewAccessScoped +## @ViewAccessScoped (since 0.6) In case of conversations you have to un-scope beans manually (or they we be terminated automatically after a timeout). However, sometimes you need beans with a lifetime which is as long as needed and as short as possible - which are terminated automatically (as soon as possible). In such an use-case you can use this scope. The simple rule is, as long as the bean is referenced by a page - the bean will be available for the next page (if it's used again the bean will be forwarded again). It is important that it's based on the view-id of a page (it isn't based on the request) so e.g. Ajax requests don't trigger a cleanup if the request doesn't access all view-access scoped beans of the page. That's also the reason for the name @*View*AccessScoped. :::java @@ -206,7 +206,7 @@ Hint:
@ViewAccessScoped beans are best used in conjunction with the `CLIENTWINDOW` window handling, which ensures a clean browser-tab separation without touching the old windowId. Otherwise a 'open in new tab' on a page with a @ViewAccessScoped bean might cause the termination (and re-initialization) of that bean. -## @GroupedConversationScoped +## @GroupedConversationScoped (since 0.6) See (Grouped-)Conversations ## @ViewScoped