Tuesday, December 18, 2012

Re: Equivalent to javascript confirmdialog ind GWT

Hey

The 'proper' way to do the confirm dialog is to use the Activies and Places framework in GWT.

https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces#Activities

    /**
     * Ask user before stopping this activity
     */

   
@Override
   
public String mayStop() {
       
return "Please hold on. This activity is stopping.";
   
}


On Monday, December 17, 2012 1:28:39 PM UTC+2, Dominic Warzok wrote:
Hey together, 

I try about a day to find an equvalent to the javascript confirm-dialog. 

My problem is that when the user reload the webpage, he should get a dialog with a "Yes" and a "No" button where he can decide to only reload the page or to log off from the page. 

I found a jQueryUi Dialog but this dilog don't interrup the reload process. 

After this I found this Project but I can't call it from a native Method... 

Maybe someone of you know a solution ? 

Thanks in advance ;) 
Dominic 

--
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/-/-cZpI36OzekJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate