Package net.mlw.vlh

Examples of net.mlw.vlh.ValueListHandler


         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 + "'");
      }

      ValueList list = vlh.getValueList(valueListName, info);
      pageContext.getRequest().setAttribute(rootTag.getTableInfo().getName(), list);
      rootTag.setValueList(list);

      if (LOGGER.isDebugEnabled())
      {
View Full Code Here


  {
    String name = (String) componentContext.getAttribute(VALUE_LIST_NAME);
    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.ValueListHandler

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.