1 2011-06-28 Ben Konrath <ben@bagu.org>
3 Use filename in Log for incorrect passwords.
5 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
6 getFileName(String) method to get the filename from the URI.
8 2011-06-28 Ben Konrath <ben@bagu.org>
10 Add the table name to the URL token for the ListPlace.
12 This makes things consistent between the DetailsPlace and the
13 ListPlace. It also allows the the ListPlace to be bookmarked.
15 * src/main/java/org/glom/web/client/OnlineGlomService.java:
16 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
17 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
18 Remove getDefaultListLayout(). The default layout is now returned
19 by the getListLayout() method when the table name is an empty string.
20 * src/main/java/org/glom/web/client/activity/ListActivity.java:
21 Add table name field. Change to a new ListPlace when the table
22 has been changed. Use getListLayout() for getting the default
24 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
25 Add table name field. Set the correct table name in the list box
26 when loading from bookmark. This corrects a problem for the
28 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
29 Move table name to super-class (HasSelectableTable). Move document
30 and table URL keys to super-class in HasSelectableTable.
31 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
32 Add table name field. Add Tokenizer class with URL key common to
33 the subclasses (DetailsPlace and ListPlace).
34 * src/main/java/org/glom/web/client/place/ListPlace.java:
35 Add table name. Add code to parse the URL token.
36 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
37 Update ListPlace construction with empty table name string.
38 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
39 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
40 Change setTableSelectedIndex(int) to setSelectedTableName(String).
41 Update ListPlace construction with table name string.
42 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
43 Change defaultTableName field to tableName to reflect how it's now
44 used. Update the getter and setter methods.
46 2011-06-28 Ben Konrath <ben@bagu.org>
48 Enable the table selector in the DetailsView.
50 * src/main/java/org/glom/web/client/OnlineGlomService.java:
51 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
52 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
53 Remove getDefaultDetailsLayout(). The default layout is now returned
54 by the getDetailsLayout() method when the table name is an empty
56 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
57 event handler for table change event. Change to using
58 getDetailsLayout() for the default details layout.
59 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
61 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
62 when navigating to the details place.
64 2011-06-27 Ben Konrath <ben@bagu.org>
66 Use filename based unique document ID in URL and for RPC.
68 The document ID is the glom document name with spaces (' ') replaced
69 with pluses ('+') and without the .glom extension.
71 This change is mostly a string substitution of 'documentTitle' for
72 'documentID'. The only code change is the addition of a Documents DTO to get the
73 filename to document title mappings as indicated below.
75 * src/main/java/org/glom/web/client/OnlineGlomService.java:
76 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
77 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
78 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
79 Use Documents DTO to create the document links in the document
81 * src/main/java/org/glom/web/client/activity/ListActivity.java:
82 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
83 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
84 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
85 * src/main/java/org/glom/web/client/place/ListPlace.java:
86 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
87 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
88 * src/main/java/org/glom/web/client/ui/ListView.java:
89 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
90 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
91 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
92 * src/main/java/org/glom/web/server/Log.java:
93 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
94 getDocumentTitles() to getDocuments() and return the Documents DTO.
95 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
96 transferring the filename to document title mappings.
98 2011-06-25 Ben Konrath <ben@bagu.org>
100 Make the authentication popup work again.
102 This bug was introduced when I extracted ConfiguredDocument to its own class.
104 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
105 correct success / fail status in setUsernameAndPassword().
107 2011-06-25 Ben Konrath <ben@bagu.org>
109 Use filename as unique key for configuring database usernames and passwords.
111 This replaces the use of the Glom document title which could change
112 depending on the locale. Thanks to Murray Cumming for pointing out this
115 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
116 * src/main/resources/onlineglom.properties:
118 2011-06-24 Ben Konrath <ben@bagu.org>
120 Pass primary key value to DetailsView.
122 This enables the DetailsView to load the correct data.
124 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
125 primary key value field and set in constructor. Pass primary key
126 value to getDetailsData().
127 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
128 variables for document title and primary key value.
129 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
130 key value to the DetailsPlace.
132 2011-06-24 Ben Konrath <ben@bagu.org>
134 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
136 This allows the primary key to be retrieved by the Details button. This
137 functionality has not been implemented yet but it's in the works.
139 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
140 the LayoutGroup result to ListView.setCellTable instead of all of its
142 * src/main/java/org/glom/web/client/ui/ListView.java:
143 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
144 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
145 get the primary key for the table.
146 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
147 index of the primary key in the LayoutGroup accounting for hidden
148 primary keys. Rename getJavaNumberFormat() to
149 convertToJavaNumberFormat() for consistency. Cleanup / add some
151 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
152 field for primary key index and a field to indicate whether the
153 primary key is hidden or not.
155 2011-06-23 Ben Konrath <ben@bagu.org>
157 Rename getTableData methods to getListData.
159 This is a rename refactor for consistency with other methods.
161 * src/main/java/org/glom/web/client/OnlineGlomService.java:
162 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
163 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
164 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
166 2011-06-23 Ben Konrath <ben@bagu.org>
168 Extract the ConfiguredDocument innerclass into its own class.
170 This makes the servlet code more object oriented.
172 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
173 from private ConfiguredDocument class in OnlineGlomServiceImpl.
174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
175 new ConfiguredDocument class.
177 2011-06-21 Ben Konrath <ben@bagu.org>
179 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
181 This makes things more inline with how libglom works and reduces code
182 duplication. This refactor lays the groundwork for adding the primary key to
183 the LayoutGroup object.
185 * src/main/java/org/glom/web/client/OnlineGlomService.java:
186 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
188 Change method names to getListLayout and getDefaultListLayout for
189 consistency. Use LayoutGroup as the DTO for the list layout instead of
190 ColumnInfo and LayoutListTable.
191 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
192 new method names along with the LayoutGroup object for transferring the
194 * src/main/java/org/glom/web/client/ui/ListView.java:
195 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
196 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
197 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
199 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
200 Replaced with LayoutGroup.
201 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
202 expectedResultSize and defaultTableName fields which are needed for
204 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
205 type field which is needed for the list layout but will also be
206 useful for the details layout as things progress.
207 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
208 Make class abstract. Remove the unnecessary
209 getFormattingHorizontalAlignment method. Add setFormatting method.
211 2011-06-16 Ben Konrath <ben@bagu.org>
213 Add scripts for building and installing war.
215 These will help when updating OnlineGlom but they're also good
216 supplemental documentation of the build and deployment proceeding.
218 * utils/build-onlineglom-war.sh: New file.
219 * utils/install-onlineglom-war.sh: New file.
221 2011-06-16 Ben Konrath <ben@bagu.org>
223 Create wrapper class to create consistent log messages.
225 I wrapped methods in the Log class of gwt-log to add the method names
226 from the servlet and create consistent formatting of the document title
227 and table names in the log messages.
229 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
231 log methods to use methods from wrapped Log class.
233 2011-06-16 Ben Konrath <ben@bagu.org>
235 Remove superfluous conditional return.
237 Thanks to Murray Cumming for pointing this out!
239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
241 2011-06-15 Ben Konrath <ben@bagu.org>
243 Return an ArrayList of LayoutGroups for the Details layout.
245 This corrects a problem with the details layout as it can have more
246 than one top level LayoutGroup.
248 * src/main/java/org/glom/web/client/OnlineGlomService.java:
249 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
250 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
251 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
252 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
253 with ArrayList of LayoutGroups for the details view layout.
254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
255 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
256 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
257 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
258 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
259 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
261 2011-06-14 Ben Konrath <ben@bagu.org>
263 Use cast_dynamic method to determine the libglom LayoutItem type.
265 This is better than finding the LayoutItem type by using the string
266 returned from the get_part_type_name() method.
268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
270 2011-06-14 Ben Konrath <ben@bagu.org>
272 Add method names to log entries in the servlet.
274 This helps when tracking down deployment problems.
276 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
278 2011-06-14 Ben Konrath <ben@bagu.org>
280 Add data to the DetailsView using a hard-coded primary key value.
282 The layout and functionality of the DetailsView is not complete. This
283 is just a checkpoint so the patch doesn't get too big.
285 * src/main/java/org/glom/web/client/OnlineGlomService.java:
286 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
287 Add getDetailsData() servlet method.
288 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
289 Add RPC to getDetailsData(). Change the way the LayoutGroups and
290 LayoutFields are added to the DetailsView.
291 * src/main/java/org/glom/web/client/ui/DetailsView.java:
292 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
293 Add setData() method. Change addLayoutGroup() and addLayoutField() to
294 take the string for the title instead of the object.
295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
296 Add implementation getDetailsData() along with some private helper
298 * src/main/webapp/style.css: Add padding to details-data class. Add a
299 details-label class with the same padding as the details-data class.
301 2011-06-03 Ben Konrath <ben@bagu.org>
303 Use presenter.goTo() to change to the DetailsPlace.
305 This will make things easier when we need to open the DetailsView with
306 data specific to the row that was clicked.
308 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
310 2011-06-02 Ben Konrath <ben@bagu.org>
312 Add CSS file from mockups.
314 I'm adding this now because it's going to be useful to have when
315 developing the DetailsView. The TableSelectionView and ListView aren't
318 * src/main/webapp/OnlineGlom.html:
319 * src/main/webapp/style.css:
321 2011-06-02 Ben Konrath <ben@bagu.org>
323 Use String.isEmpty() to check for empty string.
325 * src/main/java/org/glom/web/client/activity/ListActivity.java:
327 2011-06-02 Ben Konrath <ben@bagu.org>
329 Display main layout group titles in the DetailsView.
331 This is the start of the DetailsActivity/DetailsView implementation.
333 * src/main/java/org/glom/web/client/OnlineGlomService.java:
334 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
335 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
336 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
337 Get the layout information for the details view from the server and set
338 the main layout group titles.
339 * src/main/java/org/glom/web/client/ui/DetailsView.java:
340 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
341 Add addLayoutGroup() and addLayoutField() methods. This are just
342 temporary methods for creating the the details view that will change
344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
345 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
347 * src/main/java/org/glom/web/shared/layout/Formatting.java:
348 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
349 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
350 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
351 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
352 Data Transfer Objects that mimic the libglom object structure. These are
353 used for transferring the details layout but could also be used for
354 transferring the list layout.
356 2011-05-27 Ben Konrath <ben@bagu.org>
358 Reset the AuthenticationPopup when clearing the ListView.
360 * src/main/java/org/glom/web/client/activity/ListActivity.java:
362 2011-05-27 Ben Konrath <ben@bagu.org>
364 Fix problem with onlineglom.properties file loading.
366 The old way worked in Eclipse but not on the server. Loading the
367 onlineglom.properties file now works in Eclipse and on the server.
369 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
371 2011-05-24 Ben Konrath <ben@bagu.org>
373 Update gwt-log from 3.1.0 to 3.1.2.
375 Gwt-log 3.1.0 has been marked as depreciated.
379 2011-05-24 Ben Konrath <ben@bagu.org>
381 Add comment to ListActivity.goTo() method.
383 * src/main/java/org/glom/web/client/activity/ListActivity.java:
385 2011-05-24 Ben Konrath <ben@bagu.org>
387 Remove FIXME in convertGdkColorToHtmlColour()
389 The Gdk::Color value returned by libglom is 16-bits per channel on both
390 64 and 32-bit platforms.
392 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
394 2011-05-19 Ben Konrath <ben@bagu.org>
396 Improve performance of initial ListView load.
398 I removed a round trip to the server for getting the default table name
399 and then requesting information about that table. This also removes a potential
400 problem with the table change handler not being setup in time to receive the
401 table change event from the ListActivity.
403 * src/main/java/org/glom/web/client/OnlineGlomService.java:
404 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
405 getDefaultLayoutListTable() method. Improve comments.
406 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
407 getDefaultLayoutListTable() method instead of firing a table change
408 event to get the table to load.
409 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
410 implementation of getDefaultLayoutListTable() method.
411 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
414 2011-05-19 Ben Konrath <ben@bagu.org>
416 Override toDebugString() in TableChangeEvent.
418 This is useful to have for debugging.
420 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
422 2011-05-19 Ben Konrath <ben@bagu.org>
424 Add a "Back to List" link when at the DetailsPlace.
426 * src/main/java/org/glom/web/client/activity/ListActivity.java:
427 Populate the CellTable based on the selected table of the ListBox if
428 it's set otherwise use the default table. This allows the "Back to
430 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
431 Remove Place from constructors. Add a setPlace() method. Add
432 goToPlace() method. Set class as presenter for TableSelectionView.
433 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
434 Use the same TableSelectionActivity when switching between the List and
436 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
437 Subclass the new HasSelectableTablePlace. This removes some duplicate
439 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
440 New class to represent Places that display the TableSelectionView.
441 * src/main/java/org/glom/web/client/place/ListPlace.java:
442 Subclass the new HasSelectableTablePlace. This removes some duplicate
444 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
445 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
446 Add Presenter interface. Add setBackLinkVisible() method. Add
447 setBackLink() method.
449 2011-05-18 Ben Konrath <ben@bagu.org>
451 Enable the "Details" buttons.
453 Right now only an empty details view is displayed.
455 * src/main/java/org/glom/web/client/ClientFactory.java:
456 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
457 Add DetailsView to ClientFactory.
458 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
459 A basic activity for the details view.
460 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
461 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
463 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
464 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
466 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
467 Create a new DetailsActivity when a DetailsPlace is requested. Remove
468 unnecessary super() in constructor.
469 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
470 Create a new TableSelectionActivity when a DetailsPlace is requested. We
471 really shouldn't create a new TableSelectionActivity for both the ListPlace
472 and the DetailsPlace so this should be considered a temporary solution.
473 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
474 New file. Represents a URL for the details view.
475 * src/main/java/org/glom/web/client/ui/DetailsView.java:
476 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
477 A basic details view interface and implementation.
478 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
479 Enable the "Details" buttons.
481 2011-05-12 Ben Konrath <ben@bagu.org>
483 Use a LayoutPanel with multiple display areas for main layout.
485 This is mostly a refactor in that there are no changes from the user
486 point of view. These changes are required so that we can swap out the list view
487 with the details view when the user clicks the "Details" button.
489 * src/main/java/org/glom/web/client/ClientFactory.java:
490 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
491 OnlineGlomView. Add TableSelectionView, ListView and
493 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
494 for main layout. Add display regions for main activities. Add
495 activity manager for for main activities.
496 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
497 file from parts of the deleted OnlineGlomActivity.
498 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
499 New file from parts of the deleted OnlineGlomActivity.
500 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
501 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
502 New files for app wide table change event.
503 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
504 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
505 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
506 Activity mappers for the main activities replace the deleted app-wide
508 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
509 Fix a spelling error in he comment.
510 * src/main/java/org/glom/web/client/ui/ListView.java:
511 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
512 Renamed from LayoutListView and modified for MVP. This still not a
513 proper dumb view as prescribed by the MVP pattern but it works for now.
514 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
515 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
516 New widget stripped out of the deleted OnlineGlomView.
517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
518 Remove hack that is fixed by this patch.
520 2011-05-06 Ben Konrath <ben@bagu.org>
522 Rename OnlineGlomPlace to ListPlace.
524 The only change besides the rename is that url will now display #list
525 instead of #Document.
527 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
528 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
529 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
530 * src/main/java/org/glom/web/client/place/ListPlace.java:
531 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
533 2011-05-06 Ben Konrath <ben@bagu.org>
535 Use Presenter for app navigation.
537 This is the proper way to deal with Place (URL) changes with the MVP
540 * src/main/java/org/glom/web/client/ClientFactory.java:
541 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
542 PlaceHistoryMapper and PlaceHistoryHandler.
543 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
544 PlaceHistoryMapper and PlaceHistoryHandler.
545 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
546 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
547 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
548 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
549 Add Presenter interface and setPresenter methods. Rename addHyperLink
550 to addDocumentLink taking only the document title as a parameter.
552 2011-04-14 Ben Konrath <ben@bagu.org>
554 Prompt for db username/password if they haven't been set.
556 This is implemented with a popup widget that is contained within the
557 OnlineGlomView and managed by the OnlineGlomActivity.
559 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
560 methods for checking and setting the database username and password.
561 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
562 new methods for checking and setting the database username and
564 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
565 Display authentication popup if the JDBC connection to the database
566 has not been authenticated.
567 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
569 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
570 for dealing with the authentication popup.
571 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
572 Implement the methods for dealing with the authentication popup.
573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
574 try to executed queries if the database connection hasn't been
575 authenticated. Implement methods for checking and setting the
576 database username and password.
578 2011-04-12 Ben Konrath <ben@bagu.org>
580 Make log messages a little clearer.
582 Add a dash betweeen the document title and the table name.
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
586 2011-04-12 Ben Konrath <ben@bagu.org>
588 Protect against NPEs when cleaning up database resources.
590 While this isn't strictly necessary because the exception is caught,
591 not protecting against the NPEs makes it harder to find the real error
594 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
596 2011-04-12 Ben Konrath <ben@bagu.org>
598 Move configuration of the servlet to the constructor.
600 The servlet will be initialized even if the database authentication
601 information is not set or correct. I still need to add the UI for prompting
602 the user for the authentication information when it's required.
604 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
605 javadocs for getDocumentTitles() method.
606 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
607 Set error message when RPC fails.
608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
609 glom files directory from the configuration file. Try to set the
610 database authentication information for the specific document if it's
611 set and works otherwise try to use the global authentication
612 information set for the directory.
613 * src/main/resources/onlineglom.properties: Moved from
614 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
615 Added detailed comments for the new keys.
617 2011-04-11 Ben Konrath <ben@bagu.org>
619 Remove unnecessary @Override in DocumentSelectionViewImpl.
621 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
623 2011-04-11 Ben Konrath <ben@bagu.org>
625 Remove center alignment in DocumentSelectionView.
627 The title element is still centred but the document titles and bottom
628 sentence are both left-aligned.
630 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
632 2011-04-11 Ben Konrath <ben@bagu.org>
634 Change 'Demo' naming convention to 'Document'.
636 This is just a rename refactor with no functional changes to the code.
638 * src/main/java/org/glom/web/client/ClientFactory.java:
639 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
640 * src/main/java/org/glom/web/client/OnlineGlom.java:
641 * src/main/java/org/glom/web/client/OnlineGlomService.java:
642 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
643 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
644 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
645 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
646 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
647 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
648 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
649 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
650 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
652 2011-04-08 Ben Konrath <ben@bagu.org>
654 Remove FIXME from safeLongToInt() method.
656 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
659 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
661 2011-04-08 Ben Konrath <ben@bagu.org>
663 Display an error if no glom documents are found in the specified directory.
665 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
666 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
667 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
668 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
670 2011-04-08 Ben Konrath <ben@bagu.org>
672 Add copyright header to one more file ... oops.
674 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
676 2011-04-08 Ben Konrath <ben@bagu.org>
678 Add copyright header to files without it.
680 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
681 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
682 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
683 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
684 * src/main/java/org/glom/web/shared/ColumnInfo.java:
685 * src/main/java/org/glom/web/shared/GlomField.java:
687 2011-04-08 Ben Konrath <ben@bagu.org>
689 Add support for accessing multiple glom documents in the servlet.
691 This completes the demo selection functionality.
693 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
694 document title to methods.
695 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
696 document title to methods.
697 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
698 Set browser window title when the activity starts. Correct name of
699 document title variable.
700 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
701 Set browser window title when the activity starts. Set the table
702 selector change handler after table selector has been set. Clear the
703 OnlineGlomView when the activity has been stopped.
704 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
705 document title as the place token. Use "#Document:" instead of
706 "#OnlineGlomPlace:" in the URL.
707 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
708 Change heading to "Online Glom"
709 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
710 document title in RPC methods.
711 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
712 setDocumentTitle() method. Add clear() method.
713 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
714 setDocumentTitle() method. Implement clear() method which removes the
715 change handler on the ListBox, clears the ListBox and clears the
717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
718 Implement methods with document title. Keep track for the configured
719 glom documents and their corresponding JDBC configurations in a hash
720 table. This information is retrieved using the document title as the
721 key in the hash table.
722 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
723 document title field as it's no longer needed.
725 2011-04-08 Ben Konrath <ben@bagu.org>
727 Update the Eclipse JDT configuration.
729 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
730 methods. Automatically add the copyright header to new files.
732 2011-04-05 Ben Konrath <ben@bagu.org>
734 Add new page for demo selection.
736 This patch adds all the components required to view and start an
737 OnlineGlom demo by clicking on the desired hyperlink. The user is
738 able to return to the demo selection page with the browser's back
739 button. I still need to modify the servlet to work with multiple
740 documents so all demo links will load the file defined in the
741 OnlineGlom.properties.
743 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
744 This is only useful during development so we don't need to save it.
745 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
746 get a reference to the DemoSelectionView.
747 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
748 method to get a reference to the DemoSelectionView.
749 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
750 default view to DemoSelectionView.
751 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
752 to get glom document titles for glom files in a hard-coded directory.
753 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
754 method to get glom document titles for glom files in a hard-coded
756 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
757 Presenter for DemoSelectionView.
758 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
759 for DemoSelectionView.
760 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
761 Update for DemoSelectionView.
762 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
763 Basic 'Place' implementation for the DemoSelectionView.
764 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
765 The interface for the DemoSelectionView.
766 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
767 The implementation of the DemoSelectionView.
768 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
769 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
770 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
771 implementation of method to get glom document titles for glom files
772 in a hard-coded directory.
773 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
774 on longer being used.
775 * src/main/webapp/glom.png: Glom logo.
777 2011-04-05 Ben Konrath <ben@bagu.org>
779 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
781 This is the forth and final commit of a refactor that will allow
782 OnlineGlom to be used with multiple documents.
784 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
785 Move RPC code from OnlineGlomViewImpl to this class.
786 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
788 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
789 RPC code to the presenter class (the P in MVP).
791 2011-04-04 Ben Konrath <ben@bagu.org>
793 Start moving the existing OnlineGlom code to MVP.
795 This work is based on the GWT MVP framework that is documented here:
797 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
799 This is the third commit of a refactor that will allow OnlineGlom to
800 be used with multiple documents.
802 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
803 Interface for client factory which is used to get instances of various
804 classes throughout the app.
805 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
806 Implementation of client factory.
807 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
808 initialize the MVP framework.
809 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
810 New file. Activity manager for the main container widget. This is the
812 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
813 Maps place (URL) to its corresponding activity.
814 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
815 New file. This is just a place holder for a generated file.
816 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
817 New file. Represents the URL for the main Online Glom app.
818 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
819 for changes in LayoutListViewImpl.
820 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
821 interface for View. Move code to OnlineGlomViewImpl class.
822 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
823 file. Implementation of OnlineGlomView.
824 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
825 Place resources. Use ClientFactoryImpl by default.
827 2011-04-04 Ben Konrath <ben@bagu.org>
829 Move View classes to their own package.
831 This is the second commit of a refactor that will allow OnlineGlom to
832 be used with multiple documents.
834 * src/main/java/org/glom/web/client/OnlineGlom.java:
835 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
836 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
838 2011-04-02 Ben Konrath <ben@bagu.org>
840 Move UI code from the main module to its own class.
842 This is the first commit of a refactor that will allow OnlineGlom to be
843 used with multiple documents.
845 * src/main/java/org/glom/web/client/LayoutListView.java: Update
846 references to OnlineGlom to OnlineGlomView.
847 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
848 OnlineGlomView and instantiate it here.
849 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
850 represents the main OnlineGlomView with one document.
852 2011-04-01 Ben Konrath <ben@bagu.org>
854 Fix formatting of gwt.xml and add DTD.
856 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
858 2011-03-30 Ben Konrath <ben@bagu.org>
860 Propperly convert gdkColor string to html colour string.
862 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
864 2011-03-28 Ben Konrath <ben@bagu.org>
866 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
868 This implementation matches
869 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
870 readable and is not tied to Swig.
872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 2011-03-28 Ben Konrath <ben@bagu.org>
876 Use read-only checkboxes for boolean field types.
878 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
879 in the CellTable based on the field type. It currently only
880 distinguishes between boolean and text columns but I'll need to add
881 support for more types.
882 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
883 column type in the ColumnInfo object. Add method to convert between the
884 glom field type enum in ColumnInfo and the glom field type in libglom.
885 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
887 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
888 getting and setting booleans.
890 2011-03-25 Ben Konrath <ben@bagu.org>
892 Don't get the Date twice from the ResultSet.
894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
896 2011-03-25 Ben Konrath <ben@bagu.org>
898 Cleanup code in the servlet.
900 * TODO: Remove item about row count. Add item about testing row count
901 query with large number of rows.
902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
903 spelling mistakes, change method parameter to be consistent with
906 2011-03-25 Ben Konrath <ben@bagu.org>
908 Add server side logging with the gwt-log library.
910 * .gitignore: Ignore the log file we're now producing.
911 * TODO: Add a couple TODO item for logging.
912 * pom.xml: Add gwt-log and log4j as a dependency.
913 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
914 logging of errors, warnings and some important info.
915 * src/main/resources/log4j.properties: New file to configure log4j.
917 2011-03-24 Ben Konrath <ben@bagu.org>
919 Add a disable button for the Details view.
921 * src/main/java/org/glom/web/client/LayoutListView.java:
923 2011-03-22 Ben Konrath <ben@bagu.org>
925 Use a count query to get the number of rows for the list view pager.
927 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
929 2011-03-22 Ben Konrath <ben@bagu.org>
931 Add more TODO information about CellTable pager positioning.
935 2011-03-19 Ben Konrath <ben@bagu.org>
937 Add TODO item about CellTable pager positioning.
941 2011-03-18 Ben Konrath <ben@bagu.org>
943 Remove unneeded GlomFieldColumn class.
945 This is just a small code cleanup.
947 * src/main/java/org/glom/web/client/LayoutListView.java:
949 2011-03-18 Ben Konrath <ben@bagu.org>
951 Use cursor mode in the query that gets data for the list view.
953 I still need to fix the potential memory problem when getting the row
954 count for the list view.
956 * TODO: Add note about testing memory usage with large data sets. Add
957 item about fixing row counting with large data sets.
958 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
959 PostgreSQL JDBC driver into cursor mode when getting data for the
962 2011-03-15 Ben Konrath <ben@bagu.org>
964 Remove the GWT Container from the Eclipse build classpath.
966 The GWT dependencies are set by Maven so this isn't needed.
970 2011-03-15 Murray Cumming <murrayc@murrayc.com>
972 Added some earlier mockups to git, but not to the tarball dist.
974 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
975 Openismus. These hopefully show how we might structure the HTML so that
976 it can be styled easily with CSS. However, we probably need to adapt them
977 for the CSS structure that GWT dictates for common widgets.
979 2011-03-14 Ben Konrath <ben@bagu.org>
981 Locate OnlineGlom.properties using the ServletContext.
983 This is required to be able to locate the file in the deployed servlet.
985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
986 Configure the database and glom document in in a helper method so
987 that the ServletContext can be used to locate OnlineGlom.properties.
988 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
989 src/main/webapp. This is the proper location for .properites files.
991 2011-03-12 Ben Konrath <ben@bagu.org>
993 Add note to README about why we're compiling down to obfuscated JavaScript.
997 2011-03-11 Ben Konrath <ben@bagu.org>
999 Use properties file to configure servlet.
1001 This allows people to change the glom file path, db username and db
1002 password without recompiling the code.
1004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1005 * src/main/webapp/OnlineGlom.properties:
1007 2011-03-11 Ben Konrath <ben@bagu.org>
1009 Use table fields in layout list view if the layout list is not defined.
1011 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1012 Manually create a LayoutFieldVector for the query builder using the
1013 table fields when a layout list is not defined in the glom file.
1015 2011-03-11 Ben Konrath <ben@bagu.org>
1017 Only show FIXME string for images when there's an image.
1019 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1020 in this change are some small code cleanups.
1022 2011-03-11 Ben Konrath <ben@bagu.org>
1024 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1026 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1028 2011-03-11 Ben Konrath <ben@bagu.org>
1030 Correctly set the index of the default table.
1032 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1033 Correctly set the index of the default table. Add commented out example
1036 2011-03-10 Ben Konrath <ben@bagu.org>
1038 Add comment to pom.xml about the previous change.
1040 * pom.xml: Add comment about the deployment issue so that it's obvious
1041 why java-libglom is set to the provided scope.
1043 2011-03-10 Ben Konrath <ben@bagu.org>
1045 Change java-libglom dependency from compile to provided in pom.xml.
1047 Since java-libglom uses jni it can only be loaded once and therefore
1048 must be placed in $CATALINA_HOME/lib and not included in each war.
1049 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1050 More information about this issue can be found in the Tomcat 6 release
1051 notes in the "JNI Based Applications" section:
1053 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1055 * README: Remove note about this issue. Deployment info should really
1056 be on the wiki anyway so I'll add it right now.
1057 * pom.xml: Change java-libglom dependency from compile to provided so
1058 that it's copied in to the packaged war.
1060 2011-03-09 Ben Konrath <ben@bagu.org>
1062 Change to using a neutral locale for currency, date and time formatting.
1064 This solves the problem of currency values being represented without a
1065 space between the currency code and the number (e.g. "EUR5.89" is now
1066 represented as "EUR 5.89"). More work is required when we implement
1067 a locale preference setting.
1069 * TODO: Add note about currency formatting issues with different
1071 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1072 to using the neutral ROOT locale.
1074 2011-03-09 Ben Konrath <ben@bagu.org>
1076 Add support for currency codes that are not ISO 4217 codes.
1078 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1079 the currency code defined in the glom file when it's not 3 characters
1080 long or when Java doesn't recognize the string as an ISO 4217 code.
1082 2011-03-08 Ben Konrath <ben@bagu.org>
1084 Remove test classes, launch configurations and configuration.
1086 The test stuff was getting in the way when creating the war. To make
1087 the war file you can now do 'mvn clean package'. The packaged war file
1088 will be in the target directory.
1090 * .classpath: Remove unused classpathentry for tests and i18n.
1091 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1092 property. Don't run test or i18n goals when packaging the war.
1093 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1098 * OnlineGlomTest-dev.launch:
1099 * OnlineGlomTest-prod.launch:
1100 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1101 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1103 2011-03-07 Ben Konrath <ben@bagu.org>
1105 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1107 These fixes allow me to use 'mvn deploy' to create the war file.
1109 * .classpath: This generated config has been updated by Eclipse. This
1110 change was probably triggered by me updating from Eclipse 3.6.1 to
1112 * .gitignore: Add entry to ignore the directory
1113 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1114 * .project: The generated config has been updated by Eclipse. This
1115 change was probably triggered by me updating from Eclipse 3.6.1 to
1117 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1118 so that Eclipse doesn't complain
1119 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1120 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1121 'tests' directory to 'client' directory. This is the new
1122 gwt-maven-plugin convension.
1123 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1124 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1126 2011-03-07 Ben Konrath <ben@bagu.org>
1128 Add support for horizontal alignment in the LayoutList columns.
1130 * TODO: Remove item about horizontal alignment. Add item about
1131 improvements to ColumnInfo.
1132 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1133 alignment on the columns. Use ColumnInfo RPC object get the column
1134 title and horizontal alignment.
1135 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1136 LayoutListView creation with ColumnInfo RPC object.
1137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1138 a ColumnInfo object for every LayoutList columnn. Convert the
1139 FieldFormatting.HorizontalAlignment to the correct
1140 ColumnnInfo.HorizontatlAlignment with the new
1141 getColumnInfoHorizontalAlignment helper method.
1142 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1143 to encapsulate column information like alignment and title. This
1144 could be used to set the colour instead of on a per cell field basis.
1145 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1146 column title storage and retrieval with ColumnInfo.
1148 2011-03-04 Ben Konrath <ben@bagu.org>
1150 Add support for column sorting.
1152 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1153 AsynDataProvider to be an anonymous inner class. Use new
1154 getSortedTableData RPC method when column sort is requested. Set all
1155 columns sortable and add an AsyncHandler to activate sorting in the
1157 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1158 method getSortedTableData(). Cleanup other method signatures.
1159 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1160 new method getSortedTableData(). Cleanup other method signatures.
1161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1162 Implement getSortedTableData() and getTableData() methods by using a
1163 private helper method with the appropriate parameters filled in. Use
1164 user supplied sort clause when supplied, otherwise fall back to
1165 sorting by the primary key. Move destroy() method to be underneath
1166 constructor for readability. Cleanup comments.
1168 2011-03-03 Ben Konrath <ben@bagu.org>
1170 Add support for colour text and colour backgrounds to the layout list cells.
1172 Only the cell backgrounds are coloured which leaves a gap between the
1173 cells that isn't coloured. I need to figure out a way to set
1174 'style=background-colour:' on the whole column rather than just the
1177 * TODO: Add a note about colouring the background of the whole column.
1178 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1179 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1180 render the coloured text and backgrounds. Use GlomField[] for the row type.
1181 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1183 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1184 GlomField[] for the row type.
1185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1186 GlomField[] for the row type. Set the text, text colour and background
1187 colour in the GlomField objects as specified in the glom document. Add
1188 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1189 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1190 the glom field text, foreground colour and background colour.
1192 2011-03-02 Ben Konrath <ben@bagu.org>
1194 Don't display hidden tables in the combo box.
1196 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1198 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1199 code to ignore hidden tables using ArrayLists for the table names and
1201 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1202 tableNames to use ArrayLists instead of String[]. Update getter and setter
1205 2011-03-01 Ben Konrath <ben@bagu.org>
1207 Add support for Date and Time number types.
1209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1210 Implement formatting for Date and Time values. Change the default glom
1211 file to small business example.
1213 2011-03-01 Ben Konrath <ben@bagu.org>
1215 Add support for formatting glom types as specified in the glom file.
1217 Formatting isn't finished yet - I still need to add support for Date
1220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1221 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1222 checks for null values in JDBC cleanup code and catch all exceptions
1223 instead of just SQLExceptions.
1224 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1227 2011-03-01 Ben Konrath <ben@bagu.org>
1229 Use GWT 2.2.0 instead of 2.1.1.
1231 * pom.xml: Change GWT version numbers.
1233 2011-03-01 Ben Konrath <ben@bagu.org>
1235 A few small code cleanups.
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1239 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1240 unnecessary object creation in constructor.
1241 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1242 unnecessary object creation in constructor.
1244 2011-02-28 Ben Konrath <ben@bagu.org>
1246 Add file for TODO list.
1250 2011-02-18 Ben Konrath <ben@bagu.org>
1252 Enable the CellTable Pager when more than 20 rows need to be viewed.
1254 The Pager will automatically become active when the results are larger
1255 than the CellTable size which is currently set to 20 lines.
1257 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1258 name on debug statment in RPC call in LayoutListDataProvider, add
1259 numRows parameter to LayoutListView constructor, propperly set rowCount
1261 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1262 name on debug statment in RPC call, use LayoutListTable object in RPC
1263 calls, pass rowCount to LayoutListView.
1264 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1265 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1267 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1268 interface for changes in OnlineGlomService.
1269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1270 getLayoutListHeaders() to getLayoutListTable() and return
1271 LayoutListTable. Using this object allows me to pass other information
1272 about the LayoutList like the expected number of rows in the result set.
1273 The Connection object from the connection pool is now propperly closed.
1274 Only the requested number of lines are returned to the client in
1276 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1277 GlomTable and add columnTitles and numRows.
1279 2011-02-18 Ben Konrath <ben@bagu.org>
1281 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1283 This is a small performance boost. I'll use GlomTable to get the required
1284 layoutlist information.
1286 * src/main/java/org/glom/web/client/OnlineGlom.java:
1287 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1288 * src/main/java/org/glom/web/shared/GlomDocument.java:
1290 2011-02-18 Ben Konrath <ben@bagu.org>
1292 Add option to turn off formatting in JDT formatter preferences.
1294 * .settings/org.eclipse.jdt.core.prefs:
1296 2011-02-18 Ben Konrath <ben@bagu.org>
1298 Rename LayoutList to LayoutListView.
1300 I'm working towards setting things up to easily use MVP when the time
1303 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1305 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1308 2011-02-17 Ben Konrath <ben@bagu.org>
1310 Move LayoutListDataProvider class into LayoutList.java.
1312 * src/main/java/org/glom/web/client/LayoutList.java:
1314 2011-02-17 Ben Konrath <ben@bagu.org>
1316 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1318 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1320 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1321 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1322 from LibGlomServer.java.
1323 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1324 Rename from LibGlomServiceAsync.java.
1325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1326 Rename from LibGlomServiceImpl.java.
1327 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1329 2011-02-17 Ben Konrath <ben@bagu.org>
1331 Update JDT settings.
1333 * .settings/org.eclipse.jdt.core.prefs:
1335 2011-02-17 Ben Konrath <ben@bagu.org>
1337 Move GWT-RPC objects to shared package (where they should be).
1339 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1340 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1341 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1342 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1343 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1344 org.glom.web.shared package.
1345 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1346 org.glom.web.shared package.
1347 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1348 directory in compilation to javascript.
1350 2011-02-16 Ben Konrath <ben@bagu.org>
1352 Add sort clause to the sql query that grabs table information.
1354 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1355 if one of the columns is a primary key.
1357 2011-02-16 Ben Konrath <ben@bagu.org>
1359 Disable generateAsync feature of gwt-maven.
1361 The generated interface does not correctly match the methods in LibGlomService
1362 and the generated singleton Util inner-class doesn't respect the servlet
1365 * pom.xml: Turn off generateAsync feature.
1366 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1367 with singleton Util inner-class.
1369 2011-02-14 Ben Konrath <ben@bagu.org>
1371 Add LGPL v3 licence notices.
1373 Followed directions listed here:
1374 http://www.gnu.org/licenses/gpl-howto.html
1376 * COPYING: This file is a copy of the GPL v3.
1377 * COPYING.LESSER: This file is a copy of the LGPL v3.
1378 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1380 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1382 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1384 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1386 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1388 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1390 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1393 2011-02-14 Ben Konrath <ben@bagu.org>
1395 Use ArrayList instead of Array in GWT-RPC calls.
1397 Apparently this gives a slight performance boost to the compiled
1400 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1402 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1405 2011-02-14 Ben Konrath <ben@bagu.org>
1407 Access data from a postgres db rather than the example glom file.
1409 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1410 compile down to obfuscated javascript.
1411 * pom.xml: Add c3p0 and postgres JDBC libraries.
1412 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1413 using a postgres db accessed through the c3p0 connection pooling library.
1415 2011-02-14 Ben Konrath <ben@bagu.org>
1417 Update Java formatter settings.
1419 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1421 2011-02-02 Ben Konrath <ben@bagu.org>
1423 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1425 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1427 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1428 the compiled webapp directory that Eclipse uses as we're using Maven now.
1429 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1430 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1432 * pom.xml: Format file, change target Java version to 1.6.
1434 2011-02-02 Ben Konrath <ben@bagu.org>
1436 Add information about a deployment related issue.
1438 * README: Add Notes section with the problem outlined.
1440 2011-02-02 Ben Konrath <ben@bagu.org>
1442 Call Glom.libglom_deinit() when the servlet is shutdown.
1444 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1445 Glom.libglom_deinit() to destroy() method.
1447 2011-01-28 Ben Konrath <ben@bagu.org>
1449 Use generated Util class to get the RPC Async interface.
1451 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1453 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1454 getInstance() method to get a reference to the RPC Async interface.
1455 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1456 getInstance() method to get a reference to the RPC Async interface, remove
1457 the now unused getLibGlomServiceProxy() method.
1459 2011-01-27 Ben Konrath <ben@bagu.org>
1461 Cleanup ChangeLog entry from previous commit.
1463 * ChangeLog: Group logical changes together and add comments.
1465 2011-01-25 Ben Konrath <ben@bagu.org>
1467 Convert to gwt-maven project.
1469 * .gitignore: Update for new project structure.
1470 * README: New file with a link to the online documentation.
1471 * pom.xml: The generated maven configuration file with some tweaks.
1473 Add / update Eclipse settings. These files are a merge of the files that
1474 were generated with the gwt-maven plugin and the files we were previously
1478 * .settings/.jsdtscope:
1479 * .settings/com.google.gdt.eclipse.core.prefs:
1480 * .settings/com.google.gwt.eclipse.core.prefs:
1481 * .settings/org.eclipse.jdt.core.prefs:
1482 * .settings/org.eclipse.wst.common.component:
1483 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1484 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1485 * .settings/org.maven.ide.eclipse.prefs:
1486 * OnlineGlomTest-dev.launch:
1487 * OnlineGlomTest-prod.launch:
1489 Java source files moved from the 'src' directory to the directory structure
1491 * src/main/java/org/glom/web/client/GlomDocument.java:
1492 * src/main/java/org/glom/web/client/GlomTable.java:
1493 * src/main/java/org/glom/web/client/LayoutList.java:
1494 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1495 * src/main/java/org/glom/web/client/LibGlomService.java:
1496 * src/main/java/org/glom/web/client/OnlineGlom.java:
1497 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1499 Non-functional property file used for translations. I included this as
1500 reminder that it's something I need to sort out.
1501 * src/main/resources/org/glom/web/client/Messages.properties:
1503 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1504 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1506 The servlet configuration files moved from the 'war' directory.
1507 * src/main/webapp/OnlineGlom.css:
1508 * src/main/webapp/OnlineGlom.html:
1509 * src/main/webapp/WEB-INF/web.xml:
1511 Generated test files with most of the code commented out. I included these
1512 so that it's easy to add tests when we're ready for them.
1513 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1514 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1516 2011-01-25 Ben Konrath <ben@bagu.org>
1518 Remove unused println.
1520 * src/org/glom/web/server/LibGlomServiceImpl.java:
1522 2011-01-25 Ben Konrath <ben@bagu.org>
1524 Add project specific JDT settings.
1526 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1527 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1529 2011-01-25 Ben Konrath <ben@bagu.org>
1531 Populate celltable with example data.
1533 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1534 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1535 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1536 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1537 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1538 asynchronously gets the example data.
1539 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1540 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1541 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1542 curently selected table to be retrieved by other widgets.
1543 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1544 implement getTableData() in a hacky way. This method needs to be updated
1545 to grab information from the database when database creating is
1548 2011-01-20 Ben Konrath <ben@bagu.org>
1550 Set table headers when table dropBox changes.
1552 * src/org/glom/web/client/GlomDocument.java: Correct some method
1554 * src/org/glom/web/client/LibGlomService.java: Add method
1555 to get list layout field names.
1556 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1557 to get list layout field names.
1558 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1559 widget for list layout table.
1560 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1561 the table drop box and add new updateTable() method to asynchronously
1562 get the layout list field names for the currently selected table.
1563 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1564 implementation of getLayoutListHeaders() method.
1565 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1567 2011-01-18 Ben Konrath <ben@bagu.org>
1569 Make a listBox with table titles instead of the flexTable demo.
1571 This is the start of something more useful.
1573 * .classpath: Exclude a bunch of packages from the JVM that are
1574 getting in the way of the Eclipse content assist.
1575 * src/org/glom/web/client/GlomDocument.java:
1576 * src/org/glom/web/client/GlomTable.java:
1577 * src/org/glom/web/client/LibGlomService.java:
1578 * src/org/glom/web/client/LibGlomServiceAsync.java:
1579 * src/org/glom/web/client/OnlineGlom.java:
1580 * src/org/glom/web/server/LibGlomServiceImpl.java:
1581 * war/OnlineGlom.html:
1582 * war/WEB-INF/web.xml:
1584 211-01-13 Ben Konrath <ben@bagu.org>
1586 Update to new java-libglom API.
1588 * .gitignore: Ignore OnlineGlom.war.
1589 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1591 2010-12-20 Ben Konrath <ben@bagu.org>
1593 Add some basic style to the table listing.
1595 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1596 header, print useful error message on async callback failure.
1597 * war/OnlineGlom.css: Add style for table header, remove defaults
1598 provided by the Eclipse project wizard.
1600 2010-12-20 Ben Konrath <ben@bagu.org>
1602 Load example file from installed glom dir.
1604 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1605 provided by java-libglom to find the example file.
1607 2010-12-20 Ben Konrath <ben@bagu.org>
1609 Update Eclipse settings.
1612 * .settings/com.google.gdt.eclipse.core.prefs:
1613 * .settings/com.google.gwt.eclipse.core.prefs:
1615 2010-12-17 Ben Konrath <ben@bagu.org>
1619 * .classpath: New file.
1620 * .gitignore: New file.
1621 * .project: New file.
1622 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1623 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1624 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1625 * src/org/glom/web/client/GlomTable.java: New file.
1626 * src/org/glom/web/client/OnlineGlom.java: New file.
1627 * src/org/glom/web/client/TableNameService.java: New file.
1628 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1629 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1630 * war/OnlineGlom.css: New file.
1631 * war/OnlineGlom.html: New file.
1632 * war/WEB-INF/web.xml: New file.
1633 * war/images/glom.png: New file.