Examples of ValueListInfo


Examples of net.mlw.vlh.ValueListInfo

      Locale locale = getLocale();

      String delim = getMessage("paging.delim", null, locale);

      ValueListInfo valueListInfo = getValueListInfo();
      TableInfo tableInfo = getTableInfo();

      int page = valueListInfo.getPagingPage();
      int numberOfPages = valueListInfo.getTotalNumberOfPages();

      if (getBodyContent() == null || getBodyContent().getString() == null || getBodyContent().getString().trim().length() == 0)
      {
         while (this.currentPage <= this.maxPage)
         {
View Full Code Here

Examples of net.mlw.vlh.ValueListInfo

    */
   public int doEndTag() throws JspException
   {
      ValueListSpaceTag rootTag = (ValueListSpaceTag) JspUtils.getParent(this, ValueListSpaceTag.class);

      ValueListInfo info = ValueListRequestUtil.buildValueListInfo((HttpServletRequest) pageContext.getRequest(), rootTag.getTableInfo()
            .getId());
      info.getFilters().putAll(getCellAttributes().getMap());

      WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());

      if (context == null)
      {
         final String message = "Cannot locate the spring WebApplicationContext. Is it configured in your web.xml?";
         LOGGER.error(message);
         throw new JspException(message);
      }

      ValueListHandler vlh = (ValueListHandler) context.getBean(ValueListHandler.DEFAULT_SERVICE_NAME, ValueListHandler.class);
      if (vlh == null)
      {
         final String message = "Cannot locate the ValueListHanlder in the WebApplicationContext, under the name: \""
               + ValueListHandler.DEFAULT_SERVICE_NAME + "\"";
         LOGGER.error(message);
         throw new JspException(message);
      }

      info.setFocusValue(focusValue);
      info.setFocusProperty(focusProperty);

      if (LOGGER.isDebugEnabled())
      {
         LOGGER.debug("Focus settings was setted up. Focus property '" + focusProperty + "', focus value '" + focusValue + "'");
      }
View Full Code Here

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

Examples of net.mlw.vlh.ValueListInfo

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

Examples of net.mlw.vlh.ValueListInfo

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