MVPパターンを使用してGWTアプリを開発しようとしています。これまでのところ、アクションの1つの特定のケース、つまりURLを変更しない(ブラウザーの履歴は変更されない)アクションを除いて、これまでのところ良好です。
GWT MVPパターンでは、イベントはプレゼンターから送信され、アプリコントローラーがそれらをキャッチしてブラウザーの履歴を更新します。履歴が変更された場合は、ビューが更新されます。
**履歴が変更されたMVP(うまく機能します)**
Current URL is /list
User clicks on contactdelete button.
Fire DeleteContactAction event.
App controller catches, change history to 'delete'
onValueChange is called
if (token.equals("delete"))
delete contact screen, then delete contact
Fire ContactDeletedEvent
app controller catches and change the history to list
onValueChange is called: contact list refreshes
履歴変更なしのダイアログボックスのGWTMVPパターン
**問題**-ダイアログボックスを使用していますが、ブラウザの履歴を変更したくないので、ここに問題があります。
Current URL is /list
User clicks on contactdelete button.
Contact is deleted
Fire ContactDeletedEvent.
App controller catches, change history to 'list'
**onValueChange is NOT called** because url is already /list and there is no change
# problem: contact list does not refresh
質問:MVPのコンテキストでこれを実装するためのパターンを知っている人はいますか?
どんな助け/アイデアもありがたいです。