I do agree with Johan's point.

...onSubmit()
{
    getRequestCycle().setResponsePage(new MyPage());
}

May be onSubmit is an exception as I don't feel similar about
Session.get() and Application.get()

Juergen

On 8/20/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > getRequestCycle().setResponsePage(new MyPage());
> >
> > is i think much better then saying
> >
> > RequestCycle.get().setResponsePage(new MyPage());
> >
> >
> > in the first you are saying. Component get your request cycle where you
> > belong to.
> >
> > in the latter you just take something completely out of the blue.
>
> I don't think I agree with that. Certainly in anonymous classes it
> won't always be obvious which component the request cycle actually is
> for. To me RequestCycle.get() communicates perfectly that you are
> getting the current. And think of it... why would a component 'belong'
> to a request cycle?
>
> Eelco
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to