Slightly improved log output when connection fails.
[online-glom:gwt-glom.git] / ChangeLog
1 2011-07-08  Murray Cumming  <murrayc@murrayc.com>
2
3         Slightly improved log output when connection fails.
4
5         * src/main/java/org/glom/web/server/ConfiguredDocument.java
6         (ConfiguredDocument.setUsernameAndPassword):
7         We don't know for sure if it' the username/password that's wrong, so 
8         rephrase the message.
9         Also ouput the exception message, though it's generic in this case.
10
11 2011-07-07  Ben Konrath  <ben@bagu.org>
12
13         Update project config files for Eclipse 3.7 and use GWT 2.3.0.
14
15         These should really be two separate tasks but I counldn't get things to
16         work with GWT 2.2.0 and Eclipse 3.7.
17
18         * .classpath:
19         * .project:
20         * .settings/org.eclipse.jdt.core.prefs:
21         * .settings/org.eclipse.jdt.ui.prefs:
22         * .settings/org.eclipse.ltk.core.refactoring.prefs:
23         * .settings/org.eclipse.m2e.core.prefs:
24         Add new config files. Update current files. Remove references to the
25         webtools plugins as we're not using any of the webtools features.
26         * .gitignore: Add logs directory which is created when running with
27         'mvn gwt:run'.
28         * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
29         * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
30         src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
31         limitation:
32         http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
33
34 2011-07-07  Murray Cumming  <murrayc@murrayc.com>
35
36         onlineglom.properties: Add explanatory comments.
37
38         * src/main/resources/onlineglom.properties: Also change the default user 
39         from ben to someuser, to avoid the risk of people thinking we just 
40         stupidly hard-coded a locale path, when they see that on stderr or in a log.
41
42 2011-06-28  Ben Konrath  <ben@bagu.org>
43
44         Use filename in Log for incorrect passwords.
45
46         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
47         getFileName(String) method to get the filename from the URI.
48
49 2011-06-28  Ben Konrath  <ben@bagu.org>
50
51         Add the table name to the URL token for the ListPlace.
52
53         This makes things consistent between the DetailsPlace and the
54         ListPlace. It also allows the the ListPlace to be bookmarked.
55
56         * src/main/java/org/glom/web/client/OnlineGlomService.java:
57         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
58         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
59         Remove getDefaultListLayout(). The default layout is now returned
60         by the getListLayout() method when the table name is an empty string.
61         * src/main/java/org/glom/web/client/activity/ListActivity.java:
62         Add table name field. Change to a new ListPlace when the table
63         has been changed. Use getListLayout() for getting the default
64         list layout.
65         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
66         Add table name field. Set the correct table name in the list box
67         when loading from bookmark. This corrects a problem for the
68         DetailsPlace too.
69         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
70         Move table name to super-class (HasSelectableTable). Move document
71         and table URL keys to super-class in HasSelectableTable.
72         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
73         Add table name field. Add Tokenizer class with URL key common to
74         the subclasses (DetailsPlace and ListPlace).
75         * src/main/java/org/glom/web/client/place/ListPlace.java:
76         Add table name. Add code to parse the URL token.
77         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
78         Update ListPlace construction with empty table name string.
79         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
80         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
81         Change setTableSelectedIndex(int) to setSelectedTableName(String).
82         Update ListPlace construction with table name string.
83         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
84         Change defaultTableName field to tableName to reflect how it's now
85         used. Update the getter and setter methods.
86
87 2011-06-28  Ben Konrath  <ben@bagu.org>
88
89         Enable the table selector in the DetailsView.
90
91         * src/main/java/org/glom/web/client/OnlineGlomService.java:
92         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
93         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
94         Remove getDefaultDetailsLayout(). The default layout is now returned
95         by the getDetailsLayout() method when the table name is an empty
96         string.
97         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
98         event handler for table change event. Change to using
99         getDetailsLayout() for the default details layout.
100         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
101         name to URL token.
102         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
103         when navigating to the details place.
104
105 2011-06-27  Ben Konrath  <ben@bagu.org>
106
107         Use filename based unique document ID in URL and for RPC.
108
109         The document ID is the glom document name with spaces (' ') replaced
110         with pluses ('+') and without the .glom extension.
111
112         This change is mostly a string substitution of 'documentTitle' for
113         'documentID'. The only code change is the addition of a Documents DTO to get the
114         filename to document title mappings as indicated below.
115
116         * src/main/java/org/glom/web/client/OnlineGlomService.java:
117         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
118         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
119         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
120         Use Documents DTO to create the document links in the document
121         selection view.
122         * src/main/java/org/glom/web/client/activity/ListActivity.java:
123         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
124         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
125         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
126         * src/main/java/org/glom/web/client/place/ListPlace.java:
127         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
128         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
129         * src/main/java/org/glom/web/client/ui/ListView.java:
130         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
131         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
132         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
133         * src/main/java/org/glom/web/server/Log.java:
134         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
135         getDocumentTitles() to getDocuments() and return the Documents DTO.
136         * src/main/java/org/glom/web/shared/Documents.java: New DTO for
137         transferring the filename to document title mappings.
138
139 2011-06-25  Ben Konrath  <ben@bagu.org>
140
141         Make the authentication popup work again.
142
143         This bug was introduced when I extracted ConfiguredDocument to its own class.
144
145         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
146         correct success / fail status in setUsernameAndPassword().
147
148 2011-06-25  Ben Konrath  <ben@bagu.org>
149
150         Use filename as unique key for configuring database usernames and passwords.
151
152         This replaces the use of the Glom document title which could change
153         depending on the locale. Thanks to Murray Cumming for pointing out this
154         problem.
155
156         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
157         * src/main/resources/onlineglom.properties:
158
159 2011-06-24  Ben Konrath  <ben@bagu.org>
160
161         Pass primary key value to DetailsView.
162
163         This enables the DetailsView to load the correct data.
164
165         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
166         primary key value field and set in constructor. Pass primary key
167         value to getDetailsData().
168         * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
169         variables for document title and primary key value.
170         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
171         key value to the DetailsPlace.
172
173 2011-06-24  Ben Konrath  <ben@bagu.org>
174
175         Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
176
177         This allows the primary key to be retrieved by the Details button. This
178         functionality has not been implemented yet but it's in the works.
179
180         * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
181         the LayoutGroup result to ListView.setCellTable instead of all of its
182         fields individually.
183         * src/main/java/org/glom/web/client/ui/ListView.java:
184         * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
185         LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
186         get the primary key for the table.
187         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
188         index of the primary key in the LayoutGroup accounting for hidden
189         primary keys. Rename getJavaNumberFormat() to
190         convertToJavaNumberFormat() for consistency. Cleanup / add some
191         comments.
192         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
193         field for primary key index and a field to indicate whether the
194         primary key is hidden or not.
195
196 2011-06-23  Ben Konrath  <ben@bagu.org>
197
198         Rename getTableData methods to getListData.
199
200         This is a rename refactor for consistency with other methods.
201
202         * src/main/java/org/glom/web/client/OnlineGlomService.java:
203         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
204         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
205         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
206
207 2011-06-23  Ben Konrath  <ben@bagu.org>
208
209         Extract the ConfiguredDocument innerclass into its own class.
210
211         This makes the servlet code more object oriented.
212
213         * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
214         from private ConfiguredDocument class in OnlineGlomServiceImpl.
215         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
216         new ConfiguredDocument class.
217
218 2011-06-21  Ben Konrath  <ben@bagu.org>
219
220         Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
221
222         This makes things more inline with how libglom works and reduces code
223         duplication. This refactor lays the groundwork for adding the primary key to
224         the LayoutGroup object.
225
226         * src/main/java/org/glom/web/client/OnlineGlomService.java:
227         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
228         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
229         Change method names to getListLayout and getDefaultListLayout for
230         consistency. Use LayoutGroup as the DTO for the list layout instead of
231         ColumnInfo and LayoutListTable.
232         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
233         new method names along with the LayoutGroup object for transferring the
234         list layout.
235         * src/main/java/org/glom/web/client/ui/ListView.java:
236         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
237         Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
238         * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
239         with LayoutGroup.
240         * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
241         Replaced with LayoutGroup.
242         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
243         expectedResultSize and defaultTableName fields which are needed for
244         the list layout.
245         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
246         type field which is needed for the list layout but will also be
247         useful for the details layout as things progress.
248         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
249         Make class abstract. Remove the unnecessary
250         getFormattingHorizontalAlignment method. Add setFormatting method.
251
252 2011-06-16  Ben Konrath  <ben@bagu.org>
253
254         Add scripts for building and installing war.
255
256         These will help when updating OnlineGlom but they're also good
257         supplemental documentation of the build and deployment proceeding.
258
259         * utils/build-onlineglom-war.sh: New file.
260         * utils/install-onlineglom-war.sh: New file.
261
262 2011-06-16  Ben Konrath  <ben@bagu.org>
263
264         Create wrapper class to create consistent log messages.
265
266         I wrapped methods in the Log class of gwt-log to add the method names
267         from the servlet and create consistent formatting of the document title
268         and table names in the log messages.
269
270         * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
271         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
272         log methods to use methods from wrapped Log class.
273
274 2011-06-16  Ben Konrath  <ben@bagu.org>
275
276         Remove superfluous conditional return.
277
278         Thanks to Murray Cumming for pointing this out!
279
280         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
281
282 2011-06-15  Ben Konrath  <ben@bagu.org>
283
284         Return an ArrayList of LayoutGroups for the Details layout.
285
286         This corrects a problem with the details layout as it can have more
287         than one top level LayoutGroup.
288
289         * src/main/java/org/glom/web/client/OnlineGlomService.java:
290         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
291         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
292         an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
293         * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
294         with ArrayList of LayoutGroups for the details view layout.
295         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
296         method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
297         ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
298         getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
299         the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
300         getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
301
302 2011-06-14  Ben Konrath  <ben@bagu.org>
303
304         Use cast_dynamic method to determine the libglom LayoutItem type.
305
306         This is better than finding the LayoutItem type by using the string
307         returned from the get_part_type_name() method.
308
309         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
310
311 2011-06-14  Ben Konrath  <ben@bagu.org>
312
313         Add method names to log entries in the servlet.
314
315         This helps when tracking down deployment problems.
316
317         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
318
319 2011-06-14  Ben Konrath  <ben@bagu.org>
320
321         Add data to the DetailsView using a hard-coded primary key value.
322
323         The layout and functionality of the DetailsView is not complete. This
324         is just a checkpoint so the patch doesn't get too big.
325
326         * src/main/java/org/glom/web/client/OnlineGlomService.java:
327         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
328         Add getDetailsData() servlet method.
329         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
330         Add RPC to getDetailsData(). Change the way the LayoutGroups and
331         LayoutFields are added to the DetailsView.
332         * src/main/java/org/glom/web/client/ui/DetailsView.java:
333         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
334         Add setData() method. Change addLayoutGroup() and addLayoutField() to
335         take the string for the title instead of the object.
336         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
337         Add implementation getDetailsData() along with some private helper
338         methods.
339         * src/main/webapp/style.css: Add padding to details-data class. Add a
340         details-label class with the same padding as the details-data class.
341
342 2011-06-03  Ben Konrath  <ben@bagu.org>
343
344         Use presenter.goTo() to change to the DetailsPlace.
345
346         This will make things easier when we need to open the DetailsView with
347         data specific to the row that was clicked.
348
349         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
350
351 2011-06-02  Ben Konrath  <ben@bagu.org>
352
353         Add CSS file from mockups.
354
355         I'm adding this now because it's going to be useful to have when
356         developing the DetailsView. The TableSelectionView and ListView aren't
357         setup properly yet.
358
359         * src/main/webapp/OnlineGlom.html:
360         * src/main/webapp/style.css:
361
362 2011-06-02  Ben Konrath  <ben@bagu.org>
363
364         Use String.isEmpty() to check for empty string.
365
366         * src/main/java/org/glom/web/client/activity/ListActivity.java:
367
368 2011-06-02  Ben Konrath  <ben@bagu.org>
369
370         Display main layout group titles in the DetailsView.
371
372         This is the start of the DetailsActivity/DetailsView implementation.
373
374         * src/main/java/org/glom/web/client/OnlineGlomService.java:
375         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
376         Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
377         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
378         Get the layout information for the details view from the server and set
379         the main layout group titles.
380         * src/main/java/org/glom/web/client/ui/DetailsView.java:
381         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
382         Add addLayoutGroup() and addLayoutField() methods. This are just
383         temporary methods for creating the the details view that will change
384         in the future.
385         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
386         Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
387         methods.
388         * src/main/java/org/glom/web/shared/layout/Formatting.java:
389         * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
390         * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
391         * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
392         * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
393         Data Transfer Objects that mimic the libglom object structure. These are
394         used for transferring the details layout but could also be used for
395         transferring the list layout.
396
397 2011-05-27  Ben Konrath  <ben@bagu.org>
398
399         Reset the AuthenticationPopup when clearing the ListView.
400
401         * src/main/java/org/glom/web/client/activity/ListActivity.java:
402
403 2011-05-27  Ben Konrath  <ben@bagu.org>
404
405         Fix problem with onlineglom.properties file loading.
406
407         The old way worked in Eclipse but not on the server. Loading the
408         onlineglom.properties file now works in Eclipse and on the server.
409
410         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
411
412 2011-05-24  Ben Konrath  <ben@bagu.org>
413
414         Update gwt-log from 3.1.0 to 3.1.2.
415
416         Gwt-log 3.1.0 has been marked as depreciated.
417
418         * pom.xml:
419
420 2011-05-24  Ben Konrath  <ben@bagu.org>
421
422         Add comment to ListActivity.goTo() method.
423
424         * src/main/java/org/glom/web/client/activity/ListActivity.java:
425
426 2011-05-24  Ben Konrath  <ben@bagu.org>
427
428         Remove FIXME in convertGdkColorToHtmlColour()
429
430         The Gdk::Color value returned by libglom is 16-bits per channel on both
431         64 and 32-bit platforms.
432
433         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
434
435 2011-05-19  Ben Konrath  <ben@bagu.org>
436
437         Improve performance of initial ListView load.
438
439         I removed a round trip to the server for getting the default table name
440         and then requesting information about that table. This also removes a potential
441         problem with the table change handler not being setup in time to receive the
442         table change event from the ListActivity.
443
444         * src/main/java/org/glom/web/client/OnlineGlomService.java:
445         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
446         getDefaultLayoutListTable() method. Improve comments.
447         * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
448         getDefaultLayoutListTable() method instead of firing a table change
449         event to get the table to load.
450         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
451         implementation of getDefaultLayoutListTable() method.
452         * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
453         table name.
454
455 2011-05-19  Ben Konrath  <ben@bagu.org>
456
457         Override toDebugString() in TableChangeEvent.
458
459         This is useful to have for debugging.
460
461         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
462
463 2011-05-19  Ben Konrath  <ben@bagu.org>
464
465         Add a "Back to List" link when at the DetailsPlace.
466
467         * src/main/java/org/glom/web/client/activity/ListActivity.java:
468         Populate the CellTable based on the selected table of the ListBox if
469         it's set otherwise use the default table. This allows the "Back to
470         List" link to work.
471         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
472         Remove Place from constructors. Add a setPlace() method. Add
473         goToPlace() method. Set class as presenter for TableSelectionView.
474         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
475         Use the same TableSelectionActivity when switching between the List and
476         Details Places.
477         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
478         Subclass the new HasSelectableTablePlace. This removes some duplicate
479         code.
480         * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
481         New class to represent Places that display the TableSelectionView.
482         * src/main/java/org/glom/web/client/place/ListPlace.java:
483         Subclass the new HasSelectableTablePlace. This removes some duplicate
484         code.
485         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
486         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
487         Add Presenter interface. Add setBackLinkVisible() method. Add
488         setBackLink() method.
489
490 2011-05-18  Ben Konrath  <ben@bagu.org>
491
492         Enable the "Details" buttons.
493
494         Right now only an empty details view is displayed.
495
496         * src/main/java/org/glom/web/client/ClientFactory.java:
497         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
498         Add DetailsView to ClientFactory.
499         * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
500         A basic activity for the details view.
501         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
502         Add a new constructor that takes a DetailsPlace. Rename shutdown() to
503         clearView().
504         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
505         Add DetailsPlace.Tokenizer to the list of tokens that are generated by
506         GWT.
507         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
508         Create a new DetailsActivity when a DetailsPlace is requested. Remove
509         unnecessary super() in constructor.
510         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
511         Create a new TableSelectionActivity when a DetailsPlace is requested. We
512         really shouldn't create a new TableSelectionActivity for both the ListPlace
513         and the DetailsPlace so this should be considered a temporary solution.
514         * src/main/java/org/glom/web/client/place/DetailsPlace.java:
515         New file. Represents a URL for the details view.
516         * src/main/java/org/glom/web/client/ui/DetailsView.java:
517         * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
518         A basic details view interface and implementation.
519         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
520         Enable the "Details" buttons.
521
522 2011-05-12  Ben Konrath  <ben@bagu.org>
523
524         Use a LayoutPanel with multiple display areas for main layout.
525
526         This is mostly a refactor in that there are no changes from the user
527         point of view. These changes are required so that we can swap out the list view
528         with the details view when the user clicks the "Details" button.
529
530         * src/main/java/org/glom/web/client/ClientFactory.java:
531         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
532         OnlineGlomView. Add TableSelectionView, ListView and
533         AuthenticationPopup.
534         * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
535         for main layout. Add display regions for main activities. Add
536         activity manager for for main activities.
537         * src/main/java/org/glom/web/client/activity/ListActivity.java: New
538         file from parts of the deleted OnlineGlomActivity.
539         * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
540         New file from parts of the deleted OnlineGlomActivity.
541         * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
542         * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
543         New files for app wide table change event.
544         * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
545         * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
546         * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
547         Activity mappers for the main activities replace the deleted app-wide
548         AppActivityMapper.
549         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
550         Fix a spelling error in he comment.
551         * src/main/java/org/glom/web/client/ui/ListView.java:
552         * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
553         Renamed from LayoutListView and modified for MVP. This still not a
554         proper dumb view as prescribed by the MVP pattern but it works for now.
555         * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
556         * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
557         New widget stripped out of the deleted OnlineGlomView.
558         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
559         Remove hack that is fixed by this patch.
560
561 2011-05-06  Ben Konrath  <ben@bagu.org>
562
563         Rename OnlineGlomPlace to ListPlace.
564
565         The only change besides the rename is that url will now display #list
566         instead of #Document.
567
568         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
569         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
570         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
571         * src/main/java/org/glom/web/client/place/ListPlace.java:
572         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
573
574 2011-05-06  Ben Konrath  <ben@bagu.org>
575
576         Use Presenter for app navigation.
577
578         This is the proper way to deal with Place (URL) changes with the MVP
579         framework.
580
581         * src/main/java/org/glom/web/client/ClientFactory.java:
582         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
583         PlaceHistoryMapper and PlaceHistoryHandler.
584         * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
585         PlaceHistoryMapper and PlaceHistoryHandler.
586         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
587         Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
588         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
589         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
590         Add Presenter interface and setPresenter methods. Rename addHyperLink
591         to addDocumentLink taking only the document title as a parameter.
592
593 2011-04-14  Ben Konrath  <ben@bagu.org>
594
595         Prompt for db username/password if they haven't been set.
596
597         This is implemented with a popup widget that is contained within the
598         OnlineGlomView and managed by the OnlineGlomActivity.
599
600         * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
601         methods for checking and setting the database username and password.
602         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
603         new methods for checking and setting the database username and
604         password.
605         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
606         Display authentication popup if the JDBC connection to the database
607         has not been authenticated.
608         * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
609         file.
610         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
611         for dealing with the authentication popup.
612         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
613         Implement the methods for dealing with the authentication popup.
614         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
615         try to executed queries if the database connection hasn't been
616         authenticated. Implement methods for checking and setting the
617         database username and password.
618
619 2011-04-12  Ben Konrath  <ben@bagu.org>
620
621         Make log messages a little clearer.
622
623         Add a dash betweeen the document title and the table name.
624
625         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
626
627 2011-04-12  Ben Konrath  <ben@bagu.org>
628
629         Protect against NPEs when cleaning up database resources.
630
631         While this isn't strictly necessary because the exception is caught,
632         not protecting against the NPEs makes it harder to find the real error
633         in the log file.
634
635         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
636
637 2011-04-12  Ben Konrath  <ben@bagu.org>
638
639         Move configuration of the servlet to the constructor.
640
641         The servlet will be initialized even if the database authentication
642         information is not set or correct. I still need to add the UI for prompting
643         the user for the authentication information when it's required.
644
645         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
646         javadocs for getDocumentTitles() method.
647         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
648         Set error message when RPC fails.
649         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
650         glom files directory from the configuration file. Try to set the
651         database authentication information for the specific document if it's
652         set and works otherwise try to use the global authentication
653         information set for the directory.
654         * src/main/resources/onlineglom.properties: Moved from
655         src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
656         Added detailed comments for the new keys.
657
658 2011-04-11  Ben Konrath  <ben@bagu.org>
659
660         Remove unnecessary @Override in DocumentSelectionViewImpl.
661
662         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
663
664 2011-04-11  Ben Konrath  <ben@bagu.org>
665
666         Remove center alignment in DocumentSelectionView.
667
668         The title element is still centred but the document titles and bottom
669         sentence are both left-aligned.
670
671         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
672
673 2011-04-11  Ben Konrath  <ben@bagu.org>
674
675         Change 'Demo' naming convention to 'Document'.
676
677         This is just a rename refactor with no functional changes to the code.
678
679         * src/main/java/org/glom/web/client/ClientFactory.java:
680         * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
681         * src/main/java/org/glom/web/client/OnlineGlom.java:
682         * src/main/java/org/glom/web/client/OnlineGlomService.java:
683         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
684         * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
685         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
686         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
687         * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
688         * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
689         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
690         * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
691         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
692
693 2011-04-08  Ben Konrath  <ben@bagu.org>
694
695         Remove FIXME from safeLongToInt() method.
696
697         Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
698         this method.
699
700         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
701
702 2011-04-08  Ben Konrath  <ben@bagu.org>
703
704         Display an error if no glom documents are found in the specified directory.
705
706         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
707         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
708         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
709         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
710
711 2011-04-08  Ben Konrath  <ben@bagu.org>
712
713         Add copyright header to one more file ... oops.
714
715         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
716
717 2011-04-08  Ben Konrath  <ben@bagu.org>
718
719         Add copyright header to files without it.
720
721         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
722         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
723         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
724         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
725         * src/main/java/org/glom/web/shared/ColumnInfo.java:
726         * src/main/java/org/glom/web/shared/GlomField.java:
727
728 2011-04-08  Ben Konrath  <ben@bagu.org>
729
730         Add support for accessing multiple glom documents in the servlet.
731
732         This completes the demo selection functionality.
733
734         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
735         document title to methods.
736         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
737         document title to methods.
738         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
739         Set browser window title when the activity starts. Correct name of
740         document title variable.
741         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
742         Set browser window title when the activity starts. Set the table
743         selector change handler after table selector has been set. Clear the
744         OnlineGlomView when the activity has been stopped.
745         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
746         document title as the place token. Use "#Document:" instead of
747         "#OnlineGlomPlace:" in the URL.
748         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
749         Change heading to "Online Glom"
750         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
751         document title in RPC methods.
752         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
753         setDocumentTitle() method. Add clear() method.
754         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
755         setDocumentTitle() method. Implement clear() method which removes the
756         change handler on the ListBox, clears the ListBox and clears the
757         DataPanel.
758         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
759         Implement methods with document title. Keep track for the configured
760         glom documents and their corresponding JDBC configurations in a hash
761         table. This information is retrieved using the document title as the
762         key in the hash table.
763         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
764         document title field as it's no longer needed.
765
766 2011-04-08  Ben Konrath  <ben@bagu.org>
767
768         Update the Eclipse JDT configuration.
769
770         * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
771         methods. Automatically add the copyright header to new files.
772
773 2011-04-05  Ben Konrath  <ben@bagu.org>
774
775         Add new page for demo selection.
776
777         This patch adds all the components required to view and start an
778         OnlineGlom demo by clicking on the desired hyperlink. The user is
779         able to return to the demo selection page with the browser's back
780         button. I still need to modify the servlet to work with multiple
781         documents so all demo links will load the file defined in the
782         OnlineGlom.properties.
783
784         * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
785         This is only useful during development so we don't need to save it.
786         * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
787         get a reference to the DemoSelectionView.
788         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
789         method to get a reference to the DemoSelectionView.
790         * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
791         default view to DemoSelectionView.
792         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
793         to get glom document titles for glom files in a hard-coded directory.
794         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
795         method to get glom document titles for glom files in a hard-coded
796         directory.
797         * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
798         Presenter for DemoSelectionView.
799         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
800         for DemoSelectionView.
801         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
802         Update for DemoSelectionView.
803         * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
804         Basic 'Place' implementation for the DemoSelectionView.
805         * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
806         The interface for the DemoSelectionView.
807         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
808         The implementation of the DemoSelectionView.
809         * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
810         The GWT UiBuilder xml file used in DemoSelectionViewImpl.
811         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
812         implementation of method to get glom document titles for glom files
813         in a hard-coded directory.
814         * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
815         on longer being used.
816         * src/main/webapp/glom.png: Glom logo.
817
818 2011-04-05  Ben Konrath  <ben@bagu.org>
819
820         Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
821
822         This is the forth and final commit of a refactor that will allow
823         OnlineGlom to be used with multiple documents.
824
825         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
826         Move RPC code from OnlineGlomViewImpl to this class.
827         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
828         to inferface.
829         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
830         RPC code to the presenter class (the P in MVP).
831
832 2011-04-04  Ben Konrath  <ben@bagu.org>
833
834         Start moving the existing OnlineGlom code to MVP.
835
836         This work is based on the GWT MVP framework that is documented here:
837
838         https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
839
840         This is the third commit of a refactor that will allow OnlineGlom to
841         be used with multiple documents.
842
843         * src/main/java/org/glom/web/client/ClientFactory.java: New file.
844         Interface for client factory which is used to get instances of various
845         classes throughout the app.
846         * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
847         Implementation of client factory.
848         * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
849         initialize the MVP framework.
850         * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
851         New file. Activity manager for the main container widget. This is the
852         Presenter in MVP.
853         * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
854         Maps place (URL) to its corresponding activity.
855         * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
856         New file. This is just a place holder for a generated file.
857         * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
858         New file. Represents the URL for the main Online Glom app.
859         * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
860         for changes in LayoutListViewImpl.
861         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
862         interface for View. Move code to OnlineGlomViewImpl class.
863         * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
864         file. Implementation of OnlineGlomView.
865         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
866         Place resources. Use ClientFactoryImpl by default.
867
868 2011-04-04  Ben Konrath  <ben@bagu.org>
869
870         Move View classes to their own package.
871
872         This is the second commit of a refactor that will allow OnlineGlom to
873         be used with multiple documents.
874
875         * src/main/java/org/glom/web/client/OnlineGlom.java:
876         * src/main/java/org/glom/web/client/ui/LayoutListView.java:
877         * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
878
879 2011-04-02  Ben Konrath  <ben@bagu.org>
880
881         Move UI code from the main module to its own class.
882
883         This is the first commit of a refactor that will allow OnlineGlom to be
884         used with multiple documents.
885
886         * src/main/java/org/glom/web/client/LayoutListView.java: Update
887         references to OnlineGlom to OnlineGlomView.
888         * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
889         OnlineGlomView and instantiate it here.
890         * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
891         represents the main OnlineGlomView with one document.
892
893 2011-04-01  Ben Konrath  <ben@bagu.org>
894
895         Fix formatting of gwt.xml and add DTD.
896
897         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
898
899 2011-03-30  Ben Konrath  <ben@bagu.org>
900
901         Propperly convert gdkColor string to html colour string.
902
903         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
904
905 2011-03-28  Ben Konrath  <ben@bagu.org>
906
907         Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
908
909         This implementation matches
910         OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
911         readable and is not tied to Swig.
912
913         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
914
915 2011-03-28  Ben Konrath  <ben@bagu.org>
916
917         Use read-only checkboxes for boolean field types.
918
919         * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
920         in the CellTable based on the field type. It currently only
921         distinguishes between boolean and text columns but I'll need to add
922         support for more types.
923         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
924         column type in the ColumnInfo object. Add method to convert between the
925         glom field type enum in ColumnInfo and the glom field type in libglom.
926         * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
927         field type.
928         * src/main/java/org/glom/web/shared/GlomField.java: Add support for
929         getting and setting booleans.
930
931 2011-03-25  Ben Konrath  <ben@bagu.org>
932
933         Don't get the Date twice from the ResultSet.
934
935         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
936
937 2011-03-25  Ben Konrath  <ben@bagu.org>
938
939         Cleanup code in the servlet.
940
941         * TODO: Remove item about row count. Add item about testing row count
942         query with large number of rows.
943         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
944         spelling mistakes, change method parameter to be consistent with
945         other methods.
946
947 2011-03-25  Ben Konrath  <ben@bagu.org>
948
949         Add server side logging with the gwt-log library.
950
951         * .gitignore: Ignore the log file we're now producing.
952         * TODO: Add a couple TODO item for logging.
953         * pom.xml: Add gwt-log and log4j as a dependency.
954         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
955         logging of errors, warnings and some important info.
956         * src/main/resources/log4j.properties: New file to configure log4j.
957
958 2011-03-24  Ben Konrath  <ben@bagu.org>
959
960         Add a disable button for the Details view.
961
962         * src/main/java/org/glom/web/client/LayoutListView.java:
963
964 2011-03-22  Ben Konrath  <ben@bagu.org>
965
966         Use a count query to get the number of rows for the list view pager.
967
968         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
969
970 2011-03-22  Ben Konrath  <ben@bagu.org>
971
972         Add more TODO information about CellTable pager positioning. 
973
974         * TODO:
975
976 2011-03-19  Ben Konrath  <ben@bagu.org>
977
978         Add TODO item about CellTable pager positioning.
979
980         * TODO:
981
982 2011-03-18  Ben Konrath  <ben@bagu.org>
983
984         Remove unneeded GlomFieldColumn class.
985
986         This is just a small code cleanup.
987
988         * src/main/java/org/glom/web/client/LayoutListView.java:
989
990 2011-03-18  Ben Konrath  <ben@bagu.org>
991
992         Use cursor mode in the query that gets data for the list view.
993
994         I still need to fix the potential memory problem when getting the row
995         count for the list view.
996
997         * TODO: Add note about testing memory usage with large data sets. Add
998         item about fixing row counting with large data sets.
999         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1000         PostgreSQL JDBC driver into cursor mode when getting data for the
1001         list view.
1002
1003 2011-03-15  Ben Konrath  <ben@bagu.org>
1004
1005         Remove the GWT Container from the Eclipse build classpath.
1006
1007         The GWT dependencies are set by Maven so this isn't needed.
1008
1009         * .classpath:
1010
1011 2011-03-15  Murray Cumming  <murrayc@murrayc.com>
1012
1013         Added some earlier mockups to git, but not to the tarball dist.
1014
1015         * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1016         Openismus. These hopefully show how we might structure the HTML so that
1017         it can be styled easily with CSS. However, we probably need to adapt them
1018         for the CSS structure that GWT dictates for common widgets.
1019
1020 2011-03-14  Ben Konrath  <ben@bagu.org>
1021
1022         Locate OnlineGlom.properties using the ServletContext.
1023
1024         This is required to be able to locate the file in the deployed servlet.
1025
1026         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1027         Configure the database and glom document in in a helper method so
1028         that the ServletContext can be used to locate OnlineGlom.properties.
1029         * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1030         src/main/webapp. This is the proper location for .properites files.
1031
1032 2011-03-12  Ben Konrath  <ben@bagu.org>
1033
1034         Add note to README about why we're compiling down to obfuscated JavaScript.
1035
1036         * README:
1037
1038 2011-03-11  Ben Konrath  <ben@bagu.org>
1039
1040         Use properties file to configure servlet.
1041
1042         This allows people to change the glom file path, db username and db
1043         password without recompiling the code.
1044
1045         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1046         * src/main/webapp/OnlineGlom.properties:
1047
1048 2011-03-11  Ben Konrath  <ben@bagu.org>
1049
1050         Use table fields in layout list view if the layout list is not defined.
1051
1052         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1053         Manually create a LayoutFieldVector for the query builder using the
1054         table fields when a layout list is not defined in the glom file.
1055
1056 2011-03-11  Ben Konrath  <ben@bagu.org>
1057
1058         Only show FIXME string for images when there's an image.
1059
1060         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1061         in this change are some small code cleanups.
1062
1063 2011-03-11  Ben Konrath  <ben@bagu.org>
1064
1065         Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1066
1067         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1068
1069 2011-03-11  Ben Konrath  <ben@bagu.org>
1070
1071         Correctly set the index of the default table.
1072
1073         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1074         Correctly set the index of the default table. Add commented out example
1075         file paths.
1076
1077 2011-03-10  Ben Konrath  <ben@bagu.org>
1078
1079         Add comment to pom.xml about the previous change.
1080
1081         * pom.xml: Add comment about the deployment issue so that it's obvious
1082         why java-libglom is set to the provided scope.
1083
1084 2011-03-10  Ben Konrath  <ben@bagu.org>
1085
1086         Change java-libglom dependency from compile to provided in pom.xml.
1087
1088         Since java-libglom uses jni it can only be loaded once and therefore
1089         must be placed in $CATALINA_HOME/lib and not included in each war.
1090         This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1091         More information about this issue can be found in the Tomcat 6 release
1092         notes in the "JNI Based Applications" section:
1093
1094         http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1095
1096         * README: Remove note about this issue. Deployment info should really
1097         be on the wiki anyway so I'll add it right now.
1098         * pom.xml: Change java-libglom dependency from compile to provided so
1099         that it's copied in to the packaged war.
1100
1101 2011-03-09  Ben Konrath  <ben@bagu.org>
1102
1103         Change to using a neutral locale for currency, date and time formatting.
1104
1105         This solves the problem of currency values being represented without a
1106         space between the currency code and the number (e.g. "EUR5.89" is now
1107         represented as "EUR 5.89"). More work is required when we implement
1108         a locale preference setting.
1109
1110         * TODO: Add note about currency formatting issues with different
1111         locales.
1112         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1113         to using the neutral ROOT locale.
1114
1115 2011-03-09  Ben Konrath  <ben@bagu.org>
1116
1117         Add support for currency codes that are not ISO 4217 codes.
1118
1119         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1120         the currency code defined in the glom file when it's not 3 characters
1121         long or when Java doesn't recognize the string as an ISO 4217 code.
1122
1123 2011-03-08  Ben Konrath  <ben@bagu.org>
1124
1125         Remove test classes, launch configurations and configuration.
1126
1127         The test stuff was getting in the way when creating the war. To make
1128         the war file you can now do 'mvn clean package'. The packaged war file
1129         will be in the target directory.
1130
1131         * .classpath: Remove unused classpathentry for tests and i18n.
1132         * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1133         property. Don't run test or i18n goals when packaging the war.
1134         * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1135         formatting.
1136
1137         Removed files:
1138
1139         * OnlineGlomTest-dev.launch:
1140         * OnlineGlomTest-prod.launch:
1141         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1142         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1143
1144 2011-03-07  Ben Konrath  <ben@bagu.org>
1145
1146         Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1147
1148         These fixes allow me to use 'mvn deploy' to create the war file.
1149
1150         * .classpath: This generated config has been updated by Eclipse. This
1151         change was probably triggered by me updating from Eclipse 3.6.1 to
1152         3.6.2.
1153         * .gitignore: Add entry to ignore the directory
1154         src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1155         * .project: The generated config has been updated by Eclipse. This
1156         change was probably triggered by me updating from Eclipse 3.6.1 to
1157         3.6.2.
1158         * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1159         so that Eclipse doesn't complain
1160         * pom.xml: Update to gwt-maven-plugin 2.2.0.
1161         * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1162         'tests' directory to 'client' directory. This is the new
1163         gwt-maven-plugin convension.
1164         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1165         refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1166
1167 2011-03-07  Ben Konrath  <ben@bagu.org>
1168
1169         Add support for horizontal alignment in the LayoutList columns.
1170
1171         * TODO: Remove item about horizontal alignment. Add item about
1172         improvements to ColumnInfo.
1173         * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1174         alignment on the columns. Use ColumnInfo RPC object get the column
1175         title and horizontal alignment.
1176         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1177         LayoutListView creation with ColumnInfo RPC object.
1178         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1179         a ColumnInfo object for every LayoutList columnn. Convert the
1180         FieldFormatting.HorizontalAlignment to the correct
1181         ColumnnInfo.HorizontatlAlignment with the new
1182         getColumnInfoHorizontalAlignment helper method.
1183         * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1184         to encapsulate column information like alignment and title. This
1185         could be used to set the colour instead of on a per cell field basis.
1186         * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1187         column title storage and retrieval with ColumnInfo.
1188
1189 2011-03-04  Ben Konrath  <ben@bagu.org>
1190
1191         Add support for column sorting.
1192
1193         * src/main/java/org/glom/web/client/LayoutListView.java: Change
1194         AsynDataProvider to be an anonymous inner class. Use new
1195         getSortedTableData RPC method when column sort is requested. Set all
1196         columns sortable and add an AsyncHandler to activate sorting in the
1197         AsyncDataProvider.
1198         * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1199         method getSortedTableData(). Cleanup other method signatures.
1200         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1201         new method getSortedTableData(). Cleanup other method signatures.
1202         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1203         Implement getSortedTableData() and getTableData() methods by using a
1204         private helper method with the appropriate parameters filled in. Use
1205         user supplied sort clause when supplied, otherwise fall back to
1206         sorting by the primary key. Move destroy() method to be underneath
1207         constructor for readability.  Cleanup comments.
1208
1209 2011-03-03  Ben Konrath  <ben@bagu.org>
1210
1211         Add support for colour text and colour backgrounds to the layout list cells.
1212
1213         Only the cell backgrounds are coloured which leaves a gap between the
1214         cells that isn't coloured. I need to figure out a way to set
1215         'style=background-colour:' on the whole column rather than just the
1216         cell.
1217
1218         * TODO: Add a note about colouring the background of the whole column.
1219         * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1220         column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1221         render the coloured text and backgrounds. Use GlomField[] for the row type.
1222         * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1223         for the row type.
1224         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1225         GlomField[] for the row type.
1226         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1227         GlomField[] for the row type. Set the text, text colour and background
1228         colour in the GlomField objects as specified in the glom document. Add
1229         method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1230         * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1231         the glom field text, foreground colour and background colour.
1232
1233 2011-03-02  Ben Konrath  <ben@bagu.org>
1234
1235         Don't display hidden tables in the combo box.
1236
1237         * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1238         ArrayLists.
1239         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1240         code to ignore hidden tables using ArrayLists for the table names and
1241         titles.
1242         * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1243         tableNames to use ArrayLists instead of String[]. Update getter and setter
1244         methods.
1245
1246 2011-03-01  Ben Konrath  <ben@bagu.org>
1247
1248         Add support for Date and Time number types.
1249
1250         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1251         Implement formatting for Date and Time values. Change the default glom
1252         file to small business example.
1253
1254 2011-03-01  Ben Konrath  <ben@bagu.org>
1255
1256         Add support for formatting glom types as specified in the glom file.
1257
1258         Formatting isn't finished yet - I still need to add support for Date
1259         and Time values.
1260
1261         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1262         formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1263         checks for null values in JDBC cleanup code and catch all exceptions
1264         instead of just SQLExceptions.
1265         * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1266         method name.
1267
1268 2011-03-01  Ben Konrath  <ben@bagu.org>
1269
1270         Use GWT 2.2.0 instead of 2.1.1.
1271
1272         * pom.xml: Change GWT version numbers.
1273
1274 2011-03-01  Ben Konrath  <ben@bagu.org>
1275
1276         A few small code cleanups.
1277
1278         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1279         duplicate for loop.
1280         * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1281         unnecessary object creation in constructor.
1282         * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1283         unnecessary object creation in constructor.
1284
1285 2011-02-28  Ben Konrath  <ben@bagu.org>
1286
1287         Add file for TODO list.
1288
1289         * TODO: New file.
1290
1291 2011-02-18  Ben Konrath  <ben@bagu.org>
1292
1293         Enable the CellTable Pager when more than 20 rows need to be viewed.
1294
1295         The Pager will automatically become active when the results are larger
1296         than the CellTable size which is currently set to 20 lines.
1297
1298         * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1299         name on debug statment in RPC call in LayoutListDataProvider, add
1300         numRows parameter to LayoutListView constructor, propperly set rowCount
1301         in CellTable.
1302         * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1303         name on debug statment in RPC call, use LayoutListTable object in RPC
1304         calls, pass rowCount to LayoutListView.
1305         * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1306         getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1307         object.
1308         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1309         interface for changes in OnlineGlomService.
1310         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1311         getLayoutListHeaders() to getLayoutListTable() and return
1312         LayoutListTable. Using this object allows me to pass other information
1313         about the LayoutList like the expected number of rows in the result set.
1314         The Connection object from the connection pool is now propperly closed.
1315         Only the requested number of lines are returned to the client in
1316         getTableData().
1317         * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1318         GlomTable and add columnTitles and numRows.
1319
1320 2011-02-18  Ben Konrath  <ben@bagu.org>
1321
1322         Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1323
1324         This is a small performance boost. I'll use GlomTable to get the required
1325         layoutlist information.
1326
1327         * src/main/java/org/glom/web/client/OnlineGlom.java:
1328         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1329         * src/main/java/org/glom/web/shared/GlomDocument.java:
1330
1331 2011-02-18  Ben Konrath  <ben@bagu.org>
1332
1333         Add option to turn off formatting in JDT formatter preferences.
1334
1335         * .settings/org.eclipse.jdt.core.prefs:
1336
1337 2011-02-18  Ben Konrath  <ben@bagu.org>
1338
1339         Rename LayoutList to LayoutListView.
1340
1341         I'm working towards setting things up to easily use MVP when the time
1342         comes.
1343
1344         * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1345         LayoutList.java.
1346         * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1347         references.
1348
1349 2011-02-17  Ben Konrath  <ben@bagu.org>
1350
1351         Move LayoutListDataProvider class into LayoutList.java.
1352
1353         * src/main/java/org/glom/web/client/LayoutList.java:
1354
1355 2011-02-17  Ben Konrath  <ben@bagu.org>
1356
1357         Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1358
1359         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1360         references.
1361         * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1362         * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1363         from LibGlomServer.java.
1364         * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1365         Rename from LibGlomServiceAsync.java.
1366         * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1367         Rename from LibGlomServiceImpl.java.
1368         * src/main/webapp/WEB-INF/web.xml: Update configuration.
1369
1370 2011-02-17  Ben Konrath  <ben@bagu.org>
1371
1372         Update JDT settings.
1373
1374         * .settings/org.eclipse.jdt.core.prefs:
1375
1376 2011-02-17  Ben Konrath  <ben@bagu.org>
1377
1378         Move GWT-RPC objects to shared package (where they should be).
1379
1380         * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1381         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1382         * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1383         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1384         * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1385         org.glom.web.shared package.
1386         * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1387         org.glom.web.shared package.
1388         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1389         directory in compilation to javascript.
1390
1391 2011-02-16  Ben Konrath  <ben@bagu.org>
1392
1393         Add sort clause to the sql query that grabs table information.
1394
1395         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1396         if one of the columns is a primary key.
1397
1398 2011-02-16  Ben Konrath  <ben@bagu.org>
1399
1400         Disable generateAsync feature of gwt-maven.
1401
1402         The generated interface does not correctly match the methods in LibGlomService
1403         and the generated singleton Util inner-class doesn't respect the servlet
1404         mappings.
1405
1406         * pom.xml: Turn off generateAsync feature.
1407         * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1408         with singleton Util inner-class.
1409
1410 2011-02-14  Ben Konrath  <ben@bagu.org>
1411
1412         Add LGPL v3 licence notices.
1413
1414         Followed directions listed here:
1415         http://www.gnu.org/licenses/gpl-howto.html
1416
1417         * COPYING: This file is a copy of the GPL v3.
1418         * COPYING.LESSER: This file is a copy of the LGPL v3.
1419         * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1420         notice.
1421         * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1422         notice.
1423         * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1424         notice.
1425         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1426         licence notice.
1427         * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1428         notice.
1429         * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1430         notice.
1431         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1432         licence notice.
1433
1434 2011-02-14  Ben Konrath  <ben@bagu.org>
1435
1436         Use ArrayList instead of Array in GWT-RPC calls.
1437
1438         Apparently this gives a slight performance boost to the compiled
1439         java script.
1440
1441         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1442         instead of Array.
1443         * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1444         of Array.
1445
1446 2011-02-14  Ben Konrath  <ben@bagu.org>
1447
1448         Access data from a postgres db rather than the example glom file.
1449
1450         * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1451         compile down to obfuscated javascript.
1452         * pom.xml: Add c3p0 and postgres JDBC libraries.
1453         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1454         using a postgres db accessed through the c3p0 connection pooling library.
1455
1456 2011-02-14  Ben Konrath  <ben@bagu.org>
1457
1458         Update Java formatter settings.
1459
1460         * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1461
1462 2011-02-02  Ben Konrath  <ben@bagu.org>
1463
1464         Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1465
1466         * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1467         using Maven.
1468         * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1469         the compiled webapp directory that Eclipse uses as we're using Maven now.
1470         * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1471         * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1472         to 1.6.
1473         * pom.xml: Format file, change target Java version to 1.6.
1474
1475 2011-02-02  Ben Konrath  <ben@bagu.org>
1476
1477         Add information about a deployment related issue.
1478
1479         * README: Add Notes section with the problem outlined.
1480
1481 2011-02-02  Ben Konrath  <ben@bagu.org>
1482
1483         Call Glom.libglom_deinit() when the servlet is shutdown.
1484
1485         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1486         Glom.libglom_deinit() to destroy() method.
1487
1488 2011-01-28  Ben Konrath  <ben@bagu.org>
1489
1490         Use generated Util class to get the RPC Async interface.
1491
1492         * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1493         file.
1494         * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1495         getInstance() method to get a reference to the RPC Async interface.
1496         * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1497         getInstance() method to get a reference to the RPC Async interface, remove
1498         the now unused getLibGlomServiceProxy() method.
1499
1500 2011-01-27  Ben Konrath  <ben@bagu.org>
1501
1502         Cleanup ChangeLog entry from previous commit.
1503
1504         * ChangeLog: Group logical changes together and add comments.
1505
1506 2011-01-25  Ben Konrath  <ben@bagu.org>
1507
1508         Convert to gwt-maven project.
1509
1510         * .gitignore: Update for new project structure.
1511         * README: New file with a link to the online documentation.
1512         * pom.xml: The generated maven configuration file with some tweaks.
1513
1514         Add / update Eclipse settings. These files are a merge of the files that
1515         were generated with the gwt-maven plugin and the files we were previously
1516         using.
1517         * .classpath:
1518         * .project:
1519         * .settings/.jsdtscope:
1520         * .settings/com.google.gdt.eclipse.core.prefs:
1521         * .settings/com.google.gwt.eclipse.core.prefs:
1522         * .settings/org.eclipse.jdt.core.prefs:
1523         * .settings/org.eclipse.wst.common.component:
1524         * .settings/org.eclipse.wst.common.project.facet.core.xml:
1525         * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1526         * .settings/org.maven.ide.eclipse.prefs:
1527         * OnlineGlomTest-dev.launch:
1528         * OnlineGlomTest-prod.launch:
1529
1530         Java source files moved from the 'src' directory to the directory structure
1531         required by maven.
1532         * src/main/java/org/glom/web/client/GlomDocument.java:
1533         * src/main/java/org/glom/web/client/GlomTable.java:
1534         * src/main/java/org/glom/web/client/LayoutList.java:
1535         * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1536         * src/main/java/org/glom/web/client/LibGlomService.java:
1537         * src/main/java/org/glom/web/client/OnlineGlom.java:
1538         * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1539
1540         Non-functional property file used for translations. I included this as
1541         reminder that it's something I need to sort out.
1542         * src/main/resources/org/glom/web/client/Messages.properties:
1543
1544         The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1545         * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1546
1547         The servlet configuration files moved from the 'war' directory.
1548         * src/main/webapp/OnlineGlom.css:
1549         * src/main/webapp/OnlineGlom.html:
1550         * src/main/webapp/WEB-INF/web.xml:
1551
1552         Generated test files with most of the code commented out. I included these
1553         so that it's easy to add tests when we're ready for them.
1554         * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1555         * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1556
1557 2011-01-25  Ben Konrath  <ben@bagu.org>
1558
1559         Remove unused println.
1560
1561         * src/org/glom/web/server/LibGlomServiceImpl.java:
1562
1563 2011-01-25  Ben Konrath  <ben@bagu.org>
1564
1565         Add project specific JDT settings.
1566
1567         * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1568         * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1569
1570 2011-01-25  Ben Konrath  <ben@bagu.org>
1571
1572         Populate celltable with example data.
1573
1574         * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1575         * src/org/glom/web/client/GlomTable.java: Correct formatting.
1576         * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1577         add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1578         * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1579         asynchronously gets the example data.
1580         * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1581         * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1582         * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1583         curently selected table to be retrieved by other widgets.
1584         * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1585         implement getTableData() in a hacky way. This method needs to be updated
1586         to grab information from the database when database creating is
1587         implemented.
1588
1589 2011-01-20  Ben Konrath  <ben@bagu.org>
1590
1591         Set table headers when table dropBox changes.
1592
1593         * src/org/glom/web/client/GlomDocument.java: Correct some method
1594         names.
1595         * src/org/glom/web/client/LibGlomService.java: Add method
1596         to get list layout field names.
1597         * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1598         to get list layout field names.
1599         * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1600         widget for list layout table.
1601         * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1602         the table drop box and add new updateTable() method to asynchronously
1603         get the layout list field names for the currently selected table.
1604         * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1605         implementation of getLayoutListHeaders() method.
1606         * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1607
1608 2011-01-18  Ben Konrath  <ben@bagu.org>
1609
1610         Make a listBox with table titles instead of the flexTable demo.
1611
1612         This is the start of something more useful.
1613
1614         * .classpath: Exclude a bunch of packages from the JVM that are
1615         getting in the way of the Eclipse content assist.
1616         * src/org/glom/web/client/GlomDocument.java:
1617         * src/org/glom/web/client/GlomTable.java:
1618         * src/org/glom/web/client/LibGlomService.java:
1619         * src/org/glom/web/client/LibGlomServiceAsync.java:
1620         * src/org/glom/web/client/OnlineGlom.java:
1621         * src/org/glom/web/server/LibGlomServiceImpl.java:
1622         * war/OnlineGlom.html:
1623         * war/WEB-INF/web.xml:
1624
1625 211-01-13  Ben Konrath  <ben@bagu.org>
1626
1627         Update to new java-libglom API.
1628
1629         * .gitignore: Ignore OnlineGlom.war.
1630         * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1631
1632 2010-12-20  Ben Konrath  <ben@bagu.org>
1633
1634         Add some basic style to the table listing.
1635
1636         * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1637         header, print useful error message on async callback failure.
1638         * war/OnlineGlom.css: Add style for table header, remove defaults
1639         provided by the Eclipse project wizard.
1640
1641 2010-12-20  Ben Konrath  <ben@bagu.org>
1642
1643         Load example file from installed glom dir.
1644
1645         * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1646         provided by java-libglom to find the example file.
1647
1648 2010-12-20  Ben Konrath  <ben@bagu.org>
1649
1650         Update Eclipse settings.
1651
1652         * .classpath:
1653         * .settings/com.google.gdt.eclipse.core.prefs:
1654         * .settings/com.google.gwt.eclipse.core.prefs:
1655
1656 2010-12-17  Ben Konrath  <ben@bagu.org>
1657
1658         Initial commit.
1659
1660         * .classpath: New file.
1661         * .gitignore: New file.
1662         * .project: New file.
1663         * .settings/com.google.gdt.eclipse.core.prefs: New file.
1664         * .settings/com.google.gwt.eclipse.core.prefs: New file.
1665         * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1666         * src/org/glom/web/client/GlomTable.java: New file.
1667         * src/org/glom/web/client/OnlineGlom.java: New file.
1668         * src/org/glom/web/client/TableNameService.java: New file.
1669         * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1670         * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1671         * war/OnlineGlom.css: New file.
1672         * war/OnlineGlom.html: New file.
1673         * war/WEB-INF/web.xml: New file.
1674         * war/images/glom.png: New file.