Hi Eelco ,

It was all  my fault . It was a typo on my side. Instead of typing
component.setRequired(true) ; , I  selected component.setRedirect
from the IDE auto completion menu.

As a result, it was always redirecting... My fault..I guess i didnt
see what i selected from the ide popup menu.

Thanks anyway...

BUT one question : Do you think setRedirect should really be
in Component class.

-swaroop


On 9/25/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> No idea. Do you get the same thing when you use the latest 1.2.x version?
>
> Eelco
>
> On 9/10/07, swaroop belur <[EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > Wicket version 1.2.4
> >
> > I have this piece of code which is apparently causing wicket to send the
> > requests in an infinite loop
> >
> >
> > <code>
> >
> > This code is present in a class called EditConfig. When I click on the
> link
> > basically
> > all it does is to refresh the page by creating a new instance of page.
> >
> >
> >              new Link("refresh") {
> >
> >                         @Override
> >                         public void onClick() {
> >                                 setResponsePage(EditConfig.class);
> >                         }
> >
> >                 }
> > </code>
> >
> > Apparently setResponsePage(EditConfig.class) causes the request target
> to be
> > a bookmarkable one
> > and the setting on respond method is to redirect the browser to the url
> > generated by the target-
> > which then again causes the event  method to be processed - i.e in this
> case
> > page object to be created
> > again
> >
> > Why would wicket want to  keep redirecting . If after the page object
> has
> > been created , i thought it would render the page as is.
> >
> > Am i missing something over here?
> >
> > thanks
> > swaroop belur
> > --
> > View this message in context:
> http://www.nabble.com/Requests-being-dispatched-in-an-infinite-loop-tf4420388.html#a12608388
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Reply via email to