You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2006/03/29 23:51:30 UTC

DO NOT REPLY [Bug 38000] - ShalePhaseListener executes ViewController.prerender twice after exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38000>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38000





------- Additional Comments From gvanmatre@comcast.net  2006-03-29 22:51 -------
Created an attachment (id=18002)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18002&action=view)
another approach 

I was looking at the sequence of events that are fired on a postback or
invoking a command (button or link).

VewHandler.restoreView() --> ViewController.init();
ViewHandler.createView() --> ViewController.init();

The logic that tucks away the view controller for the phase listener is invoked
twice and two references to the view controller are added to the list.	This
patch checks to see if a reference exists before it's added.  This would happen
when the target navigation was back to the same page.

Since this is such a core part of Shale, I would like for some feedback before
going further.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org