Package org.richfaces.event

Examples of org.richfaces.event.SimpleTogglePanelSwitchEvent


    }
   
    @Override
    public void queueEvent(FacesEvent event) {
      if (event instanceof SimpleTogglePanelSwitchEvent && this.equals(event.getComponent())) {
      SimpleTogglePanelSwitchEvent switchEvent = (SimpleTogglePanelSwitchEvent) event;

      if (isImmediate()) {
        setOpened(switchEvent.isOpened());
      }
     
      switchEvent.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
    }

      super.queueEvent(event);
    }
View Full Code Here


    @Override
    public void broadcast(FacesEvent event) throws AbortProcessingException {
      super.broadcast(event);

      if (event instanceof SimpleTogglePanelSwitchEvent) {
      SimpleTogglePanelSwitchEvent switchEvent = (SimpleTogglePanelSwitchEvent) event;

      setOpened(switchEvent.isOpened());
         
      try {
              updateModel();
          } catch (RuntimeException e) {
            getFacesContext().renderResponse();
View Full Code Here

      if (currentState != submittedState) {
        SimpleToggleEvent event = new SimpleToggleEvent(panel, submittedState);
        event.queue();

        SimpleTogglePanelSwitchEvent stateEvent = new SimpleTogglePanelSwitchEvent(panel, submittedState);
        stateEvent.queue();
      }

      // in case of "ajax" request and "ajax" switch mode of toggle panel
      // set the regions to be rendered (reRendered) after operating this
      // "ajax" request
View Full Code Here

      if (currentState != submittedState) {
        SimpleToggleEvent event = new SimpleToggleEvent(panel, submittedState);
        event.queue();

        SimpleTogglePanelSwitchEvent stateEvent = new SimpleTogglePanelSwitchEvent(panel, submittedState);
        stateEvent.queue();
      }

      // in case of "ajax" request and "ajax" switch mode of toggle panel
      // set the regions to be rendered (reRendered) after operating this
      // "ajax" request
View Full Code Here

    }
   
    @Override
    public void queueEvent(FacesEvent event) {
      if (event instanceof SimpleTogglePanelSwitchEvent && this.equals(event.getComponent())) {
      SimpleTogglePanelSwitchEvent switchEvent = (SimpleTogglePanelSwitchEvent) event;

      if (isImmediate()) {
        setOpened(switchEvent.isOpened());
      }
     
      switchEvent.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
    }

      super.queueEvent(event);
    }
View Full Code Here

    @Override
    public void broadcast(FacesEvent event) throws AbortProcessingException {
      super.broadcast(event);

      if (event instanceof SimpleTogglePanelSwitchEvent) {
      SimpleTogglePanelSwitchEvent switchEvent = (SimpleTogglePanelSwitchEvent) event;

      setOpened(switchEvent.isOpened());
         
      try {
              updateModel();
          } catch (RuntimeException e) {
            getFacesContext().renderResponse();
View Full Code Here

TOP

Related Classes of org.richfaces.event.SimpleTogglePanelSwitchEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.