You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by da...@apache.org on 2006/10/12 18:39:21 UTC
svn commit: r463312 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java
Author: dashorst
Date: Thu Oct 12 09:39:21 2006
New Revision: 463312
URL: http://svn.apache.org/viewvc?view=rev&rev=463312
Log:
Fixed dirty bit after cleanup of flash messages
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java?view=diff&rev=463312&r1=463311&r2=463312
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Session.java Thu Oct 12 09:39:21 2006
@@ -1009,7 +1009,14 @@
*/
final void cleanupFeedbackMessages()
{
+ int size = feedbackMessages.size();
feedbackMessages.clearRendered();
+
+ // the session is dirty when the list of feedback messages was changed
+ if(size != feedbackMessages.size())
+ {
+ dirty();
+ }
}
/**