View Javadoc

1   /*
2    * $Id: ItemSelectionEvent.java,v 1.1 2008/09/19 15:39:03 oeuillot Exp $
3    */
4   package org.rcfaces.core.event;
5   
6   import javax.faces.component.UIComponent;
7   import javax.faces.event.PhaseId;
8   
9   /**
10   * 
11   * @author Olivier Oeuillot (latest modification by $Author: oeuillot $)
12   * @version $Revision: 1.1 $ $Date: 2008/09/19 15:39:03 $
13   */
14  public class ItemSelectionEvent extends SelectionEvent {
15      private static final String REVISION = "$Revision: 1.1 $";
16  
17      private static final long serialVersionUID = 2043226704038860305L;
18  
19      private final boolean immediate;
20  
21      public ItemSelectionEvent(UIComponent component, String value, Object valueObject, Object item, int detail, boolean immediate) {
22          super(component, value, valueObject, item, detail);
23  
24          this.immediate = immediate;
25      }
26  
27      public void setPhaseId(PhaseId phaseId) {
28          if (immediate) {
29              phaseId = PhaseId.APPLY_REQUEST_VALUES;
30              // On force APPLY_REQUEST_VALUE
31          }
32          super.setPhaseId(phaseId);
33      }
34  
35  }