Interface CheckListCustomOptionsSupport<Context_T,​CustomOptionsBean_T>

  • All Known Implementing Classes:
    PoolProjectSelectorDescriptor

    public interface CheckListCustomOptionsSupport<Context_T,​CustomOptionsBean_T>
    Provides ability to add custom options in check list popup content. You must specify JSP page to be added to popup content and bean to be passed to this page. The value of every form element inside your JSP page will be automatically added to request when needed. To notify about changed state you should use "stateChangedJS" JSP variable as JavaScript code, like: <input type="checkbox" onclick="${stateChangedJS}"/>
    Author:
    Maxim.Manuylov Date: 10/3/11
    • Method Detail

      • getCustomOptionsJspPagePath

        @NotNull
        String getCustomOptionsJspPagePath()
        Returns path to the JSP page to be added in popup content. Your JSP page will be inserted inside the <form> tag.
        Returns:
        see above
      • getCustomOptionsBeanName

        @NotNull
        String getCustomOptionsBeanName()
        Returns name of the bean to be passed into custom options JSP page.
        Returns:
        see above
      • getCustomOptions

        @NotNull
        CustomOptionsBean_T getCustomOptions​(@NotNull
                                             javax.servlet.http.HttpServletRequest request,
                                             @NotNull
                                             Context_T context)
        Creates bean with custom options to be passed into custom options JSP page. This method can be called in two cases:
        • Initializing GET request - then there are no custom parameters in request, so you must create default bean
        • Some POST requests - then request contains the values of all form elements on your JSP page
        Returns:
        see above