Class BroadleafWidgetController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController
com.broadleafcommerce.advancedcms.web.controller.BroadleafWidgetController

@Controller("blWidgetController") @RequestMapping("/widget") public class BroadleafWidgetController extends org.broadleafcommerce.common.web.controller.BroadleafAbstractController
This class works in combination with the WidgetJsProcessor, which creates javascript import tags that are supplied with the given widget's js content by this controller.
Author:
Chris Kittrell (ckittrell)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.apache.commons.logging.Log
     
    protected WidgetService
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getWidgetJs(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, Long id)
     

    Methods inherited from class org.broadleafcommerce.common.web.controller.BroadleafAbstractController

    addDeepLink, getContextPath, isAjaxRequest, jsonResponse

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.apache.commons.logging.Log LOG
    • widgetService

      protected WidgetService widgetService
  • Constructor Details

    • BroadleafWidgetController

      public BroadleafWidgetController()
  • Method Details

    • getWidgetJs

      @RequestMapping(value="/js/{id}", method=GET) public void getWidgetJs(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable("id") Long id) throws Exception
      Throws:
      Exception