Thursday, March 26, 2015

Re: How to filter some places in onPlaceChangeRequest in ActivityManager?

ListEditActivity.mayStop() should not return a message if it is valid to change list items. 

mayStop() is normally used for dirty checking, e.g. someone edits an item and has not yet saved the edits. In that case mayStop() should return a warning message which allows the user to decide to actually do the place change and discard edits or stay at the current place and save his edits. If the item is saved and everything is good to go then mayStop() should return null.

Anyways you can always implement your own ActivityManager, but before doing so I would think hard if your mayStop() implementation is really what you want. To me it sounds like you have a bad mayStop() method and because of this you need further workarounds in a custom ActivityManager.

-- J.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment