Re: Barracuda: ViewContext within ControlEventContext?

Denny Chambers <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
This problem has been brought up before, and I believe Christian has it 
on his ToDo list. I had a situation quite like yours, and had to end up 
building my own URLs as a string, then passing them to the 
ClientSideRedirectException. Not very pretty, but it did work.

Denny


V B Skrypnyk wrote:

>That is also my understanding, as far as the interruption of the queue is concerned. 
>
>However, I do like to have the url change -- in cases where, for example, I save a record and want to show the summary of it; I don't want the user to be able to click reload on the browser and accidentally save an additional record or get a duplicate record error message.
>
>Passing parameters through context though creates an additional check on the control event side -- I have to check now the parameters coming in either from HttpServletRequest or from ControlEventContext; and if I want to keep my listeners uniform I have to check these two places always, since I don't know when I will use the ClientSideRedirectException or if I do so in the future to invoke a given listener. It seems that having the ClientSideRedirectException generate a full url with parameters would be a better idea.
>
>--Bill.
>
>
>Original Message:
>-----------------------------------------
>
>  
>
>>To address Iman's question, Bill stated that he wanted abort execution. 
>>I take that as he doesn't want to process anymore of the current 
>>dispatch queue. Doing either a ClientSideRedirectException 
>>or a 
>>InterruptDispatchException will interupt the current queued up events. 
>>The addEvent, if i understand it correctly, will add an event to the 
>>queue, but any pending event still on the queue will 
>>also get executed.
>>
>>Denny
>>
>>
>>
>>Iman L Crawford wrote:
>>
>>    
>>
>>>>1. I need to abort execution of a control event through ClientSideRedirectException and 
>>>>I need to pass parameters with it.
>>>>   
>>>>
>>>>        
>>>>
>>>Doesn it have to be a client side redirect?  Could you just add a new event to the queue?
>>>
>>>event.setHandled(true);
>>>BaseEvent newEvent = new OtherEvent();
>>>newEvent.setSource(event);
>>>context.
>>>      
>>>
>>getQueue().addEvent(newEvent);
>>    
>>
>>>Iman
>>>_______________________________________________
>>>Barracuda mailing list
>>>[email protected]
>>>http://www.enhydra.org/mailman/listinfo.cgi/barracuda
>>>FAQ 
>>>      
>>>
>>- http://www.jguru.com/faq/Barracuda
>>    
>>
>>> 
>>>
>>>      
>>>
>>_______________________________________________
>>Barracuda mailing list
>>[email protected]
>>http://www.enhydra.org/mailman/listinfo.cgi/barracuda
>>
>>FAQ - http://www.jguru.com/faq/Barracuda
>>
>>    
>>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/barracuda
>FAQ - http://www.jguru.com/faq/Barracuda
>
>  
>

_______________________________________________
Barracuda mailing list
[email protected]
http://www.enhydra.org/mailman/listinfo.cgi/barracuda
FAQ - http://www.jguru.com/faq/Barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.