wanjidong / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

Alternate way to enable page numbers on the HtmlToolbar #302

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm on my 3rd app using JMesa, and for each one I had to create this little 
class to enable page numbers.

public class PageNumbersToolbar extends HtmlToolbar {
    @Override
    public String render() {
        enablePageNumbers(true);
        return super.render();
    }
}

This is very flexible, but "turn on page numbers" would be a very handy config 
option in an alternate manner.

Original issue reported on code.google.com by jeffjjen...@gmail.com on 4 Feb 2011 at 6:55

GoogleCodeExporter commented 8 years ago
I agree...

You can set up your preferences to have it enabled by default as well.

html.toolbar.pageNumbers.enabled=true

Original comment by jeff.johnston.mn@gmail.com on 4 Feb 2011 at 9:54

GoogleCodeExporter commented 8 years ago
Thanks Jeff...  is this in TFM and I didn't see it?!  I see it in the default 
jmesa.properties file now though.  ugh! :-)
(please close this issue!  Looks like I'm not allowed to)

Original comment by jeffjjen...@gmail.com on 4 Feb 2011 at 10:10

GoogleCodeExporter commented 8 years ago

Original comment by jeff.johnston.mn@gmail.com on 9 Mar 2011 at 7:25