JMesa is a dynamic HTML table that allows you to filter, sort, paginate, export and edit your data however you need to. What you will find here is a carefully thought out API that is very easy to use and can be modified for your own needs. As of version 2. Now that the apache commons BeanUtils 1.
|Published (Last):||7 September 2019|
|PDF File Size:||3.72 Mb|
|ePub File Size:||17.32 Mb|
|Price:||Free* [*Free Regsitration Required]|
In my current project, I received a requirement were the user would like to do some sorting, exporting and filtering on a table we display on several screens in our application.
We use Stripes Framework for our web layer because of its simplicity. What is stripes? At the time I had the privilege of moving from Struts 1. DisplayTag is probably the most popular table rendering API in the Java world, but it did not look like it was going to fulfill my requirement.
Remember my users would like to dynamically filter the result we send to them. The result they would be viewing would be a list of the recent transactions they have performed in their facilities.
They might also want to filter by the day the transaction occurred or by the name of the individual the transaction was performed for. DisplayTag was good for two out of three things I needed to solve. Sorting and exporting was covered, but filtering was not. Or may be I am unaware on DisplayTag's filtering capabilities. Another thing I noticed that DisplayTag lacked was that when the user decides to export the table into a CSV or Excel file, the user is only allowed to export the data on the screen and not the entire result passed to the name attribute on the display:table tag.
This was a big minus for me. Jmesa is another table rendering API in Java. Jmesa had all three functionality I needed so I chose to integrate it into our application.
Jmesa would also export all the data passed to the TableModel. Take a look at the jars required is the setup page because you might be missing some of the required jars. If you look at the Jmesa's basic tutorial , it will show you how your project should be structured.
You should also take a look at the preference page if you want to change the default project structure. I would be using the president example on the Jmesa example page to show the integration example since I cannot really show too much of the code I wrote for our application.
And the basic jsp file. This is basically how you would integrate Jmesa into your Stripes actionBeans. I do not like my actionBean to be this big. I try to keep it as slim as possible. Jmesa also provides a tag library like DisplayTag, that you can use if you prefer to use tag libraries. I hope this can help someone get comfortable integrating stripes with jmesa.
Skip to main content. Home Integrating Jmesa with Stripes. Integrating Jmesa with Stripes. Your name. Leave this field blank. All Rights Reserved.
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. Original issue reported on code.
Integrating Jmesa with Stripes
In my current project, I received a requirement were the user would like to do some sorting, exporting and filtering on a table we display on several screens in our application. We use Stripes Framework for our web layer because of its simplicity. What is stripes? At the time I had the privilege of moving from Struts 1.
Running the Table With JMesa