How about doing this the old-fashioned way?

<meta http-equiv="refresh" content="5;url=/welcome">

jk


On Tue, Apr 17, 2007 at 02:16:57PM +0200, ZedroS Schwart wrote:
> First of all, thanks for your answer.
> 
> Regarding this form, in fact it's the registration one. On successful
> form filling (having check that the login is unique), I would like a
> feedback message to be rendered saying "Registration succesfull,
> you'll be redirected to the login page in a few seconds".
> 
> Technically speaking, it means that, when the submit is ok, I want to
> hide the form and add an ajax timer to redirect the page after a short
> while.
> 
> I hide the form and add the timer in the onSubmit of my form.
> 
> Cheers,
> ZedroS
> On 4/17/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > What should that submit do?
> >
> > Set the form to none visible and then also add an timer that redirects after
> > 5 seconds?
> > Why not directly redirect? Do you want to show a none visible form for 5
> > seconds and then move on?
> >
> > But do you add the parent of the form to the to render components? So that
> > the parent of the form
> > is now rerendered without the form?
> >
> > johan
> >
> >
> >
> > On 4/17/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> > >
> > > I'm not really familiar wih junit but I'm willing to do the test.
> > >
> > > I just would like to be sure the perimeter I'm considering is valid in
> > Wicket.
> > >
> > > In fact, I'm using an "AjaxForm", meaning I got the submit through an
> > > AjaxSubmitButton.
> > >
> > > Then, on the onSubmit of the form, I try to do
> > > -> form.setVisible(false);
> > > ->                      add(new
> > AbstractAjaxTimerBehavior(Duration.seconds(5)) {
> > >                                 protected void
> > onTimer(AjaxRequestTarget target) {
> > >
> > setRedirect(true);
> > >
> > setResponsePage(WelcomePage.class);
> > >                                 }
> > >                         });
> > >
> > > Should it be at least possible ?
> > >
> > > If so, I'll do the junit test.
> > >
> > > Cheers,
> > > ZedroS
> > >
> > > On 4/14/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > > > If you please could prepare a reproducable junit test for it and add
> > > > it to JIRA, we can fix it and keep it fixed.
> > > >
> > > > Eelco
> > > >
> > > >
> > > > On 4/12/07, ZedroS <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hi
> > > > >
> > > > > I'm now on 1.3 and I've tried to use setVisible inside a form onSubmit
> > and
> > > > > it doesn't work...
> > > > >
> > > > > I've tried many syntaxes, like :
> > > > > @Override
> > > > > public void onSubmit() {
> > > > > this.setVisible(false);
> > > > > setVisible(false);
> > > > > }
> > > > >
> > > > > I even made the form as an attribut of the page class, using then :
> > > > > @Override
> > > > > public void onSubmit() {
> > > > > form.setVisible(false);
> > > > > }
> > > > >
> > > > > but it doesn't work.
> > > > >
> > > > > I've as well noticed that my AjaxIndicator doesn't work anymore...
> > > > >
> > > > > Do you have a clue what's going on ?
> > > > >
> > > > > BR
> > > > > ZedroS
> > > > >
> > > > > ZedroS wrote:
> > > > > >
> > > > > > Hi
> > > > > >
> > > > > > Thanks for your answer.
> > > > > >
> > > > > > That's what I had done but I wondered whether there would be a
> > better way.
> > > > > >
> > > > > > 1.3 looks even further interesting I see ;)
> > > > > >
> > > > > > Cheers
> > > > > > ZedroS
> > > > > >
> > > > > > On 4/4/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
> > > > > >> in 1.2 you need to work around it by having a component.
> > > > > >>
> > > > > >> in 1.3 this is fixed and it will work on a page.
> > > > > >>
> > > > > >> johan
> > > > > >>
> > > > > >>
> > > > > >> On 4/4/07, ZedroS Schwart < [EMAIL PROTECTED]> wrote:
> > > > > >> >
> > > > > >> > I use wicket 1.2.5...
> > > > > >> >
> > > > > >> > How shall I do ?
> > > > > >> >
> > > > > >> > Thanks in advance
> > > > > >> > ZedroS
> > > > > >> >
> > > > > >> >
> > > > > >>
> > -------------------------------------------------------------------------
> > > > > >> > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > >> > Join SourceForge.net 's Techsay panel and you'll get the chance
> > to
> > > > > >> share
> > > > > >> your
> > > > > >> > opinions on IT & business topics through brief surveys-and earn
> > cash
> > > > > >> >
> > > > > >>
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >> > _______________________________________________
> > > > > >> > Wicket-user mailing list
> > > > > >> > Wicket-user@lists.sourceforge.net
> > > > > >> >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > -------------------------------------------------------------------------
> > > > > >> Take Surveys. Earn Cash. Influence the Future of IT
> > > > > >> Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > > > > >> your
> > > > > >> opinions on IT & business topics through brief surveys-and earn
> > cash
> > > > > >>
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >> _______________________________________________
> > > > > >> Wicket-user mailing list
> > > > > >> Wicket-user@lists.sourceforge.net
> > > > > >>
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > -------------------------------------------------------------------------
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share
> > > > > > your
> > > > > > opinions on IT & business topics through brief surveys-and earn cash
> > > > > >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > Wicket-user@lists.sourceforge.net
> > > > > >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > > >
> > > > >
> > > > > --
> > > > > View this message in context:
> > http://www.nabble.com/AbstractAjaxTimerBehavior-on-a-page-not-possible---tf3524910.html#a9958833
> > > > > Sent from the Wicket - User mailing list archive at Nabble.com.
> > > > >
> > > > >
> > > > >
> > -------------------------------------------------------------------------
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > > > > opinions on IT & business topics through brief surveys-and earn cash
> > > > >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > Wicket-user@lists.sourceforge.net
> > > > >
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > -------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > > > opinions on IT & business topics through brief surveys-and earn cash
> > > >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> > 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
> > > Wicket-user@lists.sourceforge.net
> > > 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
> > Wicket-user@lists.sourceforge.net
> > 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
> Wicket-user@lists.sourceforge.net
> 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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to