Author: abelevich
Date: 2007-09-26 04:43:29 -0400 (Wed, 26 Sep 2007)
New Revision: 3121
Modified:
trunk/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java
Log:
RF-845
Modified: trunk/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java
===================================================================
--- trunk/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java 2007-09-26
00:12:41 UTC (rev 3120)
+++ trunk/ui/tabPanel/src/main/java/org/richfaces/component/UITabPanel.java 2007-09-26
08:43:29 UTC (rev 3121)
@@ -25,10 +25,12 @@
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
+import javax.faces.event.FacesEvent;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Predicate;
import org.apache.commons.collections.iterators.FilterIterator;
+import org.richfaces.event.SwitchablePanelSwitchEvent;
/**
* JSF component class
@@ -183,4 +185,17 @@
public abstract void setHeaderClass(String value);
+ public void queueEvent(FacesEvent event) {
+ if (event instanceof SwitchablePanelSwitchEvent &&
this.equals(event.getComponent())) {
+
+ SwitchablePanelSwitchEvent switchEvent = (SwitchablePanelSwitchEvent) event;
+ UIComponent component = switchEvent.getEventSource();
+ if((component instanceof UITab) && ((UITab)component).isImmediate()){
+ setImmediate(true);
+ }else{
+ setImmediate(false);
+ }
+ }
+ super.queueEvent(event);
+ }
}
Show replies by date