Author: abelevich
Date: 2007-10-01 13:24:14 -0400 (Mon, 01 Oct 2007)
New Revision: 3184
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java
Log:
set context.renderResponse() in broadcast method if component is immediate and
SwitchablePanelSwitchEvent is occured (RF-1032)
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java
===================================================================
---
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java 2007-10-01
17:03:44 UTC (rev 3183)
+++
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java 2007-10-01
17:24:14 UTC (rev 3184)
@@ -125,6 +125,9 @@
this,
this.getId());
}
+ if(isImmediate()){
+ facesContext.renderResponse();
+ }
}
} else /* component should throw IllegalArgumentException for unknown events - RF-30 */
{
super.broadcast(facesEvent);
@@ -161,14 +164,17 @@
if (isImmediate()) {
validate(context);
-// if (!isValid()) {
-// context.renderResponse();
-// }
+ if (!isValid()) {
+ context.renderResponse();
+ }
//UISwitchablePanel has a special behavior
//it stops processing after APPLY_REQUEST_VALUES phase
- //when immediate
- context.renderResponse();
+ //when immediate
+//
+// set context.renderResponse() in broadcast method if component is immediate
+// and SwitchablePanelSwitchEvent is occured (RF-1032)
+// context.renderResponse();
}
} catch (RuntimeException e) {
context.renderResponse();
Show replies by date