Activities and Place design wizard

85 views
Skip to first unread message

Cristian Rinaldi

unread,
Jan 10, 2012, 8:27:01 AM1/10/12
to google-we...@googlegroups.com
Hello:

I have a question about the design using Activities and Places.
I have a set of activities that render their views in a section. 
The behavior I want is that each activity, after an event (by example: click in next button, click in activity represented in breadcrumbs)  go to the next activity, hiding the previous view.
Top of the section, I have a breadcrumbs with the activities that happened.
Now, if I click on one of the parts of the breadcrumbs, must be return to the activity related and show the view with all his state.
The question is:  I make a map of activities that are cached? or do not use cache, and management behavior in the start method of activity, starting all over again.
The view is singleton, and managed by GIN.
The general behavior is like the behavior of a wizard.

Any ideas?

Cristian Rinaldi

unread,
Jan 11, 2012, 8:35:03 PM1/11/12
to google-we...@googlegroups.com
Any idea for this problems?
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/10 Cristian Rinaldi <csri...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/W6fMEmnty14J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Ashwin Desikan

unread,
Jan 12, 2012, 1:46:15 AM1/12/12
to google-we...@googlegroups.com
whether you cache or not cache should be based on the user experience
you want to provide.

Are there objects which needs to be re-initialized when you move from
one activity to other? if yes, don't cache or atleast have some sort of
intialization method in the startActivity.

In typical Wizards, the state is maintained between screens. If you
want it behave similar to that including state maintenance, cache the
activities.

CheckOut the CachingActivityMapper. You may probably have to expand it
in your case to cache all the activities which form the various screens
of your wiazard.

Regards
Ashwin


On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote:
> Any idea for this problems?
> A.U.S Cristian Rinaldi
>
> Teléfono Móvil: (0342) 155 238 083
>

> www.logikas.com <http://www.logikas.com/>


>
> Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe
>
> Teléfono Fijo: (0342) 483 5138
>
>
>
>
>
>
>
>

> 2012/1/10 Cristian Rinaldi <csri...@gmail.com
> <mailto:csri...@gmail.com>>


>
> Hello:
>
> I have a question about the design using Activities and Places.
> I have a set of activities that render their views in a section.
> The behavior I want is that each activity, after an event (by
> example: click in next button, click in activity represented in
> breadcrumbs) go to the next activity, hiding the previous view.
> Top of the section, I have a breadcrumbs with the activities that
> happened.
> Now, if I click on one of the parts of the breadcrumbs, must be
> return to the activity related and show the view with all his state.
> The question is: I make a map of activities that are cached? or
> do not use cache, and management behavior in the start method of
> activity, starting all over again.
> The view is singleton, and managed by GIN.
> The general behavior is like the behavior of a wizard.
>
> Any ideas?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/W6fMEmnty14J.
> To post to this group, send email to
> google-we...@googlegroups.com

> <mailto:google-we...@googlegroups.com>.


> To unsubscribe from this group, send email to
> google-web-tool...@googlegroups.com

> <mailto:google-web-toolkit%2Bunsu...@googlegroups.com>.


> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.

Marius Grama

unread,
Jan 12, 2012, 4:06:01 AM1/12/12
to google-we...@googlegroups.com
My answer is not a concrete solution for your problem, but you could make use of GWTP library (some sample code is here  http://code.google.com/p/gwt-platform/wiki/RunningGwtpSamples )  which could help you to build easier a workflow application.

Cristian Rinaldi

unread,
Jan 12, 2012, 5:26:27 AM1/12/12
to google-we...@googlegroups.com
I need maintain the state between stages of wizard, therefore i need
caching the Activity. I read over CachingActivityMapper, I just wanted
to know if it was the appropriate solution.

Thanks for reply


A.U.S Cristian Rinaldi

Teléfono Móvil: +54 9342 5238083

www.logikas.com

Teléfono Fijo: +54 342 483 5138

2012/1/12 Ashwin Desikan <ashwin....@gmail.com>

Message has been deleted

David

unread,
Jan 12, 2012, 9:18:22 AM1/12/12
to Google Web Toolkit
I'm not sure why you would need additional activity management beyond
the Place Controller that you are using.   You could merely cache the
stringified place tokens and use them in your breadcrumb or hold on to
any other state that you may need. If you are using Gin then you can
configure your activities as singletons so the state won't be lost
when the Place Controller brings a different activity into fruition.
If you are not using singleton activities then a static variable may
suit your needs.
Or , perhaps try a caching solution that ensures state in between
browser refreshes.

David

On Jan 12, 5:26 am, Cristian Rinaldi <cristian.rina...@logikas.com>
wrote:
> I need maintain the state between stages of wizard, therefore i need
> caching the Activity. I read over CachingActivityMapper, I just wanted
> to know if it was the appropriate solution.
>
> Thanks for reply
>
> A.U.S Cristian Rinaldi
>
> Teléfono Móvil: +54 9342 5238083
>
> www.logikas.com
>
> Teléfono Fijo: +54 342 483 5138
>
> 2012/1/12 Ashwin Desikan <ashwin.desi...@gmail.com>
>
>
>
>
>
>
>
>
>
> > whether you cache or not cache should be based on the user experience you want to provide.
>
> > Are there objects which needs to be re-initialized when you move from one activity to other? if yes, don't cache or atleast have some sort of intialization method in the startActivity.
>
> > In typical Wizards, the state is maintained between screens. If you want it behave similar to that including state maintenance, cache the activities.
>
> > CheckOut the CachingActivityMapper. You may probably have to expand it in your case to cache all the activities which form the various screens of your wiazard.
>
> > Regards
> > Ashwin
>
> > On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote:
>
> >> Any idea for this problems?
> >> A.U.S Cristian Rinaldi
>
> >> Teléfono Móvil: (0342) 155 238 083
>
> >>www.logikas.com<http://www.logikas.com/>
>
> >> Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe
>
> >> Teléfono Fijo: (0342) 483 5138
>
> >> 2012/1/10 Cristian Rinaldi <csrina...@gmail.com <mailto:csrina...@gmail.com>>
> >> For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.

Cristian Rinaldi

unread,
Jan 13, 2012, 5:10:01 AM1/13/12
to google-we...@googlegroups.com
David:
  thanks for replying, when I have the solution, the comment in the forum.
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/12 David <lev...@gmail.com>
Reply all
Reply to author
Forward
0 new messages