Package org.jboss.seam.web

Examples of org.jboss.seam.web.Parameters


      return parameters;
   }
  
   private void storeRequestStringValuesInPageContext(FacesContext facesContext)
   {
      Parameters parameters = Parameters.instance();
      if (parameters!=null) //for unit tests
      {
         Map<String, String[]> requestParameters = parameters.getRequestParameters();
         for ( Page page: getPageStack( getViewId(facesContext) ) )
         {
            for ( Param pageParameter: page.getParameters() )
            {
               String value = pageParameter.getStringValueFromRequest(facesContext, requestParameters);
View Full Code Here


      }
   }

   private void injectParameters(Object bean)
   {
      Parameters params = Parameters.instance();
      if (params!=null) //check for unit tests
      {
         Map<String, String[]> requestParameters = params.getRequestParameters();
         for (BijectedAttribute setter: parameterSetters)
         {
            Object convertedValue = params.convertMultiValueRequestParameter(requestParameters, setter.getName(), setter.getType());
            setter.set(bean, convertedValue);
         }
      }
   }
View Full Code Here

      return parameters;
   }
  
   private void storeRequestStringValuesInPageContext(FacesContext facesContext)
   {
      Parameters parameters = Parameters.instance();
      if (parameters!=null) //for unit tests
      {
         Map<String, String[]> requestParameters = parameters.getRequestParameters();
         for ( Page page: getPageStack( getViewId(facesContext) ) )
         {
            for ( Param pageParameter: page.getParameters() )
            {
               String value = pageParameter.getStringValueFromRequest(facesContext, requestParameters);
View Full Code Here

      }
   }

   private void injectParameters(Object bean)
   {
      Parameters params = Parameters.instance();
      if (params!=null) //check for unit tests
      {
         Map<String, String[]> requestParameters = params.getRequestParameters();
         for (BijectedAttribute setter: parameterSetters)
         {
            Object convertedValue = params.convertMultiValueRequestParameter(requestParameters, setter.getName(), setter.getType());
            setter.set(bean, convertedValue);
         }
      }
   }
View Full Code Here

   
   
    private static void doWork(HttpServletRequest request, HttpServletResponse response)
        throws IOException
    {
        Parameters params = Parameters.instance();
        String contentId = (String) params.convertMultiValueRequestParameter(params.getRequestParameters(), "docId", String.class);       
               
        DocumentStore store = DocumentStore.instance();
       
        if (store.idIsValid(contentId)) {
            DocumentData documentData = store.getDocumentData(contentId);
View Full Code Here

    public void beforePhase(PhaseEvent phaseEvent)
    {
        String rootId = Pages.getViewId( phaseEvent.getFacesContext() );
       
        Parameters params = Parameters.instance();
        String id = (String) params.convertMultiValueRequestParameter(params.getRequestParameters(), "docId", String.class);             
        if (rootId.contains(DocumentStore.DOCSTORE_BASE_URL)) {
            sendContent(phaseEvent.getFacesContext(), id);
        }
    }
View Full Code Here

      }.run();
   }

   private static void doWork(HttpServletRequest request, HttpServletResponse response) throws IOException
   {
      Parameters params = Parameters.instance();
      String contentId = (String) params.convertMultiValueRequestParameter(params.getRequestParameters(), "docId", String.class);

      DocumentStore store = DocumentStore.instance();

      if (store.idIsValid(contentId))
      {
View Full Code Here

   public void beforePhase(PhaseEvent phaseEvent)
   {
      String rootId = Pages.getViewId(phaseEvent.getFacesContext());

      Parameters params = Parameters.instance();
      String id = (String) params.convertMultiValueRequestParameter(params.getRequestParameters(), "docId", String.class);
      if (rootId.contains(DocumentStore.DOCSTORE_BASE_URL))
      {
         sendContent(phaseEvent.getFacesContext(), id);
      }
   }
View Full Code Here

      return parameters;
   }
  
   private void storeRequestStringValuesInPageContext(FacesContext facesContext)
   {
      Parameters parameters = Parameters.instance();
      if (parameters!=null) //for unit tests
      {
         Map<String, String[]> requestParameters = parameters.getRequestParameters();
         for ( Page page: getPageStack( getViewId(facesContext) ) )
         {
            for ( Param pageParameter: page.getParameters() )
            {
               String value = pageParameter.getStringValueFromRequest(facesContext, requestParameters);
View Full Code Here

      }
   }

   private void injectParameters(Object bean)
   {
      Parameters params = Parameters.instance();
      if (params!=null) //check for unit tests
      {
         Map<String, String[]> requestParameters = params.getRequestParameters();
         for (BijectedAttribute setter: parameterSetters)
         {
            Object convertedValue = params.convertMultiValueRequestParameter(requestParameters, setter.getName(), setter.getType());
            setter.set(bean, convertedValue);
         }
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.web.Parameters

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.