1 2011-12-16 Murray Cumming <murrayc@murrayc.com>
3 Fix a Navgiation->Navigation typo in the code.
5 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
6 Rename processNavgiation() to processNavigation().
8 2011-12-16 Murray Cumming <murrayc@murrayc.com>
10 Fix a seperator->separator typo in the code.
12 * src/main/java/org/glom/web/client/place/DetailsPlace.java
13 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
14 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
17 2011-12-15 Ben Konrath <ben@bagu.org>
19 Cleanup some comments.
21 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
23 2011-12-14 Ben Konrath <ben@bagu.org>
25 Replace \n with <br/> for multiline text in the details view.
27 Vertical scrollbars are added when needed as well.
29 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
31 2011-12-14 Ben Konrath <ben@bagu.org>
33 Specify the font for document selection links.
35 * src/main/webapp/style.css:
37 2011-12-14 Ben Konrath <ben@bagu.org>
39 Fix bouncy CellTable while paging.
41 This doesn't currently work with related list tables in unselected
44 * src/main/java/org/glom/web/client/ui/list/ListTable.java
46 2011-12-14 Ben Konrath <ben@bagu.org>
48 Revamp the appearance of the document selection page.
50 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
51 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
52 * src/main/webapp/style.css:
54 2011-12-13 Ben Konrath <ben@bagu.org>
56 Set navigation button column to the smallest size possible.
58 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
60 2011-12-13 Ben Konrath <ben@bagu.org>
62 Change OpenButton nomenclature to NavigationButton.
64 Using NavigtionButton makes things more generic. Classes, methods and
65 variables have been changed.
67 This is a rename-only refactor.
69 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
70 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
71 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
72 Renamed from OpenButtonCell.
73 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
74 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
75 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
77 2011-12-12 Ben Konrath <ben@bagu.org>
79 Remove unnecessary String argument in RelatedListTable and ListViewTable.
81 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
82 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
83 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
84 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
86 2011-12-12 Ben Konrath <ben@bagu.org>
88 Update variable names and comments.
90 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
91 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
93 2011-12-12 Ben Konrath <ben@bagu.org>
95 Properly initialize numNonEmptyRows variable to zero.
97 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
98 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
100 2011-12-05 Ben Konrath <ben@bagu.org>
102 Add latest mockup with HTML tables.
104 Features of this mockup:
106 -> HTML table for flowtable
107 -> HTML table for flowtable column
108 -> Example of how related lists would look
109 -> Not using text entries for data items
111 The current version of Online Glom doesn't use HTML tables for the
114 This mockup has been sent to the glom-devel mailing list but it's good
115 to have it here as well.
117 * mockups/details-view-html-tables.html:
119 2011-12-05 Ben Konrath <ben@bagu.org>
121 Remove unnecessary getPrimaryKeyField() method.
123 getPrimaryKeyFieldForTable(String) has been renamed to
124 getPrimaryKeyField(String).
126 * src/main/java/org/glom/web/server/database/DBAccess.java:
127 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
128 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
130 2011-12-05 Ben Konrath <ben@bagu.org>
132 Add string representation of TypedDataItem value to conversion error message.
134 * src/main/java/org/glom/web/server/Utils.java: Logging the error
135 message was extracted into its own method to avoid duplication.
137 2011-12-05 Ben Konrath <ben@bagu.org>
139 Add type checking to navigation primary key value creation.
141 Create navigation primary key only if the expected type from the Glom
142 document matches the type returned by the SQL query.
144 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
146 2011-12-05 Ben Konrath <ben@bagu.org>
148 Rename a couple of variables in RelatedListNavigation.
150 This is a rename-only refactor.
152 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
154 2011-12-05 Ben Konrath <ben@bagu.org>
156 Move getListLayoutGroup() into getListViewLayoutGroup().
158 This removes getListLayoutGroup(). It was only being called by
159 getListViewLayoutGroup().
161 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
163 2011-12-05 Ben Konrath <ben@bagu.org>
165 Remove check for LayoutItem_Portal in list table method.
167 This check is no longer necessary because the method isn't being used
168 to create the LayoutItemPortal DTO.
170 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
172 2011-12-05 Ben Konrath <ben@bagu.org>
174 Properly support related list navigation.
176 Navigation from the "Repository Analyzer -> Package Scans ->
177 Dependencies" related table wasn't working because the primary key for
178 related tables wasn't being set properly. This commit fixes the
181 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
182 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
183 doesn't set the primary key properly for related list tables.
184 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
185 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
186 useful for getting the primary key for list view tables and for related
188 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
189 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
190 Move code to set the primary key for the table from the abstract
191 ListDBAccess class to ListViewDBAccess as it's only correct for list
193 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
194 Properly add primary key to related list tables.
196 2011-12-02 Ben Konrath <ben@bagu.org>
198 Properly set the horizontal alignment of fields.
200 This fix is for both the list tables and the details view.
202 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
203 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
204 to set the horizontal alignment of fields.
206 2011-12-02 Ben Konrath <ben@bagu.org>
208 Display currency codes in the details view.
210 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
212 2011-12-02 Ben Konrath <ben@bagu.org>
214 Avoid duplicate JNI call.
216 JNI is not as efficient as pure Java and this is an easy (and small)
219 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
220 Use previously retrieved value for whereClauseToTableName instead of
223 2011-12-02 Ben Konrath <ben@bagu.org>
225 Rename a couple of variables in RelatedListNavigation.
227 This is a rename-only refactor.
229 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
231 2011-12-02 Ben Konrath <ben@bagu.org>
233 Indicate clearly that a mismatched primary key type is a bug.
235 * src/main/java/org/glom/web/server/Utils.java: Change log level from
236 warning to error. Add 'This is a bug.' to message.
238 2011-12-02 Ben Konrath <ben@bagu.org>
240 Update / fix some comments.
242 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
244 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
246 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
247 Fix comments. Add some TODOs.
249 2011-12-02 Ben Konrath <ben@bagu.org>
251 Enable navigation to details view with string primary key from related list.
253 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
254 Create a text primary key value when return type of result is
255 java.sql.Types.VARCHAR.
257 2011-12-02 Ben Konrath <ben@bagu.org>
259 Use checkboxes for booleans in the details view.
261 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
263 2011-12-01 Ben Konrath <ben@bagu.org>
265 Improve performance of related list height calculation.
267 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
268 Put code to calculate the expected height in a static initializer so
269 that that it's only called once.
271 2011-12-01 Ben Konrath <ben@bagu.org>
273 Show related list tables in notebooks (again).
275 Calculate the height of the related list tables so the Notebook can be
276 set the correct height. The height of the related list table is also needed by
277 FlowTable to be able decide how to create the layout.
279 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
280 and set the Portal height based on the height of the related list
281 table and the Portal container.
282 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
283 Add method to calculate the height of the related list tables.
284 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
285 * src/main/webapp/style.css: Add css class for Pager. This is needed to
286 calculate the height of the Pager widget.
288 2011-12-01 Ben Konrath <ben@bagu.org>
290 Use CellTable API for table property instead of setting style on Element.
292 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
294 2011-12-01 Ben Konrath <ben@bagu.org>
296 Make ListViewTable and RelatedListTable a consistent height.
298 The tables are now a consistent height regardless of the contents of
299 the table. A hidden button is added to empty rows to ensure that the
300 height of these rows will match the height of rows with data.
302 A navigation button column is now added to every table. The width of
303 the navigation column is set to 0px when a RelatedListTable shouldn't
304 have navigation buttons. This maintains the a consistent row height in
305 tables that don't show the navigation buttons.
307 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
308 navigation column when not needed.
309 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
310 arguments for navigation button to constructor of ListViewTable.
311 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
312 hidden button for empty data rows.
313 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
314 arguments for navigation button to constructor.
315 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
316 create navigation buttons. Add hideNavigationButtons() method.
317 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
318 arguments for navigation button to constructor.
320 2011-12-01 Ben Konrath <ben@bagu.org>
322 Use 'visibility: hidden' in Utils.getWidgetHeight().
324 This is better choice because hidden elements are invisible, don't
325 respond to events and are not part of the tab order. They will,
326 however, take up space which is required to be able to calculate the
327 height of the widget.
329 * src/main/java/org/glom/web/client/Utils.java:
331 2011-12-01 Ben Konrath <ben@bagu.org>
333 Use Utils.getWidgetHeight() in FlowTable.
335 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
337 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
339 2011-12-01 Ben Konrath <ben@bagu.org>
341 Put the details css class name on the correct table column.
343 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
345 2011-11-30 Ben Konrath <ben@bagu.org>
347 Update for java-libglom API change.
349 The getters and setters on FieldFormatting and NumericFormat were
350 changed to remove the 'M'.
352 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
354 2011-11-29 Ben Konrath <ben@bagu.org>
356 Only allow RelatedListTables in Portals.
358 * src/main/java/org/glom/web/client/ui/details/Portal.java:
360 2011-11-29 Ben Konrath <ben@bagu.org>
362 Only create a contents panel for Portals when title is being set.
364 * src/main/java/org/glom/web/client/ui/details/Portal.java:
366 2011-11-29 Ben Konrath <ben@bagu.org>
368 Set TabLayoutPanel height based on calculated height its widgets.
370 This is a potential fix for this bug:
372 https://bugzilla.gnome.org/show_bug.cgi?id=665133
374 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
376 2011-11-29 Ben Konrath <ben@bagu.org>
378 Align details field labels and data with the Open buttons.
380 * src/main/webapp/style.css:
382 2011-11-29 Ben Konrath <ben@bagu.org>
384 Remove unnecessary <div> in the Notebook widget.
386 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
387 method to get container FlowPanel (<div>).
388 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
389 initWidget() method directly on the TabLayoutPanel widget instead of
390 Group's container widget.
392 2011-11-29 Ben Konrath <ben@bagu.org>
394 Don't add group titles for Portals in Notebooks.
396 This reverts the previous patch and fixes a bug I introduced with
397 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
399 * src/main/java/org/glom/web/client/ui/details/Group.java:
400 * src/main/java/org/glom/web/client/ui/details/Portal.java:
402 2011-11-28 Ben Konrath <ben@bagu.org>
404 Remove unused boolean argument in Portal constructor.
408 * src/main/java/org/glom/web/client/ui/details/Group.java:
409 * src/main/java/org/glom/web/client/ui/details/Portal.java:
411 2011-11-28 Ben Konrath <ben@bagu.org>
413 Remove hack for glom 1.18 style glom files.
415 * src/main/java/org/glom/web/client/ui/details/Group.java:
416 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
417 * src/main/java/org/glom/web/client/ui/details/Portal.java:
419 2011-11-28 Ben Konrath <ben@bagu.org>
421 Use Gda Value version of primary key to log result too large error.
423 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
425 2011-11-28 Ben Konrath <ben@bagu.org>
427 Don't use TypedDataItem.getText() for Unknown types from the URL.
429 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
430 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
431 instead of getText().
432 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
433 String field and getUnknown() method.
435 2011-11-28 Ben Konrath <ben@bagu.org>
437 Log an error message when the java-libglom .so is not present.
439 The error message was being set in the exception but not logged.
441 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
443 2011-11-28 Ben Konrath <ben@bagu.org>
445 Ignore LayoutItem_CalendarPortals.
447 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
448 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
450 2011-11-28 Ben Konrath <ben@bagu.org>
452 Extract method for creating the LayoutItemPortal DTO.
454 Just breaking the code up into smaller chunks.
456 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
458 2011-11-28 Ben Konrath <ben@bagu.org>
462 This should have been added with the refactor. Oops!
464 * src/main/java/org/glom/web/shared/TypedDataItem.java:
466 2011-11-28 Ben Konrath <ben@bagu.org>
468 Create primary key value from URL string using type from Glom document.
470 See this bug, comments 19 - 25:
472 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
474 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
475 create a TypeDataItem for the primary key here when loading from a
476 URL. Show the same string for the primary key value as was received
477 from the URL string (when loading from a URL).
478 * src/main/java/org/glom/web/server/Utils.java: Update method for
479 creating the Gda Value from the TypeDataItem to properly deal with
480 creating a Gda Value based on the Glom document type for the primary
481 key value string when loading from a URL.
482 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
483 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
484 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
485 Update for changed method name.
487 2011-11-27 Ben Konrath <ben@bagu.org>
489 Rename PrimaryKeyItem to TypedDataItem.
491 The name PrimaryKeyItem suggests what the class should be used for.
492 TypedDataItem is a neutral name that describes the class better.
494 This is a rename-only refactor.
496 * src/main/java/org/glom/web/client/OnlineGlomService.java:
497 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
498 * src/main/java/org/glom/web/client/Utils.java:
499 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
500 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
501 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
502 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
503 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
504 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
506 * src/main/java/org/glom/web/server/Utils.java:
507 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
508 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
509 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
510 * src/main/java/org/glom/web/shared/NavigationRecord.java:
512 2011-11-25 Ben Konrath <ben@bagu.org>
514 Improve Gda Value conversion from PrimaryKeyItem.
516 The value from the PrimaryKeyItem is only used if its type match the
517 type from the glom document.
519 * src/main/java/org/glom/web/server/Utils.java:
521 2011-11-25 Ben Konrath <ben@bagu.org>
523 Manually check if the java-liblgom .so is visible to the JVM.
525 It seems that Tomcat has problems when a static initializer throws an
526 exception. This check is done before the first method call into
527 java-libglom so that execution doesn't continue if the .so is not
530 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
532 2011-11-25 Ben Konrath <ben@bagu.org>
534 Improve browser configuration error messages.
538 https://bugzilla.gnome.org/show_bug.cgi?id=662792
540 * src/main/java/org/glom/web/client/OnlineGlomService.java:
541 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
542 getConfigurationErrorMessage() method.
543 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
544 Get and display a specific configuration error message when no Glom
546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
547 Implement getConfigurationErrorMessage() method. Surround configuration
548 code in the init() method with a try/catch block. This allows the
549 errors to be caught while keeping the servlet available to retrieve the
550 configuration error message.
552 2011-11-25 Ben Konrath <ben@bagu.org>
554 Don't use Strings to hold primary key values.
556 The primary key values are now held in a new data object
557 (PrimaryKeyItem) that holds type information and the primary key value
558 using the correct type.
560 * src/main/java/org/glom/web/client/OnlineGlomService.java:
561 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
563 PrimaryKeyItem instead of String to hold the primary key value.
564 * src/main/java/org/glom/web/client/Utils.java: Remove
565 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
566 PrimaryKeyItem based on the GlomFieldType and the DataItem.
567 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
568 PrimaryKeyItem instead of String to hold the primary key value. Load
569 document selection page when the documentID has not been set correctly.
570 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
571 DetailsPlace -> URL and URL -> DetailsPlace conversion with
573 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
574 Return empty string for URL instead of "null".
575 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
576 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
577 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
578 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
579 PrimaryKeyItem instead of String to hold primary key values.
580 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
581 PrimaryKeyValue to a Gda Value.
582 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
583 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
584 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
585 Replace temporary database access code that uses the PrimaryKeyValue to
586 Gda Value conversion.
587 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
588 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
589 PrimaryKeyItem instead of String.
590 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
591 hold primary key values.
593 2011-11-24 Ben Konrath <ben@bagu.org>
595 Use newly added java-libglom API to create queries.
597 This isn't finished. I still need to stop using Strings for primary key
598 values in the client code.
600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
601 libglom to use fake connections so that retrieving the query string will
603 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
604 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
605 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
606 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
607 Use the newly added libglom sql methods and classes to create the
608 query. Add temporary hack to convert primary value strings to Gda
611 2011-11-23 Ben Konrath <ben@bagu.org>
613 Don't explicitly set the height of Portals.
615 See comments 6 - 10 of this bug for details:
617 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
619 * src/main/java/org/glom/web/client/ui/details/Portal.java:
621 2011-11-23 Ben Konrath <ben@bagu.org>
623 Use an HTML table instead of CSS for the FlowTable layout.
625 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
626 GWT's FlexTable to implement the FlowTable.
627 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
629 2011-11-18 Ben Konrath <ben@bagu.org>
631 Add boolean example to HTML table mockup.
633 * mockups/details-view-html-tables-text-entries.html:
635 2011-11-17 Ben Konrath <ben@bagu.org>
637 Ensure the pager buttons are always visible for related lists.
639 To accomplish this, I've turned off text wrapping in the list view and
640 related list tables for both the header and data text. The related list
641 table now has a fixed layout so the it doesn't overflow its container.
642 This is required to ensure that the cell text is clipped when it
643 overflows the cell and an ellipsis is added to the right side of the
644 cell when text is clipped.
646 A fixed table layout for the related list table in the details view
647 seems what we want for the details view anyway, so the side-effect is
650 The ellipsis will only be displayed in Firefox >= 7.
654 https://bugzilla.gnome.org/show_bug.cgi?id=662930
656 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
657 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
658 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
660 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
661 Set the 'table-layout: fixed' CSS property to the related list table.
662 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
663 'white-space: nowrap;' CSS property on both the list view and the
666 2011-11-16 Ben Konrath <ben@bagu.org>
668 Rework the fix for empty notebook tab labels.
670 Setting the empty group titles with its name caused problems for the
671 details layout. Instead of using libglom's
672 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
673 to the client when the title is empty. This allows the Notebook to use
674 the name when the title is empty without affecting anything else.
676 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
677 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
679 2011-11-16 Ben Konrath <ben@bagu.org>
681 Set group titles with name when title is empty.
683 This fixes a problem with an empty notebook tab label in the Lesson
684 Planner document. The forth tab in the notebook should be "Internet":
686 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
688 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
689 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
692 2011-11-16 Ben Konrath <ben@bagu.org>
694 Remove whitespace from the configured username properties.
696 This assumes that usernames won't have whitespace at the beginning
697 or end. But I think this is a reasonable assumption.
699 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
700 String.trim() to remove the whitespace from the username properties.
702 2011-11-15 Ben Konrath <ben@bagu.org>
704 Add details view mockup with HTML tables and text entries.
706 This is from the attachment on this bug:
708 https://bugzilla.gnome.org/show_bug.cgi?id=663109
710 * mockups/details-view-html-tables-text-entries.html:
712 2011-11-15 Ben Konrath <ben@bagu.org>
714 Add space between the columns of the flow table.
718 https://bugzilla.gnome.org/show_bug.cgi?id=662918
720 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
721 space between columns in the flow table.
723 2011-11-15 Ben Konrath <ben@bagu.org>
725 Add backup files to the .gitignore.
727 * .gitignore: Ignore files that end with ~.
729 2011-11-09 Ben Konrath <ben@bagu.org>
731 Use latest release of gwt-log.
733 Gwt-log releases are now being submitted to the maven central
734 repository so manual installation of the jar is no longer required.
736 * pom.xml: Update version and groupId of gwt-log dependency.
738 2011-10-31 Ben Konrath <ben@bagu.org>
740 Don't use GWT numeric formatting to override the glom currency formatting.
742 Currencies are now displayed like they are in Glom. See this bug:
744 https://bugzilla.gnome.org/show_bug.cgi?id=646216
746 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
748 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
749 currency code to constructor and set it when the cell is rendered.
750 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
751 currency code to the constructor of the NumericCell.
753 2011-10-27 Ben Konrath <ben@bagu.org>
755 Require the latest release of java-libglom (1.17.4).
759 2011-10-26 Ben Konrath <ben@bagu.org>
761 Add style to Notebook that matches current theme.
763 It's not the best style in the world but it's better than the default.
765 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
766 padding at the bottom of the child widgets.
767 * src/main/webapp/style.css: Add style for the Notebook.
769 2011-10-26 Ben Konrath <ben@bagu.org>
771 Move servlet initialization code to overridden init method.
773 This is half of the solution to getting proper error messages
774 displayed when configuration errors occur. Here's the relevant bug:
776 https://bugzilla.gnome.org/show_bug.cgi?id=662792
778 The rest of the solution involves surrounding the init method with a
779 try/catch block and setting a global variable with the error /
780 exception. A new async method should be created to retrieve and display
781 the error message / exception.
783 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
784 code from constructor to init method adding exceptions as needed.
786 2011-10-26 Ben Konrath <ben@bagu.org>
788 Add script to monitor and restart tomcat if required.
790 * utils/check-and-recover-tomcat.py: New file.
792 2011-10-26 Ben Konrath <ben@bagu.org>
794 Display the correct number of data items in the pager.
798 https://bugzilla.gnome.org/show_bug.cgi?id=661441
800 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
801 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
802 The implementation is the same for both tables: Keep track of the
803 number of non-empty rows and fire and RowCountChangeEvent after the data has
805 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
806 custom Pager class that subclasses SimplePager to handle displaying
807 the correct number when empty rows have been added.
809 2011-10-26 Ben Konrath <ben@bagu.org>
811 Correct error in previous commit.
813 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
814 eventBus parameter from listView.setCellTable().
816 2011-10-26 Ben Konrath <ben@bagu.org>
818 Fix error in TODO comment.
820 * src/main/java/org/glom/web/client/activity/ListActivity.java:
822 2011-10-24 Ben Konrath <ben@bagu.org>
824 Create Notebook widgets to the details view.
826 This isn't finished just yet - I still need to create a reasonable
827 style to match the current theme.
829 * src/main/java/org/glom/web/client/Utils.java: Add method for
830 calculating the height of a widget. This is used in the Notebook class.
831 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
832 new constructor method in Group.
833 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
834 method for creating child widget that can be used by subclasses
835 like Notebook. New constructor that allows disabling the group
836 titles - Notebooks don't set a group title for their child groups.
837 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
838 to make Notebooks using GWT's TabLayoutPanel.
839 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
840 constructor that allows disabling the group titles.
841 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
842 LayoutItemNotebook DTO.
843 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
844 DTO for Notebooks. It's just an empty class for now but we might need
845 it to transfer some specific information in the future.
847 2011-10-21 Ben Konrath <ben@bagu.org>
849 Add navigation buttons to related list tables.
851 * src/main/java/org/glom/web/client/OnlineGlomService.java:
852 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
853 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
854 method getSuitableRecordToViewDetails() for getting the table name
855 and primary key value for related list navigation buttons.
856 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
857 private cell renderer class to get the navigation information for
858 related list tables from the server. Extract the navigation
859 processing code from the details cell navigation and use it for the
860 related list navigation as well.
861 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
862 cell renderer class for the details open buttons. This was needed
863 because the related list navigation buttons and the list view
864 navigation buttons need to react differently when clicked.
865 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
866 the onEnterKeyDown() method because it's now overriden in the
867 subclasses that are specific to the related list tables and the list
869 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
870 the vertical size a little because the buttons add a bit of vertical
871 space to table. This is not a perfect solution because the vertical
872 size of with table fewer than 5 rows will be a little smaller.
873 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
874 changes in how navigation buttons are handled.
875 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
876 getSuitableRecordToViewDetails() using the new RelatedListNavigation
877 database access object.
878 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
879 to find the portal for a given relationship name from
880 RelatedListDBAccess. Add method to find a primary key field for a
882 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
883 Move code to find the portal for a given relationship name to
885 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
886 New file: database access object for getting the related list
887 navigation information (the table name and the primary key value).
888 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
889 DTO for transferring a table name to navigate to and a primary key
891 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
892 boolean and getter/setter to specifies if the related list should add
895 2011-10-24 Murray Cumming <murrayc@murrayc.com>
897 Use the master branch of java-libglom
899 * pom.xml: Depend on java-libglom 1.19 instead.
901 This is the master branch. See also the libglom-1-18 branch.
903 2011-10-11 Ben Konrath <ben@bagu.org>
905 Enable the open navigation button when the data has been set.
907 This avoids having active buttons that don't do anything when the data
910 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
912 2011-10-11 Ben Konrath <ben@bagu.org>
914 Use IsWidget interface for FlowTableItem.
916 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
917 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
919 2011-10-11 Ben Konrath <ben@bagu.org>
921 Remove GWT styling from open button in details view.
923 There are still some issues with how the details cell is arranged but
924 this should be made to match Glom 1.20. I'm going to leave fixing this
925 until I have Glom 1.20 up and running.
927 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
928 style name on open button.
929 * src/main/webapp/style.css: Move and edit details-navigation class.
930 Re-arrange some classes to make them appear in the same order as the
933 2011-10-07 Ben Konrath <ben@bagu.org>
937 * .gitignore: Ignore new cache directory.
938 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
939 * pom.xml: Change GWT and maven plugin to 2.4.0.
940 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
942 * src/main/java/org/glom/web/client/ClientFactory.java:
943 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
944 * src/main/java/org/glom/web/client/OnlineGlom.java:
945 Update source for API changes.
946 * utils/build-onlineglom-war.sh: Remove cache directory before the
949 2011-10-07 Ben Konrath <ben@bagu.org>
951 Add navigation buttons in the details view.
953 This isn't finished but I thought I'd commit what I have as it's a
954 pretty good start. I still need to:
956 1. Change the style so that it fits better into the current theme
957 2. Adjust the details cell to expand as much as possible.
959 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
960 click handlers to navigation buttons in the DetailsCells. Create a
961 refreshData() method to get just the data from the server without the
963 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
964 Update the tableSelector and browser title when the table name
965 changes without using the tableSelector.
966 * src/main/java/org/glom/web/client/ui/DetailsView.java:
967 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
968 getDetailsCells() to getCells(). Update variable names.
969 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
970 method to set click handler on navigation button. Rename a few
971 variables. Add navigation buttons where needed.
972 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
973 variables and methods.
974 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
975 navigation boolean and navigation table as required in the
977 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
978 variables for navigation along with getter/setter methods.
980 2011-10-07 Ben Konrath <ben@bagu.org>
982 Rename Field to DetailsCell.
984 This is a refactor-only commit. No functionality has been added or
987 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
988 Update variable and method names.
989 * src/main/java/org/glom/web/client/ui/DetailsView.java:
990 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
991 variable and method names.
992 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
994 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
995 variable and method names.
997 2011-10-07 Ben Konrath <ben@bagu.org>
999 Create separate methods for layout and data the details view.
1001 This is a refactor-only commit. No functionality has been added or
1004 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
1005 private methods: setData(), createLayout().
1007 2011-10-07 Ben Konrath <ben@bagu.org>
1009 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
1011 This is part of a change to get navigation buttons in the details view
1012 but it should have been done this way from the start.
1014 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1015 for method name change in TableSelectionView.
1016 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1017 Create TableChangeEvent and set the browser title using the
1018 TableSelectionView API.
1019 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1020 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1021 Change getSelectedTable() to getSelectedTableName(). Add
1022 getSelectedTableTitle().
1024 2011-10-07 Ben Konrath <ben@bagu.org>
1026 Use primaryKeyValue naming convention in constructor of DetailsPlace.
1028 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1030 2011-10-07 Ben Konrath <ben@bagu.org>
1032 Update TableChangeEvent to use newTableName naming convention.
1034 This makes the class more consistent with GWT naming conventions.
1036 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1037 Update for method name change in TableChangeEvent.
1038 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1039 for method name change in TableChangeEvent.
1040 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1041 newTableName variable and getter method. Make toDebugString()
1044 2011-09-30 Ben Konrath <ben@bagu.org>
1046 Disable the pager in the list tables when the data row count is less than the minimum.
1048 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1049 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1051 2011-09-30 Ben Konrath <ben@bagu.org>
1053 Add empty rows to the end of related list and list view tables.
1055 I also extracted the cell rendering classes from the ListTable because
1056 the code was becoming a little crazy with all the anonymous inner
1057 classes. My plan is to use these cell rendering classes in the details
1058 view as well so this refactor will be needed for that change.
1060 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1061 set the row count in related list tables if the data has more rows
1062 than the minimum number of rows visible.
1063 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1064 row count in list view tables if the data has more rows than the
1065 minimum number of rows visible.
1066 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1067 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1069 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1070 for rendering TYPE_NUMERIC cells. The code was extracted from the
1072 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1073 class for rendering cells with buttons in list views. The code was
1074 extracted from the ListTable class.
1075 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1076 for rendering TYPE_TEXT cells. The code was extracted from the
1078 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1079 Add empty rows to the end of the data if required. Implement
1080 ListTable.getMinNumVisibleRows().
1081 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1082 cell renderer code to public classes. Return null in
1083 Column.getValue() for empty rows. Add new abstract method:
1084 getMinNumVisibleRows(). Move code to set the row count of the list view
1085 table to ListViewImpl.
1086 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1087 empty rows to the end of the data if required. Implement
1088 ListTable.getMinNumVisibleRows().
1091 2011-09-27 Ben Konrath <ben@bagu.org>
1093 Use GWT.log for client-side debugging statements.
1095 These are optimized out when deployed so I should have used this method
1096 in the first place. These statements will eventually be replaced with some sort
1097 of notification in the browser.
1099 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1100 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1101 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1102 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1103 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1105 2011-09-27 Ben Konrath <ben@bagu.org>
1107 Put tableselector on the right, back to list link on right.
1109 The idea is that the table selector is acting like a label for the
1110 currently displayed table so it should be placed below the document title. This
1111 puts the table title in a similar position to where it is in Glom.
1113 * mockups/details-contacts.html:
1114 * mockups/details-projects.html:
1115 * mockups/listview-contacts.html:
1116 * mockups/listview-projects.html:
1117 * mockups/style.css:
1118 Update mockups to match how the interfaces currently look.
1119 * src/main/webapp/style.css: Swap positions of backlink with the table
1120 selector. Add some space on the left side of the table selector to
1121 line things up with the document title.
1123 2011-09-27 Ben Konrath <ben@bagu.org>
1125 Add field colouring to details view.
1127 This change re-works how field colouring works. The colour formatting
1128 information is now set to the client with the layout information instead of
1129 with the data. This eliminates the need to send the same colour strings for
1130 data in list view column when colour information is set.
1132 In order to set an alternate colour for negative numeric values, the
1133 number is now sent to client and formatted with the GWT NumberFormat class.
1135 This change also fixes:
1137 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1139 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1140 internationalization framework which is needed for client side numeric
1142 * src/main/java/org/glom/web/client/Utils.java: New file for some
1143 client static utility methods.
1144 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1145 the DataItem object to the Field class. Use a utility method to
1146 create the foreignKeyValue string.
1147 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1148 alignment and text colours in the constructor. Add setData(DataItem)
1149 method. Remove setText(String) method.
1150 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1151 colour information to GlomTextCell. Create and use GlomNumberCell for
1152 rendering numbers. Use utility method to get the string for the
1153 primary key of the key provider. Re-work how the horizontal alignment
1155 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1156 formatting to layout information. Methods for converting the libglom
1157 formatting information were moved from DBAccess.
1158 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1159 numeric formatting (it's now done on the client side). Don't set text
1160 colours in DataItem. Move libglom formatting conversion methods to
1162 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1163 getters/setters for text colour information.
1164 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1165 for transferring the libglom NumericFormat information to the client.
1166 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1167 and getters/setters for: GlomNumericFormat, background colour and
1168 foreground colour strings.
1170 2011-09-26 Ben Konrath <ben@bagu.org>
1172 Simplify code that iterates through the LayoutGroup.
1174 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1176 2011-09-26 Ben Konrath <ben@bagu.org>
1178 Accept Eclipse formatting for OnlineGlomServiceAsync.
1180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1182 2011-09-26 Ben Konrath <ben@bagu.org>
1184 Don't use the ListDBAccess classes to get the primary key layout information.
1186 This was causing a bug where the wrong index for the hidden primary key
1187 was being sent to the client.
1189 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1190 primary key while creating the LayoutGroup DTO. Create a
1191 LayoutItemField DTO for hidden primary keys. Don't use the
1192 RelatedListDBAccess because it was only used for getting the primary
1194 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1195 access modifier from public to protected for getPrimaryKeyField() and
1196 getPrimaryKeyLayoutItemField().
1197 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1198 abstract method getExpectedResultSize() because RelatedListDBAccess
1199 doesn't have enough info to implement it.
1200 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1201 Remove @Override for getExpectedResultSize().
1202 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1203 Remove method getExpectedResultSize().
1205 2011-09-23 Ben Konrath <ben@bagu.org>
1207 Log which layout (list or details) the ignored item is from.
1209 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1211 2011-09-23 Ben Konrath <ben@bagu.org>
1213 Remove annotations that turn off code formatting in DataItem.
1215 * src/main/java/org/glom/web/shared/DataItem.java:
1217 2011-09-23 Ben Konrath <ben@bagu.org>
1219 Rename GlomField to DataItem and update associated methods.
1221 This is a rename-only refactor. No functionality has been added or
1224 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1225 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1226 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1227 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1228 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1229 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1230 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1231 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1232 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1233 * src/main/java/org/glom/web/server/database/DBAccess.java:
1234 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1235 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1236 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1237 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1238 * src/main/java/org/glom/web/shared/DataItem.java:
1239 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1240 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1242 2011-09-23 Ben Konrath <ben@bagu.org>
1244 Rename GlomDocument to DocumentInfo and update associated methods.
1246 This is a rename-only refactor. No functionality has been added or
1249 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1250 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1251 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1252 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1253 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1255 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1257 2011-09-20 Ben Konrath <ben@bagu.org>
1259 Require java-libglom 1.17.3.
1261 This picks up the fix for the seg fault problem with the Scenes table
1262 in the Openismus Film Manager example.
1266 2011-09-20 Ben Konrath <ben@bagu.org>
1268 Change the way sort clause is added for primary key when no sort clause is requested.
1270 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1271 before the sort clause is created. When a sort clause is not requested, the
1272 sort clause is created by finding the primary key in the LayoutFieldVector
1275 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1277 2011-09-20 Ben Konrath <ben@bagu.org>
1279 Log error message if no documents are found in the configured directory.
1281 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1282 Extract the glom file extension string to a private static final class
1283 variable (mostly as syntactic sugar). Accept a minor formatting change.
1284 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1285 the example glom.document.directory configuration property to make it
1286 more clear that it can any directory, not just the home directory.
1288 2011-09-18 Ben Konrath <ben@bagu.org>
1290 Add related lists to details view.
1292 The related list table has support for paging and sorting just like the
1293 table in the list view.
1295 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1296 SQL queries for the related list tables.
1297 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1298 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1300 Rename getList methods to getListView and add comments. Remove
1301 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1302 it being unused. Add methods: getDetailsLayoutAndData(),
1303 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1304 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1305 Create the layout and set the data for the fields in one async call
1306 instead of two. Create related lists where appropriate.
1307 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1308 for method name changes in OnlineGlomService.
1309 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1310 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1311 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1313 * src/main/java/org/glom/web/client/ui/ListView.java:
1314 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1315 tableName from setCellTable(). Create a ListViewTable instead of
1317 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1318 represent a data field in the details view.
1319 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1320 from addDetailsCell() to Field class. Keep track of the Fields and
1321 Portals in the details view.
1322 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1323 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1324 and add a method to get it. Add method to set the contents of the
1326 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1327 New class for related list tables. This class has the data provider
1328 for the related list table.
1329 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1330 abstract class which is the base class for the ListViewTable and the
1332 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1333 New class for list view tables. This class has the data provider for
1334 the list view table.
1335 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1336 methods for related list tables. Add more information to the
1337 LayoutItemField and LayoutItemPortal DTOs.
1338 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1339 Remove debugging print statement.
1340 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1341 Remove debugging print statements. Add primary key field to SQL count
1343 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1344 Remove unnecessary LayoutFieldVector parameter from
1345 getResultSizeOfSQLQuery() method.
1346 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1347 New class for related list table database access.
1348 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1349 class that is a wrapper DTO for details view layout and data.
1350 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1351 new 'fromField' string to this DTO.
1352 * src/main/webapp/style.css: Remove bottom margin and override top
1355 2011-09-15 Ben Konrath <ben@bagu.org>
1357 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1359 This sets things up to make it easier to add the data retrieval for
1360 related lists (portals). No user noticeable changes were made with
1363 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1364 class has the code to retrieve the layouts and access the
1365 database using the new database helper classes.
1366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1367 Most of the functionality has been removed from this class. This
1368 class now represents the public interface for the client side
1369 code. It also deals with configuring the servlet and cleaning
1370 things up when the servlet is stopped.
1371 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1372 of static methods into this utility class.
1373 * src/main/java/org/glom/web/server/database/DBAccess.java:
1374 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1375 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1376 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1377 These classes have the database retrieval code. The class hierarchy
1378 has been setup to make it easy to reuse code for similar
1381 2011-09-06 Ben Konrath <ben@bagu.org>
1383 Create separate classes for list table code and the data provider.
1385 As part of this refactor, I also split up the code a bit to make it
1388 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1389 table code to two new classes (below).
1390 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1391 with code from ListViewImpl.
1392 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1393 New file with code from ListViewImpl.
1395 2011-09-06 Ben Konrath <ben@bagu.org>
1397 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1399 This fixes the LayoutItemPortal DTO to match the libglom layout object
1402 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1404 2011-09-01 Ben Konrath <ben@bagu.org>
1406 Set title of Portals in the Details View.
1408 * pom.xml: Bump required version of java-libglom to 1.17.1.
1409 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1410 widget creation to its own class. Add comments to constructor.
1411 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1412 The code is mostly from the Group class with the title now set.
1413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1414 title of Portal. Update some comments. Fix some code formatting.
1416 2011-09-01 Ben Konrath <ben@bagu.org>
1418 Remove TODO comment for the flow table column width.
1420 The flow table column width is working correctly and doesn't need to be
1421 changed. See this mailing list post for more info:
1423 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1425 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1427 2011-08-27 Ben Konrath <ben@bagu.org>
1429 Add document title (database name) to top of the browser page.
1431 I added the document title to the TableSelecitonView but that will
1432 change if / when we add a view that doesn't require table selection.
1434 * mockups/details-contacts.html:
1435 * mockups/details-projects.html:
1436 * mockups/listview-contacts.html:
1437 * mockups/listview-projects.html:
1438 * mockups/style.css: Add document title to mockups to keep things
1440 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1441 sizes to account for the document title.
1442 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1443 Set the document title when it has been retrieved from the server.
1444 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1445 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1446 and implement setDocumentTitle(String) method.
1447 * src/main/webapp/style.css: Add ID for document title style.
1449 2011-08-25 Ben Konrath <ben@bagu.org>
1451 Add NavigationType enum to LayoutItemPortal DTO.
1453 This is the start of adding support for Portals to the Details View.
1455 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1456 LayoutItem_Portal.navigation_type enum from libglom to
1457 LayoutItemPortal.NavigationType enum.
1458 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1459 NavigationType enum, field for storing the NavigationType and getter
1462 2011-08-25 Ben Konrath <ben@bagu.org>
1464 Implement the flow table layout in the Details View.
1466 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1467 FlowTable to Group to account for the renamed class.
1468 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1469 File. This is a container widget that implements the Glom details view
1470 flow table behaviour.
1471 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1472 org/glom/web/client/ui/FlowTable.java.
1473 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1474 so that the size of the subgroups are a closer match to the size of
1475 the Glom subgroups. This makes the flowtable layout match the layout
1476 in Glom for the Music Collection example file.
1478 2011-08-16 Ben Konrath <ben@bagu.org>
1480 Create container element for LayoutItemPortal in Details View.
1482 This will help me develop the layout for the FlowTable.
1484 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1485 fieldPanel variable to detailsCell.
1487 2011-08-15 Ben Konrath <ben@bagu.org>
1489 Set the height of the data element in the Details View.
1491 I changed the InlineLabels (text in a span element) to Labels (text in
1492 a div element) so that I could set the height of the details-data
1493 elements instead of the details-cell parent elements. This allows the
1494 the details-data element to display the correct height if style is
1495 applied that shows the height.
1497 This change has the added benefit of allowing the order of the labels
1498 and data elements to be changed for right-to-left languages.
1500 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1501 InlineLabels to Labels.
1502 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1503 InlineLabels to Labels. Set the height of the data element.
1504 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1505 multiline text height in the Formatting DTO.
1506 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1507 for multiline height along with getter and setter methods.
1508 * src/main/webapp/style.css: Adjust style to account for the change
1509 from span elements to div elements in the details cell.
1511 2011-08-15 Ben Konrath <ben@bagu.org>
1513 Make the List View appearance match the mockups.
1515 It doesn't match exactly but it's much better than it was.
1517 * mockups/listview-contacts.html: Remove unused css classes.
1518 * mockups/listview-projects.html: Remove unused css classes.
1519 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1520 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1521 for mainPanel instead of VerticalPanel (table). Set style name on
1522 CellTable. Set style name on Details column. Right-align Details
1524 * src/main/webapp/style.css: Adjust properties to match the mockups.
1526 2011-08-12 Ben Konrath <ben@bagu.org>
1528 Add better support for subgroups in the details view.
1530 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1531 changed FlowTable constructor.
1532 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1533 support for subgroups and subgroup-titles.
1534 * src/main/webapp/style.css: Add CSS class for subgroups and
1537 2011-08-12 Ben Konrath <ben@bagu.org>
1539 Return the top level LayoutGroup title.
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1543 2011-08-11 Ben Konrath <ben@bagu.org>
1545 Make the TableSelector header match the mockup.
1547 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1548 the layout panel. Properly lineup the table selection header with
1549 the list and details view.
1550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1551 margin around the details view.
1552 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1553 Rename listBox variable to tableSelector. Set id for the style sheet.
1554 Use a FlowPanel instead of a HorizontalPanel.
1555 * src/main/webapp/style.css: Add properties to make the TableSelector
1556 box match the mockups.
1558 2011-07-13 Ben Konrath <ben@bagu.org>
1560 Update install script for java-libglom version change.
1562 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1565 2011-07-13 Ben Konrath <ben@bagu.org>
1567 Add support sub-group in the details view.
1569 I also removed the code that special-cased the default details view
1572 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1574 I still have to make a proper flowtable.
1576 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1577 Don't special-case default details view layout.
1578 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1579 addLayoutField() as I'm going to use it.
1580 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1581 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1583 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1584 extracted from DetailsViewImpl.GroupPanel. Add support for
1586 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1587 column count when getting the details layout.
1589 2011-07-12 Ben Konrath <ben@bagu.org>
1591 Set browser title with database and table titles.
1593 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1594 Set the browser title when the table changes and when the activity
1596 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1597 title when retrieving document info (the GlomDocument object).
1598 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1599 with getter and setter methods. Remove unused convenience constructor.
1600 Use default code formatting.
1602 2011-07-12 Ben Konrath <ben@bagu.org>
1604 Ignore LayoutItemPortals in the details view.
1606 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1609 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1610 LayoutItemPortal layout objects.
1611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1612 LayoutItemPortal objects when retrieving the details layout.
1613 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1614 file. This is an empty class and just used to get type information for
1617 2011-07-12 Ben Konrath <ben@bagu.org>
1619 Use java-libglom 1.17.0.
1623 2011-07-11 Ben Konrath <ben@bagu.org>
1625 Remove "Table:" label from table selector.
1627 This matches a recent change in the Glom UI.
1629 * mockups/details-contacts.html:
1630 * mockups/details-projects.html:
1631 * mockups/listview-contacts.html:
1632 * mockups/listview-projects.html: Remove the "Table:" label from the
1634 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1636 2011-07-11 Ben Konrath <ben@bagu.org>
1638 Add main groups to the details view.
1640 This makes things look a little nicer in the details view. The next step
1641 is to implement the flowtable.
1643 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1644 resources from the standard gwt css theme. Standard.css is now
1645 included in OnlineGlom.html so that the online glom css rules have
1646 precedence over the gwt theme.
1647 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1648 the whole LayoutGroup to the DetailsView instead of just the titles.
1649 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1650 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1651 details layout with a helper class (GroupPanel). I might extract this
1652 class when I make the full flowtable.
1653 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1654 string as default so I don't have to worry about NPEs when processing
1656 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1657 note beside OnlineGlom.gwt.xml above).
1658 * src/main/webapp/style.css: Add default font-size to body to override
1659 the font-size set by the standard theme. Don't use h2 tags for
1660 group-title. Create new details-cell class.
1662 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1664 ConfiguredDocument: Set the port number too.
1666 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1667 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1668 Glom document. Presumably this worked sometimes so far because there is a
1669 default port number.
1671 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1673 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1675 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1676 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1677 correct, though we should throw an exception too.
1679 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1681 Fix a addDocuemnt typo.
1683 * src/main/java/org/glom/web/shared/Documents.java
1684 (Documents.addDocuemnt): Rename to addDocument().
1685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1686 (OnlineGlomServiceImpl.getDocuments): Adapt.
1688 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1690 Slightly improved log output when connection fails.
1692 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1693 (ConfiguredDocument.setUsernameAndPassword):
1694 We don't know for sure if it' the username/password that's wrong, so
1695 rephrase the message.
1696 Also ouput the exception message, though it's generic in this case.
1698 2011-07-08 Ben Konrath <ben@bagu.org>
1702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1703 added braces to a one line if statement because the Eclipse formatter
1704 was getting confused.
1706 2011-07-07 Ben Konrath <ben@bagu.org>
1708 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1710 These should really be two separate tasks but I counldn't get things to
1711 work with GWT 2.2.0 and Eclipse 3.7.
1715 * .settings/org.eclipse.jdt.core.prefs:
1716 * .settings/org.eclipse.jdt.ui.prefs:
1717 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1718 * .settings/org.eclipse.m2e.core.prefs:
1719 Add new config files. Update current files. Remove references to the
1720 webtools plugins as we're not using any of the webtools features.
1721 * .gitignore: Add logs directory which is created when running with
1723 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1724 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1725 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1727 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1729 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1731 onlineglom.properties: Add explanatory comments.
1733 * src/main/resources/onlineglom.properties: Also change the default user
1734 from ben to someuser, to avoid the risk of people thinking we just
1735 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1737 2011-06-28 Ben Konrath <ben@bagu.org>
1739 Use filename in Log for incorrect passwords.
1741 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1742 getFileName(String) method to get the filename from the URI.
1744 2011-06-28 Ben Konrath <ben@bagu.org>
1746 Add the table name to the URL token for the ListPlace.
1748 This makes things consistent between the DetailsPlace and the
1749 ListPlace. It also allows the the ListPlace to be bookmarked.
1751 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1752 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1754 Remove getDefaultListLayout(). The default layout is now returned
1755 by the getListLayout() method when the table name is an empty string.
1756 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1757 Add table name field. Change to a new ListPlace when the table
1758 has been changed. Use getListLayout() for getting the default
1760 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1761 Add table name field. Set the correct table name in the list box
1762 when loading from bookmark. This corrects a problem for the
1764 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1765 Move table name to super-class (HasSelectableTable). Move document
1766 and table URL keys to super-class in HasSelectableTable.
1767 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1768 Add table name field. Add Tokenizer class with URL key common to
1769 the subclasses (DetailsPlace and ListPlace).
1770 * src/main/java/org/glom/web/client/place/ListPlace.java:
1771 Add table name. Add code to parse the URL token.
1772 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1773 Update ListPlace construction with empty table name string.
1774 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1775 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1776 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1777 Update ListPlace construction with table name string.
1778 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1779 Change defaultTableName field to tableName to reflect how it's now
1780 used. Update the getter and setter methods.
1782 2011-06-28 Ben Konrath <ben@bagu.org>
1784 Enable the table selector in the DetailsView.
1786 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1787 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1789 Remove getDefaultDetailsLayout(). The default layout is now returned
1790 by the getDetailsLayout() method when the table name is an empty
1792 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1793 event handler for table change event. Change to using
1794 getDetailsLayout() for the default details layout.
1795 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1797 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1798 when navigating to the details place.
1800 2011-06-27 Ben Konrath <ben@bagu.org>
1802 Use filename based unique document ID in URL and for RPC.
1804 The document ID is the glom document name with spaces (' ') replaced
1805 with pluses ('+') and without the .glom extension.
1807 This change is mostly a string substitution of 'documentTitle' for
1808 'documentID'. The only code change is the addition of a Documents DTO to get the
1809 filename to document title mappings as indicated below.
1811 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1812 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1813 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1814 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1815 Use Documents DTO to create the document links in the document
1817 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1818 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1819 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1820 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1821 * src/main/java/org/glom/web/client/place/ListPlace.java:
1822 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1823 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1824 * src/main/java/org/glom/web/client/ui/ListView.java:
1825 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1826 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1827 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1828 * src/main/java/org/glom/web/server/Log.java:
1829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1830 getDocumentTitles() to getDocuments() and return the Documents DTO.
1831 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1832 transferring the filename to document title mappings.
1834 2011-06-25 Ben Konrath <ben@bagu.org>
1836 Make the authentication popup work again.
1838 This bug was introduced when I extracted ConfiguredDocument to its own class.
1840 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1841 correct success / fail status in setUsernameAndPassword().
1843 2011-06-25 Ben Konrath <ben@bagu.org>
1845 Use filename as unique key for configuring database usernames and passwords.
1847 This replaces the use of the Glom document title which could change
1848 depending on the locale. Thanks to Murray Cumming for pointing out this
1851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1852 * src/main/resources/onlineglom.properties:
1854 2011-06-24 Ben Konrath <ben@bagu.org>
1856 Pass primary key value to DetailsView.
1858 This enables the DetailsView to load the correct data.
1860 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1861 primary key value field and set in constructor. Pass primary key
1862 value to getDetailsData().
1863 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1864 variables for document title and primary key value.
1865 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1866 key value to the DetailsPlace.
1868 2011-06-24 Ben Konrath <ben@bagu.org>
1870 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1872 This allows the primary key to be retrieved by the Details button. This
1873 functionality has not been implemented yet but it's in the works.
1875 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1876 the LayoutGroup result to ListView.setCellTable instead of all of its
1877 fields individually.
1878 * src/main/java/org/glom/web/client/ui/ListView.java:
1879 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1880 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1881 get the primary key for the table.
1882 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1883 index of the primary key in the LayoutGroup accounting for hidden
1884 primary keys. Rename getJavaNumberFormat() to
1885 convertToJavaNumberFormat() for consistency. Cleanup / add some
1887 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1888 field for primary key index and a field to indicate whether the
1889 primary key is hidden or not.
1891 2011-06-23 Ben Konrath <ben@bagu.org>
1893 Rename getTableData methods to getListData.
1895 This is a rename refactor for consistency with other methods.
1897 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1898 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1899 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1900 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1902 2011-06-23 Ben Konrath <ben@bagu.org>
1904 Extract the ConfiguredDocument innerclass into its own class.
1906 This makes the servlet code more object oriented.
1908 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1909 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1910 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1911 new ConfiguredDocument class.
1913 2011-06-21 Ben Konrath <ben@bagu.org>
1915 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1917 This makes things more inline with how libglom works and reduces code
1918 duplication. This refactor lays the groundwork for adding the primary key to
1919 the LayoutGroup object.
1921 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1922 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1923 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1924 Change method names to getListLayout and getDefaultListLayout for
1925 consistency. Use LayoutGroup as the DTO for the list layout instead of
1926 ColumnInfo and LayoutListTable.
1927 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1928 new method names along with the LayoutGroup object for transferring the
1930 * src/main/java/org/glom/web/client/ui/ListView.java:
1931 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1932 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1933 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1935 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1936 Replaced with LayoutGroup.
1937 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1938 expectedResultSize and defaultTableName fields which are needed for
1940 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1941 type field which is needed for the list layout but will also be
1942 useful for the details layout as things progress.
1943 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1944 Make class abstract. Remove the unnecessary
1945 getFormattingHorizontalAlignment method. Add setFormatting method.
1947 2011-06-16 Ben Konrath <ben@bagu.org>
1949 Add scripts for building and installing war.
1951 These will help when updating OnlineGlom but they're also good
1952 supplemental documentation of the build and deployment proceeding.
1954 * utils/build-onlineglom-war.sh: New file.
1955 * utils/install-onlineglom-war.sh: New file.
1957 2011-06-16 Ben Konrath <ben@bagu.org>
1959 Create wrapper class to create consistent log messages.
1961 I wrapped methods in the Log class of gwt-log to add the method names
1962 from the servlet and create consistent formatting of the document title
1963 and table names in the log messages.
1965 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1966 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1967 log methods to use methods from wrapped Log class.
1969 2011-06-16 Ben Konrath <ben@bagu.org>
1971 Remove superfluous conditional return.
1973 Thanks to Murray Cumming for pointing this out!
1975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1977 2011-06-15 Ben Konrath <ben@bagu.org>
1979 Return an ArrayList of LayoutGroups for the Details layout.
1981 This corrects a problem with the details layout as it can have more
1982 than one top level LayoutGroup.
1984 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1985 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1986 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1987 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1988 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1989 with ArrayList of LayoutGroups for the details view layout.
1990 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1991 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1992 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1993 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1994 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1995 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1997 2011-06-14 Ben Konrath <ben@bagu.org>
1999 Use cast_dynamic method to determine the libglom LayoutItem type.
2001 This is better than finding the LayoutItem type by using the string
2002 returned from the get_part_type_name() method.
2004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2006 2011-06-14 Ben Konrath <ben@bagu.org>
2008 Add method names to log entries in the servlet.
2010 This helps when tracking down deployment problems.
2012 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2014 2011-06-14 Ben Konrath <ben@bagu.org>
2016 Add data to the DetailsView using a hard-coded primary key value.
2018 The layout and functionality of the DetailsView is not complete. This
2019 is just a checkpoint so the patch doesn't get too big.
2021 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2022 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2023 Add getDetailsData() servlet method.
2024 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2025 Add RPC to getDetailsData(). Change the way the LayoutGroups and
2026 LayoutFields are added to the DetailsView.
2027 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2028 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2029 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2030 take the string for the title instead of the object.
2031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2032 Add implementation getDetailsData() along with some private helper
2034 * src/main/webapp/style.css: Add padding to details-data class. Add a
2035 details-label class with the same padding as the details-data class.
2037 2011-06-03 Ben Konrath <ben@bagu.org>
2039 Use presenter.goTo() to change to the DetailsPlace.
2041 This will make things easier when we need to open the DetailsView with
2042 data specific to the row that was clicked.
2044 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2046 2011-06-02 Ben Konrath <ben@bagu.org>
2048 Add CSS file from mockups.
2050 I'm adding this now because it's going to be useful to have when
2051 developing the DetailsView. The TableSelectionView and ListView aren't
2054 * src/main/webapp/OnlineGlom.html:
2055 * src/main/webapp/style.css:
2057 2011-06-02 Ben Konrath <ben@bagu.org>
2059 Use String.isEmpty() to check for empty string.
2061 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2063 2011-06-02 Ben Konrath <ben@bagu.org>
2065 Display main layout group titles in the DetailsView.
2067 This is the start of the DetailsActivity/DetailsView implementation.
2069 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2070 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2071 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2072 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2073 Get the layout information for the details view from the server and set
2074 the main layout group titles.
2075 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2076 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2077 Add addLayoutGroup() and addLayoutField() methods. This are just
2078 temporary methods for creating the the details view that will change
2080 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2081 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2083 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2084 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2085 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2086 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2087 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2088 Data Transfer Objects that mimic the libglom object structure. These are
2089 used for transferring the details layout but could also be used for
2090 transferring the list layout.
2092 2011-05-27 Ben Konrath <ben@bagu.org>
2094 Reset the AuthenticationPopup when clearing the ListView.
2096 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2098 2011-05-27 Ben Konrath <ben@bagu.org>
2100 Fix problem with onlineglom.properties file loading.
2102 The old way worked in Eclipse but not on the server. Loading the
2103 onlineglom.properties file now works in Eclipse and on the server.
2105 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2107 2011-05-24 Ben Konrath <ben@bagu.org>
2109 Update gwt-log from 3.1.0 to 3.1.2.
2111 Gwt-log 3.1.0 has been marked as depreciated.
2115 2011-05-24 Ben Konrath <ben@bagu.org>
2117 Add comment to ListActivity.goTo() method.
2119 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2121 2011-05-24 Ben Konrath <ben@bagu.org>
2123 Remove FIXME in convertGdkColorToHtmlColour()
2125 The Gdk::Color value returned by libglom is 16-bits per channel on both
2126 64 and 32-bit platforms.
2128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2130 2011-05-19 Ben Konrath <ben@bagu.org>
2132 Improve performance of initial ListView load.
2134 I removed a round trip to the server for getting the default table name
2135 and then requesting information about that table. This also removes a potential
2136 problem with the table change handler not being setup in time to receive the
2137 table change event from the ListActivity.
2139 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2140 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2141 getDefaultLayoutListTable() method. Improve comments.
2142 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2143 getDefaultLayoutListTable() method instead of firing a table change
2144 event to get the table to load.
2145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2146 implementation of getDefaultLayoutListTable() method.
2147 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2150 2011-05-19 Ben Konrath <ben@bagu.org>
2152 Override toDebugString() in TableChangeEvent.
2154 This is useful to have for debugging.
2156 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2158 2011-05-19 Ben Konrath <ben@bagu.org>
2160 Add a "Back to List" link when at the DetailsPlace.
2162 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2163 Populate the CellTable based on the selected table of the ListBox if
2164 it's set otherwise use the default table. This allows the "Back to
2166 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2167 Remove Place from constructors. Add a setPlace() method. Add
2168 goToPlace() method. Set class as presenter for TableSelectionView.
2169 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2170 Use the same TableSelectionActivity when switching between the List and
2172 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2173 Subclass the new HasSelectableTablePlace. This removes some duplicate
2175 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2176 New class to represent Places that display the TableSelectionView.
2177 * src/main/java/org/glom/web/client/place/ListPlace.java:
2178 Subclass the new HasSelectableTablePlace. This removes some duplicate
2180 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2181 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2182 Add Presenter interface. Add setBackLinkVisible() method. Add
2183 setBackLink() method.
2185 2011-05-18 Ben Konrath <ben@bagu.org>
2187 Enable the "Details" buttons.
2189 Right now only an empty details view is displayed.
2191 * src/main/java/org/glom/web/client/ClientFactory.java:
2192 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2193 Add DetailsView to ClientFactory.
2194 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2195 A basic activity for the details view.
2196 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2197 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2199 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2200 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2202 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2203 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2204 unnecessary super() in constructor.
2205 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2206 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2207 really shouldn't create a new TableSelectionActivity for both the ListPlace
2208 and the DetailsPlace so this should be considered a temporary solution.
2209 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2210 New file. Represents a URL for the details view.
2211 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2212 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2213 A basic details view interface and implementation.
2214 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2215 Enable the "Details" buttons.
2217 2011-05-12 Ben Konrath <ben@bagu.org>
2219 Use a LayoutPanel with multiple display areas for main layout.
2221 This is mostly a refactor in that there are no changes from the user
2222 point of view. These changes are required so that we can swap out the list view
2223 with the details view when the user clicks the "Details" button.
2225 * src/main/java/org/glom/web/client/ClientFactory.java:
2226 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2227 OnlineGlomView. Add TableSelectionView, ListView and
2228 AuthenticationPopup.
2229 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2230 for main layout. Add display regions for main activities. Add
2231 activity manager for for main activities.
2232 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2233 file from parts of the deleted OnlineGlomActivity.
2234 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2235 New file from parts of the deleted OnlineGlomActivity.
2236 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2237 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2238 New files for app wide table change event.
2239 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2240 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2241 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2242 Activity mappers for the main activities replace the deleted app-wide
2244 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2245 Fix a spelling error in he comment.
2246 * src/main/java/org/glom/web/client/ui/ListView.java:
2247 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2248 Renamed from LayoutListView and modified for MVP. This still not a
2249 proper dumb view as prescribed by the MVP pattern but it works for now.
2250 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2251 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2252 New widget stripped out of the deleted OnlineGlomView.
2253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2254 Remove hack that is fixed by this patch.
2256 2011-05-06 Ben Konrath <ben@bagu.org>
2258 Rename OnlineGlomPlace to ListPlace.
2260 The only change besides the rename is that url will now display #list
2261 instead of #Document.
2263 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2264 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2265 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2266 * src/main/java/org/glom/web/client/place/ListPlace.java:
2267 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2269 2011-05-06 Ben Konrath <ben@bagu.org>
2271 Use Presenter for app navigation.
2273 This is the proper way to deal with Place (URL) changes with the MVP
2276 * src/main/java/org/glom/web/client/ClientFactory.java:
2277 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2278 PlaceHistoryMapper and PlaceHistoryHandler.
2279 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2280 PlaceHistoryMapper and PlaceHistoryHandler.
2281 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2282 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2283 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2284 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2285 Add Presenter interface and setPresenter methods. Rename addHyperLink
2286 to addDocumentLink taking only the document title as a parameter.
2288 2011-04-14 Ben Konrath <ben@bagu.org>
2290 Prompt for db username/password if they haven't been set.
2292 This is implemented with a popup widget that is contained within the
2293 OnlineGlomView and managed by the OnlineGlomActivity.
2295 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2296 methods for checking and setting the database username and password.
2297 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2298 new methods for checking and setting the database username and
2300 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2301 Display authentication popup if the JDBC connection to the database
2302 has not been authenticated.
2303 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2305 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2306 for dealing with the authentication popup.
2307 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2308 Implement the methods for dealing with the authentication popup.
2309 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2310 try to executed queries if the database connection hasn't been
2311 authenticated. Implement methods for checking and setting the
2312 database username and password.
2314 2011-04-12 Ben Konrath <ben@bagu.org>
2316 Make log messages a little clearer.
2318 Add a dash betweeen the document title and the table name.
2320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2322 2011-04-12 Ben Konrath <ben@bagu.org>
2324 Protect against NPEs when cleaning up database resources.
2326 While this isn't strictly necessary because the exception is caught,
2327 not protecting against the NPEs makes it harder to find the real error
2330 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2332 2011-04-12 Ben Konrath <ben@bagu.org>
2334 Move configuration of the servlet to the constructor.
2336 The servlet will be initialized even if the database authentication
2337 information is not set or correct. I still need to add the UI for prompting
2338 the user for the authentication information when it's required.
2340 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2341 javadocs for getDocumentTitles() method.
2342 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2343 Set error message when RPC fails.
2344 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2345 glom files directory from the configuration file. Try to set the
2346 database authentication information for the specific document if it's
2347 set and works otherwise try to use the global authentication
2348 information set for the directory.
2349 * src/main/resources/onlineglom.properties: Moved from
2350 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2351 Added detailed comments for the new keys.
2353 2011-04-11 Ben Konrath <ben@bagu.org>
2355 Remove unnecessary @Override in DocumentSelectionViewImpl.
2357 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2359 2011-04-11 Ben Konrath <ben@bagu.org>
2361 Remove center alignment in DocumentSelectionView.
2363 The title element is still centred but the document titles and bottom
2364 sentence are both left-aligned.
2366 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2368 2011-04-11 Ben Konrath <ben@bagu.org>
2370 Change 'Demo' naming convention to 'Document'.
2372 This is just a rename refactor with no functional changes to the code.
2374 * src/main/java/org/glom/web/client/ClientFactory.java:
2375 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2376 * src/main/java/org/glom/web/client/OnlineGlom.java:
2377 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2378 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2379 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2380 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2381 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2382 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2383 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2384 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2385 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2388 2011-04-08 Ben Konrath <ben@bagu.org>
2390 Remove FIXME from safeLongToInt() method.
2392 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2395 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2397 2011-04-08 Ben Konrath <ben@bagu.org>
2399 Display an error if no glom documents are found in the specified directory.
2401 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2402 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2403 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2404 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2406 2011-04-08 Ben Konrath <ben@bagu.org>
2408 Add copyright header to one more file ... oops.
2410 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2412 2011-04-08 Ben Konrath <ben@bagu.org>
2414 Add copyright header to files without it.
2416 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2417 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2418 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2419 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2420 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2421 * src/main/java/org/glom/web/shared/GlomField.java:
2423 2011-04-08 Ben Konrath <ben@bagu.org>
2425 Add support for accessing multiple glom documents in the servlet.
2427 This completes the demo selection functionality.
2429 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2430 document title to methods.
2431 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2432 document title to methods.
2433 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2434 Set browser window title when the activity starts. Correct name of
2435 document title variable.
2436 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2437 Set browser window title when the activity starts. Set the table
2438 selector change handler after table selector has been set. Clear the
2439 OnlineGlomView when the activity has been stopped.
2440 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2441 document title as the place token. Use "#Document:" instead of
2442 "#OnlineGlomPlace:" in the URL.
2443 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2444 Change heading to "Online Glom"
2445 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2446 document title in RPC methods.
2447 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2448 setDocumentTitle() method. Add clear() method.
2449 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2450 setDocumentTitle() method. Implement clear() method which removes the
2451 change handler on the ListBox, clears the ListBox and clears the
2453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2454 Implement methods with document title. Keep track for the configured
2455 glom documents and their corresponding JDBC configurations in a hash
2456 table. This information is retrieved using the document title as the
2457 key in the hash table.
2458 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2459 document title field as it's no longer needed.
2461 2011-04-08 Ben Konrath <ben@bagu.org>
2463 Update the Eclipse JDT configuration.
2465 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2466 methods. Automatically add the copyright header to new files.
2468 2011-04-05 Ben Konrath <ben@bagu.org>
2470 Add new page for demo selection.
2472 This patch adds all the components required to view and start an
2473 OnlineGlom demo by clicking on the desired hyperlink. The user is
2474 able to return to the demo selection page with the browser's back
2475 button. I still need to modify the servlet to work with multiple
2476 documents so all demo links will load the file defined in the
2477 OnlineGlom.properties.
2479 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2480 This is only useful during development so we don't need to save it.
2481 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2482 get a reference to the DemoSelectionView.
2483 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2484 method to get a reference to the DemoSelectionView.
2485 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2486 default view to DemoSelectionView.
2487 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2488 to get glom document titles for glom files in a hard-coded directory.
2489 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2490 method to get glom document titles for glom files in a hard-coded
2492 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2493 Presenter for DemoSelectionView.
2494 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2495 for DemoSelectionView.
2496 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2497 Update for DemoSelectionView.
2498 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2499 Basic 'Place' implementation for the DemoSelectionView.
2500 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2501 The interface for the DemoSelectionView.
2502 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2503 The implementation of the DemoSelectionView.
2504 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2505 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2506 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2507 implementation of method to get glom document titles for glom files
2508 in a hard-coded directory.
2509 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2510 on longer being used.
2511 * src/main/webapp/glom.png: Glom logo.
2513 2011-04-05 Ben Konrath <ben@bagu.org>
2515 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2517 This is the forth and final commit of a refactor that will allow
2518 OnlineGlom to be used with multiple documents.
2520 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2521 Move RPC code from OnlineGlomViewImpl to this class.
2522 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2524 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2525 RPC code to the presenter class (the P in MVP).
2527 2011-04-04 Ben Konrath <ben@bagu.org>
2529 Start moving the existing OnlineGlom code to MVP.
2531 This work is based on the GWT MVP framework that is documented here:
2533 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2535 This is the third commit of a refactor that will allow OnlineGlom to
2536 be used with multiple documents.
2538 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2539 Interface for client factory which is used to get instances of various
2540 classes throughout the app.
2541 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2542 Implementation of client factory.
2543 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2544 initialize the MVP framework.
2545 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2546 New file. Activity manager for the main container widget. This is the
2548 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2549 Maps place (URL) to its corresponding activity.
2550 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2551 New file. This is just a place holder for a generated file.
2552 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2553 New file. Represents the URL for the main Online Glom app.
2554 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2555 for changes in LayoutListViewImpl.
2556 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2557 interface for View. Move code to OnlineGlomViewImpl class.
2558 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2559 file. Implementation of OnlineGlomView.
2560 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2561 Place resources. Use ClientFactoryImpl by default.
2563 2011-04-04 Ben Konrath <ben@bagu.org>
2565 Move View classes to their own package.
2567 This is the second commit of a refactor that will allow OnlineGlom to
2568 be used with multiple documents.
2570 * src/main/java/org/glom/web/client/OnlineGlom.java:
2571 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2572 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2574 2011-04-02 Ben Konrath <ben@bagu.org>
2576 Move UI code from the main module to its own class.
2578 This is the first commit of a refactor that will allow OnlineGlom to be
2579 used with multiple documents.
2581 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2582 references to OnlineGlom to OnlineGlomView.
2583 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2584 OnlineGlomView and instantiate it here.
2585 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2586 represents the main OnlineGlomView with one document.
2588 2011-04-01 Ben Konrath <ben@bagu.org>
2590 Fix formatting of gwt.xml and add DTD.
2592 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2594 2011-03-30 Ben Konrath <ben@bagu.org>
2596 Propperly convert gdkColor string to html colour string.
2598 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2600 2011-03-28 Ben Konrath <ben@bagu.org>
2602 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2604 This implementation matches
2605 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2606 readable and is not tied to Swig.
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2610 2011-03-28 Ben Konrath <ben@bagu.org>
2612 Use read-only checkboxes for boolean field types.
2614 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2615 in the CellTable based on the field type. It currently only
2616 distinguishes between boolean and text columns but I'll need to add
2617 support for more types.
2618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2619 column type in the ColumnInfo object. Add method to convert between the
2620 glom field type enum in ColumnInfo and the glom field type in libglom.
2621 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2623 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2624 getting and setting booleans.
2626 2011-03-25 Ben Konrath <ben@bagu.org>
2628 Don't get the Date twice from the ResultSet.
2630 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2632 2011-03-25 Ben Konrath <ben@bagu.org>
2634 Cleanup code in the servlet.
2636 * TODO: Remove item about row count. Add item about testing row count
2637 query with large number of rows.
2638 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2639 spelling mistakes, change method parameter to be consistent with
2642 2011-03-25 Ben Konrath <ben@bagu.org>
2644 Add server side logging with the gwt-log library.
2646 * .gitignore: Ignore the log file we're now producing.
2647 * TODO: Add a couple TODO item for logging.
2648 * pom.xml: Add gwt-log and log4j as a dependency.
2649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2650 logging of errors, warnings and some important info.
2651 * src/main/resources/log4j.properties: New file to configure log4j.
2653 2011-03-24 Ben Konrath <ben@bagu.org>
2655 Add a disable button for the Details view.
2657 * src/main/java/org/glom/web/client/LayoutListView.java:
2659 2011-03-22 Ben Konrath <ben@bagu.org>
2661 Use a count query to get the number of rows for the list view pager.
2663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2665 2011-03-22 Ben Konrath <ben@bagu.org>
2667 Add more TODO information about CellTable pager positioning.
2671 2011-03-19 Ben Konrath <ben@bagu.org>
2673 Add TODO item about CellTable pager positioning.
2677 2011-03-18 Ben Konrath <ben@bagu.org>
2679 Remove unneeded GlomFieldColumn class.
2681 This is just a small code cleanup.
2683 * src/main/java/org/glom/web/client/LayoutListView.java:
2685 2011-03-18 Ben Konrath <ben@bagu.org>
2687 Use cursor mode in the query that gets data for the list view.
2689 I still need to fix the potential memory problem when getting the row
2690 count for the list view.
2692 * TODO: Add note about testing memory usage with large data sets. Add
2693 item about fixing row counting with large data sets.
2694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2695 PostgreSQL JDBC driver into cursor mode when getting data for the
2698 2011-03-15 Ben Konrath <ben@bagu.org>
2700 Remove the GWT Container from the Eclipse build classpath.
2702 The GWT dependencies are set by Maven so this isn't needed.
2706 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2708 Added some earlier mockups to git, but not to the tarball dist.
2710 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2711 Openismus. These hopefully show how we might structure the HTML so that
2712 it can be styled easily with CSS. However, we probably need to adapt them
2713 for the CSS structure that GWT dictates for common widgets.
2715 2011-03-14 Ben Konrath <ben@bagu.org>
2717 Locate OnlineGlom.properties using the ServletContext.
2719 This is required to be able to locate the file in the deployed servlet.
2721 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2722 Configure the database and glom document in in a helper method so
2723 that the ServletContext can be used to locate OnlineGlom.properties.
2724 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2725 src/main/webapp. This is the proper location for .properites files.
2727 2011-03-12 Ben Konrath <ben@bagu.org>
2729 Add note to README about why we're compiling down to obfuscated JavaScript.
2733 2011-03-11 Ben Konrath <ben@bagu.org>
2735 Use properties file to configure servlet.
2737 This allows people to change the glom file path, db username and db
2738 password without recompiling the code.
2740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2741 * src/main/webapp/OnlineGlom.properties:
2743 2011-03-11 Ben Konrath <ben@bagu.org>
2745 Use table fields in layout list view if the layout list is not defined.
2747 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2748 Manually create a LayoutFieldVector for the query builder using the
2749 table fields when a layout list is not defined in the glom file.
2751 2011-03-11 Ben Konrath <ben@bagu.org>
2753 Only show FIXME string for images when there's an image.
2755 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2756 in this change are some small code cleanups.
2758 2011-03-11 Ben Konrath <ben@bagu.org>
2760 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2764 2011-03-11 Ben Konrath <ben@bagu.org>
2766 Correctly set the index of the default table.
2768 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2769 Correctly set the index of the default table. Add commented out example
2772 2011-03-10 Ben Konrath <ben@bagu.org>
2774 Add comment to pom.xml about the previous change.
2776 * pom.xml: Add comment about the deployment issue so that it's obvious
2777 why java-libglom is set to the provided scope.
2779 2011-03-10 Ben Konrath <ben@bagu.org>
2781 Change java-libglom dependency from compile to provided in pom.xml.
2783 Since java-libglom uses jni it can only be loaded once and therefore
2784 must be placed in $CATALINA_HOME/lib and not included in each war.
2785 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2786 More information about this issue can be found in the Tomcat 6 release
2787 notes in the "JNI Based Applications" section:
2789 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2791 * README: Remove note about this issue. Deployment info should really
2792 be on the wiki anyway so I'll add it right now.
2793 * pom.xml: Change java-libglom dependency from compile to provided so
2794 that it's copied in to the packaged war.
2796 2011-03-09 Ben Konrath <ben@bagu.org>
2798 Change to using a neutral locale for currency, date and time formatting.
2800 This solves the problem of currency values being represented without a
2801 space between the currency code and the number (e.g. "EUR5.89" is now
2802 represented as "EUR 5.89"). More work is required when we implement
2803 a locale preference setting.
2805 * TODO: Add note about currency formatting issues with different
2807 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2808 to using the neutral ROOT locale.
2810 2011-03-09 Ben Konrath <ben@bagu.org>
2812 Add support for currency codes that are not ISO 4217 codes.
2814 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2815 the currency code defined in the glom file when it's not 3 characters
2816 long or when Java doesn't recognize the string as an ISO 4217 code.
2818 2011-03-08 Ben Konrath <ben@bagu.org>
2820 Remove test classes, launch configurations and configuration.
2822 The test stuff was getting in the way when creating the war. To make
2823 the war file you can now do 'mvn clean package'. The packaged war file
2824 will be in the target directory.
2826 * .classpath: Remove unused classpathentry for tests and i18n.
2827 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2828 property. Don't run test or i18n goals when packaging the war.
2829 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2834 * OnlineGlomTest-dev.launch:
2835 * OnlineGlomTest-prod.launch:
2836 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2837 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2839 2011-03-07 Ben Konrath <ben@bagu.org>
2841 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2843 These fixes allow me to use 'mvn deploy' to create the war file.
2845 * .classpath: This generated config has been updated by Eclipse. This
2846 change was probably triggered by me updating from Eclipse 3.6.1 to
2848 * .gitignore: Add entry to ignore the directory
2849 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2850 * .project: The generated config has been updated by Eclipse. This
2851 change was probably triggered by me updating from Eclipse 3.6.1 to
2853 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2854 so that Eclipse doesn't complain
2855 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2856 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2857 'tests' directory to 'client' directory. This is the new
2858 gwt-maven-plugin convension.
2859 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2860 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2862 2011-03-07 Ben Konrath <ben@bagu.org>
2864 Add support for horizontal alignment in the LayoutList columns.
2866 * TODO: Remove item about horizontal alignment. Add item about
2867 improvements to ColumnInfo.
2868 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2869 alignment on the columns. Use ColumnInfo RPC object get the column
2870 title and horizontal alignment.
2871 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2872 LayoutListView creation with ColumnInfo RPC object.
2873 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2874 a ColumnInfo object for every LayoutList columnn. Convert the
2875 FieldFormatting.HorizontalAlignment to the correct
2876 ColumnnInfo.HorizontatlAlignment with the new
2877 getColumnInfoHorizontalAlignment helper method.
2878 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2879 to encapsulate column information like alignment and title. This
2880 could be used to set the colour instead of on a per cell field basis.
2881 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2882 column title storage and retrieval with ColumnInfo.
2884 2011-03-04 Ben Konrath <ben@bagu.org>
2886 Add support for column sorting.
2888 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2889 AsynDataProvider to be an anonymous inner class. Use new
2890 getSortedTableData RPC method when column sort is requested. Set all
2891 columns sortable and add an AsyncHandler to activate sorting in the
2893 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2894 method getSortedTableData(). Cleanup other method signatures.
2895 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2896 new method getSortedTableData(). Cleanup other method signatures.
2897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2898 Implement getSortedTableData() and getTableData() methods by using a
2899 private helper method with the appropriate parameters filled in. Use
2900 user supplied sort clause when supplied, otherwise fall back to
2901 sorting by the primary key. Move destroy() method to be underneath
2902 constructor for readability. Cleanup comments.
2904 2011-03-03 Ben Konrath <ben@bagu.org>
2906 Add support for colour text and colour backgrounds to the layout list cells.
2908 Only the cell backgrounds are coloured which leaves a gap between the
2909 cells that isn't coloured. I need to figure out a way to set
2910 'style=background-colour:' on the whole column rather than just the
2913 * TODO: Add a note about colouring the background of the whole column.
2914 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2915 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2916 render the coloured text and backgrounds. Use GlomField[] for the row type.
2917 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2919 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2920 GlomField[] for the row type.
2921 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2922 GlomField[] for the row type. Set the text, text colour and background
2923 colour in the GlomField objects as specified in the glom document. Add
2924 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2925 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2926 the glom field text, foreground colour and background colour.
2928 2011-03-02 Ben Konrath <ben@bagu.org>
2930 Don't display hidden tables in the combo box.
2932 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2935 code to ignore hidden tables using ArrayLists for the table names and
2937 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2938 tableNames to use ArrayLists instead of String[]. Update getter and setter
2941 2011-03-01 Ben Konrath <ben@bagu.org>
2943 Add support for Date and Time number types.
2945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2946 Implement formatting for Date and Time values. Change the default glom
2947 file to small business example.
2949 2011-03-01 Ben Konrath <ben@bagu.org>
2951 Add support for formatting glom types as specified in the glom file.
2953 Formatting isn't finished yet - I still need to add support for Date
2956 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2957 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2958 checks for null values in JDBC cleanup code and catch all exceptions
2959 instead of just SQLExceptions.
2960 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2963 2011-03-01 Ben Konrath <ben@bagu.org>
2965 Use GWT 2.2.0 instead of 2.1.1.
2967 * pom.xml: Change GWT version numbers.
2969 2011-03-01 Ben Konrath <ben@bagu.org>
2971 A few small code cleanups.
2973 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2975 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2976 unnecessary object creation in constructor.
2977 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2978 unnecessary object creation in constructor.
2980 2011-02-28 Ben Konrath <ben@bagu.org>
2982 Add file for TODO list.
2986 2011-02-18 Ben Konrath <ben@bagu.org>
2988 Enable the CellTable Pager when more than 20 rows need to be viewed.
2990 The Pager will automatically become active when the results are larger
2991 than the CellTable size which is currently set to 20 lines.
2993 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2994 name on debug statment in RPC call in LayoutListDataProvider, add
2995 numRows parameter to LayoutListView constructor, propperly set rowCount
2997 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2998 name on debug statment in RPC call, use LayoutListTable object in RPC
2999 calls, pass rowCount to LayoutListView.
3000 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
3001 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
3003 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
3004 interface for changes in OnlineGlomService.
3005 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
3006 getLayoutListHeaders() to getLayoutListTable() and return
3007 LayoutListTable. Using this object allows me to pass other information
3008 about the LayoutList like the expected number of rows in the result set.
3009 The Connection object from the connection pool is now propperly closed.
3010 Only the requested number of lines are returned to the client in
3012 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
3013 GlomTable and add columnTitles and numRows.
3015 2011-02-18 Ben Konrath <ben@bagu.org>
3017 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
3019 This is a small performance boost. I'll use GlomTable to get the required
3020 layoutlist information.
3022 * src/main/java/org/glom/web/client/OnlineGlom.java:
3023 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3024 * src/main/java/org/glom/web/shared/GlomDocument.java:
3026 2011-02-18 Ben Konrath <ben@bagu.org>
3028 Add option to turn off formatting in JDT formatter preferences.
3030 * .settings/org.eclipse.jdt.core.prefs:
3032 2011-02-18 Ben Konrath <ben@bagu.org>
3034 Rename LayoutList to LayoutListView.
3036 I'm working towards setting things up to easily use MVP when the time
3039 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3041 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3044 2011-02-17 Ben Konrath <ben@bagu.org>
3046 Move LayoutListDataProvider class into LayoutList.java.
3048 * src/main/java/org/glom/web/client/LayoutList.java:
3050 2011-02-17 Ben Konrath <ben@bagu.org>
3052 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3054 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3056 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3057 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3058 from LibGlomServer.java.
3059 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3060 Rename from LibGlomServiceAsync.java.
3061 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3062 Rename from LibGlomServiceImpl.java.
3063 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3065 2011-02-17 Ben Konrath <ben@bagu.org>
3067 Update JDT settings.
3069 * .settings/org.eclipse.jdt.core.prefs:
3071 2011-02-17 Ben Konrath <ben@bagu.org>
3073 Move GWT-RPC objects to shared package (where they should be).
3075 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3076 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3077 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3078 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3079 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3080 org.glom.web.shared package.
3081 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3082 org.glom.web.shared package.
3083 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3084 directory in compilation to javascript.
3086 2011-02-16 Ben Konrath <ben@bagu.org>
3088 Add sort clause to the sql query that grabs table information.
3090 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3091 if one of the columns is a primary key.
3093 2011-02-16 Ben Konrath <ben@bagu.org>
3095 Disable generateAsync feature of gwt-maven.
3097 The generated interface does not correctly match the methods in LibGlomService
3098 and the generated singleton Util inner-class doesn't respect the servlet
3101 * pom.xml: Turn off generateAsync feature.
3102 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3103 with singleton Util inner-class.
3105 2011-02-14 Ben Konrath <ben@bagu.org>
3107 Add LGPL v3 licence notices.
3109 Followed directions listed here:
3110 http://www.gnu.org/licenses/gpl-howto.html
3112 * COPYING: This file is a copy of the GPL v3.
3113 * COPYING.LESSER: This file is a copy of the LGPL v3.
3114 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3116 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3118 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3120 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3122 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3124 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3126 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3129 2011-02-14 Ben Konrath <ben@bagu.org>
3131 Use ArrayList instead of Array in GWT-RPC calls.
3133 Apparently this gives a slight performance boost to the compiled
3136 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3138 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3141 2011-02-14 Ben Konrath <ben@bagu.org>
3143 Access data from a postgres db rather than the example glom file.
3145 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3146 compile down to obfuscated javascript.
3147 * pom.xml: Add c3p0 and postgres JDBC libraries.
3148 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3149 using a postgres db accessed through the c3p0 connection pooling library.
3151 2011-02-14 Ben Konrath <ben@bagu.org>
3153 Update Java formatter settings.
3155 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3157 2011-02-02 Ben Konrath <ben@bagu.org>
3159 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3161 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3163 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3164 the compiled webapp directory that Eclipse uses as we're using Maven now.
3165 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3166 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3168 * pom.xml: Format file, change target Java version to 1.6.
3170 2011-02-02 Ben Konrath <ben@bagu.org>
3172 Add information about a deployment related issue.
3174 * README: Add Notes section with the problem outlined.
3176 2011-02-02 Ben Konrath <ben@bagu.org>
3178 Call Glom.libglom_deinit() when the servlet is shutdown.
3180 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3181 Glom.libglom_deinit() to destroy() method.
3183 2011-01-28 Ben Konrath <ben@bagu.org>
3185 Use generated Util class to get the RPC Async interface.
3187 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3189 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3190 getInstance() method to get a reference to the RPC Async interface.
3191 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3192 getInstance() method to get a reference to the RPC Async interface, remove
3193 the now unused getLibGlomServiceProxy() method.
3195 2011-01-27 Ben Konrath <ben@bagu.org>
3197 Cleanup ChangeLog entry from previous commit.
3199 * ChangeLog: Group logical changes together and add comments.
3201 2011-01-25 Ben Konrath <ben@bagu.org>
3203 Convert to gwt-maven project.
3205 * .gitignore: Update for new project structure.
3206 * README: New file with a link to the online documentation.
3207 * pom.xml: The generated maven configuration file with some tweaks.
3209 Add / update Eclipse settings. These files are a merge of the files that
3210 were generated with the gwt-maven plugin and the files we were previously
3214 * .settings/.jsdtscope:
3215 * .settings/com.google.gdt.eclipse.core.prefs:
3216 * .settings/com.google.gwt.eclipse.core.prefs:
3217 * .settings/org.eclipse.jdt.core.prefs:
3218 * .settings/org.eclipse.wst.common.component:
3219 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3220 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3221 * .settings/org.maven.ide.eclipse.prefs:
3222 * OnlineGlomTest-dev.launch:
3223 * OnlineGlomTest-prod.launch:
3225 Java source files moved from the 'src' directory to the directory structure
3227 * src/main/java/org/glom/web/client/GlomDocument.java:
3228 * src/main/java/org/glom/web/client/GlomTable.java:
3229 * src/main/java/org/glom/web/client/LayoutList.java:
3230 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3231 * src/main/java/org/glom/web/client/LibGlomService.java:
3232 * src/main/java/org/glom/web/client/OnlineGlom.java:
3233 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3235 Non-functional property file used for translations. I included this as
3236 reminder that it's something I need to sort out.
3237 * src/main/resources/org/glom/web/client/Messages.properties:
3239 The OnlineGlom GWT config file&nb