worksheet

2 views
Skip to first unread message

Joaquin Valdez

unread,
Aug 29, 2011, 11:48:59 AM8/29/11
to jmesa...@googlegroups.com
Hello!

I am using the worksheet functionality of Jmesa.  When I create a new record it saves correctly however I don't see the new record in the worksheet when it returns.  I do see it if I refresh the page.

Any help would be greatly appreciated!

Joaquin Valdez



Jeff Johnston

unread,
Aug 29, 2011, 1:59:52 PM8/29/11
to jmesa...@googlegroups.com
Yep. This is not clear on the wiki (or the code example)!

In the example you will see a line that looks like the following...

tableModel.setItems(new AllItems() {
            public Collection<?> getItems() {
                return presidentService.getPresidents();
            }
        });

This is a callback so that after the saveWorksheet is called it will get the most updated results.

Yo can see the full example here:

http://code.google.com/p/jmesa/source/browse/trunk/jmesaWeb/src/org/jmesaweb/controller/WorksheetPresidentController.java

-Jeff
Reply all
Reply to author
Forward
0 new messages