|
LimitExample
This is the code that corresponds with the Limit tutorial. It uses JMesa, along with Spring and Hibernate (Criteria API). All the code examples are checked into subversion. The best way to present these examples may be to just let you walk through the source code. For the Limit example there is a service and DAO class of interest, but how you implement those is very custom and will differ on how you work. The class to really pay attention to is the controller as that will show you how to interact with the TableModel. Be sure to pay attention to the Javascript page link so that you understand how Javascript is used to interact with the table through the onInvokeAction and onInvokeExportAction. Note: If you have a date or numeric column then chances are that you will want to format it. See the Editors page for more details on how to do that. Be sure to add a custom filter strategy if your column is filterable. Once you have your table implemented you can use the ParametersBuilder to test your code. |