1 2011-06-23 Ben Konrath <ben@bagu.org>
3 Rename getTableData methods to getListData.
5 This is a rename refactor for consistency with other methods.
7 * src/main/java/org/glom/web/client/OnlineGlomService.java:
8 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
9 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
10 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
12 2011-06-23 Ben Konrath <ben@bagu.org>
14 Extract the ConfiguredDocument innerclass into its own class.
16 This makes the servlet code more object oriented.
18 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
19 from private ConfiguredDocument class in OnlineGlomServiceImpl.
20 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
21 new ConfiguredDocument class.
23 2011-06-21 Ben Konrath <ben@bagu.org>
25 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
27 This makes things more inline with how libglom works and reduces code
28 duplication. This refactor lays the groundwork for adding the primary key to
29 the LayoutGroup object.
31 * src/main/java/org/glom/web/client/OnlineGlomService.java:
32 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
33 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
34 Change method names to getListLayout and getDefaultListLayout for
35 consistency. Use LayoutGroup as the DTO for the list layout instead of
36 ColumnInfo and LayoutListTable.
37 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
38 new method names along with the LayoutGroup object for transferring the
40 * src/main/java/org/glom/web/client/ui/ListView.java:
41 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
42 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
43 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
45 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
46 Replaced with LayoutGroup.
47 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
48 expectedResultSize and defaultTableName fields which are needed for
50 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
51 type field which is needed for the list layout but will also be
52 useful for the details layout as things progress.
53 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
54 Make class abstract. Remove the unnecessary
55 getFormattingHorizontalAlignment method. Add setFormatting method.
57 2011-06-16 Ben Konrath <ben@bagu.org>
59 Add scripts for building and installing war.
61 These will help when updating OnlineGlom but they're also good
62 supplemental documentation of the build and deployment proceeding.
64 * utils/build-onlineglom-war.sh: New file.
65 * utils/install-onlineglom-war.sh: New file.
67 2011-06-16 Ben Konrath <ben@bagu.org>
69 Create wrapper class to create consistent log messages.
71 I wrapped methods in the Log class of gwt-log to add the method names
72 from the servlet and create consistent formatting of the document title
73 and table names in the log messages.
75 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
76 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
77 log methods to use methods from wrapped Log class.
79 2011-06-16 Ben Konrath <ben@bagu.org>
81 Remove superfluous conditional return.
83 Thanks to Murray Cumming for pointing this out!
85 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
87 2011-06-15 Ben Konrath <ben@bagu.org>
89 Return an ArrayList of LayoutGroups for the Details layout.
91 This corrects a problem with the details layout as it can have more
92 than one top level LayoutGroup.
94 * src/main/java/org/glom/web/client/OnlineGlomService.java:
95 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
96 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
97 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
98 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
99 with ArrayList of LayoutGroups for the details view layout.
100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
101 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
102 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
103 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
104 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
105 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
107 2011-06-14 Ben Konrath <ben@bagu.org>
109 Use cast_dynamic method to determine the libglom LayoutItem type.
111 This is better than finding the LayoutItem type by using the string
112 returned from the get_part_type_name() method.
114 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
116 2011-06-14 Ben Konrath <ben@bagu.org>
118 Add method names to log entries in the servlet.
120 This helps when tracking down deployment problems.
122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
124 2011-06-14 Ben Konrath <ben@bagu.org>
126 Add data to the DetailsView using a hard-coded primary key value.
128 The layout and functionality of the DetailsView is not complete. This
129 is just a checkpoint so the patch doesn't get too big.
131 * src/main/java/org/glom/web/client/OnlineGlomService.java:
132 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
133 Add getDetailsData() servlet method.
134 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
135 Add RPC to getDetailsData(). Change the way the LayoutGroups and
136 LayoutFields are added to the DetailsView.
137 * src/main/java/org/glom/web/client/ui/DetailsView.java:
138 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
139 Add setData() method. Change addLayoutGroup() and addLayoutField() to
140 take the string for the title instead of the object.
141 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
142 Add implementation getDetailsData() along with some private helper
144 * src/main/webapp/style.css: Add padding to details-data class. Add a
145 details-label class with the same padding as the details-data class.
147 2011-06-03 Ben Konrath <ben@bagu.org>
149 Use presenter.goTo() to change to the DetailsPlace.
151 This will make things easier when we need to open the DetailsView with
152 data specific to the row that was clicked.
154 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
156 2011-06-02 Ben Konrath <ben@bagu.org>
158 Add CSS file from mockups.
160 I'm adding this now because it's going to be useful to have when
161 developing the DetailsView. The TableSelectionView and ListView aren't
164 * src/main/webapp/OnlineGlom.html:
165 * src/main/webapp/style.css:
167 2011-06-02 Ben Konrath <ben@bagu.org>
169 Use String.isEmpty() to check for empty string.
171 * src/main/java/org/glom/web/client/activity/ListActivity.java:
173 2011-06-02 Ben Konrath <ben@bagu.org>
175 Display main layout group titles in the DetailsView.
177 This is the start of the DetailsActivity/DetailsView implementation.
179 * src/main/java/org/glom/web/client/OnlineGlomService.java:
180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
181 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
182 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
183 Get the layout information for the details view from the server and set
184 the main layout group titles.
185 * src/main/java/org/glom/web/client/ui/DetailsView.java:
186 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
187 Add addLayoutGroup() and addLayoutField() methods. This are just
188 temporary methods for creating the the details view that will change
190 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
191 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
193 * src/main/java/org/glom/web/shared/layout/Formatting.java:
194 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
195 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
196 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
197 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
198 Data Transfer Objects that mimic the libglom object structure. These are
199 used for transferring the details layout but could also be used for
200 transferring the list layout.
202 2011-05-27 Ben Konrath <ben@bagu.org>
204 Reset the AuthenticationPopup when clearing the ListView.
206 * src/main/java/org/glom/web/client/activity/ListActivity.java:
208 2011-05-27 Ben Konrath <ben@bagu.org>
210 Fix problem with onlineglom.properties file loading.
212 The old way worked in Eclipse but not on the server. Loading the
213 onlineglom.properties file now works in Eclipse and on the server.
215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
217 2011-05-24 Ben Konrath <ben@bagu.org>
219 Update gwt-log from 3.1.0 to 3.1.2.
221 Gwt-log 3.1.0 has been marked as depreciated.
225 2011-05-24 Ben Konrath <ben@bagu.org>
227 Add comment to ListActivity.goTo() method.
229 * src/main/java/org/glom/web/client/activity/ListActivity.java:
231 2011-05-24 Ben Konrath <ben@bagu.org>
233 Remove FIXME in convertGdkColorToHtmlColour()
235 The Gdk::Color value returned by libglom is 16-bits per channel on both
236 64 and 32-bit platforms.
238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
240 2011-05-19 Ben Konrath <ben@bagu.org>
242 Improve performance of initial ListView load.
244 I removed a round trip to the server for getting the default table name
245 and then requesting information about that table. This also removes a potential
246 problem with the table change handler not being setup in time to receive the
247 table change event from the ListActivity.
249 * src/main/java/org/glom/web/client/OnlineGlomService.java:
250 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
251 getDefaultLayoutListTable() method. Improve comments.
252 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
253 getDefaultLayoutListTable() method instead of firing a table change
254 event to get the table to load.
255 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
256 implementation of getDefaultLayoutListTable() method.
257 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
260 2011-05-19 Ben Konrath <ben@bagu.org>
262 Override toDebugString() in TableChangeEvent.
264 This is useful to have for debugging.
266 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
268 2011-05-19 Ben Konrath <ben@bagu.org>
270 Add a "Back to List" link when at the DetailsPlace.
272 * src/main/java/org/glom/web/client/activity/ListActivity.java:
273 Populate the CellTable based on the selected table of the ListBox if
274 it's set otherwise use the default table. This allows the "Back to
276 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
277 Remove Place from constructors. Add a setPlace() method. Add
278 goToPlace() method. Set class as presenter for TableSelectionView.
279 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
280 Use the same TableSelectionActivity when switching between the List and
282 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
283 Subclass the new HasSelectableTablePlace. This removes some duplicate
285 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
286 New class to represent Places that display the TableSelectionView.
287 * src/main/java/org/glom/web/client/place/ListPlace.java:
288 Subclass the new HasSelectableTablePlace. This removes some duplicate
290 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
291 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
292 Add Presenter interface. Add setBackLinkVisible() method. Add
293 setBackLink() method.
295 2011-05-18 Ben Konrath <ben@bagu.org>
297 Enable the "Details" buttons.
299 Right now only an empty details view is displayed.
301 * src/main/java/org/glom/web/client/ClientFactory.java:
302 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
303 Add DetailsView to ClientFactory.
304 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
305 A basic activity for the details view.
306 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
307 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
309 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
310 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
312 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
313 Create a new DetailsActivity when a DetailsPlace is requested. Remove
314 unnecessary super() in constructor.
315 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
316 Create a new TableSelectionActivity when a DetailsPlace is requested. We
317 really shouldn't create a new TableSelectionActivity for both the ListPlace
318 and the DetailsPlace so this should be considered a temporary solution.
319 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
320 New file. Represents a URL for the details view.
321 * src/main/java/org/glom/web/client/ui/DetailsView.java:
322 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
323 A basic details view interface and implementation.
324 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
325 Enable the "Details" buttons.
327 2011-05-12 Ben Konrath <ben@bagu.org>
329 Use a LayoutPanel with multiple display areas for main layout.
331 This is mostly a refactor in that there are no changes from the user
332 point of view. These changes are required so that we can swap out the list view
333 with the details view when the user clicks the "Details" button.
335 * src/main/java/org/glom/web/client/ClientFactory.java:
336 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
337 OnlineGlomView. Add TableSelectionView, ListView and
339 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
340 for main layout. Add display regions for main activities. Add
341 activity manager for for main activities.
342 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
343 file from parts of the deleted OnlineGlomActivity.
344 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
345 New file from parts of the deleted OnlineGlomActivity.
346 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
347 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
348 New files for app wide table change event.
349 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
350 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
351 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
352 Activity mappers for the main activities replace the deleted app-wide
354 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
355 Fix a spelling error in he comment.
356 * src/main/java/org/glom/web/client/ui/ListView.java:
357 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
358 Renamed from LayoutListView and modified for MVP. This still not a
359 proper dumb view as prescribed by the MVP pattern but it works for now.
360 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
361 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
362 New widget stripped out of the deleted OnlineGlomView.
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
364 Remove hack that is fixed by this patch.
366 2011-05-06 Ben Konrath <ben@bagu.org>
368 Rename OnlineGlomPlace to ListPlace.
370 The only change besides the rename is that url will now display #list
371 instead of #Document.
373 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
374 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
375 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
376 * src/main/java/org/glom/web/client/place/ListPlace.java:
377 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
379 2011-05-06 Ben Konrath <ben@bagu.org>
381 Use Presenter for app navigation.
383 This is the proper way to deal with Place (URL) changes with the MVP
386 * src/main/java/org/glom/web/client/ClientFactory.java:
387 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
388 PlaceHistoryMapper and PlaceHistoryHandler.
389 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
390 PlaceHistoryMapper and PlaceHistoryHandler.
391 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
392 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
393 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
394 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
395 Add Presenter interface and setPresenter methods. Rename addHyperLink
396 to addDocumentLink taking only the document title as a parameter.
398 2011-04-14 Ben Konrath <ben@bagu.org>
400 Prompt for db username/password if they haven't been set.
402 This is implemented with a popup widget that is contained within the
403 OnlineGlomView and managed by the OnlineGlomActivity.
405 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
406 methods for checking and setting the database username and password.
407 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
408 new methods for checking and setting the database username and
410 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
411 Display authentication popup if the JDBC connection to the database
412 has not been authenticated.
413 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
415 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
416 for dealing with the authentication popup.
417 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
418 Implement the methods for dealing with the authentication popup.
419 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
420 try to executed queries if the database connection hasn't been
421 authenticated. Implement methods for checking and setting the
422 database username and password.
424 2011-04-12 Ben Konrath <ben@bagu.org>
426 Make log messages a little clearer.
428 Add a dash betweeen the document title and the table name.
430 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
432 2011-04-12 Ben Konrath <ben@bagu.org>
434 Protect against NPEs when cleaning up database resources.
436 While this isn't strictly necessary because the exception is caught,
437 not protecting against the NPEs makes it harder to find the real error
440 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
442 2011-04-12 Ben Konrath <ben@bagu.org>
444 Move configuration of the servlet to the constructor.
446 The servlet will be initialized even if the database authentication
447 information is not set or correct. I still need to add the UI for prompting
448 the user for the authentication information when it's required.
450 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
451 javadocs for getDocumentTitles() method.
452 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
453 Set error message when RPC fails.
454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
455 glom files directory from the configuration file. Try to set the
456 database authentication information for the specific document if it's
457 set and works otherwise try to use the global authentication
458 information set for the directory.
459 * src/main/resources/onlineglom.properties: Moved from
460 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
461 Added detailed comments for the new keys.
463 2011-04-11 Ben Konrath <ben@bagu.org>
465 Remove unnecessary @Override in DocumentSelectionViewImpl.
467 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
469 2011-04-11 Ben Konrath <ben@bagu.org>
471 Remove center alignment in DocumentSelectionView.
473 The title element is still centred but the document titles and bottom
474 sentence are both left-aligned.
476 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
478 2011-04-11 Ben Konrath <ben@bagu.org>
480 Change 'Demo' naming convention to 'Document'.
482 This is just a rename refactor with no functional changes to the code.
484 * src/main/java/org/glom/web/client/ClientFactory.java:
485 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
486 * src/main/java/org/glom/web/client/OnlineGlom.java:
487 * src/main/java/org/glom/web/client/OnlineGlomService.java:
488 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
489 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
490 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
491 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
492 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
493 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
494 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
495 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
496 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
498 2011-04-08 Ben Konrath <ben@bagu.org>
500 Remove FIXME from safeLongToInt() method.
502 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
507 2011-04-08 Ben Konrath <ben@bagu.org>
509 Display an error if no glom documents are found in the specified directory.
511 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
512 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
513 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
516 2011-04-08 Ben Konrath <ben@bagu.org>
518 Add copyright header to one more file ... oops.
520 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
522 2011-04-08 Ben Konrath <ben@bagu.org>
524 Add copyright header to files without it.
526 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
527 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
528 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
529 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
530 * src/main/java/org/glom/web/shared/ColumnInfo.java:
531 * src/main/java/org/glom/web/shared/GlomField.java:
533 2011-04-08 Ben Konrath <ben@bagu.org>
535 Add support for accessing multiple glom documents in the servlet.
537 This completes the demo selection functionality.
539 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
540 document title to methods.
541 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
542 document title to methods.
543 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
544 Set browser window title when the activity starts. Correct name of
545 document title variable.
546 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
547 Set browser window title when the activity starts. Set the table
548 selector change handler after table selector has been set. Clear the
549 OnlineGlomView when the activity has been stopped.
550 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
551 document title as the place token. Use "#Document:" instead of
552 "#OnlineGlomPlace:" in the URL.
553 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
554 Change heading to "Online Glom"
555 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
556 document title in RPC methods.
557 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
558 setDocumentTitle() method. Add clear() method.
559 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
560 setDocumentTitle() method. Implement clear() method which removes the
561 change handler on the ListBox, clears the ListBox and clears the
563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
564 Implement methods with document title. Keep track for the configured
565 glom documents and their corresponding JDBC configurations in a hash
566 table. This information is retrieved using the document title as the
567 key in the hash table.
568 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
569 document title field as it's no longer needed.
571 2011-04-08 Ben Konrath <ben@bagu.org>
573 Update the Eclipse JDT configuration.
575 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
576 methods. Automatically add the copyright header to new files.
578 2011-04-05 Ben Konrath <ben@bagu.org>
580 Add new page for demo selection.
582 This patch adds all the components required to view and start an
583 OnlineGlom demo by clicking on the desired hyperlink. The user is
584 able to return to the demo selection page with the browser's back
585 button. I still need to modify the servlet to work with multiple
586 documents so all demo links will load the file defined in the
587 OnlineGlom.properties.
589 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
590 This is only useful during development so we don't need to save it.
591 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
592 get a reference to the DemoSelectionView.
593 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
594 method to get a reference to the DemoSelectionView.
595 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
596 default view to DemoSelectionView.
597 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
598 to get glom document titles for glom files in a hard-coded directory.
599 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
600 method to get glom document titles for glom files in a hard-coded
602 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
603 Presenter for DemoSelectionView.
604 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
605 for DemoSelectionView.
606 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
607 Update for DemoSelectionView.
608 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
609 Basic 'Place' implementation for the DemoSelectionView.
610 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
611 The interface for the DemoSelectionView.
612 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
613 The implementation of the DemoSelectionView.
614 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
615 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
617 implementation of method to get glom document titles for glom files
618 in a hard-coded directory.
619 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
620 on longer being used.
621 * src/main/webapp/glom.png: Glom logo.
623 2011-04-05 Ben Konrath <ben@bagu.org>
625 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
627 This is the forth and final commit of a refactor that will allow
628 OnlineGlom to be used with multiple documents.
630 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
631 Move RPC code from OnlineGlomViewImpl to this class.
632 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
634 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
635 RPC code to the presenter class (the P in MVP).
637 2011-04-04 Ben Konrath <ben@bagu.org>
639 Start moving the existing OnlineGlom code to MVP.
641 This work is based on the GWT MVP framework that is documented here:
643 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
645 This is the third commit of a refactor that will allow OnlineGlom to
646 be used with multiple documents.
648 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
649 Interface for client factory which is used to get instances of various
650 classes throughout the app.
651 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
652 Implementation of client factory.
653 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
654 initialize the MVP framework.
655 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
656 New file. Activity manager for the main container widget. This is the
658 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
659 Maps place (URL) to its corresponding activity.
660 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
661 New file. This is just a place holder for a generated file.
662 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
663 New file. Represents the URL for the main Online Glom app.
664 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
665 for changes in LayoutListViewImpl.
666 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
667 interface for View. Move code to OnlineGlomViewImpl class.
668 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
669 file. Implementation of OnlineGlomView.
670 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
671 Place resources. Use ClientFactoryImpl by default.
673 2011-04-04 Ben Konrath <ben@bagu.org>
675 Move View classes to their own package.
677 This is the second commit of a refactor that will allow OnlineGlom to
678 be used with multiple documents.
680 * src/main/java/org/glom/web/client/OnlineGlom.java:
681 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
682 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
684 2011-04-02 Ben Konrath <ben@bagu.org>
686 Move UI code from the main module to its own class.
688 This is the first commit of a refactor that will allow OnlineGlom to be
689 used with multiple documents.
691 * src/main/java/org/glom/web/client/LayoutListView.java: Update
692 references to OnlineGlom to OnlineGlomView.
693 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
694 OnlineGlomView and instantiate it here.
695 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
696 represents the main OnlineGlomView with one document.
698 2011-04-01 Ben Konrath <ben@bagu.org>
700 Fix formatting of gwt.xml and add DTD.
702 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
704 2011-03-30 Ben Konrath <ben@bagu.org>
706 Propperly convert gdkColor string to html colour string.
708 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
710 2011-03-28 Ben Konrath <ben@bagu.org>
712 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
714 This implementation matches
715 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
716 readable and is not tied to Swig.
718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
720 2011-03-28 Ben Konrath <ben@bagu.org>
722 Use read-only checkboxes for boolean field types.
724 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
725 in the CellTable based on the field type. It currently only
726 distinguishes between boolean and text columns but I'll need to add
727 support for more types.
728 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
729 column type in the ColumnInfo object. Add method to convert between the
730 glom field type enum in ColumnInfo and the glom field type in libglom.
731 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
733 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
734 getting and setting booleans.
736 2011-03-25 Ben Konrath <ben@bagu.org>
738 Don't get the Date twice from the ResultSet.
740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
742 2011-03-25 Ben Konrath <ben@bagu.org>
744 Cleanup code in the servlet.
746 * TODO: Remove item about row count. Add item about testing row count
747 query with large number of rows.
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
749 spelling mistakes, change method parameter to be consistent with
752 2011-03-25 Ben Konrath <ben@bagu.org>
754 Add server side logging with the gwt-log library.
756 * .gitignore: Ignore the log file we're now producing.
757 * TODO: Add a couple TODO item for logging.
758 * pom.xml: Add gwt-log and log4j as a dependency.
759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
760 logging of errors, warnings and some important info.
761 * src/main/resources/log4j.properties: New file to configure log4j.
763 2011-03-24 Ben Konrath <ben@bagu.org>
765 Add a disable button for the Details view.
767 * src/main/java/org/glom/web/client/LayoutListView.java:
769 2011-03-22 Ben Konrath <ben@bagu.org>
771 Use a count query to get the number of rows for the list view pager.
773 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
775 2011-03-22 Ben Konrath <ben@bagu.org>
777 Add more TODO information about CellTable pager positioning.
781 2011-03-19 Ben Konrath <ben@bagu.org>
783 Add TODO item about CellTable pager positioning.
787 2011-03-18 Ben Konrath <ben@bagu.org>
789 Remove unneeded GlomFieldColumn class.
791 This is just a small code cleanup.
793 * src/main/java/org/glom/web/client/LayoutListView.java:
795 2011-03-18 Ben Konrath <ben@bagu.org>
797 Use cursor mode in the query that gets data for the list view.
799 I still need to fix the potential memory problem when getting the row
800 count for the list view.
802 * TODO: Add note about testing memory usage with large data sets. Add
803 item about fixing row counting with large data sets.
804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
805 PostgreSQL JDBC driver into cursor mode when getting data for the
808 2011-03-15 Ben Konrath <ben@bagu.org>
810 Remove the GWT Container from the Eclipse build classpath.
812 The GWT dependencies are set by Maven so this isn't needed.
816 2011-03-15 Murray Cumming <murrayc@murrayc.com>
818 Added some earlier mockups to git, but not to the tarball dist.
820 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
821 Openismus. These hopefully show how we might structure the HTML so that
822 it can be styled easily with CSS. However, we probably need to adapt them
823 for the CSS structure that GWT dictates for common widgets.
825 2011-03-14 Ben Konrath <ben@bagu.org>
827 Locate OnlineGlom.properties using the ServletContext.
829 This is required to be able to locate the file in the deployed servlet.
831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
832 Configure the database and glom document in in a helper method so
833 that the ServletContext can be used to locate OnlineGlom.properties.
834 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
835 src/main/webapp. This is the proper location for .properites files.
837 2011-03-12 Ben Konrath <ben@bagu.org>
839 Add note to README about why we're compiling down to obfuscated JavaScript.
843 2011-03-11 Ben Konrath <ben@bagu.org>
845 Use properties file to configure servlet.
847 This allows people to change the glom file path, db username and db
848 password without recompiling the code.
850 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
851 * src/main/webapp/OnlineGlom.properties:
853 2011-03-11 Ben Konrath <ben@bagu.org>
855 Use table fields in layout list view if the layout list is not defined.
857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
858 Manually create a LayoutFieldVector for the query builder using the
859 table fields when a layout list is not defined in the glom file.
861 2011-03-11 Ben Konrath <ben@bagu.org>
863 Only show FIXME string for images when there's an image.
865 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
866 in this change are some small code cleanups.
868 2011-03-11 Ben Konrath <ben@bagu.org>
870 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
874 2011-03-11 Ben Konrath <ben@bagu.org>
876 Correctly set the index of the default table.
878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
879 Correctly set the index of the default table. Add commented out example
882 2011-03-10 Ben Konrath <ben@bagu.org>
884 Add comment to pom.xml about the previous change.
886 * pom.xml: Add comment about the deployment issue so that it's obvious
887 why java-libglom is set to the provided scope.
889 2011-03-10 Ben Konrath <ben@bagu.org>
891 Change java-libglom dependency from compile to provided in pom.xml.
893 Since java-libglom uses jni it can only be loaded once and therefore
894 must be placed in $CATALINA_HOME/lib and not included in each war.
895 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
896 More information about this issue can be found in the Tomcat 6 release
897 notes in the "JNI Based Applications" section:
899 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
901 * README: Remove note about this issue. Deployment info should really
902 be on the wiki anyway so I'll add it right now.
903 * pom.xml: Change java-libglom dependency from compile to provided so
904 that it's copied in to the packaged war.
906 2011-03-09 Ben Konrath <ben@bagu.org>
908 Change to using a neutral locale for currency, date and time formatting.
910 This solves the problem of currency values being represented without a
911 space between the currency code and the number (e.g. "EUR5.89" is now
912 represented as "EUR 5.89"). More work is required when we implement
913 a locale preference setting.
915 * TODO: Add note about currency formatting issues with different
917 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
918 to using the neutral ROOT locale.
920 2011-03-09 Ben Konrath <ben@bagu.org>
922 Add support for currency codes that are not ISO 4217 codes.
924 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
925 the currency code defined in the glom file when it's not 3 characters
926 long or when Java doesn't recognize the string as an ISO 4217 code.
928 2011-03-08 Ben Konrath <ben@bagu.org>
930 Remove test classes, launch configurations and configuration.
932 The test stuff was getting in the way when creating the war. To make
933 the war file you can now do 'mvn clean package'. The packaged war file
934 will be in the target directory.
936 * .classpath: Remove unused classpathentry for tests and i18n.
937 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
938 property. Don't run test or i18n goals when packaging the war.
939 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
944 * OnlineGlomTest-dev.launch:
945 * OnlineGlomTest-prod.launch:
946 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
947 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
949 2011-03-07 Ben Konrath <ben@bagu.org>
951 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
953 These fixes allow me to use 'mvn deploy' to create the war file.
955 * .classpath: This generated config has been updated by Eclipse. This
956 change was probably triggered by me updating from Eclipse 3.6.1 to
958 * .gitignore: Add entry to ignore the directory
959 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
960 * .project: The generated config has been updated by Eclipse. This
961 change was probably triggered by me updating from Eclipse 3.6.1 to
963 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
964 so that Eclipse doesn't complain
965 * pom.xml: Update to gwt-maven-plugin 2.2.0.
966 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
967 'tests' directory to 'client' directory. This is the new
968 gwt-maven-plugin convension.
969 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
970 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
972 2011-03-07 Ben Konrath <ben@bagu.org>
974 Add support for horizontal alignment in the LayoutList columns.
976 * TODO: Remove item about horizontal alignment. Add item about
977 improvements to ColumnInfo.
978 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
979 alignment on the columns. Use ColumnInfo RPC object get the column
980 title and horizontal alignment.
981 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
982 LayoutListView creation with ColumnInfo RPC object.
983 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
984 a ColumnInfo object for every LayoutList columnn. Convert the
985 FieldFormatting.HorizontalAlignment to the correct
986 ColumnnInfo.HorizontatlAlignment with the new
987 getColumnInfoHorizontalAlignment helper method.
988 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
989 to encapsulate column information like alignment and title. This
990 could be used to set the colour instead of on a per cell field basis.
991 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
992 column title storage and retrieval with ColumnInfo.
994 2011-03-04 Ben Konrath <ben@bagu.org>
996 Add support for column sorting.
998 * src/main/java/org/glom/web/client/LayoutListView.java: Change
999 AsynDataProvider to be an anonymous inner class. Use new
1000 getSortedTableData RPC method when column sort is requested. Set all
1001 columns sortable and add an AsyncHandler to activate sorting in the
1003 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1004 method getSortedTableData(). Cleanup other method signatures.
1005 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1006 new method getSortedTableData(). Cleanup other method signatures.
1007 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1008 Implement getSortedTableData() and getTableData() methods by using a
1009 private helper method with the appropriate parameters filled in. Use
1010 user supplied sort clause when supplied, otherwise fall back to
1011 sorting by the primary key. Move destroy() method to be underneath
1012 constructor for readability. Cleanup comments.
1014 2011-03-03 Ben Konrath <ben@bagu.org>
1016 Add support for colour text and colour backgrounds to the layout list cells.
1018 Only the cell backgrounds are coloured which leaves a gap between the
1019 cells that isn't coloured. I need to figure out a way to set
1020 'style=background-colour:' on the whole column rather than just the
1023 * TODO: Add a note about colouring the background of the whole column.
1024 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1025 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1026 render the coloured text and backgrounds. Use GlomField[] for the row type.
1027 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1029 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1030 GlomField[] for the row type.
1031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1032 GlomField[] for the row type. Set the text, text colour and background
1033 colour in the GlomField objects as specified in the glom document. Add
1034 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1035 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1036 the glom field text, foreground colour and background colour.
1038 2011-03-02 Ben Konrath <ben@bagu.org>
1040 Don't display hidden tables in the combo box.
1042 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1045 code to ignore hidden tables using ArrayLists for the table names and
1047 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1048 tableNames to use ArrayLists instead of String[]. Update getter and setter
1051 2011-03-01 Ben Konrath <ben@bagu.org>
1053 Add support for Date and Time number types.
1055 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1056 Implement formatting for Date and Time values. Change the default glom
1057 file to small business example.
1059 2011-03-01 Ben Konrath <ben@bagu.org>
1061 Add support for formatting glom types as specified in the glom file.
1063 Formatting isn't finished yet - I still need to add support for Date
1066 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1067 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1068 checks for null values in JDBC cleanup code and catch all exceptions
1069 instead of just SQLExceptions.
1070 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1073 2011-03-01 Ben Konrath <ben@bagu.org>
1075 Use GWT 2.2.0 instead of 2.1.1.
1077 * pom.xml: Change GWT version numbers.
1079 2011-03-01 Ben Konrath <ben@bagu.org>
1081 A few small code cleanups.
1083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1085 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1086 unnecessary object creation in constructor.
1087 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1088 unnecessary object creation in constructor.
1090 2011-02-28 Ben Konrath <ben@bagu.org>
1092 Add file for TODO list.
1096 2011-02-18 Ben Konrath <ben@bagu.org>
1098 Enable the CellTable Pager when more than 20 rows need to be viewed.
1100 The Pager will automatically become active when the results are larger
1101 than the CellTable size which is currently set to 20 lines.
1103 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1104 name on debug statment in RPC call in LayoutListDataProvider, add
1105 numRows parameter to LayoutListView constructor, propperly set rowCount
1107 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1108 name on debug statment in RPC call, use LayoutListTable object in RPC
1109 calls, pass rowCount to LayoutListView.
1110 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1111 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1113 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1114 interface for changes in OnlineGlomService.
1115 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1116 getLayoutListHeaders() to getLayoutListTable() and return
1117 LayoutListTable. Using this object allows me to pass other information
1118 about the LayoutList like the expected number of rows in the result set.
1119 The Connection object from the connection pool is now propperly closed.
1120 Only the requested number of lines are returned to the client in
1122 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1123 GlomTable and add columnTitles and numRows.
1125 2011-02-18 Ben Konrath <ben@bagu.org>
1127 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1129 This is a small performance boost. I'll use GlomTable to get the required
1130 layoutlist information.
1132 * src/main/java/org/glom/web/client/OnlineGlom.java:
1133 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1134 * src/main/java/org/glom/web/shared/GlomDocument.java:
1136 2011-02-18 Ben Konrath <ben@bagu.org>
1138 Add option to turn off formatting in JDT formatter preferences.
1140 * .settings/org.eclipse.jdt.core.prefs:
1142 2011-02-18 Ben Konrath <ben@bagu.org>
1144 Rename LayoutList to LayoutListView.
1146 I'm working towards setting things up to easily use MVP when the time
1149 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1151 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1154 2011-02-17 Ben Konrath <ben@bagu.org>
1156 Move LayoutListDataProvider class into LayoutList.java.
1158 * src/main/java/org/glom/web/client/LayoutList.java:
1160 2011-02-17 Ben Konrath <ben@bagu.org>
1162 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1164 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1166 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1167 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1168 from LibGlomServer.java.
1169 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1170 Rename from LibGlomServiceAsync.java.
1171 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1172 Rename from LibGlomServiceImpl.java.
1173 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1175 2011-02-17 Ben Konrath <ben@bagu.org>
1177 Update JDT settings.
1179 * .settings/org.eclipse.jdt.core.prefs:
1181 2011-02-17 Ben Konrath <ben@bagu.org>
1183 Move GWT-RPC objects to shared package (where they should be).
1185 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1186 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1187 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1188 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1189 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1190 org.glom.web.shared package.
1191 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1192 org.glom.web.shared package.
1193 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1194 directory in compilation to javascript.
1196 2011-02-16 Ben Konrath <ben@bagu.org>
1198 Add sort clause to the sql query that grabs table information.
1200 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1201 if one of the columns is a primary key.
1203 2011-02-16 Ben Konrath <ben@bagu.org>
1205 Disable generateAsync feature of gwt-maven.
1207 The generated interface does not correctly match the methods in LibGlomService
1208 and the generated singleton Util inner-class doesn't respect the servlet
1211 * pom.xml: Turn off generateAsync feature.
1212 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1213 with singleton Util inner-class.
1215 2011-02-14 Ben Konrath <ben@bagu.org>
1217 Add LGPL v3 licence notices.
1219 Followed directions listed here:
1220 http://www.gnu.org/licenses/gpl-howto.html
1222 * COPYING: This file is a copy of the GPL v3.
1223 * COPYING.LESSER: This file is a copy of the LGPL v3.
1224 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1226 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1228 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1230 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1232 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1234 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1236 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1239 2011-02-14 Ben Konrath <ben@bagu.org>
1241 Use ArrayList instead of Array in GWT-RPC calls.
1243 Apparently this gives a slight performance boost to the compiled
1246 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1248 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1251 2011-02-14 Ben Konrath <ben@bagu.org>
1253 Access data from a postgres db rather than the example glom file.
1255 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1256 compile down to obfuscated javascript.
1257 * pom.xml: Add c3p0 and postgres JDBC libraries.
1258 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1259 using a postgres db accessed through the c3p0 connection pooling library.
1261 2011-02-14 Ben Konrath <ben@bagu.org>
1263 Update Java formatter settings.
1265 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1267 2011-02-02 Ben Konrath <ben@bagu.org>
1269 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1271 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1273 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1274 the compiled webapp directory that Eclipse uses as we're using Maven now.
1275 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1276 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1278 * pom.xml: Format file, change target Java version to 1.6.
1280 2011-02-02 Ben Konrath <ben@bagu.org>
1282 Add information about a deployment related issue.
1284 * README: Add Notes section with the problem outlined.
1286 2011-02-02 Ben Konrath <ben@bagu.org>
1288 Call Glom.libglom_deinit() when the servlet is shutdown.
1290 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1291 Glom.libglom_deinit() to destroy() method.
1293 2011-01-28 Ben Konrath <ben@bagu.org>
1295 Use generated Util class to get the RPC Async interface.
1297 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1299 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1300 getInstance() method to get a reference to the RPC Async interface.
1301 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1302 getInstance() method to get a reference to the RPC Async interface, remove
1303 the now unused getLibGlomServiceProxy() method.
1305 2011-01-27 Ben Konrath <ben@bagu.org>
1307 Cleanup ChangeLog entry from previous commit.
1309 * ChangeLog: Group logical changes together and add comments.
1311 2011-01-25 Ben Konrath <ben@bagu.org>
1313 Convert to gwt-maven project.
1315 * .gitignore: Update for new project structure.
1316 * README: New file with a link to the online documentation.
1317 * pom.xml: The generated maven configuration file with some tweaks.
1319 Add / update Eclipse settings. These files are a merge of the files that
1320 were generated with the gwt-maven plugin and the files we were previously
1324 * .settings/.jsdtscope:
1325 * .settings/com.google.gdt.eclipse.core.prefs:
1326 * .settings/com.google.gwt.eclipse.core.prefs:
1327 * .settings/org.eclipse.jdt.core.prefs:
1328 * .settings/org.eclipse.wst.common.component:
1329 * .settings/org.eclipse.wst.common.project.facet.core.xml:
1330 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
1331 * .settings/org.maven.ide.eclipse.prefs:
1332 * OnlineGlomTest-dev.launch:
1333 * OnlineGlomTest-prod.launch:
1335 Java source files moved from the 'src' directory to the directory structure
1337 * src/main/java/org/glom/web/client/GlomDocument.java:
1338 * src/main/java/org/glom/web/client/GlomTable.java:
1339 * src/main/java/org/glom/web/client/LayoutList.java:
1340 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
1341 * src/main/java/org/glom/web/client/LibGlomService.java:
1342 * src/main/java/org/glom/web/client/OnlineGlom.java:
1343 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
1345 Non-functional property file used for translations. I included this as
1346 reminder that it's something I need to sort out.
1347 * src/main/resources/org/glom/web/client/Messages.properties:
1349 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
1350 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1352 The servlet configuration files moved from the 'war' directory.
1353 * src/main/webapp/OnlineGlom.css:
1354 * src/main/webapp/OnlineGlom.html:
1355 * src/main/webapp/WEB-INF/web.xml:
1357 Generated test files with most of the code commented out. I included these
1358 so that it's easy to add tests when we're ready for them.
1359 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
1360 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1362 2011-01-25 Ben Konrath <ben@bagu.org>
1364 Remove unused println.
1366 * src/org/glom/web/server/LibGlomServiceImpl.java:
1368 2011-01-25 Ben Konrath <ben@bagu.org>
1370 Add project specific JDT settings.
1372 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
1373 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
1375 2011-01-25 Ben Konrath <ben@bagu.org>
1377 Populate celltable with example data.
1379 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
1380 * src/org/glom/web/client/GlomTable.java: Correct formatting.
1381 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
1382 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
1383 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
1384 asynchronously gets the example data.
1385 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
1386 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
1387 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
1388 curently selected table to be retrieved by other widgets.
1389 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
1390 implement getTableData() in a hacky way. This method needs to be updated
1391 to grab information from the database when database creating is
1394 2011-01-20 Ben Konrath <ben@bagu.org>
1396 Set table headers when table dropBox changes.
1398 * src/org/glom/web/client/GlomDocument.java: Correct some method
1400 * src/org/glom/web/client/LibGlomService.java: Add method
1401 to get list layout field names.
1402 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
1403 to get list layout field names.
1404 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
1405 widget for list layout table.
1406 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
1407 the table drop box and add new updateTable() method to asynchronously
1408 get the layout list field names for the currently selected table.
1409 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
1410 implementation of getLayoutListHeaders() method.
1411 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
1413 2011-01-18 Ben Konrath <ben@bagu.org>
1415 Make a listBox with table titles instead of the flexTable demo.
1417 This is the start of something more useful.
1419 * .classpath: Exclude a bunch of packages from the JVM that are
1420 getting in the way of the Eclipse content assist.
1421 * src/org/glom/web/client/GlomDocument.java:
1422 * src/org/glom/web/client/GlomTable.java:
1423 * src/org/glom/web/client/LibGlomService.java:
1424 * src/org/glom/web/client/LibGlomServiceAsync.java:
1425 * src/org/glom/web/client/OnlineGlom.java:
1426 * src/org/glom/web/server/LibGlomServiceImpl.java:
1427 * war/OnlineGlom.html:
1428 * war/WEB-INF/web.xml:
1430 211-01-13 Ben Konrath <ben@bagu.org>
1432 Update to new java-libglom API.
1434 * .gitignore: Ignore OnlineGlom.war.
1435 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
1437 2010-12-20 Ben Konrath <ben@bagu.org>
1439 Add some basic style to the table listing.
1441 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
1442 header, print useful error message on async callback failure.
1443 * war/OnlineGlom.css: Add style for table header, remove defaults
1444 provided by the Eclipse project wizard.
1446 2010-12-20 Ben Konrath <ben@bagu.org>
1448 Load example file from installed glom dir.
1450 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
1451 provided by java-libglom to find the example file.
1453 2010-12-20 Ben Konrath <ben@bagu.org>
1455 Update Eclipse settings.
1458 * .settings/com.google.gdt.eclipse.core.prefs:
1459 * .settings/com.google.gwt.eclipse.core.prefs:
1461 2010-12-17 Ben Konrath <ben@bagu.org>
1465 * .classpath: New file.
1466 * .gitignore: New file.
1467 * .project: New file.
1468 * .settings/com.google.gdt.eclipse.core.prefs: New file.
1469 * .settings/com.google.gwt.eclipse.core.prefs: New file.
1470 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
1471 * src/org/glom/web/client/GlomTable.java: New file.
1472 * src/org/glom/web/client/OnlineGlom.java: New file.
1473 * src/org/glom/web/client/TableNameService.java: New file.
1474 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
1475 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
1476 * war/OnlineGlom.css: New file.
1477 * war/OnlineGlom.html: New file.
1478 * war/WEB-INF/web.xml: New file.
1479 * war/images/glom.png: New file.