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