Manually check if the java-liblgom .so is visible to the JVM.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-11-25  Ben Konrath  <ben@bagu.org>
2
3         Manually check if the java-liblgom .so is visible to the JVM.
4
5         It seems that Tomcat has problems when a static initializer throws an
6         exception. This check is done before the first method call into
7         java-libglom so that execution doesn't continue if the .so is not
8         found.
9
10         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
11
12 2011-11-25  Ben Konrath  <ben@bagu.org>
13
14         Improve browser configuration error messages.
15
16         This fixes:
17
18         https://bugzilla.gnome.org/show_bug.cgi?id=662792
19
20         * src/main/java/org/glom/web/client/OnlineGlomService.java:
21         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
22         getConfigurationErrorMessage() method.
23         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
24         Get and display a specific configuration error message when no Glom
25         documents are found.
26         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
27         Implement getConfigurationErrorMessage() method. Surround configuration
28         code in the init() method with a try/catch block. This allows the
29         errors to be caught while keeping the servlet available to retrieve the
30         configuration error message.
31
32 2011-11-25  Ben Konrath  <ben@bagu.org>
33
34         Don't use Strings to hold primary key values.
35
36         The primary key values are now held in a new data object
37         (PrimaryKeyItem) that holds type information and the primary key value
38         using the correct type.
39
40         * src/main/java/org/glom/web/client/OnlineGlomService.java:
41         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
42         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
43         PrimaryKeyItem instead of String to hold the primary key value.
44         * src/main/java/org/glom/web/client/Utils.java: Remove
45         getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
46         PrimaryKeyItem based on the GlomFieldType and the DataItem.
47         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
48         PrimaryKeyItem instead of String to hold the primary key value. Load
49         document selection page when the documentID has not been set correctly.
50         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
51         DetailsPlace -> URL and URL -> DetailsPlace conversion with
52         PrimaryKeyItem.
53         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
54         Return empty string for URL instead of "null".
55         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
56         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
57         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
58         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
59         PrimaryKeyItem instead of String to hold primary key values.
60         * src/main/java/org/glom/web/server/Utils.java: New method to convert a
61         PrimaryKeyValue to a Gda Value.
62         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
63         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
64         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
65         Replace temporary database access code that uses the PrimaryKeyValue to
66         Gda Value conversion.
67         * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
68         * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
69         PrimaryKeyItem instead of String.
70         * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
71         hold primary key values.
72
73 2011-11-24  Ben Konrath  <ben@bagu.org>
74
75         Use newly added java-libglom API to create queries.
76
77         This isn't finished. I still need to stop using Strings for primary key
78         values in the client code.
79
80         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
81         libglom to use fake connections so that retrieving the query string will
82         work.
83         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
84         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
85         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
86         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
87         Use the newly added libglom sql methods and classes to create the
88         query. Add temporary hack to convert primary value strings to Gda
89         Value.
90
91 2011-11-23  Ben Konrath  <ben@bagu.org>
92
93         Don't explicitly set the height of Portals.
94
95         See comments 6 - 10 of this bug for details:
96
97         https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
98
99         * src/main/java/org/glom/web/client/ui/details/Portal.java:
100
101 2011-11-23  Ben Konrath  <ben@bagu.org>
102
103         Use an HTML table instead of CSS for the FlowTable layout.
104
105         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
106         GWT's FlexTable to implement the FlowTable.
107         * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
108
109 2011-11-18  Ben Konrath  <ben@bagu.org>
110
111         Add boolean example to HTML table mockup.
112
113         * mockups/details-view-html-tables-text-entries.html:
114
115 2011-11-17  Ben Konrath  <ben@bagu.org>
116
117         Ensure the pager buttons are always visible for related lists.
118
119         To accomplish this, I've turned off text wrapping in the list view and
120         related list tables for both the header and data text. The related list
121         table now has a fixed layout so the it doesn't overflow its container.
122         This is required to ensure that the cell text is clipped when it
123         overflows the cell and an ellipsis is added to the right side of the
124         cell when text is clipped.
125
126         A fixed table layout for the related list table in the details view
127         seems what we want for the details view anyway, so the side-effect is
128         desirable.
129
130         The ellipsis will only be displayed in Firefox >= 7.
131
132         This fixes bug:
133
134         https://bugzilla.gnome.org/show_bug.cgi?id=662930
135
136         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
137         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
138         'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
139         cell text.
140         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
141         Set the 'table-layout: fixed' CSS property to the related list table.
142         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
143         'white-space: nowrap;' CSS property on both the list view and the
144         related list tables.
145
146 2011-11-16  Ben Konrath  <ben@bagu.org>
147
148         Rework the fix for empty notebook tab labels.
149
150         Setting the empty group titles with its name caused problems for the
151         details layout. Instead of using libglom's
152         LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
153         to the client when the title is empty. This allows the Notebook to use
154         the name when the title is empty without affecting anything else.
155
156         * src/main/java/org/glom/web/client/ui/details/Notebook.java:
157         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
158
159 2011-11-16  Ben Konrath  <ben@bagu.org>
160
161         Set group titles with name when title is empty.
162
163         This fixes a problem with an empty notebook tab label in the Lesson
164         Planner document. The forth tab in the notebook should be "Internet":
165
166         http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
167
168         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
169         libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
170         DTO title.
171
172 2011-11-16  Ben Konrath  <ben@bagu.org>
173
174         Remove whitespace from the configured username properties.
175
176         This assumes that usernames won't have whitespace at the beginning
177         or end. But I think this is a reasonable assumption.
178
179         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
180         String.trim() to remove the whitespace from the username properties.
181
182 2011-11-15  Ben Konrath  <ben@bagu.org>
183
184         Add details view mockup with HTML tables and text entries.
185
186         This is from the attachment on this bug:
187
188         https://bugzilla.gnome.org/show_bug.cgi?id=663109
189
190         * mockups/details-view-html-tables-text-entries.html:
191
192 2011-11-15  Ben Konrath  <ben@bagu.org>
193
194         Add space between the columns of the flow table.
195
196         This fixes:
197
198         https://bugzilla.gnome.org/show_bug.cgi?id=662918
199
200         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
201         space between columns in the flow table.
202
203 2011-11-15  Ben Konrath  <ben@bagu.org>
204
205         Add backup files to the .gitignore.
206
207         * .gitignore: Ignore files that end with ~.
208
209 2011-11-09  Ben Konrath  <ben@bagu.org>
210
211         Use latest release of gwt-log.
212
213         Gwt-log releases are now being submitted to the maven central
214         repository so manual installation of the jar is no longer required.
215
216         * pom.xml: Update version and groupId of gwt-log dependency.
217
218 2011-10-31  Ben Konrath  <ben@bagu.org>
219
220         Don't use GWT numeric formatting to override the glom currency formatting.
221
222         Currencies are now displayed like they are in Glom. See this bug:
223
224         https://bugzilla.gnome.org/show_bug.cgi?id=646216
225
226         * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
227         formatting.
228         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
229         currency code to constructor and set it when the cell is rendered.
230         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
231         currency code to the constructor of the NumericCell.
232
233 2011-10-27  Ben Konrath  <ben@bagu.org>
234
235         Require the latest release of java-libglom (1.17.4).
236
237         * pom.xml:
238
239 2011-10-26  Ben Konrath  <ben@bagu.org>
240
241         Add style to Notebook that matches current theme.
242
243         It's not the best style in the world but it's better than the default.
244
245         * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
246         padding at the bottom of the child widgets.
247         * src/main/webapp/style.css: Add style for the Notebook.
248
249 2011-10-26  Ben Konrath  <ben@bagu.org>
250
251         Move servlet initialization code to overridden init method.
252
253         This is half of the solution to getting proper error messages
254         displayed when configuration errors occur. Here's the relevant bug:
255
256         https://bugzilla.gnome.org/show_bug.cgi?id=662792
257
258         The rest of the solution involves surrounding the init method with a
259         try/catch block and setting a global variable with the error /
260         exception. A new async method should be created to retrieve and display
261         the error message / exception.
262
263         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
264         code from constructor to init method adding exceptions as needed.
265
266 2011-10-26  Ben Konrath  <ben@bagu.org>
267
268         Add script to monitor and restart tomcat if required.
269
270         * utils/check-and-recover-tomcat.py: New file.
271
272 2011-10-26  Ben Konrath  <ben@bagu.org>
273
274         Display the correct number of data items in the pager.
275
276         This commit fixes:
277
278         https://bugzilla.gnome.org/show_bug.cgi?id=661441
279
280         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
281         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
282         The implementation is the same for both tables: Keep track of the
283         number of non-empty rows and fire and RowCountChangeEvent after the data has
284         been updated.
285         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
286         custom Pager class that subclasses SimplePager to handle displaying
287         the correct number when empty rows have been added.
288
289 2011-10-26  Ben Konrath  <ben@bagu.org>
290
291         Correct error in previous commit.
292
293         * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
294         eventBus parameter from listView.setCellTable().
295
296 2011-10-26  Ben Konrath  <ben@bagu.org>
297
298         Fix error in TODO comment.
299
300         * src/main/java/org/glom/web/client/activity/ListActivity.java:
301
302 2011-10-24  Ben Konrath  <ben@bagu.org>
303
304         Create Notebook widgets to the details view.
305
306         This isn't finished just yet - I still need to create a reasonable
307         style to match the current theme.
308
309         * src/main/java/org/glom/web/client/Utils.java: Add method for
310         calculating the height of a widget. This is used in the Notebook class.
311         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
312         new constructor method in Group.
313         * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
314         method for creating child widget that can be used by subclasses
315         like Notebook. New constructor that allows disabling the group
316         titles - Notebooks don't set a group title for their child groups.
317         * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
318         to make Notebooks using GWT's TabLayoutPanel.
319         * src/main/java/org/glom/web/client/ui/details/Portal.java: New
320         constructor that allows disabling the group titles.
321         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
322         LayoutItemNotebook DTO.
323         * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
324         DTO for Notebooks. It's just an empty class for now but we might need
325         it to transfer some specific information in the future.
326
327 2011-10-21  Ben Konrath  <ben@bagu.org>
328
329         Add navigation buttons to related list tables.
330
331         * src/main/java/org/glom/web/client/OnlineGlomService.java:
332         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
333         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
334         method getSuitableRecordToViewDetails() for getting the table name
335         and primary key value for related list navigation buttons.
336         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
337         private cell renderer class to get the navigation information for
338         related list tables from the server. Extract the navigation
339         processing code from the details cell navigation and use it for the
340         related list navigation as well.
341         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
342         cell renderer class for the details open buttons. This was needed
343         because the related list navigation buttons and the list view
344         navigation buttons need to react differently when clicked.
345         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
346         the onEnterKeyDown() method because it's now overriden in the
347         subclasses that are specific to the related list tables and the list
348         view tables.
349         * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
350         the vertical size a little because the buttons add a bit of vertical
351         space to table. This is not a perfect solution because the vertical
352         size of with table fewer than 5 rows will be a little smaller.
353         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
354         changes in how navigation buttons are handled.
355         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
356         getSuitableRecordToViewDetails() using the new RelatedListNavigation
357         database access object.
358         * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
359         to find the portal for a given relationship name from
360         RelatedListDBAccess. Add method to find a primary key field for a
361         given table.
362         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
363         Move code to find the portal for a given relationship name to
364         DBAccess.
365         * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
366         New file: database access object for getting the related list
367         navigation information (the table name and the primary key value).
368         * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
369         DTO for transferring a table name to navigate to and a primary key
370         value.
371         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
372         boolean and getter/setter to specifies if the related list should add
373         navigation buttons.
374
375 2011-10-24  Murray Cumming  <murrayc@murrayc.com>
376
377         Use the master branch of java-libglom
378
379         * pom.xml: Depend on java-libglom 1.19 instead.
380         
381         This is the master branch. See also the libglom-1-18 branch.
382
383 2011-10-11  Ben Konrath  <ben@bagu.org>
384
385         Enable the open navigation button when the data has been set.
386
387         This avoids having active buttons that don't do anything when the data
388         has not been set.
389
390         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
391
392 2011-10-11  Ben Konrath  <ben@bagu.org>
393
394         Use IsWidget interface for FlowTableItem.
395
396         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
397         FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
398
399 2011-10-11  Ben Konrath  <ben@bagu.org>
400
401         Remove GWT styling from open button in details view.
402
403         There are still some issues with how the details cell is arranged but
404         this should be made to match Glom 1.20. I'm going to leave fixing this
405         until I have Glom 1.20 up and running.
406
407         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
408         style name on open button.
409         * src/main/webapp/style.css: Move and edit details-navigation class.
410         Re-arrange some classes to make them appear in the same order as the
411         UI.
412
413 2011-10-07  Ben Konrath  <ben@bagu.org>
414
415         Update to GWT 2.4.0.
416
417         * .gitignore: Ignore new cache directory.
418         * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
419         * pom.xml: Change GWT and maven plugin to 2.4.0.
420         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
421         2.4.0.
422         * src/main/java/org/glom/web/client/ClientFactory.java:
423         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
424         * src/main/java/org/glom/web/client/OnlineGlom.java:
425         Update source for API changes.
426         * utils/build-onlineglom-war.sh: Remove cache directory before the
427         build.
428
429 2011-10-07  Ben Konrath  <ben@bagu.org>
430
431         Add navigation buttons in the details view.
432
433         This isn't finished but I thought I'd commit what I have as it's a
434         pretty good start. I still need to:
435
436         1. Change the style so that it fits better into the current theme
437         2. Adjust the details cell to expand as much as possible.
438
439         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
440         click handlers to navigation buttons in the DetailsCells. Create a
441         refreshData() method to get just the data from the server without the
442         layout.
443         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
444         Update the tableSelector and browser title when the table name
445         changes without using the tableSelector.
446         * src/main/java/org/glom/web/client/ui/DetailsView.java:
447         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
448         getDetailsCells() to getCells(). Update variable names.
449         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
450         method to set click handler on navigation button. Rename a few
451         variables. Add navigation buttons where needed.
452         * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
453         variables and methods.
454         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
455         navigation boolean and navigation table as required in the
456         LayoutItemField DTO.
457         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
458         variables for navigation along with getter/setter methods.
459
460 2011-10-07  Ben Konrath  <ben@bagu.org>
461
462         Rename Field to DetailsCell.
463
464         This is a refactor-only commit. No functionality has been added or
465         removed.
466
467         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
468         Update variable and method names.
469         * src/main/java/org/glom/web/client/ui/DetailsView.java:
470         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
471         variable and method names.
472         * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
473         Renamed from Field.
474         * src/main/java/org/glom/web/client/ui/details/Group.java: Update
475         variable and method names.
476
477 2011-10-07  Ben Konrath  <ben@bagu.org>
478
479         Create separate methods for layout and data the details view.
480
481         This is a refactor-only commit. No functionality has been added or
482         removed.
483
484         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
485         private methods: setData(), createLayout().
486
487 2011-10-07  Ben Konrath  <ben@bagu.org>
488
489         Don't use TableSelectorImpl implementation details in TableSelectorActivity.
490
491         This is part of a change to get navigation buttons in the details view
492         but it should have been done this way from the start.
493
494         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
495         for method name change in TableSelectionView.
496         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
497         Create TableChangeEvent and set the browser title using the
498         TableSelectionView API.
499         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
500         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
501         Change getSelectedTable() to getSelectedTableName(). Add
502         getSelectedTableTitle().
503
504 2011-10-07  Ben Konrath  <ben@bagu.org>
505
506         Use primaryKeyValue naming convention in constructor of DetailsPlace.
507
508         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
509
510 2011-10-07  Ben Konrath  <ben@bagu.org>
511
512         Update TableChangeEvent to use newTableName naming convention.
513
514         This makes the class more consistent with GWT naming conventions.
515
516         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
517         Update for method name change in TableChangeEvent.
518         * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
519         for method name change in TableChangeEvent.
520         * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
521         newTableName variable and getter method. Make toDebugString()
522         actually work.
523
524 2011-09-30  Ben Konrath  <ben@bagu.org>
525
526         Disable the pager in the list tables when the data row count is less than the minimum.
527
528         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
529         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
530
531 2011-09-30  Ben Konrath  <ben@bagu.org>
532
533         Add empty rows to the end of related list and list view tables.
534
535         I also extracted the cell rendering classes from the ListTable because
536         the code was becoming a little crazy with all the anonymous inner
537         classes. My plan is to use these cell rendering classes in the details
538         view as well so this refactor will be needed for that change.
539
540         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
541         set the row count in related list tables if the data has more rows
542         than the minimum number of rows visible.
543         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
544         row count in list view tables if the data has more rows than the
545         minimum number of rows visible.
546         * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
547         for rendering TYPE_BOOLEAN cells. The code was extracted from the
548         ListTable class.
549         * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
550         for rendering TYPE_NUMERIC cells. The code was extracted from the
551         ListTable class.
552         * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
553         class for rendering cells with buttons in list views. The code was
554         extracted from the ListTable class.
555         * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
556         for rendering TYPE_TEXT cells. The code was extracted from the
557         ListTable class.
558         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
559         Add empty rows to the end of the data if required. Implement
560         ListTable.getMinNumVisibleRows().
561         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
562         cell renderer code to public classes. Return null in
563         Column.getValue() for empty rows. Add new abstract method:
564         getMinNumVisibleRows(). Move code to set the row count of the list view
565         table to ListViewImpl.
566         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
567         empty rows to the end of the data if required. Implement
568         ListTable.getMinNumVisibleRows().
569
570
571 2011-09-27  Ben Konrath  <ben@bagu.org>
572
573         Use GWT.log for client-side debugging statements.
574
575         These are optimized out when deployed so I should have used this method
576         in the first place. These statements will eventually be replaced with some sort
577         of notification in the browser.
578
579         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
580         * src/main/java/org/glom/web/client/activity/ListActivity.java:
581         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
582         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
583         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
584
585 2011-09-27  Ben Konrath  <ben@bagu.org>
586
587         Put tableselector on the right, back to list link on right.
588
589         The idea is that the table selector is acting like a label for the
590         currently displayed table so it should be placed below the document title. This
591         puts the table title in a similar position to where it is in Glom.
592
593         * mockups/details-contacts.html:
594         * mockups/details-projects.html:
595         * mockups/listview-contacts.html:
596         * mockups/listview-projects.html:
597         * mockups/style.css:
598         Update mockups to match how the interfaces currently look.
599         * src/main/webapp/style.css: Swap positions of backlink with the table
600         selector. Add some space on the left side of the table selector to
601         line things up with the document title.
602
603 2011-09-27  Ben Konrath  <ben@bagu.org>
604
605         Add field colouring to details view.
606
607         This change re-works how field colouring works. The colour formatting
608         information is now set to the client with the layout information instead of
609         with the data. This eliminates the need to send the same colour strings for
610         data in list view column when colour information is set.
611
612         In order to set an alternate colour for negative numeric values, the
613         number is now sent to client and formatted with the GWT NumberFormat class.
614
615         This change also fixes:
616
617         https://bugzilla.gnome.org/show_bug.cgi?id=659752
618
619         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
620         internationalization framework which is needed for client side numeric
621         formatting.
622         * src/main/java/org/glom/web/client/Utils.java: New file for some
623         client static utility methods.
624         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
625         the DataItem object to the Field class. Use a utility method to
626         create the foreignKeyValue string.
627         * src/main/java/org/glom/web/client/ui/details/Field.java: Set
628         alignment and text colours in the constructor. Add setData(DataItem)
629         method. Remove setText(String) method.
630         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
631         colour information to GlomTextCell. Create and use GlomNumberCell for
632         rendering numbers. Use utility method to get the string for the
633         primary key of the key provider. Re-work how the horizontal alignment
634         is set.
635         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
636         formatting to layout information. Methods for converting the libglom
637         formatting information were moved from DBAccess.
638         * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
639         numeric formatting (it's now done on the client side). Don't set text
640         colours in DataItem. Move libglom formatting conversion methods to
641         ConfiguredDocument.
642         * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
643         getters/setters for text colour information.
644         * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
645         for transferring the libglom NumericFormat information to the client.
646         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
647         and getters/setters for: GlomNumericFormat, background colour and
648         foreground colour strings.
649
650 2011-09-26  Ben Konrath  <ben@bagu.org>
651
652         Simplify code that iterates through the LayoutGroup.
653
654         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
655
656 2011-09-26  Ben Konrath  <ben@bagu.org>
657
658         Accept Eclipse formatting for OnlineGlomServiceAsync.
659
660         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
661
662 2011-09-26  Ben Konrath  <ben@bagu.org>
663
664         Don't use the ListDBAccess classes to get the primary key layout information.
665
666         This was causing a bug where the wrong index for the hidden primary key
667         was being sent to the client.
668
669         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
670         primary key while creating the LayoutGroup DTO. Create a
671         LayoutItemField DTO for hidden primary keys. Don't use the
672         RelatedListDBAccess because it was only used for getting the primary
673         key.
674         * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
675         access modifier from public to protected for getPrimaryKeyField() and
676         getPrimaryKeyLayoutItemField().
677         * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
678         abstract method getExpectedResultSize() because RelatedListDBAccess
679         doesn't have enough info to implement it.
680         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
681         Remove @Override for getExpectedResultSize().
682         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
683         Remove method getExpectedResultSize().
684
685 2011-09-23  Ben Konrath  <ben@bagu.org>
686
687         Log which layout (list or details) the ignored item is from.
688
689         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
690
691 2011-09-23  Ben Konrath  <ben@bagu.org>
692
693         Remove annotations that turn off code formatting in DataItem.
694
695         * src/main/java/org/glom/web/shared/DataItem.java:
696
697 2011-09-23  Ben Konrath  <ben@bagu.org>
698
699         Rename GlomField to DataItem and update associated methods.
700
701         This is a rename-only refactor. No functionality has been added or
702         removed.
703
704         * src/main/java/org/glom/web/client/OnlineGlomService.java:
705         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
706         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
707         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
708         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
709         * src/main/java/org/glom/web/client/ui/list/ListTable.java:
710         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
711         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
712         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
713         * src/main/java/org/glom/web/server/database/DBAccess.java:
714         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
715         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
716         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
717         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
718         * src/main/java/org/glom/web/shared/DataItem.java:
719         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
720         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
721
722 2011-09-23  Ben Konrath  <ben@bagu.org>
723
724         Rename GlomDocument to DocumentInfo and update associated methods.
725
726         This is a rename-only refactor. No functionality has been added or
727         removed.
728
729         * src/main/java/org/glom/web/client/OnlineGlomService.java:
730         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
731         * src/main/java/org/glom/web/client/activity/ListActivity.java:
732         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
733         * src/main/java/org/glom/web/server/ConfiguredDocument.java:
734         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
735         * src/main/java/org/glom/web/shared/DocumentInfo.java:
736
737 2011-09-20  Ben Konrath  <ben@bagu.org>
738
739         Require java-libglom 1.17.3.
740
741         This picks up the fix for the seg fault problem with the Scenes table
742         in the Openismus Film Manager example.
743
744         * pom.xml:
745
746 2011-09-20  Ben Konrath  <ben@bagu.org>
747
748         Change the way sort clause is added for primary key when no sort clause is requested.
749
750         The primary key is now added to the LayoutFieldVector (fieldsToGet)
751         before the sort clause is created. When a sort clause is not requested, the
752         sort clause is created by finding the primary key in the LayoutFieldVector
753         (fieldsToGet).
754
755         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
756
757 2011-09-20  Ben Konrath  <ben@bagu.org>
758
759         Log error message if no documents are found in the configured directory.
760
761         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
762         Extract the glom file extension string to a private static final class
763         variable (mostly as syntactic sugar). Accept a minor formatting change.
764         * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
765         the example glom.document.directory configuration property to make it
766         more clear that it can any directory, not just the home directory.
767
768 2011-09-18  Ben Konrath  <ben@bagu.org>
769
770         Add related lists to details view.
771
772         The related list table has support for paging and sorting just like the
773         table in the list view.
774
775         * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
776         SQL queries for the related list tables.
777         * src/main/java/org/glom/web/client/OnlineGlomService.java:
778         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
779         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
780         Rename getList methods to getListView and add comments. Remove
781         getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
782         it being unused. Add methods: getDetailsLayoutAndData(),
783         getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
784         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
785         Create the layout and set the data for the fields in one async call
786         instead of two. Create related lists where appropriate.
787         * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
788         for method name changes in OnlineGlomService.
789         * src/main/java/org/glom/web/client/ui/DetailsView.java:
790         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
791         addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
792         visible UI objects.
793         * src/main/java/org/glom/web/client/ui/ListView.java:
794         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
795         tableName from setCellTable(). Create a ListViewTable instead of
796         ListTable.
797         * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
798         represent a data field in the details view.
799         * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
800         from addDetailsCell() to Field class. Keep track of the Fields and
801         Portals in the details view.
802         * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
803         a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
804         and add a method to get it. Add method to set the contents of the
805         portal.
806         * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
807         New class for related list tables. This class has the data provider
808         for the related list table.
809         * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
810         abstract class which is the base class for the ListViewTable and the
811         RelatedListTable.
812         * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
813         New class for list view tables. This class has the data provider for
814         the list view table.
815         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
816         methods for related list tables. Add more information to the
817         LayoutItemField and LayoutItemPortal DTOs.
818         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
819         Remove debugging print statement.
820         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
821         Remove debugging print statements. Add primary key field to SQL count
822         query.
823         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
824         Remove unnecessary LayoutFieldVector parameter from
825         getResultSizeOfSQLQuery() method.
826         * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
827         New class for related list table database access.
828         * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
829         class that is a wrapper DTO for details view layout and data.
830         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
831         new 'fromField' string to this DTO.
832         * src/main/webapp/style.css: Remove bottom margin and override top
833         margin with 0em.
834
835 2011-09-15  Ben Konrath  <ben@bagu.org>
836
837         Breakup the OnlineGlomServiceImpl class to make it more manageable.
838
839         This sets things up to make it easier to add the data retrieval for
840         related lists (portals). No user noticeable changes were made with
841         this commit.
842
843         * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
844         class has the code to retrieve the layouts and access the
845         database using the new database helper classes.
846         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
847         Most of the functionality has been removed from this class. This
848         class now represents the public interface for the client side
849         code. It also deals with configuring the servlet and cleaning
850         things up when the servlet is stopped.
851         * src/main/java/org/glom/web/server/Utils.java: Extract a couple
852         of static methods into this utility class.
853         * src/main/java/org/glom/web/server/database/DBAccess.java:
854         * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
855         * src/main/java/org/glom/web/server/database/ListDBAccess.java:
856         * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
857         These classes have the database retrieval code. The class hierarchy
858         has been setup to make it easy to reuse code for similar
859         functionality.
860
861 2011-09-06  Ben Konrath  <ben@bagu.org>
862
863         Create separate classes for list table code and the data provider.
864
865         As part of this refactor, I also split up the code a bit to make it
866         more manageable.
867
868         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
869         table code to two new classes (below).
870         * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
871         with code from ListViewImpl.
872         * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
873         New file with code from ListViewImpl.
874
875 2011-09-06  Ben Konrath  <ben@bagu.org>
876
877         Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
878
879         This fixes the LayoutItemPortal DTO to match the libglom layout object
880         hierarchy.
881
882         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
883
884 2011-09-01  Ben Konrath  <ben@bagu.org>
885
886         Set title of Portals in the Details View.
887
888         * pom.xml: Bump required version of java-libglom to 1.17.1.
889         * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
890         widget creation to its own class. Add comments to constructor.
891         * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
892         The code is mostly from the Group class with the title now set.
893         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
894         title of Portal. Update some comments. Fix some code formatting.
895
896 2011-09-01  Ben Konrath  <ben@bagu.org>
897
898         Remove TODO comment for the flow table column width.
899
900         The flow table column width is working correctly and doesn't need to be
901         changed. See this mailing list post for more info:
902
903         https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
904
905         * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
906
907 2011-08-27  Ben Konrath  <ben@bagu.org>
908
909         Add document title (database name) to top of the browser page.
910
911         I added the document title to the TableSelecitonView but that will
912         change if / when we add a view that doesn't require table selection.
913
914         * mockups/details-contacts.html:
915         * mockups/details-projects.html:
916         * mockups/listview-contacts.html:
917         * mockups/listview-projects.html:
918         * mockups/style.css: Add document title to mockups to keep things
919         consistent.
920         * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
921         sizes to account for the document title.
922         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
923         Set the document title when it has been retrieved from the server.
924         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
925         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
926         and implement setDocumentTitle(String) method.
927         * src/main/webapp/style.css: Add ID for document title style.
928
929 2011-08-25  Ben Konrath  <ben@bagu.org>
930
931         Add NavigationType enum to LayoutItemPortal DTO.
932
933         This is the start of adding support for Portals to the Details View.
934
935         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
936         LayoutItem_Portal.navigation_type enum from libglom to
937         LayoutItemPortal.NavigationType enum.
938         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
939         NavigationType enum, field for storing the NavigationType and getter
940         and setter methods.
941
942 2011-08-25  Ben Konrath  <ben@bagu.org>
943
944         Implement the flow table layout in the Details View.
945
946         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
947         FlowTable to Group to account for the renamed class.
948         * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
949         File. This is a container widget that implements the Glom details view
950         flow table behaviour.
951         * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
952         org/glom/web/client/ui/FlowTable.java.
953         * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
954         so that the size of the subgroups are a closer match to the size of
955         the Glom subgroups. This makes the flowtable layout match the layout
956         in Glom for the Music Collection example file.
957
958 2011-08-16  Ben Konrath  <ben@bagu.org>
959
960         Create container element for LayoutItemPortal in Details View.
961
962         This will help me develop the layout for the FlowTable.
963
964         * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
965         fieldPanel variable to detailsCell.
966
967 2011-08-15  Ben Konrath  <ben@bagu.org>
968
969         Set the height of the data element in the Details View.
970
971         I changed the InlineLabels (text in a span element) to Labels (text in
972         a div element) so that I could set the height of the details-data
973         elements instead of the details-cell parent elements. This allows the
974         the details-data element to display the correct height if style is
975         applied that shows the height.
976
977         This change has the added benefit of allowing the order of the labels
978         and data elements to be changed for right-to-left languages.
979
980         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
981         InlineLabels to Labels.
982         * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
983         InlineLabels to Labels. Set the height of the data element.
984         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
985         multiline text height in the Formatting DTO.
986         * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
987         for multiline height along with getter and setter methods.
988         * src/main/webapp/style.css: Adjust style to account for the change
989         from span elements to div elements in the details cell.
990
991 2011-08-15  Ben Konrath  <ben@bagu.org>
992
993         Make the List View appearance match the mockups.
994
995         It doesn't match exactly but it's much better than it was.
996
997         * mockups/listview-contacts.html: Remove unused css classes.
998         * mockups/listview-projects.html: Remove unused css classes.
999         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1000         rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1001         for mainPanel instead of VerticalPanel (table). Set style name on
1002         CellTable. Set style name on Details column. Right-align Details
1003         buttons.
1004         * src/main/webapp/style.css: Adjust properties to match the mockups.
1005
1006 2011-08-12  Ben Konrath  <ben@bagu.org>
1007
1008         Add better support for subgroups in the details view.
1009
1010         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1011         changed FlowTable constructor.
1012         * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1013         support for subgroups and subgroup-titles.
1014         * src/main/webapp/style.css: Add CSS class for subgroups and
1015         subgroup-titles.
1016
1017 2011-08-12  Ben Konrath  <ben@bagu.org>
1018
1019         Return the top level LayoutGroup title.
1020
1021         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1022
1023 2011-08-11  Ben Konrath  <ben@bagu.org>
1024
1025         Make the TableSelector header match the mockup.
1026
1027         * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1028         the layout panel. Properly lineup the table selection header with
1029         the list and details view.
1030         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1031         margin around the details view.
1032         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1033         Rename listBox variable to tableSelector. Set id for the style sheet.
1034         Use a FlowPanel instead of a HorizontalPanel.
1035         * src/main/webapp/style.css: Add properties to make the TableSelector
1036         box match the mockups.
1037
1038 2011-07-13  Ben Konrath  <ben@bagu.org>
1039
1040         Update install script for java-libglom version change.
1041
1042         * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1043         java-libglom fails.
1044
1045 2011-07-13  Ben Konrath  <ben@bagu.org>
1046
1047         Add support sub-group in the details view.
1048
1049         I also removed the code that special-cased the default details view
1050         layout. See:
1051
1052         http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1053
1054         I still have to make a proper flowtable.
1055
1056         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1057         Don't special-case default details view layout.
1058         * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1059         addLayoutField() as I'm going to use it.
1060         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1061         GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1062         method.
1063         * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1064         extracted from DetailsViewImpl.GroupPanel. Add support for
1065         sub-groups.
1066         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1067         column count when getting the details layout.
1068
1069 2011-07-12  Ben Konrath  <ben@bagu.org>
1070
1071         Set browser title with database and table titles.
1072
1073         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1074         Set the browser title when the table changes and when the activity
1075         first starts.
1076         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1077         title when retrieving document info (the GlomDocument object).
1078         * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1079         with getter and setter methods. Remove unused convenience constructor.
1080         Use default code formatting.
1081
1082 2011-07-12  Ben Konrath  <ben@bagu.org>
1083
1084         Ignore LayoutItemPortals in the details view.
1085
1086         I added a new DTO for the LayoutItemPortal so that I can ignore it in
1087         the client code.
1088
1089         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1090         LayoutItemPortal layout objects.
1091         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1092         LayoutItemPortal objects when retrieving the details layout.
1093         * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1094         file. This is an empty class and just used to get type information for
1095         now.
1096
1097 2011-07-12  Ben Konrath  <ben@bagu.org>
1098
1099         Use java-libglom 1.17.0.
1100
1101         * pom.xml:
1102
1103 2011-07-11  Ben Konrath  <ben@bagu.org>
1104
1105         Remove "Table:" label from table selector.
1106
1107         This matches a recent change in the Glom UI.
1108
1109         * mockups/details-contacts.html:
1110         * mockups/details-projects.html:
1111         * mockups/listview-contacts.html:
1112         * mockups/listview-projects.html: Remove the "Table:" label from the
1113         mockups as well.
1114         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1115
1116 2011-07-11  Ben Konrath  <ben@bagu.org>
1117
1118         Add main groups to the details view.
1119
1120         This makes things look a little nicer in the details view. The next step
1121         is to implement the flowtable.
1122
1123         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1124         resources from the standard gwt css theme. Standard.css is now
1125         included in OnlineGlom.html so that the online glom css rules have
1126         precedence over the gwt theme.
1127         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1128         the whole LayoutGroup to the DetailsView instead of just the titles.
1129         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1130         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1131         details layout with a helper class (GroupPanel). I might extract this
1132         class when I make the full flowtable.
1133         * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1134         string as default so I don't have to worry about NPEs when processing
1135         the layout objects.
1136         * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1137         note beside OnlineGlom.gwt.xml above).
1138         * src/main/webapp/style.css: Add default font-size to body to override
1139         the font-size set by the standard theme. Don't use h2 tags for
1140         group-title. Create new details-cell class.
1141
1142 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1143
1144         ConfiguredDocument: Set the port number too.
1145
1146         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1147         (ConfiguredDocument.ConfiguredDocument): Get the port number from the 
1148         Glom document. Presumably this worked sometimes so far because there is a 
1149         default port number.
1150
1151 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1152
1153         ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1154
1155         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1156         (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is 
1157         correct, though we should throw an exception too.
1158
1159 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1160
1161         Fix a addDocuemnt typo.
1162
1163         * src/main/java/org/glom/web/shared/Documents.java
1164         (Documents.addDocuemnt): Rename to addDocument().
1165         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1166         (OnlineGlomServiceImpl.getDocuments): Adapt.
1167         
1168 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
1169
1170         Slightly improved log output when connection fails.
1171
1172         * src/main/java/org/glom/web/server/ConfiguredDocument.java
1173         (ConfiguredDocument.setUsernameAndPassword):
1174         We don't know for sure if it' the username/password that's wrong, so 
1175         rephrase the message.
1176         Also ouput the exception message, though it's generic in this case.
1177
1178 2011-07-08  Ben Konrath  <ben@bagu.org>
1179
1180         Cleanup comments.
1181
1182         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1183         added braces to a one line if statement because the Eclipse formatter
1184         was getting confused.
1185
1186 2011-07-07  Ben Konrath  <ben@bagu.org>
1187
1188         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1189
1190         These should really be two separate tasks but I counldn't get things to
1191         work with GWT 2.2.0 and Eclipse 3.7.
1192
1193         * .classpath:
1194         * .project:
1195         * .settings/org.eclipse.jdt.core.prefs:
1196         * .settings/org.eclipse.jdt.ui.prefs:
1197         * .settings/org.eclipse.ltk.core.refactoring.prefs:
1198         * .settings/org.eclipse.m2e.core.prefs:
1199         Add new config files. Update current files. Remove references to the
1200         webtools plugins as we're not using any of the webtools features.
1201         * .gitignore: Add logs directory which is created when running with
1202         'mvn gwt:run'.
1203         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1204         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1205         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1206         limitation:
1207         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1208
1209 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
1210
1211         onlineglom.properties: Add explanatory comments.
1212
1213         * src/main/resources/onlineglom.properties: Also change the default user 
1214         from ben to someuser, to avoid the risk of people thinking we just 
1215         stupidly hard-coded a locale path, when they see that on stderr or in a log.
1216
1217 2011-06-28  Ben Konrath  <ben@bagu.org>
1218
1219         Use filename in Log for incorrect passwords.
1220
1221         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1222         getFileName(String) method to get the filename from the URI.
1223
1224 2011-06-28  Ben Konrath  <ben@bagu.org>
1225
1226         Add the table name to the URL token for the ListPlace.
1227
1228         This makes things consistent between the DetailsPlace and the
1229         ListPlace. It also allows the the ListPlace to be bookmarked.
1230
1231         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1232         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1233         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1234         Remove getDefaultListLayout(). The default layout is now returned
1235         by the getListLayout() method when the table name is an empty string.
1236         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1237         Add table name field. Change to a new ListPlace when the table
1238         has been changed. Use getListLayout() for getting the default
1239         list layout.
1240         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1241         Add table name field. Set the correct table name in the list box
1242         when loading from bookmark. This corrects a problem for the
1243         DetailsPlace too.
1244         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1245         Move table name to super-class (HasSelectableTable). Move document
1246         and table URL keys to super-class in HasSelectableTable.
1247         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1248         Add table name field. Add Tokenizer class with URL key common to
1249         the subclasses (DetailsPlace and ListPlace).
1250         * src/main/java/org/glom/web/client/place/ListPlace.java:
1251         Add table name. Add code to parse the URL token.
1252         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1253         Update ListPlace construction with empty table name string.
1254         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1255         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1256         Change setTableSelectedIndex(int) to setSelectedTableName(String).
1257         Update ListPlace construction with table name string.
1258         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1259         Change defaultTableName field to tableName to reflect how it's now
1260         used. Update the getter and setter methods.
1261
1262 2011-06-28  Ben Konrath  <ben@bagu.org>
1263
1264         Enable the table selector in the DetailsView.
1265
1266         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1267         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1268         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1269         Remove getDefaultDetailsLayout(). The default layout is now returned
1270         by the getDetailsLayout() method when the table name is an empty
1271         string.
1272         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1273         event handler for table change event. Change to using
1274         getDetailsLayout() for the default details layout.
1275         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1276         name to URL token.
1277         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1278         when navigating to the details place.
1279
1280 2011-06-27  Ben Konrath  <ben@bagu.org>
1281
1282         Use filename based unique document ID in URL and for RPC.
1283
1284         The document ID is the glom document name with spaces (' ') replaced
1285         with pluses ('+') and without the .glom extension.
1286
1287         This change is mostly a string substitution of 'documentTitle' for
1288         'documentID'. The only code change is the addition of a Documents DTO to get the
1289         filename to document title mappings as indicated below.
1290
1291         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1292         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1293         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1294         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1295         Use Documents DTO to create the document links in the document
1296         selection view.
1297         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1298         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1299         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1300         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1301         * src/main/java/org/glom/web/client/place/ListPlace.java:
1302         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1303         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1304         * src/main/java/org/glom/web/client/ui/ListView.java:
1305         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1306         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1307         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1308         * src/main/java/org/glom/web/server/Log.java:
1309         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1310         getDocumentTitles() to getDocuments() and return the Documents DTO.
1311         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1312         transferring the filename to document title mappings.
1313
1314 2011-06-25  Ben Konrath  <ben@bagu.org>
1315
1316         Make the authentication popup work again.
1317
1318         This bug was introduced when I extracted ConfiguredDocument to its own class.
1319
1320         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1321         correct success / fail status in setUsernameAndPassword().
1322
1323 2011-06-25  Ben Konrath  <ben@bagu.org>
1324
1325         Use filename as unique key for configuring database usernames and passwords.
1326
1327         This replaces the use of the Glom document title which could change
1328         depending on the locale. Thanks to Murray Cumming for pointing out this
1329         problem.
1330
1331         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1332         * src/main/resources/onlineglom.properties:
1333
1334 2011-06-24  Ben Konrath  <ben@bagu.org>
1335
1336         Pass primary key value to DetailsView.
1337
1338         This enables the DetailsView to load the correct data.
1339
1340         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1341         primary key value field and set in constructor. Pass primary key
1342         value to getDetailsData().
1343         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1344         variables for document title and primary key value.
1345         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1346         key value to the DetailsPlace.
1347
1348 2011-06-24  Ben Konrath  <ben@bagu.org>
1349
1350         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1351
1352         This allows the primary key to be retrieved by the Details button. This
1353         functionality has not been implemented yet but it's in the works.
1354
1355         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1356         the LayoutGroup result to ListView.setCellTable instead of all of its
1357         fields individually.
1358         * src/main/java/org/glom/web/client/ui/ListView.java:
1359         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1360         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1361         get the primary key for the table.
1362         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1363         index of the primary key in the LayoutGroup accounting for hidden
1364         primary keys. Rename getJavaNumberFormat() to
1365         convertToJavaNumberFormat() for consistency. Cleanup / add some
1366         comments.
1367         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1368         field for primary key index and a field to indicate whether the
1369         primary key is hidden or not.
1370
1371 2011-06-23  Ben Konrath  <ben@bagu.org>
1372
1373         Rename getTableData methods to getListData.
1374
1375         This is a rename refactor for consistency with other methods.
1376
1377         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1378         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1379         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1380         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1381
1382 2011-06-23  Ben Konrath  <ben@bagu.org>
1383
1384         Extract the ConfiguredDocument innerclass into its own class.
1385
1386         This makes the servlet code more object oriented.
1387
1388         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1389         from private ConfiguredDocument class in OnlineGlomServiceImpl.
1390         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1391         new ConfiguredDocument class.
1392
1393 2011-06-21  Ben Konrath  <ben@bagu.org>
1394
1395         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1396
1397         This makes things more inline with how libglom works and reduces code
1398         duplication. This refactor lays the groundwork for adding the primary key to
1399         the LayoutGroup object.
1400
1401         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1402         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1403         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1404         Change method names to getListLayout and getDefaultListLayout for
1405         consistency. Use LayoutGroup as the DTO for the list layout instead of
1406         ColumnInfo and LayoutListTable.
1407         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1408         new method names along with the LayoutGroup object for transferring the
1409         list layout.
1410         * src/main/java/org/glom/web/client/ui/ListView.java:
1411         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1412         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1413         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1414         with LayoutGroup.
1415         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1416         Replaced with LayoutGroup.
1417         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1418         expectedResultSize and defaultTableName fields which are needed for
1419         the list layout.
1420         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1421         type field which is needed for the list layout but will also be
1422         useful for the details layout as things progress.
1423         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1424         Make class abstract. Remove the unnecessary
1425         getFormattingHorizontalAlignment method. Add setFormatting method.
1426
1427 2011-06-16  Ben Konrath  <ben@bagu.org>
1428
1429         Add scripts for building and installing war.
1430
1431         These will help when updating OnlineGlom but they're also good
1432         supplemental documentation of the build and deployment proceeding.
1433
1434         * utils/build-onlineglom-war.sh: New file.
1435         * utils/install-onlineglom-war.sh: New file.
1436
1437 2011-06-16  Ben Konrath  <ben@bagu.org>
1438
1439         Create wrapper class to create consistent log messages.
1440
1441         I wrapped methods in the Log class of gwt-log to add the method names
1442         from the servlet and create consistent formatting of the document title
1443         and table names in the log messages.
1444
1445         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1446         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1447         log methods to use methods from wrapped Log class.
1448
1449 2011-06-16  Ben Konrath  <ben@bagu.org>
1450
1451         Remove superfluous conditional return.
1452
1453         Thanks to Murray Cumming for pointing this out!
1454
1455         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1456
1457 2011-06-15  Ben Konrath  <ben@bagu.org>
1458
1459         Return an ArrayList of LayoutGroups for the Details layout.
1460
1461         This corrects a problem with the details layout as it can have more
1462         than one top level LayoutGroup.
1463
1464         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1465         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1466         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1467         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1468         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1469         with ArrayList of LayoutGroups for the details view layout.
1470         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1471         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1472         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1473         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1474         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1475         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1476
1477 2011-06-14  Ben Konrath  <ben@bagu.org>
1478
1479         Use cast_dynamic method to determine the libglom LayoutItem type.
1480
1481         This is better than finding the LayoutItem type by using the string
1482         returned from the get_part_type_name() method.
1483
1484         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1485
1486 2011-06-14  Ben Konrath  <ben@bagu.org>
1487
1488         Add method names to log entries in the servlet.
1489
1490         This helps when tracking down deployment problems.
1491
1492         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1493
1494 2011-06-14  Ben Konrath  <ben@bagu.org>
1495
1496         Add data to the DetailsView using a hard-coded primary key value.
1497
1498         The layout and functionality of the DetailsView is not complete. This
1499         is just a checkpoint so the patch doesn't get too big.
1500
1501         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1502         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1503         Add getDetailsData() servlet method.
1504         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1505         Add RPC to getDetailsData(). Change the way the LayoutGroups and
1506         LayoutFields are added to the DetailsView.
1507         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1508         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1509         Add setData() method. Change addLayoutGroup() and addLayoutField() to
1510         take the string for the title instead of the object.
1511         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1512         Add implementation getDetailsData() along with some private helper
1513         methods.
1514         * src/main/webapp/style.css: Add padding to details-data class. Add a
1515         details-label class with the same padding as the details-data class.
1516
1517 2011-06-03  Ben Konrath  <ben@bagu.org>
1518
1519         Use presenter.goTo() to change to the DetailsPlace.
1520
1521         This will make things easier when we need to open the DetailsView with
1522         data specific to the row that was clicked.
1523
1524         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1525
1526 2011-06-02  Ben Konrath  <ben@bagu.org>
1527
1528         Add CSS file from mockups.
1529
1530         I'm adding this now because it's going to be useful to have when
1531         developing the DetailsView. The TableSelectionView and ListView aren't
1532         setup properly yet.
1533
1534         * src/main/webapp/OnlineGlom.html:
1535         * src/main/webapp/style.css:
1536
1537 2011-06-02  Ben Konrath  <ben@bagu.org>
1538
1539         Use String.isEmpty() to check for empty string.
1540
1541         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1542
1543 2011-06-02  Ben Konrath  <ben@bagu.org>
1544
1545         Display main layout group titles in the DetailsView.
1546
1547         This is the start of the DetailsActivity/DetailsView implementation.
1548
1549         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1550         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1551         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1552         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1553         Get the layout information for the details view from the server and set
1554         the main layout group titles.
1555         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1556         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1557         Add addLayoutGroup() and addLayoutField() methods. This are just
1558         temporary methods for creating the the details view that will change
1559         in the future.
1560         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1561         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1562         methods.
1563         * src/main/java/org/glom/web/shared/layout/Formatting.java:
1564         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1565         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1566         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1567         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1568         Data Transfer Objects that mimic the libglom object structure. These are
1569         used for transferring the details layout but could also be used for
1570         transferring the list layout.
1571
1572 2011-05-27  Ben Konrath  <ben@bagu.org>
1573
1574         Reset the AuthenticationPopup when clearing the ListView.
1575
1576         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1577
1578 2011-05-27  Ben Konrath  <ben@bagu.org>
1579
1580         Fix problem with onlineglom.properties file loading.
1581
1582         The old way worked in Eclipse but not on the server. Loading the
1583         onlineglom.properties file now works in Eclipse and on the server.
1584
1585         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1586
1587 2011-05-24  Ben Konrath  <ben@bagu.org>
1588
1589         Update gwt-log from 3.1.0 to 3.1.2.
1590
1591         Gwt-log 3.1.0 has been marked as depreciated.
1592
1593         * pom.xml:
1594
1595 2011-05-24  Ben Konrath  <ben@bagu.org>
1596
1597         Add comment to ListActivity.goTo() method.
1598
1599         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1600
1601 2011-05-24  Ben Konrath  <ben@bagu.org>
1602
1603         Remove FIXME in convertGdkColorToHtmlColour()
1604
1605         The Gdk::Color value returned by libglom is 16-bits per channel on both
1606         64 and 32-bit platforms.
1607
1608         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1609
1610 2011-05-19  Ben Konrath  <ben@bagu.org>
1611
1612         Improve performance of initial ListView load.
1613
1614         I removed a round trip to the server for getting the default table name
1615         and then requesting information about that table. This also removes a potential
1616         problem with the table change handler not being setup in time to receive the
1617         table change event from the ListActivity.
1618
1619         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1620         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1621         getDefaultLayoutListTable() method. Improve comments.
1622         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1623         getDefaultLayoutListTable() method instead of firing a table change
1624         event to get the table to load.
1625         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1626         implementation of getDefaultLayoutListTable() method.
1627         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1628         table name.
1629
1630 2011-05-19  Ben Konrath  <ben@bagu.org>
1631
1632         Override toDebugString() in TableChangeEvent.
1633
1634         This is useful to have for debugging.
1635
1636         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1637
1638 2011-05-19  Ben Konrath  <ben@bagu.org>
1639
1640         Add a "Back to List" link when at the DetailsPlace.
1641
1642         * src/main/java/org/glom/web/client/activity/ListActivity.java:
1643         Populate the CellTable based on the selected table of the ListBox if
1644         it's set otherwise use the default table. This allows the "Back to
1645         List" link to work.
1646         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1647         Remove Place from constructors. Add a setPlace() method. Add
1648         goToPlace() method. Set class as presenter for TableSelectionView.
1649         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1650         Use the same TableSelectionActivity when switching between the List and
1651         Details Places.
1652         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1653         Subclass the new HasSelectableTablePlace. This removes some duplicate
1654         code.
1655         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1656         New class to represent Places that display the TableSelectionView.
1657         * src/main/java/org/glom/web/client/place/ListPlace.java:
1658         Subclass the new HasSelectableTablePlace. This removes some duplicate
1659         code.
1660         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1661         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1662         Add Presenter interface. Add setBackLinkVisible() method. Add
1663         setBackLink() method.
1664
1665 2011-05-18  Ben Konrath  <ben@bagu.org>
1666
1667         Enable the "Details" buttons.
1668
1669         Right now only an empty details view is displayed.
1670
1671         * src/main/java/org/glom/web/client/ClientFactory.java:
1672         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1673         Add DetailsView to ClientFactory.
1674         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1675         A basic activity for the details view.
1676         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1677         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1678         clearView().
1679         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1680         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1681         GWT.
1682         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1683         Create a new DetailsActivity when a DetailsPlace is requested. Remove
1684         unnecessary super() in constructor.
1685         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1686         Create a new TableSelectionActivity when a DetailsPlace is requested. We
1687         really shouldn't create a new TableSelectionActivity for both the ListPlace
1688         and the DetailsPlace so this should be considered a temporary solution.
1689         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1690         New file. Represents a URL for the details view.
1691         * src/main/java/org/glom/web/client/ui/DetailsView.java:
1692         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1693         A basic details view interface and implementation.
1694         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1695         Enable the "Details" buttons.
1696
1697 2011-05-12  Ben Konrath  <ben@bagu.org>
1698
1699         Use a LayoutPanel with multiple display areas for main layout.
1700
1701         This is mostly a refactor in that there are no changes from the user
1702         point of view. These changes are required so that we can swap out the list view
1703         with the details view when the user clicks the "Details" button.
1704
1705         * src/main/java/org/glom/web/client/ClientFactory.java:
1706         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1707         OnlineGlomView. Add TableSelectionView, ListView and
1708         AuthenticationPopup.
1709         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1710         for main layout. Add display regions for main activities. Add
1711         activity manager for for main activities.
1712         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1713         file from parts of the deleted OnlineGlomActivity.
1714         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1715         New file from parts of the deleted OnlineGlomActivity.
1716         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1717         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1718         New files for app wide table change event.
1719         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1720         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1721         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1722         Activity mappers for the main activities replace the deleted app-wide
1723         AppActivityMapper.
1724         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1725         Fix a spelling error in he comment.
1726         * src/main/java/org/glom/web/client/ui/ListView.java:
1727         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1728         Renamed from LayoutListView and modified for MVP. This still not a
1729         proper dumb view as prescribed by the MVP pattern but it works for now.
1730         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1731         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1732         New widget stripped out of the deleted OnlineGlomView.
1733         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1734         Remove hack that is fixed by this patch.
1735
1736 2011-05-06  Ben Konrath  <ben@bagu.org>
1737
1738         Rename OnlineGlomPlace to ListPlace.
1739
1740         The only change besides the rename is that url will now display #list
1741         instead of #Document.
1742
1743         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1744         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1745         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1746         * src/main/java/org/glom/web/client/place/ListPlace.java:
1747         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1748
1749 2011-05-06  Ben Konrath  <ben@bagu.org>
1750
1751         Use Presenter for app navigation.
1752
1753         This is the proper way to deal with Place (URL) changes with the MVP
1754         framework.
1755
1756         * src/main/java/org/glom/web/client/ClientFactory.java:
1757         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1758         PlaceHistoryMapper and PlaceHistoryHandler.
1759         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1760         PlaceHistoryMapper and PlaceHistoryHandler.
1761         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1762         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1763         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1764         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1765         Add Presenter interface and setPresenter methods. Rename addHyperLink
1766         to addDocumentLink taking only the document title as a parameter.
1767
1768 2011-04-14  Ben Konrath  <ben@bagu.org>
1769
1770         Prompt for db username/password if they haven't been set.
1771
1772         This is implemented with a popup widget that is contained within the
1773         OnlineGlomView and managed by the OnlineGlomActivity.
1774
1775         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1776         methods for checking and setting the database username and password.
1777         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1778         new methods for checking and setting the database username and
1779         password.
1780         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1781         Display authentication popup if the JDBC connection to the database
1782         has not been authenticated.
1783         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1784         file.
1785         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1786         for dealing with the authentication popup.
1787         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1788         Implement the methods for dealing with the authentication popup.
1789         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1790         try to executed queries if the database connection hasn't been
1791         authenticated. Implement methods for checking and setting the
1792         database username and password.
1793
1794 2011-04-12  Ben Konrath  <ben@bagu.org>
1795
1796         Make log messages a little clearer.
1797
1798         Add a dash betweeen the document title and the table name.
1799
1800         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1801
1802 2011-04-12  Ben Konrath  <ben@bagu.org>
1803
1804         Protect against NPEs when cleaning up database resources.
1805
1806         While this isn't strictly necessary because the exception is caught,
1807         not protecting against the NPEs makes it harder to find the real error
1808         in the log file.
1809
1810         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1811
1812 2011-04-12  Ben Konrath  <ben@bagu.org>
1813
1814         Move configuration of the servlet to the constructor.
1815
1816         The servlet will be initialized even if the database authentication
1817         information is not set or correct. I still need to add the UI for prompting
1818         the user for the authentication information when it's required.
1819
1820         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1821         javadocs for getDocumentTitles() method.
1822         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1823         Set error message when RPC fails.
1824         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1825         glom files directory from the configuration file. Try to set the
1826         database authentication information for the specific document if it's
1827         set and works otherwise try to use the global authentication
1828         information set for the directory.
1829         * src/main/resources/onlineglom.properties: Moved from
1830         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1831         Added detailed comments for the new keys.
1832
1833 2011-04-11  Ben Konrath  <ben@bagu.org>
1834
1835         Remove unnecessary @Override in DocumentSelectionViewImpl.
1836
1837         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1838
1839 2011-04-11  Ben Konrath  <ben@bagu.org>
1840
1841         Remove center alignment in DocumentSelectionView.
1842
1843         The title element is still centred but the document titles and bottom
1844         sentence are both left-aligned.
1845
1846         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1847
1848 2011-04-11  Ben Konrath  <ben@bagu.org>
1849
1850         Change 'Demo' naming convention to 'Document'.
1851
1852         This is just a rename refactor with no functional changes to the code.
1853
1854         * src/main/java/org/glom/web/client/ClientFactory.java:
1855         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1856         * src/main/java/org/glom/web/client/OnlineGlom.java:
1857         * src/main/java/org/glom/web/client/OnlineGlomService.java:
1858         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1859         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1860         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1861         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1862         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1863         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1864         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1865         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1866         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1867
1868 2011-04-08  Ben Konrath  <ben@bagu.org>
1869
1870         Remove FIXME from safeLongToInt() method.
1871
1872         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1873         this method.
1874
1875         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1876
1877 2011-04-08  Ben Konrath  <ben@bagu.org>
1878
1879         Display an error if no glom documents are found in the specified directory.
1880
1881         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1882         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1883         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1884         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1885
1886 2011-04-08  Ben Konrath  <ben@bagu.org>
1887
1888         Add copyright header to one more file ... oops.
1889
1890         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1891
1892 2011-04-08  Ben Konrath  <ben@bagu.org>
1893
1894         Add copyright header to files without it.
1895
1896         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1897         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1898         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1899         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1900         * src/main/java/org/glom/web/shared/ColumnInfo.java:
1901         * src/main/java/org/glom/web/shared/GlomField.java:
1902
1903 2011-04-08  Ben Konrath  <ben@bagu.org>
1904
1905         Add support for accessing multiple glom documents in the servlet.
1906
1907         This completes the demo selection functionality.
1908
1909         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1910         document title to methods.
1911         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1912         document title to methods.
1913         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1914         Set browser window title when the activity starts. Correct name of
1915         document title variable.
1916         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1917         Set browser window title when the activity starts. Set the table
1918         selector change handler after table selector has been set. Clear the
1919         OnlineGlomView when the activity has been stopped.
1920         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1921         document title as the place token. Use "#Document:" instead of
1922         "#OnlineGlomPlace:" in the URL.
1923         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1924         Change heading to "Online Glom"
1925         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1926         document title in RPC methods.
1927         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1928         setDocumentTitle() method. Add clear() method.
1929         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1930         setDocumentTitle() method. Implement clear() method which removes the
1931         change handler on the ListBox, clears the ListBox and clears the
1932         DataPanel.
1933         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1934         Implement methods with document title. Keep track for the configured
1935         glom documents and their corresponding JDBC configurations in a hash
1936         table. This information is retrieved using the document title as the
1937         key in the hash table.
1938         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1939         document title field as it's no longer needed.
1940
1941 2011-04-08  Ben Konrath  <ben@bagu.org>
1942
1943         Update the Eclipse JDT configuration.
1944
1945         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1946         methods. Automatically add the copyright header to new files.
1947
1948 2011-04-05  Ben Konrath  <ben@bagu.org>
1949
1950         Add new page for demo selection.
1951
1952         This patch adds all the components required to view and start an
1953         OnlineGlom demo by clicking on the desired hyperlink. The user is
1954         able to return to the demo selection page with the browser's back
1955         button. I still need to modify the servlet to work with multiple
1956         documents so all demo links will load the file defined in the
1957         OnlineGlom.properties.
1958
1959         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1960         This is only useful during development so we don't need to save it.
1961         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1962         get a reference to the DemoSelectionView.
1963         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1964         method to get a reference to the DemoSelectionView.
1965         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1966         default view to DemoSelectionView.
1967         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1968         to get glom document titles for glom files in a hard-coded directory.
1969         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1970         method to get glom document titles for glom files in a hard-coded
1971         directory.
1972         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1973         Presenter for DemoSelectionView.
1974         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1975         for DemoSelectionView.
1976         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1977         Update for DemoSelectionView.
1978         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1979         Basic 'Place' implementation for the DemoSelectionView.
1980         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1981         The interface for the DemoSelectionView.
1982         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1983         The implementation of the DemoSelectionView.
1984         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1985         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1986         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1987         implementation of method to get glom document titles for glom files
1988         in a hard-coded directory.
1989         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1990         on longer being used.
1991         * src/main/webapp/glom.png: Glom logo.
1992
1993 2011-04-05  Ben Konrath  <ben@bagu.org>
1994
1995         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1996
1997         This is the forth and final commit of a refactor that will allow
1998         OnlineGlom to be used with multiple documents.
1999
2000         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2001         Move RPC code from OnlineGlomViewImpl to this class.
2002         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2003         to inferface.
2004         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2005         RPC code to the presenter class (the P in MVP).
2006
2007 2011-04-04  Ben Konrath  <ben@bagu.org>
2008
2009         Start moving the existing OnlineGlom code to MVP.
2010
2011         This work is based on the GWT MVP framework that is documented here:
2012
2013         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2014
2015         This is the third commit of a refactor that will allow OnlineGlom to
2016         be used with multiple documents.
2017
2018         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2019         Interface for client factory which is used to get instances of various
2020         classes throughout the app.
2021         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2022         Implementation of client factory.
2023         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2024         initialize the MVP framework.
2025         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2026         New file. Activity manager for the main container widget. This is the
2027         Presenter in MVP.
2028         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2029         Maps place (URL) to its corresponding activity.
2030         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2031         New file. This is just a place holder for a generated file.
2032         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2033         New file. Represents the URL for the main Online Glom app.
2034         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2035         for changes in LayoutListViewImpl.
2036         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2037         interface for View. Move code to OnlineGlomViewImpl class.
2038         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2039         file. Implementation of OnlineGlomView.
2040         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2041         Place resources. Use ClientFactoryImpl by default.
2042
2043 2011-04-04  Ben Konrath  <ben@bagu.org>
2044
2045         Move View classes to their own package.
2046
2047         This is the second commit of a refactor that will allow OnlineGlom to
2048         be used with multiple documents.
2049
2050         * src/main/java/org/glom/web/client/OnlineGlom.java:
2051         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2052         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2053
2054 2011-04-02  Ben Konrath  <ben@bagu.org>
2055
2056         Move UI code from the main module to its own class.
2057
2058         This is the first commit of a refactor that will allow OnlineGlom to be
2059         used with multiple documents.
2060
2061         * src/main/java/org/glom/web/client/LayoutListView.java: Update
2062         references to OnlineGlom to OnlineGlomView.
2063         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2064         OnlineGlomView and instantiate it here.
2065         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2066         represents the main OnlineGlomView with one document.
2067
2068 2011-04-01  Ben Konrath  <ben@bagu.org>
2069
2070         Fix formatting of gwt.xml and add DTD.
2071
2072         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2073
2074 2011-03-30  Ben Konrath  <ben@bagu.org>
2075
2076         Propperly convert gdkColor string to html colour string.
2077
2078         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2079
2080 2011-03-28  Ben Konrath  <ben@bagu.org>
2081
2082         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2083
2084         This implementation matches
2085         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2086         readable and is not tied to Swig.
2087
2088         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2089
2090 2011-03-28  Ben Konrath  <ben@bagu.org>
2091
2092         Use read-only checkboxes for boolean field types.
2093
2094         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2095         in the CellTable based on the field type. It currently only
2096         distinguishes between boolean and text columns but I'll need to add
2097         support for more types.
2098         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2099         column type in the ColumnInfo object. Add method to convert between the
2100         glom field type enum in ColumnInfo and the glom field type in libglom.
2101         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2102         field type.
2103         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2104         getting and setting booleans.
2105
2106 2011-03-25  Ben Konrath  <ben@bagu.org>
2107
2108         Don't get the Date twice from the ResultSet.
2109
2110         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2111
2112 2011-03-25  Ben Konrath  <ben@bagu.org>
2113
2114         Cleanup code in the servlet.
2115
2116         * TODO: Remove item about row count. Add item about testing row count
2117         query with large number of rows.
2118         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2119         spelling mistakes, change method parameter to be consistent with
2120         other methods.
2121
2122 2011-03-25  Ben Konrath  <ben@bagu.org>
2123
2124         Add server side logging with the gwt-log library.
2125
2126         * .gitignore: Ignore the log file we're now producing.
2127         * TODO: Add a couple TODO item for logging.
2128         * pom.xml: Add gwt-log and log4j as a dependency.
2129         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2130         logging of errors, warnings and some important info.
2131         * src/main/resources/log4j.properties: New file to configure log4j.
2132
2133 2011-03-24  Ben Konrath  <ben@bagu.org>
2134
2135         Add a disable button for the Details view.
2136
2137         * src/main/java/org/glom/web/client/LayoutListView.java:
2138
2139 2011-03-22  Ben Konrath  <ben@bagu.org>
2140
2141         Use a count query to get the number of rows for the list view pager.
2142
2143         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2144
2145 2011-03-22  Ben Konrath  <ben@bagu.org>
2146
2147         Add more TODO information about CellTable pager positioning. 
2148
2149         * TODO:
2150
2151 2011-03-19  Ben Konrath  <ben@bagu.org>
2152
2153         Add TODO item about CellTable pager positioning.
2154
2155         * TODO:
2156
2157 2011-03-18  Ben Konrath  <ben@bagu.org>
2158
2159         Remove unneeded GlomFieldColumn class.
2160
2161         This is just a small code cleanup.
2162
2163         * src/main/java/org/glom/web/client/LayoutListView.java:
2164
2165 2011-03-18  Ben Konrath  <ben@bagu.org>
2166
2167         Use cursor mode in the query that gets data for the list view.
2168
2169         I still need to fix the potential memory problem when getting the row
2170         count for the list view.
2171
2172         * TODO: Add note about testing memory usage with large data sets. Add
2173         item about fixing row counting with large data sets.
2174         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2175         PostgreSQL JDBC driver into cursor mode when getting data for the
2176         list view.
2177
2178 2011-03-15  Ben Konrath  <ben@bagu.org>
2179
2180         Remove the GWT Container from the Eclipse build classpath.
2181
2182         The GWT dependencies are set by Maven so this isn't needed.
2183
2184         * .classpath:
2185
2186 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
2187
2188         Added some earlier mockups to git, but not to the tarball dist.
2189
2190         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2191         Openismus. These hopefully show how we might structure the HTML so that
2192         it can be styled easily with CSS. However, we probably need to adapt them
2193         for the CSS structure that GWT dictates for common widgets.
2194
2195 2011-03-14  Ben Konrath  <ben@bagu.org>
2196
2197         Locate OnlineGlom.properties using the ServletContext.
2198
2199         This is required to be able to locate the file in the deployed servlet.
2200
2201         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2202         Configure the database and glom document in in a helper method so
2203         that the ServletContext can be used to locate OnlineGlom.properties.
2204         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2205         src/main/webapp. This is the proper location for .properites files.
2206
2207 2011-03-12  Ben Konrath  <ben@bagu.org>
2208
2209         Add note to README about why we're compiling down to obfuscated JavaScript.
2210
2211         * README:
2212
2213 2011-03-11  Ben Konrath  <ben@bagu.org>
2214
2215         Use properties file to configure servlet.
2216
2217         This allows people to change the glom file path, db username and db
2218         password without recompiling the code.
2219
2220         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2221         * src/main/webapp/OnlineGlom.properties:
2222
2223 2011-03-11  Ben Konrath  <ben@bagu.org>
2224
2225         Use table fields in layout list view if the layout list is not defined.
2226
2227         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2228         Manually create a LayoutFieldVector for the query builder using the
2229         table fields when a layout list is not defined in the glom file.
2230
2231 2011-03-11  Ben Konrath  <ben@bagu.org>
2232
2233         Only show FIXME string for images when there's an image.
2234
2235         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2236         in this change are some small code cleanups.
2237
2238 2011-03-11  Ben Konrath  <ben@bagu.org>
2239
2240         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2241
2242         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2243
2244 2011-03-11  Ben Konrath  <ben@bagu.org>
2245
2246         Correctly set the index of the default table.
2247
2248         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2249         Correctly set the index of the default table. Add commented out example
2250         file paths.
2251
2252 2011-03-10  Ben Konrath  <ben@bagu.org>
2253
2254         Add comment to pom.xml about the previous change.
2255
2256         * pom.xml: Add comment about the deployment issue so that it's obvious
2257         why java-libglom is set to the provided scope.
2258
2259 2011-03-10  Ben Konrath  <ben@bagu.org>
2260
2261         Change java-libglom dependency from compile to provided in pom.xml.
2262
2263         Since java-libglom uses jni it can only be loaded once and therefore
2264         must be placed in $CATALINA_HOME/lib and not included in each war.
2265         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2266         More information about this issue can be found in the Tomcat 6 release
2267         notes in the "JNI Based Applications" section:
2268
2269         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2270
2271         * README: Remove note about this issue. Deployment info should really
2272         be on the wiki anyway so I'll add it right now.
2273         * pom.xml: Change java-libglom dependency from compile to provided so
2274         that it's copied in to the packaged war.
2275
2276 2011-03-09  Ben Konrath  <ben@bagu.org>
2277
2278         Change to using a neutral locale for currency, date and time formatting.
2279
2280         This solves the problem of currency values being represented without a
2281         space between the currency code and the number (e.g. "EUR5.89" is now
2282         represented as "EUR 5.89"). More work is required when we implement
2283         a locale preference setting.
2284
2285         * TODO: Add note about currency formatting issues with different
2286         locales.
2287         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2288         to using the neutral ROOT locale.
2289
2290 2011-03-09  Ben Konrath  <ben@bagu.org>
2291
2292         Add support for currency codes that are not ISO 4217 codes.
2293
2294         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2295         the currency code defined in the glom file when it's not 3 characters
2296         long or when Java doesn't recognize the string as an ISO 4217 code.
2297
2298 2011-03-08  Ben Konrath  <ben@bagu.org>
2299
2300         Remove test classes, launch configurations and configuration.
2301
2302         The test stuff was getting in the way when creating the war. To make
2303         the war file you can now do 'mvn clean package'. The packaged war file
2304         will be in the target directory.
2305
2306         * .classpath: Remove unused classpathentry for tests and i18n.
2307         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2308         property. Don't run test or i18n goals when packaging the war.
2309         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2310         formatting.
2311
2312         Removed files:
2313
2314         * OnlineGlomTest-dev.launch:
2315         * OnlineGlomTest-prod.launch:
2316         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2317         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2318
2319 2011-03-07  Ben Konrath  <ben@bagu.org>
2320
2321         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2322
2323         These fixes allow me to use 'mvn deploy' to create the war file.
2324
2325         * .classpath: This generated config has been updated by Eclipse. This
2326         change was probably triggered by me updating from Eclipse 3.6.1 to
2327         3.6.2.
2328         * .gitignore: Add entry to ignore the directory
2329         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2330         * .project: The generated config has been updated by Eclipse. This
2331         change was probably triggered by me updating from Eclipse 3.6.1 to
2332         3.6.2.
2333         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2334         so that Eclipse doesn't complain
2335         * pom.xml: Update to gwt-maven-plugin 2.2.0.
2336         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2337         'tests' directory to 'client' directory. This is the new
2338         gwt-maven-plugin convension.
2339         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2340         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2341
2342 2011-03-07  Ben Konrath  <ben@bagu.org>
2343
2344         Add support for horizontal alignment in the LayoutList columns.
2345
2346         * TODO: Remove item about horizontal alignment. Add item about
2347         improvements to ColumnInfo.
2348         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2349         alignment on the columns. Use ColumnInfo RPC object get the column
2350         title and horizontal alignment.
2351         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2352         LayoutListView creation with ColumnInfo RPC object.
2353         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2354         a ColumnInfo object for every LayoutList columnn. Convert the
2355         FieldFormatting.HorizontalAlignment to the correct
2356         ColumnnInfo.HorizontatlAlignment with the new
2357         getColumnInfoHorizontalAlignment helper method.
2358         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2359         to encapsulate column information like alignment and title. This
2360         could be used to set the colour instead of on a per cell field basis.
2361         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2362         column title storage and retrieval with ColumnInfo.
2363
2364 2011-03-04  Ben Konrath  <ben@bagu.org>
2365
2366         Add support for column sorting.
2367
2368         * src/main/java/org/glom/web/client/LayoutListView.java: Change
2369         AsynDataProvider to be an anonymous inner class. Use new
2370         getSortedTableData RPC method when column sort is requested. Set all
2371         columns sortable and add an AsyncHandler to activate sorting in the
2372         AsyncDataProvider.
2373         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2374         method getSortedTableData(). Cleanup other method signatures.
2375         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2376         new method getSortedTableData(). Cleanup other method signatures.
2377         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2378         Implement getSortedTableData() and getTableData() methods by using a
2379         private helper method with the appropriate parameters filled in. Use
2380         user supplied sort clause when supplied, otherwise fall back to
2381         sorting by the primary key. Move destroy() method to be underneath
2382         constructor for readability.  Cleanup comments.
2383
2384 2011-03-03  Ben Konrath  <ben@bagu.org>
2385
2386         Add support for colour text and colour backgrounds to the layout list cells.
2387
2388         Only the cell backgrounds are coloured which leaves a gap between the
2389         cells that isn't coloured. I need to figure out a way to set
2390         'style=background-colour:' on the whole column rather than just the
2391         cell.
2392
2393         * TODO: Add a note about colouring the background of the whole column.
2394         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2395         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2396         render the coloured text and backgrounds. Use GlomField[] for the row type.
2397         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2398         for the row type.
2399         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2400         GlomField[] for the row type.
2401         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2402         GlomField[] for the row type. Set the text, text colour and background
2403         colour in the GlomField objects as specified in the glom document. Add
2404         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2405         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2406         the glom field text, foreground colour and background colour.
2407
2408 2011-03-02  Ben Konrath  <ben@bagu.org>
2409
2410         Don't display hidden tables in the combo box.
2411
2412         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2413         ArrayLists.
2414         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2415         code to ignore hidden tables using ArrayLists for the table names and
2416         titles.
2417         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2418         tableNames to use ArrayLists instead of String[]. Update getter and setter
2419         methods.
2420
2421 2011-03-01  Ben Konrath  <ben@bagu.org>
2422
2423         Add support for Date and Time number types.
2424
2425         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2426         Implement formatting for Date and Time values. Change the default glom
2427         file to small business example.
2428
2429 2011-03-01  Ben Konrath  <ben@bagu.org>
2430
2431         Add support for formatting glom types as specified in the glom file.
2432
2433         Formatting isn't finished yet - I still need to add support for Date
2434         and Time values.
2435
2436         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2437         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2438         checks for null values in JDBC cleanup code and catch all exceptions
2439         instead of just SQLExceptions.
2440         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2441         method name.
2442
2443 2011-03-01  Ben Konrath  <ben@bagu.org>
2444
2445         Use GWT 2.2.0 instead of 2.1.1.
2446
2447         * pom.xml: Change GWT version numbers.
2448
2449 2011-03-01  Ben Konrath  <ben@bagu.org>
2450
2451         A few small code cleanups.
2452
2453         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2454         duplicate for loop.
2455         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2456         unnecessary object creation in constructor.
2457         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2458         unnecessary object creation in constructor.
2459
2460 2011-02-28  Ben Konrath  <ben@bagu.org>
2461
2462         Add file for TODO list.
2463
2464         * TODO: New file.
2465
2466 2011-02-18  Ben Konrath  <ben@bagu.org>
2467
2468         Enable the CellTable Pager when more than 20 rows need to be viewed.
2469
2470         The Pager will automatically become active when the results are larger
2471         than the CellTable size which is currently set to 20 lines.
2472
2473         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2474         name on debug statment in RPC call in LayoutListDataProvider, add
2475         numRows parameter to LayoutListView constructor, propperly set rowCount
2476         in CellTable.
2477         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2478         name on debug statment in RPC call, use LayoutListTable object in RPC
2479         calls, pass rowCount to LayoutListView.
2480         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2481         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2482         object.
2483         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2484         interface for changes in OnlineGlomService.
2485         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2486         getLayoutListHeaders() to getLayoutListTable() and return
2487         LayoutListTable. Using this object allows me to pass other information
2488         about the LayoutList like the expected number of rows in the result set.
2489         The Connection object from the connection pool is now propperly closed.
2490         Only the requested number of lines are returned to the client in
2491         getTableData().
2492         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2493         GlomTable and add columnTitles and numRows.
2494
2495 2011-02-18  Ben Konrath  <ben@bagu.org>
2496
2497         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2498
2499         This is a small performance boost. I'll use GlomTable to get the required
2500         layoutlist information.
2501
2502         * src/main/java/org/glom/web/client/OnlineGlom.java:
2503         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2504         * src/main/java/org/glom/web/shared/GlomDocument.java:
2505
2506 2011-02-18  Ben Konrath  <ben@bagu.org>
2507
2508         Add option to turn off formatting in JDT formatter preferences.
2509
2510         * .settings/org.eclipse.jdt.core.prefs:
2511
2512 2011-02-18  Ben Konrath  <ben@bagu.org>
2513
2514         Rename LayoutList to LayoutListView.
2515
2516         I'm working towards setting things up to easily use MVP when the time
2517         comes.
2518
2519         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2520         LayoutList.java.
2521         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2522         references.
2523
2524 2011-02-17  Ben Konrath  <ben@bagu.org>
2525
2526         Move LayoutListDataProvider class into LayoutList.java.
2527
2528         * src/main/java/org/glom/web/client/LayoutList.java:
2529
2530 2011-02-17  Ben Konrath  <ben@bagu.org>
2531
2532         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2533
2534         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2535         references.
2536         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2537         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2538         from LibGlomServer.java.
2539         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2540         Rename from LibGlomServiceAsync.java.
2541         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2542         Rename from LibGlomServiceImpl.java.
2543         * src/main/webapp/WEB-INF/web.xml: Update configuration.
2544
2545 2011-02-17  Ben Konrath  <ben@bagu.org>
2546
2547         Update JDT settings.
2548
2549         * .settings/org.eclipse.jdt.core.prefs:
2550
2551 2011-02-17  Ben Konrath  <ben@bagu.org>
2552
2553         Move GWT-RPC objects to shared package (where they should be).
2554
2555         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2556         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2557         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2558         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2559         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2560         org.glom.web.shared package.
2561         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2562         org.glom.web.shared package.
2563         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2564         directory in compilation to javascript.
2565
2566 2011-02-16  Ben Konrath  <ben@bagu.org>
2567
2568         Add sort clause to the sql query that grabs table information.
2569
2570         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2571         if one of the columns is a primary key.
2572
2573 2011-02-16  Ben Konrath  <ben@bagu.org>
2574
2575         Disable generateAsync feature of gwt-maven.
2576
2577         The generated interface does not correctly match the methods in LibGlomService
2578         and the generated singleton Util inner-class doesn't respect the servlet
2579         mappings.
2580
2581         * pom.xml: Turn off generateAsync feature.
2582         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2583         with singleton Util inner-class.
2584
2585 2011-02-14  Ben Konrath  <ben@bagu.org>
2586
2587         Add LGPL v3 licence notices.
2588
2589         Followed directions listed here:
2590         http://www.gnu.org/licenses/gpl-howto.html
2591
2592         * COPYING: This file is a copy of the GPL v3.
2593         * COPYING.LESSER: This file is a copy of the LGPL v3.
2594         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2595         notice.
2596         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2597         notice.
2598         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2599         notice.
2600         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2601         licence notice.
2602         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2603         notice.
2604         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2605         notice.
2606         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2607         licence notice.
2608
2609 2011-02-14  Ben Konrath  <ben@bagu.org>
2610
2611         Use ArrayList instead of Array in GWT-RPC calls.
2612
2613         Apparently this gives a slight performance boost to the compiled
2614         java script.
2615
2616         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2617         instead of Array.
2618         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2619         of Array.
2620
2621 2011-02-14  Ben Konrath  <ben@bagu.org>
2622
2623         Access data from a postgres db rather than the example glom file.
2624
2625         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2626         compile down to obfuscated javascript.
2627         * pom.xml: Add c3p0 and postgres JDBC libraries.
2628         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2629         using a postgres db accessed through the c3p0 connection pooling library.
2630
2631 2011-02-14  Ben Konrath  <ben@bagu.org>
2632
2633         Update Java formatter settings.
2634
2635         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2636
2637 2011-02-02  Ben Konrath  <ben@bagu.org>
2638
2639         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2640
2641         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2642         using Maven.
2643         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2644         the compiled webapp directory that Eclipse uses as we're using Maven now.
2645         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2646         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2647         to 1.6.
2648         * pom.xml: Format file, change target Java version to 1.6.
2649
2650 2011-02-02  Ben Konrath  <ben@bagu.org>
2651
2652         Add information about a deployment related issue.
2653
2654         * README: Add Notes section with the problem outlined.
2655
2656 2011-02-02  Ben Konrath  <ben@bagu.org>
2657
2658         Call Glom.libglom_deinit() when the servlet is shutdown.
2659
2660         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2661         Glom.libglom_deinit() to destroy() method.
2662
2663 2011-01-28  Ben Konrath  <ben@bagu.org>
2664
2665         Use generated Util class to get the RPC Async interface.
2666
2667         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2668         file.
2669         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2670         getInstance() method to get a reference to the RPC Async interface.
2671         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2672         getInstance() method to get a reference to the RPC Async interface, remove
2673         the now unused getLibGlomServiceProxy() method.
2674
2675 2011-01-27  Ben Konrath  <ben@bagu.org>
2676
2677         Cleanup ChangeLog entry from previous commit.
2678
2679         * ChangeLog: Group logical changes together and add comments.
2680
2681 2011-01-25  Ben Konrath  <ben@bagu.org>
2682
2683         Convert to gwt-maven project.
2684
2685         * .gitignore: Update for new project structure.
2686         * README: New file with a link to the online documentation.
2687         * pom.xml: The generated maven configuration file with some tweaks.
2688
2689         Add / update Eclipse settings. These files are a merge of the files that
2690         were generated with the gwt-maven plugin and the files we were previously
2691         using.
2692         * .classpath:
2693         * .project:
2694         * .settings/.jsdtscope:
2695         * .settings/com.google.gdt.eclipse.core.prefs:
2696         * .settings/com.google.gwt.eclipse.core.prefs:
2697         * .settings/org.eclipse.jdt.core.prefs:
2698         * .settings/org.eclipse.wst.common.component:
2699         * .settings/org.eclipse.wst.common.project.facet.core.xml:
2700         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2701         * .settings/org.maven.ide.eclipse.prefs:
2702         * OnlineGlomTest-dev.launch:
2703         * OnlineGlomTest-prod.launch:
2704
2705         Java source files moved from the 'src' directory to the directory structure
2706         required by maven.
2707         * src/main/java/org/glom/web/client/GlomDocument.java:
2708         * src/main/java/org/glom/web/client/GlomTable.java:
2709         * src/main/java/org/glom/web/client/LayoutList.java:
2710         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2711         * src/main/java/org/glom/web/client/LibGlomService.java:
2712         * src/main/java/org/glom/web/client/OnlineGlom.java:
2713         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2714
2715         Non-functional property file used for translations. I included this as
2716         reminder that it's something I need to sort out.
2717         * src/main/resources/org/glom/web/client/Messages.properties:
2718
2719         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2720         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2721
2722         The servlet configuration files moved from the 'war' directory.
2723         * src/main/webapp/OnlineGlom.css:
2724         * src/main/webapp/OnlineGlom.html:
2725         * src/main/webapp/WEB-INF/web.xml:
2726
2727         Generated test files with most of the code commented out. I included these
2728         so that it's easy to add tests when we're ready for them.
2729         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2730         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2731
2732 2011-01-25  Ben Konrath  <ben@bagu.org>
2733
2734         Remove unused println.
2735
2736         * src/org/glom/web/server/LibGlomServiceImpl.java:
2737
2738 2011-01-25  Ben Konrath  <ben@bagu.org>
2739
2740         Add project specific JDT settings.
2741
2742         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2743         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2744
2745 2011-01-25  Ben Konrath  <ben@bagu.org>
2746
2747         Populate celltable with example data.
2748
2749         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2750         * src/org/glom/web/client/GlomTable.java: Correct formatting.
2751         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2752         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2753         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2754         asynchronously gets the example data.
2755         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2756         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2757         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2758         curently selected table to be retrieved by other widgets.
2759         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2760         implement getTableData() in a hacky way. This method needs to be updated
2761         to grab information from the database when database creating is
2762         implemented.
2763
2764 2011-01-20  Ben Konrath  <ben@bagu.org>
2765
2766         Set table headers when table dropBox changes.
2767
2768         * src/org/glom/web/client/GlomDocument.java: Correct some method
2769         names.
2770         * src/org/glom/web/client/LibGlomService.java: Add method
2771         to get list layout field names.
2772         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2773         to get list layout field names.
2774         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2775         widget for list layout table.
2776         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2777         the table drop box and add new updateTable() method to asynchronously
2778         get the layout list field names for the currently selected table.
2779         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2780         implementation of getLayoutListHeaders() method.
2781         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2782
2783 2011-01-18  Ben Konrath  <ben@bagu.org>
2784
2785         Make a listBox with table titles instead of the flexTable demo.
2786
2787         This is the start of something more useful.
2788
2789         * .classpath: Exclude a bunch of packages from the JVM that are
2790         getting in the way of the Eclipse content assist.
2791         * src/org/glom/web/client/GlomDocument.java:
2792         * src/org/glom/web/client/GlomTable.java:
2793         * src/org/glom/web/client/LibGlomService.java:
2794         * src/org/glom/web/client/LibGlomServiceAsync.java:
2795         * src/org/glom/web/client/OnlineGlom.java:
2796         * src/org/glom/web/server/LibGlomServiceImpl.java:
2797         * war/OnlineGlom.html:
2798         * war/WEB-INF/web.xml:
2799
2800 211-01-13  Ben Konrath  <ben@bagu.org>
2801
2802         Update to new java-libglom API.
2803
2804         * .gitignore: Ignore OnlineGlom.war.
2805         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2806
2807 2010-12-20  Ben Konrath  <ben@bagu.org>
2808
2809         Add some basic style to the table listing.
2810
2811         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2812         header, print useful error message on async callback failure.
2813         * war/OnlineGlom.css: Add style for table header, remove defaults
2814         provided by the Eclipse project wizard.
2815
2816 2010-12-20  Ben Konrath  <ben@bagu.org>
2817
2818         Load example file from installed glom dir.
2819
2820         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2821         provided by java-libglom to find the example file.
2822
2823 2010-12-20  Ben Konrath  <ben@bagu.org>
2824
2825         Update Eclipse settings.
2826
2827         * .classpath:
2828         * .settings/com.google.gdt.eclipse.core.prefs:
2829         * .settings/com.google.gwt.eclipse.core.prefs:
2830
2831 2010-12-17  Ben Konrath  <ben@bagu.org>
2832
2833         Initial commit.
2834
2835         * .classpath: New file.
2836         * .gitignore: New file.
2837         * .project: New file.
2838         * .settings/com.google.gdt.eclipse.core.prefs: New file.
2839         * .settings/com.google.gwt.eclipse.core.prefs: New file.
2840         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2841         * src/org/glom/web/client/GlomTable.java: New file.
2842         * src/org/glom/web/client/OnlineGlom.java: New file.
2843         * src/org/glom/web/client/TableNameService.java: New file.
2844         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2845         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2846         * war/OnlineGlom.css: New file.
2847         * war/OnlineGlom.html: New file.
2848         * war/WEB-INF/web.xml: New file.
2849         * war/images/glom.png: New file.