java - How to handle the reveal action after hits the cancel button in popup -


when click add link opens popup , cancel popup goes previous place.

private class cancelhandler implements clickhandler {     @override     public void onclick(clickevent event) {         if (popuppanel != null) {             popuppanel.hide();             getuihandlers().getplacemanager().revealpreviousplace();             //i added code, after popup closes, url not resetting. revealed previous place.         }     } } 

one list page shows list of records, here 1 validation handled i.e if there 1 record in list page automatically reveal display page. in display page (i.e popup) cancel button present, if hits cancel button cancelling again opens display page. if comment below line of code (getuihandlers().getplacemanager().revealpreviousplace();), not opening, want line purpose, after clicking cancel button need reset url revealing request previous place. can how fix issue?

as far know placemanager#revealpreviousplace() doesn't exist.

i don't know exact behavior looking for. if want go previous url, can call com.google.gwt.user.client.history.back(). note same user clicking browser's button. more safety, recommend having cancel action redirect same place.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -