Thanks...

So what i would want to know as well is to when would it be recommended to
use this to force page-rendering, like one could just follow this approach
and force rendering in the if-else blocks (as below) so as to skip the rest
of the executable-code (in an event-listener) , which doesnt feel to be the
right way to go and should rather just be used in exceptional scenarios i
believe,but still would want to get an opinion about the usage

e.g. 

if (user-authenticated == true) {
  setResponsePage(user-profile-page) 
  throw new RenderResponseException()
}
else if (user-account-locked) {
  setResponsePage(customer-support-page) 
  throw new RenderResponseException()
}
..............
.............
..........

Thanks in advance



igor.vaynberg wrote:
> 
> see RestartResponseException
> 
> -igor
> 
> 
> On Jan 10, 2008 11:04 AM, mfs <[EMAIL PROTECTED]> wrote:
>>
>> I think i didnt conveyed my message properly...i had this question in
>> comparison to the conventional approach where you could do a dispatch to
>> another page by doing forward() or sendRedirect() or in struts
>> (mapping.findforward()) which use to take control to the target page
>> rightaway..
>>
>> Is doing so possible in wicket ? or even if it is, do you think its a
>> right
>> approach ?
>>
>>
>>
>> mfs wrote:
>> >
>> > Guys,
>> >
>> > Just came across a scenario where i want to force a page-rendering in a
>> > certain section, can i do so ? would it be the right approach, as far
>> as i
>> > know setResponsePage doesnt initiate rendering rightaway rather it just
>> > sets the targetPage which is rendered once the control comes back to
>> the
>> > wicket i.e. after execution of the events on the WebPage...
>> >
>> > Please comments..
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Force-page-rendering---tp14725628p14741184.html
>>
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Force-page-rendering---tp14725628p14742832.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to