On 6/5/06, Adam Brod <[EMAIL PROTECTED]> wrote:
Hi-

JBoss Seam provides addition Scopes beyond Request, Session, Application
and None.  In particular, JBoss has a Conversation Scope that stores your
data for the duration of a specific conversation.  This frees the
developer from stuffing data in the session and then manually removing it
at the end of the dialog.

Does Shale Dialog offer that functionality?  I want to configure my bean
with Scope=Dialog.  It would live for the duration of the dialog, and then
to be automatically destroyed by the Dialog Manager.

<snip/>

In addition to the earlier response, here are some concrete pointers
that might help:

To populate the "dialog scope", bind the dialog scoped bean to
#{dialog.data} -- this is usually done in the first action state of
the dialog (which is also the first state of any kind for me, since
all my dialogs begin with action states). The subsequent views
(matching view states within the same dialog), can then accordingly
access its properties. The Dialog Manager will take care of removing
the data once the dialog runs to completion.

The Shale usecases sample application has such an example in its "Edit
Profile" dialog. Look at the method bound to #{profile$edit.setup} and
the views under <exploded-usecases-app>/profile/profile*.jsp

-Rahul



Please let me know what I can do.

Thanks,

Adam Brod
Product Development Team


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to