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