From seam-commits at lists.jboss.org Thu May 28 23:01:50 2009 Content-Type: multipart/mixed; boundary="===============6181416330280904664==" MIME-Version: 1.0 From: seam-commits at lists.jboss.org To: seam-commits at lists.jboss.org Subject: [seam-commits] Seam SVN: r11029 - branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US. Date: Thu, 28 May 2009 22:51:52 -0400 Message-ID: --===============6181416330280904664== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: dan.j.allen Date: 2009-05-28 22:51:52 -0400 (Thu, 28 May 2009) New Revision: 11029 Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Conversations= .xml branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Events.xml Log: JBSEAM-2399 Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Conver= sations.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Conversation= s.xml 2009-05-29 02:17:32 UTC (rev 11028) +++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Conversation= s.xml 2009-05-29 02:51:52 UTC (rev 11029) @@ -432,6 +432,58 @@ = + +
+ Requiring a long-running conversation + + Certain pages are only relevant in the context of a long-runni= ng conversation. One way to "protect" such a + page is to require a long-running conversation as a prerequisi= te to rendering the page. Fortunately, Seam + has a built-in mechanism for enforcing this requirement. + + + In the Seam page descriptor, you can indicate that the current= conversation must be long-running (or nested) + in order for a page to be rendered using the conversa= tion-required attribute as follows: + + + ]]> + + + + The only downside is there's no built-in way to indicate which long-running + conversation is required. You can build on this basic autho= rization by dually checking if a specific + value is present in the conversation within a page action. + + + + + When Seam determines that this page is requested outside of a = long-running conversation, the following + actions are taken: + + + + + A contextual event named org.jboss.seam.noC= onversation is raised + + + A warning status message is registered using the bun= dle key org.jboss.seam.NoConversation + + + The user is redirected to an alternate page, if defi= ned + + + = + + The alternate page is defined in the no-conversation-= view-id attribute on a + <pages> element in the Seam page desc= riptor as follows: + + + ]]> + + + At the moment, you can only define one such page for the entir= e application. + + +
=
Using <literal><s:link></literal> and <literal><s:= button></literal> Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Events= .xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Events.xml 2= 009-05-29 02:17:32 UTC (rev 11028) +++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Events.xml 2= 009-05-29 02:51:52 UTC (rev 11029) @@ -1207,27 +1207,12 @@ ]]> = - A ViewExpiredException occurs if the us= er posts back - to a page once their session has expired. no-con= versation-view-id - and conversation-required give you fine= r grained control over - session expiration if you are inside a conversation. + A ViewExpiredException occurs if the us= er posts back to a page once their session has + expired. The conversation-required and = no-conversation-view-id + settings in the Seam page descriptor, discussed in , give you + finer-grained control over session expiration if you are a= ccessing a page used within a conversation.
- = -
- conversation-required - = - - When specified as the attribute of a page ele= ment in pages.xml, - this setting controls whether a page requires an active long-run= ning or nested conversation before - being rendered. If there is not an active long-running or neste= d conversation when trying to access - the page, you will be redirected to the no-conversation= -view-id view (which is specified = - in the root pages element) instead. - - = - ]]> - = -
= --===============6181416330280904664==--