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