Package javax.faces.context

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


           MessageUtil.getMessage(context, UIInput.UPDATE_MESSAGE_ID,
               new Object[] { MessageUtil.getLabel(
                   context, this) });
         context.getExternalContext().log(message.getSummary(), e);
         context.addMessage(getClientId(context), message);
         context.renderResponse();
       }
     }
   }

   public String getFamily() {
View Full Code Here


   
    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

          e.printStackTrace();
          FacesMessage message = new FacesMessage(messageString);
          message.setSeverity(FacesMessage.SEVERITY_ERROR);
          facesContext.addMessage(getClientId(facesContext),
              message);
          facesContext.renderResponse();
        }
      } else {
        super.broadcast(event);
      }
View Full Code Here

      // 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

        // 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

{
    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

            else
            {
                navigationHandler.handleNavigation(facesContext, fromAction, outcome);
            }
            //Render Response if needed
            facesContext.renderResponse();
        }
    }
}
View Full Code Here

            else
            {
                navigationHandler.handleNavigation(facesContext, fromAction, outcome);
            }
            //Render Response if needed
            facesContext.renderResponse();
        }
    }
}
View Full Code Here

      switch (BridgeUtil.getPortletRequestPhase())
      {
      case RENDER_PHASE:
      case EVENT_PHASE:
        // skip rest of action processing if no PRPs were mapped                 
        if (!mappedPublicParams) context.renderResponse();
      }
    }
  }

  private final class LRUMap
View Full Code Here

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

    }
}
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.