Popups without javascript can only be done using alerts, so just add a
header contribution displaying the alert.
Eelco
On 5/12/07, howzat <[EMAIL PROTECTED]> wrote:
>
> Wicket 1.2.6:
> When the user clicks the submit button on a form, I would like to first
> perform some logic on the server side (eg persist some stuff the user has
> entered), and if this server side logic completes successfully I would like
> to display a "success confirmed, hit ok to continue" modal popup. When the
> user closes this modal pop-up I would like to return to the application's
> home-page.
> I am trying to do this by overriding the form's onSubmit method;
> public void onSubmit() {
> boolean success = doSomeServerSideStuff(dataInputByUserIntoTheForm);
> if (success){
> // (a) show a "success confirmed, hit ok to continue" modal popup;
> // (b) go to home page
> } else {
> // ...
> }
> }
>
> The code I find in the wicket examples and google use PopupSettings and
> Popup (the latter seems no longer to exist).
>
> 1 - Does anybody have a 1.2.6 snippet to demonstrate this how to achieve (a)
> and (b)?
> 2 - To get back to the home-page, I am using setResponsePage(new
> MyAppsHomePage()). Is that the right way to go back to the home-page? Does
> that mean I need to create a new instance of the home-page each time I want
> to go back there or is there a cached instance that I can use (assuming that
> the user has arrived at the current page via the home page)?
> --
> View this message in context:
> http://www.nabble.com/popup-on-submit-%28but-after-server-side-work%29---go-to-home-page-tf3730823.html#a10443093
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user