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