Package net.mlw.vlh

Examples of net.mlw.vlh.ValueListInfo


         LOGGER.debug("Start to getting ValuelistInfo for the tableId '" + tableId + "'.");
      }

      Map requestParamsMap = ValueListRequestUtil.getRequestParameterMap(request, tableId);

      ValueListInfo info = null;

      if (requestParamsMap.isEmpty())
      {

         if (LOGGER.isDebugEnabled())
         {
            LOGGER.debug("Try to get backup of an info from the session for the tableId '" + tableId + "'.");
         }

         HttpSession session = request.getSession();
         if (session != null)
         {
            info = (ValueListInfo) session.getAttribute(tableId);
         }
         else
         {
            LOGGER.warn("ValueListInfo for tableId '" + tableId + "'  was not found in the sesion due to session is null!");
         }

         if (LOGGER.isDebugEnabled())
         {
            if (info == null)
            {
               LOGGER.debug("Backup of the ValueListInfo for the tableId '" + tableId + "'was NOT found in the session.");
            }
            else
            {
               LOGGER.debug("Backup of the ValueListInfo for the tableId '" + tableId + "' was FOUND in the session");
            }
         }

      }
      else
      {
         info = ValueListRequestUtil.buildValueListInfo(request, tableId);
         if (LOGGER.isDebugEnabled())
         {
            LOGGER.debug("ValueListInfo for the tableId '" + tableId + "' was build from the request's params.");
         }
      }

      if (info == null)
      {
         if (LOGGER.isInfoEnabled())
         {
            LOGGER.info("Creating a default ValueListInfo for the tableId '" + tableId + "'");
         }
         info = new ValueListInfo();
      }
      return info;

   }
View Full Code Here


    * @param parameters
    * @return ValueListInfo
    */
   private static ValueListInfo builtValueListInfo(Map parameters)
   {
      return new ValueListInfo(parameters);
   }
View Full Code Here

    String requestName = (String) componentContext.getAttribute(VALUE_LIST_REQUEST_NAME);

    WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
    ValueListHandler vlh = (ValueListHandler) context.getBean("valueListHandler", ValueListHandler.class);

    ValueListInfo info = ValueListRequestUtil.buildValueListInfo(request);
    ValueList valueList = vlh.getValueList(name, info);

    request.setAttribute(requestName, valueList);
  }
View Full Code Here

TOP

Related Classes of net.mlw.vlh.ValueListInfo

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.