You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a stab at the java doc for it (Your website is pretty good already but I expect it would say much the same). It might not hurt to put example usage on the java doc for the DatatablesParams annotation either. I would have this show that the object type being annotated should be a DatatablesParams object. It would also reference the java doc below for 'how to enable', and probably show the alternative way (getting it off the HttpServletRequest)
The only doc issue I have run into this far is around the dom element for the datatable. I am still determining if its just tymeleaf/datatables noobness on my part or maybe the doc can be improved slightly for that. If I have time maybe I will open a separate ticket for that. Hope that helps :)
* Resolves a method argument of type {@code DatatablesCriterias} annotated with
* {@code DatatablesParams}.
*
* <p>
* Datatable attributes are obtained from the {@code HttpServletRequest}, and mapped to the
* annotated {@code DatatablesCriterias} object.
*
* This HandlerMethodArgumentResolver can be enabled in Spring 3.1 and greater using either Java or
* XML configuration as shown below:
*
* <pre>
* <mvc:annotation-driven>
* <mvc:argument-resolvers>
* <bean class="com.github.dandelion.datatables.extras.spring3.ajax.DatatablesCriteriasResolver" />
* </mvc:argument-resolvers>
* </mvc:annotation-driven>
* </pre>
*
* <pre>
* @Configuration
* @EnableWebMvc
* public class MyWebConfig extends WebMvcConfigurerAdapter
* {
* @Override
* public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers)
* {
* argumentResolvers.add(new DatatablesCriteriasMethodArgumentResolver());
* }
* }
* </pre>
*
* @author xxx
* @since xx
* @see DatatablesParams
* @see DatatablesCriterias
The text was updated successfully, but these errors were encountered:
Issue by tduchateau from Friday Jul 26, 2013 at 17:09 GMT
Originally posted in #150 by @gorder
Here is a stab at the java doc for it (Your website is pretty good already but I expect it would say much the same). It might not hurt to put example usage on the java doc for the DatatablesParams annotation either. I would have this show that the object type being annotated should be a DatatablesParams object. It would also reference the java doc below for 'how to enable', and probably show the alternative way (getting it off the HttpServletRequest)
The only doc issue I have run into this far is around the dom element for the datatable. I am still determining if its just tymeleaf/datatables noobness on my part or maybe the doc can be improved slightly for that. If I have time maybe I will open a separate ticket for that. Hope that helps :)
The text was updated successfully, but these errors were encountered: