Examples of renderResponse()


Examples of javax.faces.context.FacesContext.renderResponse()

                setValid(false);
                String messageString = e.toString();
                FacesMessage message = new FacesMessage(messageString);
                message.setSeverity(FacesMessage.SEVERITY_ERROR);
                facesContext.addMessage(getClientId(facesContext), message);
                facesContext.renderResponse();
            }
        }
        super.broadcast(event);
    }
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

   
    MethodExpression me = getReorderListener();
     
    if(me != null) {
      me.invoke(facesContext.getELContext(), new Object[] {event});
      facesContext.renderResponse();
    }
  }

  protected FacesContext getFacesContext() {
    return FacesContext.getCurrentInstance();
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

        // Retrieve the NavigationHandler instance..
        NavigationHandler navHandler = context.getApplication().getNavigationHandler();
        // Invoke nav handling..
        navHandler.handleNavigation(context, action, outcome.toString());
        // Trigger a switch to Render Response if needed
        context.renderResponse();
    }

    /**
     * adds a page element to this page
     * DO NOT CALL yourself, this method is called from the PageElement constructor!
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

      {
        hsr.reset();
        _LOG.warning(e);      
        FacesMessage message = MessageFactory.getMessage(context, DOWNLOAD_MESSAGE_ID);
        context.addMessage(null, message);
        context.renderResponse();
        return;
      }
    }
   
    context.responseComplete();
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

      // Push parameters into the new pageFlow scope
      _getPageFlowScope().putAll(dialogParameters);

      // And navigate to the dialog root
      context.setViewRoot(dialogRoot);
      context.renderResponse();
    }
  }


  //
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

      Object isImmediate = comp.getAttributes().get(immediateAttr);
      if (Boolean.TRUE.equals(isImmediate))
      {
        event.setPhaseId(PhaseId.ANY_PHASE);
        FacesContext context = FacesContext.getCurrentInstance();
        context.renderResponse();
      }
      else
      {
        // the event should not execute before model updates are done.
        // otherwise, the updates will be done to the wrong rows.
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

        }
       
        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext, fromAction, outcome);
        //Render Response if needed
        facesContext.renderResponse();

    }
}
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

                receivedPostRequestToken = findPostRequestTokenWithPrefix(facesContext);
            }

            if (!this.postRequestTokenManager.isValidRequest(receivedPostRequestToken))
            {
                facesContext.renderResponse();
            }
        }
    }

    @Override
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

    @Override
    public void navigateTo(Class<? extends ViewConfig> targetView)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName());
        facesContext.renderResponse();
    }
}
View Full Code Here

Examples of javax.faces.context.FacesContext.renderResponse()

   
    if(facesEvent instanceof ActionEvent){
      //TODO invoke action listener or remove it
          if(isImmediate()){
        FacesContext facesContext = FacesContext.getCurrentInstance();
        facesContext.renderResponse();
      }
    } //TODO else here
   
    if (facesEvent instanceof SwitchablePanelSwitchEvent) {
      if (isRendered()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.