1 2011-12-14 Ben Konrath <ben@bagu.org>
3 Specify the font for document selection links.
5 * src/main/webapp/style.css:
7 2011-12-14 Ben Konrath <ben@bagu.org>
9 Fix bouncy CellTable while paging.
11 This doesn't currently work with related list tables in unselected
14 * src/main/java/org/glom/web/client/ui/list/ListTable.java
16 2011-12-14 Ben Konrath <ben@bagu.org>
18 Revamp the appearance of the document selection page.
20 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
21 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
22 * src/main/webapp/style.css:
24 2011-12-13 Ben Konrath <ben@bagu.org>
26 Set navigation button column to the smallest size possible.
28 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
30 2011-12-13 Ben Konrath <ben@bagu.org>
32 Change OpenButton nomenclature to NavigationButton.
34 Using NavigtionButton makes things more generic. Classes, methods and
35 variables have been changed.
37 This is a rename-only refactor.
39 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
40 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
41 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
42 Renamed from OpenButtonCell.
43 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
44 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
45 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
47 2011-12-12 Ben Konrath <ben@bagu.org>
49 Remove unnecessary String argument in RelatedListTable and ListViewTable.
51 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
52 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
53 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
54 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
56 2011-12-12 Ben Konrath <ben@bagu.org>
58 Update variable names and comments.
60 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
61 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
63 2011-12-12 Ben Konrath <ben@bagu.org>
65 Properly initialize numNonEmptyRows variable to zero.
67 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
68 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
70 2011-12-05 Ben Konrath <ben@bagu.org>
72 Add latest mockup with HTML tables.
74 Features of this mockup:
76 -> HTML table for flowtable
77 -> HTML table for flowtable column
78 -> Example of how related lists would look
79 -> Not using text entries for data items
81 The current version of Online Glom doesn't use HTML tables for the
84 This mockup has been sent to the glom-devel mailing list but it's good
85 to have it here as well.
87 * mockups/details-view-html-tables.html:
89 2011-12-05 Ben Konrath <ben@bagu.org>
91 Remove unnecessary getPrimaryKeyField() method.
93 getPrimaryKeyFieldForTable(String) has been renamed to
94 getPrimaryKeyField(String).
96 * src/main/java/org/glom/web/server/database/DBAccess.java:
97 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
98 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
100 2011-12-05 Ben Konrath <ben@bagu.org>
102 Add string representation of TypedDataItem value to conversion error message.
104 * src/main/java/org/glom/web/server/Utils.java: Logging the error
105 message was extracted into its own method to avoid duplication.
107 2011-12-05 Ben Konrath <ben@bagu.org>
109 Add type checking to navigation primary key value creation.
111 Create navigation primary key only if the expected type from the Glom
112 document matches the type returned by the SQL query.
114 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
116 2011-12-05 Ben Konrath <ben@bagu.org>
118 Rename a couple of variables in RelatedListNavigation.
120 This is a rename-only refactor.
122 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
124 2011-12-05 Ben Konrath <ben@bagu.org>
126 Move getListLayoutGroup() into getListViewLayoutGroup().
128 This removes getListLayoutGroup(). It was only being called by
129 getListViewLayoutGroup().
131 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
133 2011-12-05 Ben Konrath <ben@bagu.org>
135 Remove check for LayoutItem_Portal in list table method.
137 This check is no longer necessary because the method isn't being used
138 to create the LayoutItemPortal DTO.
140 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
142 2011-12-05 Ben Konrath <ben@bagu.org>
144 Properly support related list navigation.
146 Navigation from the "Repository Analyzer -> Package Scans ->
147 Dependencies" related table wasn't working because the primary key for
148 related tables wasn't being set properly. This commit fixes the
151 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
152 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
153 doesn't set the primary key properly for related list tables.
154 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
155 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
156 useful for getting the primary key for list view tables and for related
158 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
159 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
160 Move code to set the primary key for the table from the abstract
161 ListDBAccess class to ListViewDBAccess as it's only correct for list
163 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
164 Properly add primary key to related list tables.
166 2011-12-02 Ben Konrath <ben@bagu.org>
168 Properly set the horizontal alignment of fields.
170 This fix is for both the list tables and the details view.
172 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
173 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
174 to set the horizontal alignment of fields.
176 2011-12-02 Ben Konrath <ben@bagu.org>
178 Display currency codes in the details view.
180 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
182 2011-12-02 Ben Konrath <ben@bagu.org>
184 Avoid duplicate JNI call.
186 JNI is not as efficient as pure Java and this is an easy (and small)
189 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
190 Use previously retrieved value for whereClauseToTableName instead of
193 2011-12-02 Ben Konrath <ben@bagu.org>
195 Rename a couple of variables in RelatedListNavigation.
197 This is a rename-only refactor.
199 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
201 2011-12-02 Ben Konrath <ben@bagu.org>
203 Indicate clearly that a mismatched primary key type is a bug.
205 * src/main/java/org/glom/web/server/Utils.java: Change log level from
206 warning to error. Add 'This is a bug.' to message.
208 2011-12-02 Ben Konrath <ben@bagu.org>
210 Update / fix some comments.
212 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
214 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
216 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
217 Fix comments. Add some TODOs.
219 2011-12-02 Ben Konrath <ben@bagu.org>
221 Enable navigation to details view with string primary key from related list.
223 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
224 Create a text primary key value when return type of result is
225 java.sql.Types.VARCHAR.
227 2011-12-02 Ben Konrath <ben@bagu.org>
229 Use checkboxes for booleans in the details view.
231 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
233 2011-12-01 Ben Konrath <ben@bagu.org>
235 Improve performance of related list height calculation.
237 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
238 Put code to calculate the expected height in a static initializer so
239 that that it's only called once.
241 2011-12-01 Ben Konrath <ben@bagu.org>
243 Show related list tables in notebooks (again).
245 Calculate the height of the related list tables so the Notebook can be
246 set the correct height. The height of the related list table is also needed by
247 FlowTable to be able decide how to create the layout.
249 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
250 and set the Portal height based on the height of the related list
251 table and the Portal container.
252 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
253 Add method to calculate the height of the related list tables.
254 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
255 * src/main/webapp/style.css: Add css class for Pager. This is needed to
256 calculate the height of the Pager widget.
258 2011-12-01 Ben Konrath <ben@bagu.org>
260 Use CellTable API for table property instead of setting style on Element.
262 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
264 2011-12-01 Ben Konrath <ben@bagu.org>
266 Make ListViewTable and RelatedListTable a consistent height.
268 The tables are now a consistent height regardless of the contents of
269 the table. A hidden button is added to empty rows to ensure that the
270 height of these rows will match the height of rows with data.
272 A navigation button column is now added to every table. The width of
273 the navigation column is set to 0px when a RelatedListTable shouldn't
274 have navigation buttons. This maintains the a consistent row height in
275 tables that don't show the navigation buttons.
277 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
278 navigation column when not needed.
279 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
280 arguments for navigation button to constructor of ListViewTable.
281 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
282 hidden button for empty data rows.
283 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
284 arguments for navigation button to constructor.
285 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
286 create navigation buttons. Add hideNavigationButtons() method.
287 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
288 arguments for navigation button to constructor.
290 2011-12-01 Ben Konrath <ben@bagu.org>
292 Use 'visibility: hidden' in Utils.getWidgetHeight().
294 This is better choice because hidden elements are invisible, don't
295 respond to events and are not part of the tab order. They will,
296 however, take up space which is required to be able to calculate the
297 height of the widget.
299 * src/main/java/org/glom/web/client/Utils.java:
301 2011-12-01 Ben Konrath <ben@bagu.org>
303 Use Utils.getWidgetHeight() in FlowTable.
305 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
307 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
309 2011-12-01 Ben Konrath <ben@bagu.org>
311 Put the details css class name on the correct table column.
313 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
315 2011-11-30 Ben Konrath <ben@bagu.org>
317 Update for java-libglom API change.
319 The getters and setters on FieldFormatting and NumericFormat were
320 changed to remove the 'M'.
322 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
324 2011-11-29 Ben Konrath <ben@bagu.org>
326 Only allow RelatedListTables in Portals.
328 * src/main/java/org/glom/web/client/ui/details/Portal.java:
330 2011-11-29 Ben Konrath <ben@bagu.org>
332 Only create a contents panel for Portals when title is being set.
334 * src/main/java/org/glom/web/client/ui/details/Portal.java:
336 2011-11-29 Ben Konrath <ben@bagu.org>
338 Set TabLayoutPanel height based on calculated height its widgets.
340 This is a potential fix for this bug:
342 https://bugzilla.gnome.org/show_bug.cgi?id=665133
344 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
346 2011-11-29 Ben Konrath <ben@bagu.org>
348 Align details field labels and data with the Open buttons.
350 * src/main/webapp/style.css:
352 2011-11-29 Ben Konrath <ben@bagu.org>
354 Remove unnecessary <div> in the Notebook widget.
356 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
357 method to get container FlowPanel (<div>).
358 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
359 initWidget() method directly on the TabLayoutPanel widget instead of
360 Group's container widget.
362 2011-11-29 Ben Konrath <ben@bagu.org>
364 Don't add group titles for Portals in Notebooks.
366 This reverts the previous patch and fixes a bug I introduced with
367 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
369 * src/main/java/org/glom/web/client/ui/details/Group.java:
370 * src/main/java/org/glom/web/client/ui/details/Portal.java:
372 2011-11-28 Ben Konrath <ben@bagu.org>
374 Remove unused boolean argument in Portal constructor.
378 * src/main/java/org/glom/web/client/ui/details/Group.java:
379 * src/main/java/org/glom/web/client/ui/details/Portal.java:
381 2011-11-28 Ben Konrath <ben@bagu.org>
383 Remove hack for glom 1.18 style glom files.
385 * src/main/java/org/glom/web/client/ui/details/Group.java:
386 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
387 * src/main/java/org/glom/web/client/ui/details/Portal.java:
389 2011-11-28 Ben Konrath <ben@bagu.org>
391 Use Gda Value version of primary key to log result too large error.
393 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
395 2011-11-28 Ben Konrath <ben@bagu.org>
397 Don't use TypedDataItem.getText() for Unknown types from the URL.
399 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
400 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
401 instead of getText().
402 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
403 String field and getUnknown() method.
405 2011-11-28 Ben Konrath <ben@bagu.org>
407 Log an error message when the java-libglom .so is not present.
409 The error message was being set in the exception but not logged.
411 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
413 2011-11-28 Ben Konrath <ben@bagu.org>
415 Ignore LayoutItem_CalendarPortals.
417 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
418 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
420 2011-11-28 Ben Konrath <ben@bagu.org>
422 Extract method for creating the LayoutItemPortal DTO.
424 Just breaking the code up into smaller chunks.
426 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
428 2011-11-28 Ben Konrath <ben@bagu.org>
432 This should have been added with the refactor. Oops!
434 * src/main/java/org/glom/web/shared/TypedDataItem.java:
436 2011-11-28 Ben Konrath <ben@bagu.org>
438 Create primary key value from URL string using type from Glom document.
440 See this bug, comments 19 - 25:
442 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
444 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
445 create a TypeDataItem for the primary key here when loading from a
446 URL. Show the same string for the primary key value as was received
447 from the URL string (when loading from a URL).
448 * src/main/java/org/glom/web/server/Utils.java: Update method for
449 creating the Gda Value from the TypeDataItem to properly deal with
450 creating a Gda Value based on the Glom document type for the primary
451 key value string when loading from a URL.
452 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
453 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
454 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
455 Update for changed method name.
457 2011-11-27 Ben Konrath <ben@bagu.org>
459 Rename PrimaryKeyItem to TypedDataItem.
461 The name PrimaryKeyItem suggests what the class should be used for.
462 TypedDataItem is a neutral name that describes the class better.
464 This is a rename-only refactor.
466 * src/main/java/org/glom/web/client/OnlineGlomService.java:
467 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
468 * src/main/java/org/glom/web/client/Utils.java:
469 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
470 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
471 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
472 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
473 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
474 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
476 * src/main/java/org/glom/web/server/Utils.java:
477 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
478 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
479 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
480 * src/main/java/org/glom/web/shared/NavigationRecord.java:
482 2011-11-25 Ben Konrath <ben@bagu.org>
484 Improve Gda Value conversion from PrimaryKeyItem.
486 The value from the PrimaryKeyItem is only used if its type match the
487 type from the glom document.
489 * src/main/java/org/glom/web/server/Utils.java:
491 2011-11-25 Ben Konrath <ben@bagu.org>
493 Manually check if the java-liblgom .so is visible to the JVM.
495 It seems that Tomcat has problems when a static initializer throws an
496 exception. This check is done before the first method call into
497 java-libglom so that execution doesn't continue if the .so is not
500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
502 2011-11-25 Ben Konrath <ben@bagu.org>
504 Improve browser configuration error messages.
508 https://bugzilla.gnome.org/show_bug.cgi?id=662792
510 * src/main/java/org/glom/web/client/OnlineGlomService.java:
511 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
512 getConfigurationErrorMessage() method.
513 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
514 Get and display a specific configuration error message when no Glom
516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
517 Implement getConfigurationErrorMessage() method. Surround configuration
518 code in the init() method with a try/catch block. This allows the
519 errors to be caught while keeping the servlet available to retrieve the
520 configuration error message.
522 2011-11-25 Ben Konrath <ben@bagu.org>
524 Don't use Strings to hold primary key values.
526 The primary key values are now held in a new data object
527 (PrimaryKeyItem) that holds type information and the primary key value
528 using the correct type.
530 * src/main/java/org/glom/web/client/OnlineGlomService.java:
531 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
533 PrimaryKeyItem instead of String to hold the primary key value.
534 * src/main/java/org/glom/web/client/Utils.java: Remove
535 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
536 PrimaryKeyItem based on the GlomFieldType and the DataItem.
537 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
538 PrimaryKeyItem instead of String to hold the primary key value. Load
539 document selection page when the documentID has not been set correctly.
540 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
541 DetailsPlace -> URL and URL -> DetailsPlace conversion with
543 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
544 Return empty string for URL instead of "null".
545 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
546 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
547 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
548 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
549 PrimaryKeyItem instead of String to hold primary key values.
550 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
551 PrimaryKeyValue to a Gda Value.
552 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
553 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
554 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
555 Replace temporary database access code that uses the PrimaryKeyValue to
556 Gda Value conversion.
557 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
558 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
559 PrimaryKeyItem instead of String.
560 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
561 hold primary key values.
563 2011-11-24 Ben Konrath <ben@bagu.org>
565 Use newly added java-libglom API to create queries.
567 This isn't finished. I still need to stop using Strings for primary key
568 values in the client code.
570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
571 libglom to use fake connections so that retrieving the query string will
573 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
574 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
575 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
576 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
577 Use the newly added libglom sql methods and classes to create the
578 query. Add temporary hack to convert primary value strings to Gda
581 2011-11-23 Ben Konrath <ben@bagu.org>
583 Don't explicitly set the height of Portals.
585 See comments 6 - 10 of this bug for details:
587 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
589 * src/main/java/org/glom/web/client/ui/details/Portal.java:
591 2011-11-23 Ben Konrath <ben@bagu.org>
593 Use an HTML table instead of CSS for the FlowTable layout.
595 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
596 GWT's FlexTable to implement the FlowTable.
597 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
599 2011-11-18 Ben Konrath <ben@bagu.org>
601 Add boolean example to HTML table mockup.
603 * mockups/details-view-html-tables-text-entries.html:
605 2011-11-17 Ben Konrath <ben@bagu.org>
607 Ensure the pager buttons are always visible for related lists.
609 To accomplish this, I've turned off text wrapping in the list view and
610 related list tables for both the header and data text. The related list
611 table now has a fixed layout so the it doesn't overflow its container.
612 This is required to ensure that the cell text is clipped when it
613 overflows the cell and an ellipsis is added to the right side of the
614 cell when text is clipped.
616 A fixed table layout for the related list table in the details view
617 seems what we want for the details view anyway, so the side-effect is
620 The ellipsis will only be displayed in Firefox >= 7.
624 https://bugzilla.gnome.org/show_bug.cgi?id=662930
626 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
627 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
628 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
630 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
631 Set the 'table-layout: fixed' CSS property to the related list table.
632 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
633 'white-space: nowrap;' CSS property on both the list view and the
636 2011-11-16 Ben Konrath <ben@bagu.org>
638 Rework the fix for empty notebook tab labels.
640 Setting the empty group titles with its name caused problems for the
641 details layout. Instead of using libglom's
642 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
643 to the client when the title is empty. This allows the Notebook to use
644 the name when the title is empty without affecting anything else.
646 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
647 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
649 2011-11-16 Ben Konrath <ben@bagu.org>
651 Set group titles with name when title is empty.
653 This fixes a problem with an empty notebook tab label in the Lesson
654 Planner document. The forth tab in the notebook should be "Internet":
656 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
658 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
659 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
662 2011-11-16 Ben Konrath <ben@bagu.org>
664 Remove whitespace from the configured username properties.
666 This assumes that usernames won't have whitespace at the beginning
667 or end. But I think this is a reasonable assumption.
669 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
670 String.trim() to remove the whitespace from the username properties.
672 2011-11-15 Ben Konrath <ben@bagu.org>
674 Add details view mockup with HTML tables and text entries.
676 This is from the attachment on this bug:
678 https://bugzilla.gnome.org/show_bug.cgi?id=663109
680 * mockups/details-view-html-tables-text-entries.html:
682 2011-11-15 Ben Konrath <ben@bagu.org>
684 Add space between the columns of the flow table.
688 https://bugzilla.gnome.org/show_bug.cgi?id=662918
690 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
691 space between columns in the flow table.
693 2011-11-15 Ben Konrath <ben@bagu.org>
695 Add backup files to the .gitignore.
697 * .gitignore: Ignore files that end with ~.
699 2011-11-09 Ben Konrath <ben@bagu.org>
701 Use latest release of gwt-log.
703 Gwt-log releases are now being submitted to the maven central
704 repository so manual installation of the jar is no longer required.
706 * pom.xml: Update version and groupId of gwt-log dependency.
708 2011-10-31 Ben Konrath <ben@bagu.org>
710 Don't use GWT numeric formatting to override the glom currency formatting.
712 Currencies are now displayed like they are in Glom. See this bug:
714 https://bugzilla.gnome.org/show_bug.cgi?id=646216
716 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
718 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
719 currency code to constructor and set it when the cell is rendered.
720 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
721 currency code to the constructor of the NumericCell.
723 2011-10-27 Ben Konrath <ben@bagu.org>
725 Require the latest release of java-libglom (1.17.4).
729 2011-10-26 Ben Konrath <ben@bagu.org>
731 Add style to Notebook that matches current theme.
733 It's not the best style in the world but it's better than the default.
735 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
736 padding at the bottom of the child widgets.
737 * src/main/webapp/style.css: Add style for the Notebook.
739 2011-10-26 Ben Konrath <ben@bagu.org>
741 Move servlet initialization code to overridden init method.
743 This is half of the solution to getting proper error messages
744 displayed when configuration errors occur. Here's the relevant bug:
746 https://bugzilla.gnome.org/show_bug.cgi?id=662792
748 The rest of the solution involves surrounding the init method with a
749 try/catch block and setting a global variable with the error /
750 exception. A new async method should be created to retrieve and display
751 the error message / exception.
753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
754 code from constructor to init method adding exceptions as needed.
756 2011-10-26 Ben Konrath <ben@bagu.org>
758 Add script to monitor and restart tomcat if required.
760 * utils/check-and-recover-tomcat.py: New file.
762 2011-10-26 Ben Konrath <ben@bagu.org>
764 Display the correct number of data items in the pager.
768 https://bugzilla.gnome.org/show_bug.cgi?id=661441
770 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
771 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
772 The implementation is the same for both tables: Keep track of the
773 number of non-empty rows and fire and RowCountChangeEvent after the data has
775 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
776 custom Pager class that subclasses SimplePager to handle displaying
777 the correct number when empty rows have been added.
779 2011-10-26 Ben Konrath <ben@bagu.org>
781 Correct error in previous commit.
783 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
784 eventBus parameter from listView.setCellTable().
786 2011-10-26 Ben Konrath <ben@bagu.org>
788 Fix error in TODO comment.
790 * src/main/java/org/glom/web/client/activity/ListActivity.java:
792 2011-10-24 Ben Konrath <ben@bagu.org>
794 Create Notebook widgets to the details view.
796 This isn't finished just yet - I still need to create a reasonable
797 style to match the current theme.
799 * src/main/java/org/glom/web/client/Utils.java: Add method for
800 calculating the height of a widget. This is used in the Notebook class.
801 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
802 new constructor method in Group.
803 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
804 method for creating child widget that can be used by subclasses
805 like Notebook. New constructor that allows disabling the group
806 titles - Notebooks don't set a group title for their child groups.
807 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
808 to make Notebooks using GWT's TabLayoutPanel.
809 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
810 constructor that allows disabling the group titles.
811 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
812 LayoutItemNotebook DTO.
813 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
814 DTO for Notebooks. It's just an empty class for now but we might need
815 it to transfer some specific information in the future.
817 2011-10-21 Ben Konrath <ben@bagu.org>
819 Add navigation buttons to related list tables.
821 * src/main/java/org/glom/web/client/OnlineGlomService.java:
822 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
823 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
824 method getSuitableRecordToViewDetails() for getting the table name
825 and primary key value for related list navigation buttons.
826 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
827 private cell renderer class to get the navigation information for
828 related list tables from the server. Extract the navigation
829 processing code from the details cell navigation and use it for the
830 related list navigation as well.
831 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
832 cell renderer class for the details open buttons. This was needed
833 because the related list navigation buttons and the list view
834 navigation buttons need to react differently when clicked.
835 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
836 the onEnterKeyDown() method because it's now overriden in the
837 subclasses that are specific to the related list tables and the list
839 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
840 the vertical size a little because the buttons add a bit of vertical
841 space to table. This is not a perfect solution because the vertical
842 size of with table fewer than 5 rows will be a little smaller.
843 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
844 changes in how navigation buttons are handled.
845 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
846 getSuitableRecordToViewDetails() using the new RelatedListNavigation
847 database access object.
848 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
849 to find the portal for a given relationship name from
850 RelatedListDBAccess. Add method to find a primary key field for a
852 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
853 Move code to find the portal for a given relationship name to
855 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
856 New file: database access object for getting the related list
857 navigation information (the table name and the primary key value).
858 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
859 DTO for transferring a table name to navigate to and a primary key
861 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
862 boolean and getter/setter to specifies if the related list should add
865 2011-10-24 Murray Cumming <murrayc@murrayc.com>
867 Use the master branch of java-libglom
869 * pom.xml: Depend on java-libglom 1.19 instead.
871 This is the master branch. See also the libglom-1-18 branch.
873 2011-10-11 Ben Konrath <ben@bagu.org>
875 Enable the open navigation button when the data has been set.
877 This avoids having active buttons that don't do anything when the data
880 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
882 2011-10-11 Ben Konrath <ben@bagu.org>
884 Use IsWidget interface for FlowTableItem.
886 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
887 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
889 2011-10-11 Ben Konrath <ben@bagu.org>
891 Remove GWT styling from open button in details view.
893 There are still some issues with how the details cell is arranged but
894 this should be made to match Glom 1.20. I'm going to leave fixing this
895 until I have Glom 1.20 up and running.
897 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
898 style name on open button.
899 * src/main/webapp/style.css: Move and edit details-navigation class.
900 Re-arrange some classes to make them appear in the same order as the
903 2011-10-07 Ben Konrath <ben@bagu.org>
907 * .gitignore: Ignore new cache directory.
908 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
909 * pom.xml: Change GWT and maven plugin to 2.4.0.
910 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
912 * src/main/java/org/glom/web/client/ClientFactory.java:
913 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
914 * src/main/java/org/glom/web/client/OnlineGlom.java:
915 Update source for API changes.
916 * utils/build-onlineglom-war.sh: Remove cache directory before the
919 2011-10-07 Ben Konrath <ben@bagu.org>
921 Add navigation buttons in the details view.
923 This isn't finished but I thought I'd commit what I have as it's a
924 pretty good start. I still need to:
926 1. Change the style so that it fits better into the current theme
927 2. Adjust the details cell to expand as much as possible.
929 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
930 click handlers to navigation buttons in the DetailsCells. Create a
931 refreshData() method to get just the data from the server without the
933 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
934 Update the tableSelector and browser title when the table name
935 changes without using the tableSelector.
936 * src/main/java/org/glom/web/client/ui/DetailsView.java:
937 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
938 getDetailsCells() to getCells(). Update variable names.
939 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
940 method to set click handler on navigation button. Rename a few
941 variables. Add navigation buttons where needed.
942 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
943 variables and methods.
944 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
945 navigation boolean and navigation table as required in the
947 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
948 variables for navigation along with getter/setter methods.
950 2011-10-07 Ben Konrath <ben@bagu.org>
952 Rename Field to DetailsCell.
954 This is a refactor-only commit. No functionality has been added or
957 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
958 Update variable and method names.
959 * src/main/java/org/glom/web/client/ui/DetailsView.java:
960 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
961 variable and method names.
962 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
964 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
965 variable and method names.
967 2011-10-07 Ben Konrath <ben@bagu.org>
969 Create separate methods for layout and data the details view.
971 This is a refactor-only commit. No functionality has been added or
974 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
975 private methods: setData(), createLayout().
977 2011-10-07 Ben Konrath <ben@bagu.org>
979 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
981 This is part of a change to get navigation buttons in the details view
982 but it should have been done this way from the start.
984 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
985 for method name change in TableSelectionView.
986 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
987 Create TableChangeEvent and set the browser title using the
988 TableSelectionView API.
989 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
990 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
991 Change getSelectedTable() to getSelectedTableName(). Add
992 getSelectedTableTitle().
994 2011-10-07 Ben Konrath <ben@bagu.org>
996 Use primaryKeyValue naming convention in constructor of DetailsPlace.
998 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1000 2011-10-07 Ben Konrath <ben@bagu.org>
1002 Update TableChangeEvent to use newTableName naming convention.
1004 This makes the class more consistent with GWT naming conventions.
1006 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1007 Update for method name change in TableChangeEvent.
1008 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
1009 for method name change in TableChangeEvent.
1010 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
1011 newTableName variable and getter method. Make toDebugString()
1014 2011-09-30 Ben Konrath <ben@bagu.org>
1016 Disable the pager in the list tables when the data row count is less than the minimum.
1018 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1019 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1021 2011-09-30 Ben Konrath <ben@bagu.org>
1023 Add empty rows to the end of related list and list view tables.
1025 I also extracted the cell rendering classes from the ListTable because
1026 the code was becoming a little crazy with all the anonymous inner
1027 classes. My plan is to use these cell rendering classes in the details
1028 view as well so this refactor will be needed for that change.
1030 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1031 set the row count in related list tables if the data has more rows
1032 than the minimum number of rows visible.
1033 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1034 row count in list view tables if the data has more rows than the
1035 minimum number of rows visible.
1036 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1037 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1039 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1040 for rendering TYPE_NUMERIC cells. The code was extracted from the
1042 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1043 class for rendering cells with buttons in list views. The code was
1044 extracted from the ListTable class.
1045 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1046 for rendering TYPE_TEXT cells. The code was extracted from the
1048 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1049 Add empty rows to the end of the data if required. Implement
1050 ListTable.getMinNumVisibleRows().
1051 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1052 cell renderer code to public classes. Return null in
1053 Column.getValue() for empty rows. Add new abstract method:
1054 getMinNumVisibleRows(). Move code to set the row count of the list view
1055 table to ListViewImpl.
1056 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1057 empty rows to the end of the data if required. Implement
1058 ListTable.getMinNumVisibleRows().
1061 2011-09-27 Ben Konrath <ben@bagu.org>
1063 Use GWT.log for client-side debugging statements.
1065 These are optimized out when deployed so I should have used this method
1066 in the first place. These statements will eventually be replaced with some sort
1067 of notification in the browser.
1069 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1070 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1071 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1072 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1073 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1075 2011-09-27 Ben Konrath <ben@bagu.org>
1077 Put tableselector on the right, back to list link on right.
1079 The idea is that the table selector is acting like a label for the
1080 currently displayed table so it should be placed below the document title. This
1081 puts the table title in a similar position to where it is in Glom.
1083 * mockups/details-contacts.html:
1084 * mockups/details-projects.html:
1085 * mockups/listview-contacts.html:
1086 * mockups/listview-projects.html:
1087 * mockups/style.css:
1088 Update mockups to match how the interfaces currently look.
1089 * src/main/webapp/style.css: Swap positions of backlink with the table
1090 selector. Add some space on the left side of the table selector to
1091 line things up with the document title.
1093 2011-09-27 Ben Konrath <ben@bagu.org>
1095 Add field colouring to details view.
1097 This change re-works how field colouring works. The colour formatting
1098 information is now set to the client with the layout information instead of
1099 with the data. This eliminates the need to send the same colour strings for
1100 data in list view column when colour information is set.
1102 In order to set an alternate colour for negative numeric values, the
1103 number is now sent to client and formatted with the GWT NumberFormat class.
1105 This change also fixes:
1107 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1109 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1110 internationalization framework which is needed for client side numeric
1112 * src/main/java/org/glom/web/client/Utils.java: New file for some
1113 client static utility methods.
1114 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1115 the DataItem object to the Field class. Use a utility method to
1116 create the foreignKeyValue string.
1117 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1118 alignment and text colours in the constructor. Add setData(DataItem)
1119 method. Remove setText(String) method.
1120 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1121 colour information to GlomTextCell. Create and use GlomNumberCell for
1122 rendering numbers. Use utility method to get the string for the
1123 primary key of the key provider. Re-work how the horizontal alignment
1125 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1126 formatting to layout information. Methods for converting the libglom
1127 formatting information were moved from DBAccess.
1128 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1129 numeric formatting (it's now done on the client side). Don't set text
1130 colours in DataItem. Move libglom formatting conversion methods to
1132 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1133 getters/setters for text colour information.
1134 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1135 for transferring the libglom NumericFormat information to the client.
1136 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1137 and getters/setters for: GlomNumericFormat, background colour and
1138 foreground colour strings.
1140 2011-09-26 Ben Konrath <ben@bagu.org>
1142 Simplify code that iterates through the LayoutGroup.
1144 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1146 2011-09-26 Ben Konrath <ben@bagu.org>
1148 Accept Eclipse formatting for OnlineGlomServiceAsync.
1150 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1152 2011-09-26 Ben Konrath <ben@bagu.org>
1154 Don't use the ListDBAccess classes to get the primary key layout information.
1156 This was causing a bug where the wrong index for the hidden primary key
1157 was being sent to the client.
1159 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1160 primary key while creating the LayoutGroup DTO. Create a
1161 LayoutItemField DTO for hidden primary keys. Don't use the
1162 RelatedListDBAccess because it was only used for getting the primary
1164 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1165 access modifier from public to protected for getPrimaryKeyField() and
1166 getPrimaryKeyLayoutItemField().
1167 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1168 abstract method getExpectedResultSize() because RelatedListDBAccess
1169 doesn't have enough info to implement it.
1170 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1171 Remove @Override for getExpectedResultSize().
1172 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1173 Remove method getExpectedResultSize().
1175 2011-09-23 Ben Konrath <ben@bagu.org>
1177 Log which layout (list or details) the ignored item is from.
1179 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1181 2011-09-23 Ben Konrath <ben@bagu.org>
1183 Remove annotations that turn off code formatting in DataItem.
1185 * src/main/java/org/glom/web/shared/DataItem.java:
1187 2011-09-23 Ben Konrath <ben@bagu.org>
1189 Rename GlomField to DataItem and update associated methods.
1191 This is a rename-only refactor. No functionality has been added or
1194 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1195 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1196 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1197 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1198 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1199 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1200 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1201 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1202 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1203 * src/main/java/org/glom/web/server/database/DBAccess.java:
1204 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1205 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1206 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1207 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1208 * src/main/java/org/glom/web/shared/DataItem.java:
1209 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1210 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1212 2011-09-23 Ben Konrath <ben@bagu.org>
1214 Rename GlomDocument to DocumentInfo and update associated methods.
1216 This is a rename-only refactor. No functionality has been added or
1219 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1220 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1221 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1222 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1223 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1225 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1227 2011-09-20 Ben Konrath <ben@bagu.org>
1229 Require java-libglom 1.17.3.
1231 This picks up the fix for the seg fault problem with the Scenes table
1232 in the Openismus Film Manager example.
1236 2011-09-20 Ben Konrath <ben@bagu.org>
1238 Change the way sort clause is added for primary key when no sort clause is requested.
1240 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1241 before the sort clause is created. When a sort clause is not requested, the
1242 sort clause is created by finding the primary key in the LayoutFieldVector
1245 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1247 2011-09-20 Ben Konrath <ben@bagu.org>
1249 Log error message if no documents are found in the configured directory.
1251 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1252 Extract the glom file extension string to a private static final class
1253 variable (mostly as syntactic sugar). Accept a minor formatting change.
1254 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1255 the example glom.document.directory configuration property to make it
1256 more clear that it can any directory, not just the home directory.
1258 2011-09-18 Ben Konrath <ben@bagu.org>
1260 Add related lists to details view.
1262 The related list table has support for paging and sorting just like the
1263 table in the list view.
1265 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1266 SQL queries for the related list tables.
1267 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1268 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1270 Rename getList methods to getListView and add comments. Remove
1271 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1272 it being unused. Add methods: getDetailsLayoutAndData(),
1273 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1274 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1275 Create the layout and set the data for the fields in one async call
1276 instead of two. Create related lists where appropriate.
1277 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1278 for method name changes in OnlineGlomService.
1279 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1280 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1281 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1283 * src/main/java/org/glom/web/client/ui/ListView.java:
1284 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1285 tableName from setCellTable(). Create a ListViewTable instead of
1287 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1288 represent a data field in the details view.
1289 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1290 from addDetailsCell() to Field class. Keep track of the Fields and
1291 Portals in the details view.
1292 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1293 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1294 and add a method to get it. Add method to set the contents of the
1296 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1297 New class for related list tables. This class has the data provider
1298 for the related list table.
1299 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1300 abstract class which is the base class for the ListViewTable and the
1302 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1303 New class for list view tables. This class has the data provider for
1304 the list view table.
1305 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1306 methods for related list tables. Add more information to the
1307 LayoutItemField and LayoutItemPortal DTOs.
1308 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1309 Remove debugging print statement.
1310 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1311 Remove debugging print statements. Add primary key field to SQL count
1313 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1314 Remove unnecessary LayoutFieldVector parameter from
1315 getResultSizeOfSQLQuery() method.
1316 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1317 New class for related list table database access.
1318 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1319 class that is a wrapper DTO for details view layout and data.
1320 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1321 new 'fromField' string to this DTO.
1322 * src/main/webapp/style.css: Remove bottom margin and override top
1325 2011-09-15 Ben Konrath <ben@bagu.org>
1327 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1329 This sets things up to make it easier to add the data retrieval for
1330 related lists (portals). No user noticeable changes were made with
1333 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1334 class has the code to retrieve the layouts and access the
1335 database using the new database helper classes.
1336 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1337 Most of the functionality has been removed from this class. This
1338 class now represents the public interface for the client side
1339 code. It also deals with configuring the servlet and cleaning
1340 things up when the servlet is stopped.
1341 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1342 of static methods into this utility class.
1343 * src/main/java/org/glom/web/server/database/DBAccess.java:
1344 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1345 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1346 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1347 These classes have the database retrieval code. The class hierarchy
1348 has been setup to make it easy to reuse code for similar
1351 2011-09-06 Ben Konrath <ben@bagu.org>
1353 Create separate classes for list table code and the data provider.
1355 As part of this refactor, I also split up the code a bit to make it
1358 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1359 table code to two new classes (below).
1360 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1361 with code from ListViewImpl.
1362 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1363 New file with code from ListViewImpl.
1365 2011-09-06 Ben Konrath <ben@bagu.org>
1367 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1369 This fixes the LayoutItemPortal DTO to match the libglom layout object
1372 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1374 2011-09-01 Ben Konrath <ben@bagu.org>
1376 Set title of Portals in the Details View.
1378 * pom.xml: Bump required version of java-libglom to 1.17.1.
1379 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1380 widget creation to its own class. Add comments to constructor.
1381 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1382 The code is mostly from the Group class with the title now set.
1383 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1384 title of Portal. Update some comments. Fix some code formatting.
1386 2011-09-01 Ben Konrath <ben@bagu.org>
1388 Remove TODO comment for the flow table column width.
1390 The flow table column width is working correctly and doesn't need to be
1391 changed. See this mailing list post for more info:
1393 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1395 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1397 2011-08-27 Ben Konrath <ben@bagu.org>
1399 Add document title (database name) to top of the browser page.
1401 I added the document title to the TableSelecitonView but that will
1402 change if / when we add a view that doesn't require table selection.
1404 * mockups/details-contacts.html:
1405 * mockups/details-projects.html:
1406 * mockups/listview-contacts.html:
1407 * mockups/listview-projects.html:
1408 * mockups/style.css: Add document title to mockups to keep things
1410 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1411 sizes to account for the document title.
1412 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1413 Set the document title when it has been retrieved from the server.
1414 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1415 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1416 and implement setDocumentTitle(String) method.
1417 * src/main/webapp/style.css: Add ID for document title style.
1419 2011-08-25 Ben Konrath <ben@bagu.org>
1421 Add NavigationType enum to LayoutItemPortal DTO.
1423 This is the start of adding support for Portals to the Details View.
1425 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1426 LayoutItem_Portal.navigation_type enum from libglom to
1427 LayoutItemPortal.NavigationType enum.
1428 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1429 NavigationType enum, field for storing the NavigationType and getter
1432 2011-08-25 Ben Konrath <ben@bagu.org>
1434 Implement the flow table layout in the Details View.
1436 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1437 FlowTable to Group to account for the renamed class.
1438 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1439 File. This is a container widget that implements the Glom details view
1440 flow table behaviour.
1441 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1442 org/glom/web/client/ui/FlowTable.java.
1443 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1444 so that the size of the subgroups are a closer match to the size of
1445 the Glom subgroups. This makes the flowtable layout match the layout
1446 in Glom for the Music Collection example file.
1448 2011-08-16 Ben Konrath <ben@bagu.org>
1450 Create container element for LayoutItemPortal in Details View.
1452 This will help me develop the layout for the FlowTable.
1454 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1455 fieldPanel variable to detailsCell.
1457 2011-08-15 Ben Konrath <ben@bagu.org>
1459 Set the height of the data element in the Details View.
1461 I changed the InlineLabels (text in a span element) to Labels (text in
1462 a div element) so that I could set the height of the details-data
1463 elements instead of the details-cell parent elements. This allows the
1464 the details-data element to display the correct height if style is
1465 applied that shows the height.
1467 This change has the added benefit of allowing the order of the labels
1468 and data elements to be changed for right-to-left languages.
1470 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1471 InlineLabels to Labels.
1472 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1473 InlineLabels to Labels. Set the height of the data element.
1474 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1475 multiline text height in the Formatting DTO.
1476 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1477 for multiline height along with getter and setter methods.
1478 * src/main/webapp/style.css: Adjust style to account for the change
1479 from span elements to div elements in the details cell.
1481 2011-08-15 Ben Konrath <ben@bagu.org>
1483 Make the List View appearance match the mockups.
1485 It doesn't match exactly but it's much better than it was.
1487 * mockups/listview-contacts.html: Remove unused css classes.
1488 * mockups/listview-projects.html: Remove unused css classes.
1489 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1490 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1491 for mainPanel instead of VerticalPanel (table). Set style name on
1492 CellTable. Set style name on Details column. Right-align Details
1494 * src/main/webapp/style.css: Adjust properties to match the mockups.
1496 2011-08-12 Ben Konrath <ben@bagu.org>
1498 Add better support for subgroups in the details view.
1500 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1501 changed FlowTable constructor.
1502 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1503 support for subgroups and subgroup-titles.
1504 * src/main/webapp/style.css: Add CSS class for subgroups and
1507 2011-08-12 Ben Konrath <ben@bagu.org>
1509 Return the top level LayoutGroup title.
1511 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1513 2011-08-11 Ben Konrath <ben@bagu.org>
1515 Make the TableSelector header match the mockup.
1517 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1518 the layout panel. Properly lineup the table selection header with
1519 the list and details view.
1520 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1521 margin around the details view.
1522 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1523 Rename listBox variable to tableSelector. Set id for the style sheet.
1524 Use a FlowPanel instead of a HorizontalPanel.
1525 * src/main/webapp/style.css: Add properties to make the TableSelector
1526 box match the mockups.
1528 2011-07-13 Ben Konrath <ben@bagu.org>
1530 Update install script for java-libglom version change.
1532 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1535 2011-07-13 Ben Konrath <ben@bagu.org>
1537 Add support sub-group in the details view.
1539 I also removed the code that special-cased the default details view
1542 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1544 I still have to make a proper flowtable.
1546 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1547 Don't special-case default details view layout.
1548 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1549 addLayoutField() as I'm going to use it.
1550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1551 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1553 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1554 extracted from DetailsViewImpl.GroupPanel. Add support for
1556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1557 column count when getting the details layout.
1559 2011-07-12 Ben Konrath <ben@bagu.org>
1561 Set browser title with database and table titles.
1563 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1564 Set the browser title when the table changes and when the activity
1566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1567 title when retrieving document info (the GlomDocument object).
1568 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1569 with getter and setter methods. Remove unused convenience constructor.
1570 Use default code formatting.
1572 2011-07-12 Ben Konrath <ben@bagu.org>
1574 Ignore LayoutItemPortals in the details view.
1576 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1579 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1580 LayoutItemPortal layout objects.
1581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1582 LayoutItemPortal objects when retrieving the details layout.
1583 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1584 file. This is an empty class and just used to get type information for
1587 2011-07-12 Ben Konrath <ben@bagu.org>
1589 Use java-libglom 1.17.0.
1593 2011-07-11 Ben Konrath <ben@bagu.org>
1595 Remove "Table:" label from table selector.
1597 This matches a recent change in the Glom UI.
1599 * mockups/details-contacts.html:
1600 * mockups/details-projects.html:
1601 * mockups/listview-contacts.html:
1602 * mockups/listview-projects.html: Remove the "Table:" label from the
1604 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1606 2011-07-11 Ben Konrath <ben@bagu.org>
1608 Add main groups to the details view.
1610 This makes things look a little nicer in the details view. The next step
1611 is to implement the flowtable.
1613 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1614 resources from the standard gwt css theme. Standard.css is now
1615 included in OnlineGlom.html so that the online glom css rules have
1616 precedence over the gwt theme.
1617 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1618 the whole LayoutGroup to the DetailsView instead of just the titles.
1619 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1620 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1621 details layout with a helper class (GroupPanel). I might extract this
1622 class when I make the full flowtable.
1623 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1624 string as default so I don't have to worry about NPEs when processing
1626 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1627 note beside OnlineGlom.gwt.xml above).
1628 * src/main/webapp/style.css: Add default font-size to body to override
1629 the font-size set by the standard theme. Don't use h2 tags for
1630 group-title. Create new details-cell class.
1632 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1634 ConfiguredDocument: Set the port number too.
1636 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1637 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1638 Glom document. Presumably this worked sometimes so far because there is a
1639 default port number.
1641 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1643 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1645 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1646 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1647 correct, though we should throw an exception too.
1649 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1651 Fix a addDocuemnt typo.
1653 * src/main/java/org/glom/web/shared/Documents.java
1654 (Documents.addDocuemnt): Rename to addDocument().
1655 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1656 (OnlineGlomServiceImpl.getDocuments): Adapt.
1658 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1660 Slightly improved log output when connection fails.
1662 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1663 (ConfiguredDocument.setUsernameAndPassword):
1664 We don't know for sure if it' the username/password that's wrong, so
1665 rephrase the message.
1666 Also ouput the exception message, though it's generic in this case.
1668 2011-07-08 Ben Konrath <ben@bagu.org>
1672 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1673 added braces to a one line if statement because the Eclipse formatter
1674 was getting confused.
1676 2011-07-07 Ben Konrath <ben@bagu.org>
1678 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1680 These should really be two separate tasks but I counldn't get things to
1681 work with GWT 2.2.0 and Eclipse 3.7.
1685 * .settings/org.eclipse.jdt.core.prefs:
1686 * .settings/org.eclipse.jdt.ui.prefs:
1687 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1688 * .settings/org.eclipse.m2e.core.prefs:
1689 Add new config files. Update current files. Remove references to the
1690 webtools plugins as we're not using any of the webtools features.
1691 * .gitignore: Add logs directory which is created when running with
1693 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1694 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1695 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1697 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1699 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1701 onlineglom.properties: Add explanatory comments.
1703 * src/main/resources/onlineglom.properties: Also change the default user
1704 from ben to someuser, to avoid the risk of people thinking we just
1705 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1707 2011-06-28 Ben Konrath <ben@bagu.org>
1709 Use filename in Log for incorrect passwords.
1711 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1712 getFileName(String) method to get the filename from the URI.
1714 2011-06-28 Ben Konrath <ben@bagu.org>
1716 Add the table name to the URL token for the ListPlace.
1718 This makes things consistent between the DetailsPlace and the
1719 ListPlace. It also allows the the ListPlace to be bookmarked.
1721 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1722 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1723 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1724 Remove getDefaultListLayout(). The default layout is now returned
1725 by the getListLayout() method when the table name is an empty string.
1726 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1727 Add table name field. Change to a new ListPlace when the table
1728 has been changed. Use getListLayout() for getting the default
1730 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1731 Add table name field. Set the correct table name in the list box
1732 when loading from bookmark. This corrects a problem for the
1734 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1735 Move table name to super-class (HasSelectableTable). Move document
1736 and table URL keys to super-class in HasSelectableTable.
1737 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1738 Add table name field. Add Tokenizer class with URL key common to
1739 the subclasses (DetailsPlace and ListPlace).
1740 * src/main/java/org/glom/web/client/place/ListPlace.java:
1741 Add table name. Add code to parse the URL token.
1742 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1743 Update ListPlace construction with empty table name string.
1744 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1745 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1746 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1747 Update ListPlace construction with table name string.
1748 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1749 Change defaultTableName field to tableName to reflect how it's now
1750 used. Update the getter and setter methods.
1752 2011-06-28 Ben Konrath <ben@bagu.org>
1754 Enable the table selector in the DetailsView.
1756 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1757 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1758 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1759 Remove getDefaultDetailsLayout(). The default layout is now returned
1760 by the getDetailsLayout() method when the table name is an empty
1762 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1763 event handler for table change event. Change to using
1764 getDetailsLayout() for the default details layout.
1765 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1767 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1768 when navigating to the details place.
1770 2011-06-27 Ben Konrath <ben@bagu.org>
1772 Use filename based unique document ID in URL and for RPC.
1774 The document ID is the glom document name with spaces (' ') replaced
1775 with pluses ('+') and without the .glom extension.
1777 This change is mostly a string substitution of 'documentTitle' for
1778 'documentID'. The only code change is the addition of a Documents DTO to get the
1779 filename to document title mappings as indicated below.
1781 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1782 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1783 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1784 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1785 Use Documents DTO to create the document links in the document
1787 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1788 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1789 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1790 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1791 * src/main/java/org/glom/web/client/place/ListPlace.java:
1792 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1793 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1794 * src/main/java/org/glom/web/client/ui/ListView.java:
1795 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1796 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1797 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1798 * src/main/java/org/glom/web/server/Log.java:
1799 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1800 getDocumentTitles() to getDocuments() and return the Documents DTO.
1801 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1802 transferring the filename to document title mappings.
1804 2011-06-25 Ben Konrath <ben@bagu.org>
1806 Make the authentication popup work again.
1808 This bug was introduced when I extracted ConfiguredDocument to its own class.
1810 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1811 correct success / fail status in setUsernameAndPassword().
1813 2011-06-25 Ben Konrath <ben@bagu.org>
1815 Use filename as unique key for configuring database usernames and passwords.
1817 This replaces the use of the Glom document title which could change
1818 depending on the locale. Thanks to Murray Cumming for pointing out this
1821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1822 * src/main/resources/onlineglom.properties:
1824 2011-06-24 Ben Konrath <ben@bagu.org>
1826 Pass primary key value to DetailsView.
1828 This enables the DetailsView to load the correct data.
1830 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1831 primary key value field and set in constructor. Pass primary key
1832 value to getDetailsData().
1833 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1834 variables for document title and primary key value.
1835 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1836 key value to the DetailsPlace.
1838 2011-06-24 Ben Konrath <ben@bagu.org>
1840 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1842 This allows the primary key to be retrieved by the Details button. This
1843 functionality has not been implemented yet but it's in the works.
1845 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1846 the LayoutGroup result to ListView.setCellTable instead of all of its
1847 fields individually.
1848 * src/main/java/org/glom/web/client/ui/ListView.java:
1849 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1850 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1851 get the primary key for the table.
1852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1853 index of the primary key in the LayoutGroup accounting for hidden
1854 primary keys. Rename getJavaNumberFormat() to
1855 convertToJavaNumberFormat() for consistency. Cleanup / add some
1857 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1858 field for primary key index and a field to indicate whether the
1859 primary key is hidden or not.
1861 2011-06-23 Ben Konrath <ben@bagu.org>
1863 Rename getTableData methods to getListData.
1865 This is a rename refactor for consistency with other methods.
1867 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1868 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1869 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1872 2011-06-23 Ben Konrath <ben@bagu.org>
1874 Extract the ConfiguredDocument innerclass into its own class.
1876 This makes the servlet code more object oriented.
1878 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1879 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1881 new ConfiguredDocument class.
1883 2011-06-21 Ben Konrath <ben@bagu.org>
1885 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1887 This makes things more inline with how libglom works and reduces code
1888 duplication. This refactor lays the groundwork for adding the primary key to
1889 the LayoutGroup object.
1891 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1892 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1893 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1894 Change method names to getListLayout and getDefaultListLayout for
1895 consistency. Use LayoutGroup as the DTO for the list layout instead of
1896 ColumnInfo and LayoutListTable.
1897 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1898 new method names along with the LayoutGroup object for transferring the
1900 * src/main/java/org/glom/web/client/ui/ListView.java:
1901 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1902 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1903 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1905 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1906 Replaced with LayoutGroup.
1907 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1908 expectedResultSize and defaultTableName fields which are needed for
1910 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1911 type field which is needed for the list layout but will also be
1912 useful for the details layout as things progress.
1913 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1914 Make class abstract. Remove the unnecessary
1915 getFormattingHorizontalAlignment method. Add setFormatting method.
1917 2011-06-16 Ben Konrath <ben@bagu.org>
1919 Add scripts for building and installing war.
1921 These will help when updating OnlineGlom but they're also good
1922 supplemental documentation of the build and deployment proceeding.
1924 * utils/build-onlineglom-war.sh: New file.
1925 * utils/install-onlineglom-war.sh: New file.
1927 2011-06-16 Ben Konrath <ben@bagu.org>
1929 Create wrapper class to create consistent log messages.
1931 I wrapped methods in the Log class of gwt-log to add the method names
1932 from the servlet and create consistent formatting of the document title
1933 and table names in the log messages.
1935 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1936 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1937 log methods to use methods from wrapped Log class.
1939 2011-06-16 Ben Konrath <ben@bagu.org>
1941 Remove superfluous conditional return.
1943 Thanks to Murray Cumming for pointing this out!
1945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1947 2011-06-15 Ben Konrath <ben@bagu.org>
1949 Return an ArrayList of LayoutGroups for the Details layout.
1951 This corrects a problem with the details layout as it can have more
1952 than one top level LayoutGroup.
1954 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1955 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1956 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1957 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1958 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1959 with ArrayList of LayoutGroups for the details view layout.
1960 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1961 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1962 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1963 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1964 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1965 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1967 2011-06-14 Ben Konrath <ben@bagu.org>
1969 Use cast_dynamic method to determine the libglom LayoutItem type.
1971 This is better than finding the LayoutItem type by using the string
1972 returned from the get_part_type_name() method.
1974 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1976 2011-06-14 Ben Konrath <ben@bagu.org>
1978 Add method names to log entries in the servlet.
1980 This helps when tracking down deployment problems.
1982 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1984 2011-06-14 Ben Konrath <ben@bagu.org>
1986 Add data to the DetailsView using a hard-coded primary key value.
1988 The layout and functionality of the DetailsView is not complete. This
1989 is just a checkpoint so the patch doesn't get too big.
1991 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1992 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1993 Add getDetailsData() servlet method.
1994 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1995 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1996 LayoutFields are added to the DetailsView.
1997 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1998 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1999 Add setData() method. Change addLayoutGroup() and addLayoutField() to
2000 take the string for the title instead of the object.
2001 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2002 Add implementation getDetailsData() along with some private helper
2004 * src/main/webapp/style.css: Add padding to details-data class. Add a
2005 details-label class with the same padding as the details-data class.
2007 2011-06-03 Ben Konrath <ben@bagu.org>
2009 Use presenter.goTo() to change to the DetailsPlace.
2011 This will make things easier when we need to open the DetailsView with
2012 data specific to the row that was clicked.
2014 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2016 2011-06-02 Ben Konrath <ben@bagu.org>
2018 Add CSS file from mockups.
2020 I'm adding this now because it's going to be useful to have when
2021 developing the DetailsView. The TableSelectionView and ListView aren't
2024 * src/main/webapp/OnlineGlom.html:
2025 * src/main/webapp/style.css:
2027 2011-06-02 Ben Konrath <ben@bagu.org>
2029 Use String.isEmpty() to check for empty string.
2031 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2033 2011-06-02 Ben Konrath <ben@bagu.org>
2035 Display main layout group titles in the DetailsView.
2037 This is the start of the DetailsActivity/DetailsView implementation.
2039 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2040 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2041 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2042 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2043 Get the layout information for the details view from the server and set
2044 the main layout group titles.
2045 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2046 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2047 Add addLayoutGroup() and addLayoutField() methods. This are just
2048 temporary methods for creating the the details view that will change
2050 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2051 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2053 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2054 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2055 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2056 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2057 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2058 Data Transfer Objects that mimic the libglom object structure. These are
2059 used for transferring the details layout but could also be used for
2060 transferring the list layout.
2062 2011-05-27 Ben Konrath <ben@bagu.org>
2064 Reset the AuthenticationPopup when clearing the ListView.
2066 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2068 2011-05-27 Ben Konrath <ben@bagu.org>
2070 Fix problem with onlineglom.properties file loading.
2072 The old way worked in Eclipse but not on the server. Loading the
2073 onlineglom.properties file now works in Eclipse and on the server.
2075 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2077 2011-05-24 Ben Konrath <ben@bagu.org>
2079 Update gwt-log from 3.1.0 to 3.1.2.
2081 Gwt-log 3.1.0 has been marked as depreciated.
2085 2011-05-24 Ben Konrath <ben@bagu.org>
2087 Add comment to ListActivity.goTo() method.
2089 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2091 2011-05-24 Ben Konrath <ben@bagu.org>
2093 Remove FIXME in convertGdkColorToHtmlColour()
2095 The Gdk::Color value returned by libglom is 16-bits per channel on both
2096 64 and 32-bit platforms.
2098 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2100 2011-05-19 Ben Konrath <ben@bagu.org>
2102 Improve performance of initial ListView load.
2104 I removed a round trip to the server for getting the default table name
2105 and then requesting information about that table. This also removes a potential
2106 problem with the table change handler not being setup in time to receive the
2107 table change event from the ListActivity.
2109 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2110 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2111 getDefaultLayoutListTable() method. Improve comments.
2112 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2113 getDefaultLayoutListTable() method instead of firing a table change
2114 event to get the table to load.
2115 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2116 implementation of getDefaultLayoutListTable() method.
2117 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2120 2011-05-19 Ben Konrath <ben@bagu.org>
2122 Override toDebugString() in TableChangeEvent.
2124 This is useful to have for debugging.
2126 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2128 2011-05-19 Ben Konrath <ben@bagu.org>
2130 Add a "Back to List" link when at the DetailsPlace.
2132 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2133 Populate the CellTable based on the selected table of the ListBox if
2134 it's set otherwise use the default table. This allows the "Back to
2136 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2137 Remove Place from constructors. Add a setPlace() method. Add
2138 goToPlace() method. Set class as presenter for TableSelectionView.
2139 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2140 Use the same TableSelectionActivity when switching between the List and
2142 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2143 Subclass the new HasSelectableTablePlace. This removes some duplicate
2145 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2146 New class to represent Places that display the TableSelectionView.
2147 * src/main/java/org/glom/web/client/place/ListPlace.java:
2148 Subclass the new HasSelectableTablePlace. This removes some duplicate
2150 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2151 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2152 Add Presenter interface. Add setBackLinkVisible() method. Add
2153 setBackLink() method.
2155 2011-05-18 Ben Konrath <ben@bagu.org>
2157 Enable the "Details" buttons.
2159 Right now only an empty details view is displayed.
2161 * src/main/java/org/glom/web/client/ClientFactory.java:
2162 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2163 Add DetailsView to ClientFactory.
2164 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2165 A basic activity for the details view.
2166 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2167 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2169 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2170 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2172 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2173 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2174 unnecessary super() in constructor.
2175 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2176 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2177 really shouldn't create a new TableSelectionActivity for both the ListPlace
2178 and the DetailsPlace so this should be considered a temporary solution.
2179 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2180 New file. Represents a URL for the details view.
2181 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2182 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2183 A basic details view interface and implementation.
2184 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2185 Enable the "Details" buttons.
2187 2011-05-12 Ben Konrath <ben@bagu.org>
2189 Use a LayoutPanel with multiple display areas for main layout.
2191 This is mostly a refactor in that there are no changes from the user
2192 point of view. These changes are required so that we can swap out the list view
2193 with the details view when the user clicks the "Details" button.
2195 * src/main/java/org/glom/web/client/ClientFactory.java:
2196 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2197 OnlineGlomView. Add TableSelectionView, ListView and
2198 AuthenticationPopup.
2199 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2200 for main layout. Add display regions for main activities. Add
2201 activity manager for for main activities.
2202 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2203 file from parts of the deleted OnlineGlomActivity.
2204 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2205 New file from parts of the deleted OnlineGlomActivity.
2206 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2207 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2208 New files for app wide table change event.
2209 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2210 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2211 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2212 Activity mappers for the main activities replace the deleted app-wide
2214 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2215 Fix a spelling error in he comment.
2216 * src/main/java/org/glom/web/client/ui/ListView.java:
2217 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2218 Renamed from LayoutListView and modified for MVP. This still not a
2219 proper dumb view as prescribed by the MVP pattern but it works for now.
2220 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2221 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2222 New widget stripped out of the deleted OnlineGlomView.
2223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2224 Remove hack that is fixed by this patch.
2226 2011-05-06 Ben Konrath <ben@bagu.org>
2228 Rename OnlineGlomPlace to ListPlace.
2230 The only change besides the rename is that url will now display #list
2231 instead of #Document.
2233 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2234 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2235 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2236 * src/main/java/org/glom/web/client/place/ListPlace.java:
2237 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2239 2011-05-06 Ben Konrath <ben@bagu.org>
2241 Use Presenter for app navigation.
2243 This is the proper way to deal with Place (URL) changes with the MVP
2246 * src/main/java/org/glom/web/client/ClientFactory.java:
2247 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2248 PlaceHistoryMapper and PlaceHistoryHandler.
2249 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2250 PlaceHistoryMapper and PlaceHistoryHandler.
2251 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2252 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2253 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2254 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2255 Add Presenter interface and setPresenter methods. Rename addHyperLink
2256 to addDocumentLink taking only the document title as a parameter.
2258 2011-04-14 Ben Konrath <ben@bagu.org>
2260 Prompt for db username/password if they haven't been set.
2262 This is implemented with a popup widget that is contained within the
2263 OnlineGlomView and managed by the OnlineGlomActivity.
2265 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2266 methods for checking and setting the database username and password.
2267 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2268 new methods for checking and setting the database username and
2270 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2271 Display authentication popup if the JDBC connection to the database
2272 has not been authenticated.
2273 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2275 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2276 for dealing with the authentication popup.
2277 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2278 Implement the methods for dealing with the authentication popup.
2279 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2280 try to executed queries if the database connection hasn't been
2281 authenticated. Implement methods for checking and setting the
2282 database username and password.
2284 2011-04-12 Ben Konrath <ben@bagu.org>
2286 Make log messages a little clearer.
2288 Add a dash betweeen the document title and the table name.
2290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2292 2011-04-12 Ben Konrath <ben@bagu.org>
2294 Protect against NPEs when cleaning up database resources.
2296 While this isn't strictly necessary because the exception is caught,
2297 not protecting against the NPEs makes it harder to find the real error
2300 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2302 2011-04-12 Ben Konrath <ben@bagu.org>
2304 Move configuration of the servlet to the constructor.
2306 The servlet will be initialized even if the database authentication
2307 information is not set or correct. I still need to add the UI for prompting
2308 the user for the authentication information when it's required.
2310 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2311 javadocs for getDocumentTitles() method.
2312 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2313 Set error message when RPC fails.
2314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2315 glom files directory from the configuration file. Try to set the
2316 database authentication information for the specific document if it's
2317 set and works otherwise try to use the global authentication
2318 information set for the directory.
2319 * src/main/resources/onlineglom.properties: Moved from
2320 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2321 Added detailed comments for the new keys.
2323 2011-04-11 Ben Konrath <ben@bagu.org>
2325 Remove unnecessary @Override in DocumentSelectionViewImpl.
2327 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2329 2011-04-11 Ben Konrath <ben@bagu.org>
2331 Remove center alignment in DocumentSelectionView.
2333 The title element is still centred but the document titles and bottom
2334 sentence are both left-aligned.
2336 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2338 2011-04-11 Ben Konrath <ben@bagu.org>
2340 Change 'Demo' naming convention to 'Document'.
2342 This is just a rename refactor with no functional changes to the code.
2344 * src/main/java/org/glom/web/client/ClientFactory.java:
2345 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2346 * src/main/java/org/glom/web/client/OnlineGlom.java:
2347 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2348 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2349 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2350 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2351 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2352 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2353 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2354 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2355 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2356 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2358 2011-04-08 Ben Konrath <ben@bagu.org>
2360 Remove FIXME from safeLongToInt() method.
2362 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2367 2011-04-08 Ben Konrath <ben@bagu.org>
2369 Display an error if no glom documents are found in the specified directory.
2371 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2372 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2373 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2374 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2376 2011-04-08 Ben Konrath <ben@bagu.org>
2378 Add copyright header to one more file ... oops.
2380 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2382 2011-04-08 Ben Konrath <ben@bagu.org>
2384 Add copyright header to files without it.
2386 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2387 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2388 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2389 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2390 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2391 * src/main/java/org/glom/web/shared/GlomField.java:
2393 2011-04-08 Ben Konrath <ben@bagu.org>
2395 Add support for accessing multiple glom documents in the servlet.
2397 This completes the demo selection functionality.
2399 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2400 document title to methods.
2401 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2402 document title to methods.
2403 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2404 Set browser window title when the activity starts. Correct name of
2405 document title variable.
2406 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2407 Set browser window title when the activity starts. Set the table
2408 selector change handler after table selector has been set. Clear the
2409 OnlineGlomView when the activity has been stopped.
2410 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2411 document title as the place token. Use "#Document:" instead of
2412 "#OnlineGlomPlace:" in the URL.
2413 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2414 Change heading to "Online Glom"
2415 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2416 document title in RPC methods.
2417 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2418 setDocumentTitle() method. Add clear() method.
2419 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2420 setDocumentTitle() method. Implement clear() method which removes the
2421 change handler on the ListBox, clears the ListBox and clears the
2423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2424 Implement methods with document title. Keep track for the configured
2425 glom documents and their corresponding JDBC configurations in a hash
2426 table. This information is retrieved using the document title as the
2427 key in the hash table.
2428 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2429 document title field as it's no longer needed.
2431 2011-04-08 Ben Konrath <ben@bagu.org>
2433 Update the Eclipse JDT configuration.
2435 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2436 methods. Automatically add the copyright header to new files.
2438 2011-04-05 Ben Konrath <ben@bagu.org>
2440 Add new page for demo selection.
2442 This patch adds all the components required to view and start an
2443 OnlineGlom demo by clicking on the desired hyperlink. The user is
2444 able to return to the demo selection page with the browser's back
2445 button. I still need to modify the servlet to work with multiple
2446 documents so all demo links will load the file defined in the
2447 OnlineGlom.properties.
2449 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2450 This is only useful during development so we don't need to save it.
2451 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2452 get a reference to the DemoSelectionView.
2453 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2454 method to get a reference to the DemoSelectionView.
2455 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2456 default view to DemoSelectionView.
2457 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2458 to get glom document titles for glom files in a hard-coded directory.
2459 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2460 method to get glom document titles for glom files in a hard-coded
2462 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2463 Presenter for DemoSelectionView.
2464 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2465 for DemoSelectionView.
2466 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2467 Update for DemoSelectionView.
2468 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2469 Basic 'Place' implementation for the DemoSelectionView.
2470 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2471 The interface for the DemoSelectionView.
2472 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2473 The implementation of the DemoSelectionView.
2474 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2475 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2476 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2477 implementation of method to get glom document titles for glom files
2478 in a hard-coded directory.
2479 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2480 on longer being used.
2481 * src/main/webapp/glom.png: Glom logo.
2483 2011-04-05 Ben Konrath <ben@bagu.org>
2485 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2487 This is the forth and final commit of a refactor that will allow
2488 OnlineGlom to be used with multiple documents.
2490 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2491 Move RPC code from OnlineGlomViewImpl to this class.
2492 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2494 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2495 RPC code to the presenter class (the P in MVP).
2497 2011-04-04 Ben Konrath <ben@bagu.org>
2499 Start moving the existing OnlineGlom code to MVP.
2501 This work is based on the GWT MVP framework that is documented here:
2503 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2505 This is the third commit of a refactor that will allow OnlineGlom to
2506 be used with multiple documents.
2508 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2509 Interface for client factory which is used to get instances of various
2510 classes throughout the app.
2511 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2512 Implementation of client factory.
2513 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2514 initialize the MVP framework.
2515 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2516 New file. Activity manager for the main container widget. This is the
2518 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2519 Maps place (URL) to its corresponding activity.
2520 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2521 New file. This is just a place holder for a generated file.
2522 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2523 New file. Represents the URL for the main Online Glom app.
2524 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2525 for changes in LayoutListViewImpl.
2526 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2527 interface for View. Move code to OnlineGlomViewImpl class.
2528 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2529 file. Implementation of OnlineGlomView.
2530 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2531 Place resources. Use ClientFactoryImpl by default.
2533 2011-04-04 Ben Konrath <ben@bagu.org>
2535 Move View classes to their own package.
2537 This is the second commit of a refactor that will allow OnlineGlom to
2538 be used with multiple documents.
2540 * src/main/java/org/glom/web/client/OnlineGlom.java:
2541 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2542 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2544 2011-04-02 Ben Konrath <ben@bagu.org>
2546 Move UI code from the main module to its own class.
2548 This is the first commit of a refactor that will allow OnlineGlom to be
2549 used with multiple documents.
2551 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2552 references to OnlineGlom to OnlineGlomView.
2553 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2554 OnlineGlomView and instantiate it here.
2555 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2556 represents the main OnlineGlomView with one document.
2558 2011-04-01 Ben Konrath <ben@bagu.org>
2560 Fix formatting of gwt.xml and add DTD.
2562 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2564 2011-03-30 Ben Konrath <ben@bagu.org>
2566 Propperly convert gdkColor string to html colour string.
2568 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2570 2011-03-28 Ben Konrath <ben@bagu.org>
2572 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2574 This implementation matches
2575 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2576 readable and is not tied to Swig.
2578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2580 2011-03-28 Ben Konrath <ben@bagu.org>
2582 Use read-only checkboxes for boolean field types.
2584 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2585 in the CellTable based on the field type. It currently only
2586 distinguishes between boolean and text columns but I'll need to add
2587 support for more types.
2588 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2589 column type in the ColumnInfo object. Add method to convert between the
2590 glom field type enum in ColumnInfo and the glom field type in libglom.
2591 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2593 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2594 getting and setting booleans.
2596 2011-03-25 Ben Konrath <ben@bagu.org>
2598 Don't get the Date twice from the ResultSet.
2600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2602 2011-03-25 Ben Konrath <ben@bagu.org>
2604 Cleanup code in the servlet.
2606 * TODO: Remove item about row count. Add item about testing row count
2607 query with large number of rows.
2608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2609 spelling mistakes, change method parameter to be consistent with
2612 2011-03-25 Ben Konrath <ben@bagu.org>
2614 Add server side logging with the gwt-log library.
2616 * .gitignore: Ignore the log file we're now producing.
2617 * TODO: Add a couple TODO item for logging.
2618 * pom.xml: Add gwt-log and log4j as a dependency.
2619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2620 logging of errors, warnings and some important info.
2621 * src/main/resources/log4j.properties: New file to configure log4j.
2623 2011-03-24 Ben Konrath <ben@bagu.org>
2625 Add a disable button for the Details view.
2627 * src/main/java/org/glom/web/client/LayoutListView.java:
2629 2011-03-22 Ben Konrath <ben@bagu.org>
2631 Use a count query to get the number of rows for the list view pager.
2633 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2635 2011-03-22 Ben Konrath <ben@bagu.org>
2637 Add more TODO information about CellTable pager positioning.
2641 2011-03-19 Ben Konrath <ben@bagu.org>
2643 Add TODO item about CellTable pager positioning.
2647 2011-03-18 Ben Konrath <ben@bagu.org>
2649 Remove unneeded GlomFieldColumn class.
2651 This is just a small code cleanup.
2653 * src/main/java/org/glom/web/client/LayoutListView.java:
2655 2011-03-18 Ben Konrath <ben@bagu.org>
2657 Use cursor mode in the query that gets data for the list view.
2659 I still need to fix the potential memory problem when getting the row
2660 count for the list view.
2662 * TODO: Add note about testing memory usage with large data sets. Add
2663 item about fixing row counting with large data sets.
2664 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2665 PostgreSQL JDBC driver into cursor mode when getting data for the
2668 2011-03-15 Ben Konrath <ben@bagu.org>
2670 Remove the GWT Container from the Eclipse build classpath.
2672 The GWT dependencies are set by Maven so this isn't needed.
2676 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2678 Added some earlier mockups to git, but not to the tarball dist.
2680 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2681 Openismus. These hopefully show how we might structure the HTML so that
2682 it can be styled easily with CSS. However, we probably need to adapt them
2683 for the CSS structure that GWT dictates for common widgets.
2685 2011-03-14 Ben Konrath <ben@bagu.org>
2687 Locate OnlineGlom.properties using the ServletContext.
2689 This is required to be able to locate the file in the deployed servlet.
2691 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2692 Configure the database and glom document in in a helper method so
2693 that the ServletContext can be used to locate OnlineGlom.properties.
2694 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2695 src/main/webapp. This is the proper location for .properites files.
2697 2011-03-12 Ben Konrath <ben@bagu.org>
2699 Add note to README about why we're compiling down to obfuscated JavaScript.
2703 2011-03-11 Ben Konrath <ben@bagu.org>
2705 Use properties file to configure servlet.
2707 This allows people to change the glom file path, db username and db
2708 password without recompiling the code.
2710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2711 * src/main/webapp/OnlineGlom.properties:
2713 2011-03-11 Ben Konrath <ben@bagu.org>
2715 Use table fields in layout list view if the layout list is not defined.
2717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2718 Manually create a LayoutFieldVector for the query builder using the
2719 table fields when a layout list is not defined in the glom file.
2721 2011-03-11 Ben Konrath <ben@bagu.org>
2723 Only show FIXME string for images when there's an image.
2725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2726 in this change are some small code cleanups.
2728 2011-03-11 Ben Konrath <ben@bagu.org>
2730 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2732 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2734 2011-03-11 Ben Konrath <ben@bagu.org>
2736 Correctly set the index of the default table.
2738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2739 Correctly set the index of the default table. Add commented out example
2742 2011-03-10 Ben Konrath <ben@bagu.org>
2744 Add comment to pom.xml about the previous change.
2746 * pom.xml: Add comment about the deployment issue so that it's obvious
2747 why java-libglom is set to the provided scope.
2749 2011-03-10 Ben Konrath <ben@bagu.org>
2751 Change java-libglom dependency from compile to provided in pom.xml.
2753 Since java-libglom uses jni it can only be loaded once and therefore
2754 must be placed in $CATALINA_HOME/lib and not included in each war.
2755 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2756 More information about this issue can be found in the Tomcat 6 release
2757 notes in the "JNI Based Applications" section:
2759 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2761 * README: Remove note about this issue. Deployment info should really
2762 be on the wiki anyway so I'll add it right now.
2763 * pom.xml: Change java-libglom dependency from compile to provided so
2764 that it's copied in to the packaged war.
2766 2011-03-09 Ben Konrath <ben@bagu.org>
2768 Change to using a neutral locale for currency, date and time formatting.
2770 This solves the problem of currency values being represented without a
2771 space between the currency code and the number (e.g. "EUR5.89" is now
2772 represented as "EUR 5.89"). More work is required when we implement
2773 a locale preference setting.
2775 * TODO: Add note about currency formatting issues with different
2777 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2778 to using the neutral ROOT locale.
2780 2011-03-09 Ben Konrath <ben@bagu.org>
2782 Add support for currency codes that are not ISO 4217 codes.
2784 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2785 the currency code defined in the glom file when it's not 3 characters
2786 long or when Java doesn't recognize the string as an ISO 4217 code.
2788 2011-03-08 Ben Konrath <ben@bagu.org>
2790 Remove test classes, launch configurations and configuration.
2792 The test stuff was getting in the way when creating the war. To make
2793 the war file you can now do 'mvn clean package'. The packaged war file
2794 will be in the target directory.
2796 * .classpath: Remove unused classpathentry for tests and i18n.
2797 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2798 property. Don't run test or i18n goals when packaging the war.
2799 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2804 * OnlineGlomTest-dev.launch:
2805 * OnlineGlomTest-prod.launch:
2806 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2807 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2809 2011-03-07 Ben Konrath <ben@bagu.org>
2811 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2813 These fixes allow me to use 'mvn deploy' to create the war file.
2815 * .classpath: This generated config has been updated by Eclipse. This
2816 change was probably triggered by me updating from Eclipse 3.6.1 to
2818 * .gitignore: Add entry to ignore the directory
2819 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2820 * .project: The generated config has been updated by Eclipse. This
2821 change was probably triggered by me updating from Eclipse 3.6.1 to
2823 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2824 so that Eclipse doesn't complain
2825 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2826 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2827 'tests' directory to 'client' directory. This is the new
2828 gwt-maven-plugin convension.
2829 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2830 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2832 2011-03-07 Ben Konrath <ben@bagu.org>
2834 Add support for horizontal alignment in the LayoutList columns.
2836 * TODO: Remove item about horizontal alignment. Add item about
2837 improvements to ColumnInfo.
2838 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2839 alignment on the columns. Use ColumnInfo RPC object get the column
2840 title and horizontal alignment.
2841 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2842 LayoutListView creation with ColumnInfo RPC object.
2843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2844 a ColumnInfo object for every LayoutList columnn. Convert the
2845 FieldFormatting.HorizontalAlignment to the correct
2846 ColumnnInfo.HorizontatlAlignment with the new
2847 getColumnInfoHorizontalAlignment helper method.
2848 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2849 to encapsulate column information like alignment and title. This
2850 could be used to set the colour instead of on a per cell field basis.
2851 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2852 column title storage and retrieval with ColumnInfo.
2854 2011-03-04 Ben Konrath <ben@bagu.org>
2856 Add support for column sorting.
2858 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2859 AsynDataProvider to be an anonymous inner class. Use new
2860 getSortedTableData RPC method when column sort is requested. Set all
2861 columns sortable and add an AsyncHandler to activate sorting in the
2863 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2864 method getSortedTableData(). Cleanup other method signatures.
2865 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2866 new method getSortedTableData(). Cleanup other method signatures.
2867 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2868 Implement getSortedTableData() and getTableData() methods by using a
2869 private helper method with the appropriate parameters filled in. Use
2870 user supplied sort clause when supplied, otherwise fall back to
2871 sorting by the primary key. Move destroy() method to be underneath
2872 constructor for readability. Cleanup comments.
2874 2011-03-03 Ben Konrath <ben@bagu.org>
2876 Add support for colour text and colour backgrounds to the layout list cells.
2878 Only the cell backgrounds are coloured which leaves a gap between the
2879 cells that isn't coloured. I need to figure out a way to set
2880 'style=background-colour:' on the whole column rather than just the
2883 * TODO: Add a note about colouring the background of the whole column.
2884 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2885 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2886 render the coloured text and backgrounds. Use GlomField[] for the row type.
2887 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2889 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2890 GlomField[] for the row type.
2891 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2892 GlomField[] for the row type. Set the text, text colour and background
2893 colour in the GlomField objects as specified in the glom document. Add
2894 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2895 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2896 the glom field text, foreground colour and background colour.
2898 2011-03-02 Ben Konrath <ben@bagu.org>
2900 Don't display hidden tables in the combo box.
2902 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2904 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2905 code to ignore hidden tables using ArrayLists for the table names and
2907 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2908 tableNames to use ArrayLists instead of String[]. Update getter and setter
2911 2011-03-01 Ben Konrath <ben@bagu.org>
2913 Add support for Date and Time number types.
2915 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2916 Implement formatting for Date and Time values. Change the default glom
2917 file to small business example.
2919 2011-03-01 Ben Konrath <ben@bagu.org>
2921 Add support for formatting glom types as specified in the glom file.
2923 Formatting isn't finished yet - I still need to add support for Date
2926 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2927 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2928 checks for null values in JDBC cleanup code and catch all exceptions
2929 instead of just SQLExceptions.
2930 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2933 2011-03-01 Ben Konrath <ben@bagu.org>
2935 Use GWT 2.2.0 instead of 2.1.1.
2937 * pom.xml: Change GWT version numbers.
2939 2011-03-01 Ben Konrath <ben@bagu.org>
2941 A few small code cleanups.
2943 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2945 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2946 unnecessary object creation in constructor.
2947 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2948 unnecessary object creation in constructor.
2950 2011-02-28 Ben Konrath <ben@bagu.org>
2952 Add file for TODO list.
2956 2011-02-18 Ben Konrath <ben@bagu.org>
2958 Enable the CellTable Pager when more than 20 rows need to be viewed.
2960 The Pager will automatically become active when the results are larger
2961 than the CellTable size which is currently set to 20 lines.
2963 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2964 name on debug statment in RPC call in LayoutListDataProvider, add
2965 numRows parameter to LayoutListView constructor, propperly set rowCount
2967 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2968 name on debug statment in RPC call, use LayoutListTable object in RPC
2969 calls, pass rowCount to LayoutListView.
2970 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2971 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2973 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2974 interface for changes in OnlineGlomService.
2975 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2976 getLayoutListHeaders() to getLayoutListTable() and return
2977 LayoutListTable. Using this object allows me to pass other information
2978 about the LayoutList like the expected number of rows in the result set.
2979 The Connection object from the connection pool is now propperly closed.
2980 Only the requested number of lines are returned to the client in
2982 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2983 GlomTable and add columnTitles and numRows.
2985 2011-02-18 Ben Konrath <ben@bagu.org>
2987 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2989 This is a small performance boost. I'll use GlomTable to get the required
2990 layoutlist information.
2992 * src/main/java/org/glom/web/client/OnlineGlom.java:
2993 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2994 * src/main/java/org/glom/web/shared/GlomDocument.java:
2996 2011-02-18 Ben Konrath <ben@bagu.org>
2998 Add option to turn off formatting in JDT formatter preferences.
3000 * .settings/org.eclipse.jdt.core.prefs:
3002 2011-02-18 Ben Konrath <ben@bagu.org>
3004 Rename LayoutList to LayoutListView.
3006 I'm working towards setting things up to easily use MVP when the time
3009 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
3011 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
3014 2011-02-17 Ben Konrath <ben@bagu.org>
3016 Move LayoutListDataProvider class into LayoutList.java.
3018 * src/main/java/org/glom/web/client/LayoutList.java:
3020 2011-02-17 Ben Konrath <ben@bagu.org>
3022 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3024 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3026 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3027 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3028 from LibGlomServer.java.
3029 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3030 Rename from LibGlomServiceAsync.java.
3031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3032 Rename from LibGlomServiceImpl.java.
3033 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3035 2011-02-17 Ben Konrath <ben@bagu.org>
3037 Update JDT settings.
3039 * .settings/org.eclipse.jdt.core.prefs:
3041 2011-02-17 Ben Konrath <ben@bagu.org>
3043 Move GWT-RPC objects to shared package (where they should be).
3045 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3046 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3047 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3048 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3049 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3050 org.glom.web.shared package.
3051 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3052 org.glom.web.shared package.
3053 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3054 directory in compilation to javascript.
3056 2011-02-16 Ben Konrath <ben@bagu.org>
3058 Add sort clause to the sql query that grabs table information.
3060 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3061 if one of the columns is a primary key.
3063 2011-02-16 Ben Konrath <ben@bagu.org>
3065 Disable generateAsync feature of gwt-maven.
3067 The generated interface does not correctly match the methods in LibGlomService
3068 and the generated singleton Util inner-class doesn't respect the servlet
3071 * pom.xml: Turn off generateAsync feature.
3072 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3073 with singleton Util inner-class.
3075 2011-02-14 Ben Konrath <ben@bagu.org>
3077 Add LGPL v3 licence notices.
3079 Followed directions listed here:
3080 http://www.gnu.org/licenses/gpl-howto.html
3082 * COPYING: This file is a copy of the GPL v3.
3083 * COPYING.LESSER: This file is a copy of the LGPL v3.
3084 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3086 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3088 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3090 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3092 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3094 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3096 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3099 2011-02-14 Ben Konrath <ben@bagu.org>
3101 Use ArrayList instead of Array in GWT-RPC calls.
3103 Apparently this gives a slight performance boost to the compiled
3106 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3108 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3111 2011-02-14 Ben Konrath <ben@bagu.org>
3113 Access data from a postgres db rather than the example glom file.
3115 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3116 compile down to obfuscated javascript.
3117 * pom.xml: Add c3p0 and postgres JDBC libraries.
3118 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3119 using a postgres db accessed through the c3p0 connection pooling library.
3121 2011-02-14 Ben Konrath <ben@bagu.org>
3123 Update Java formatter settings.
3125 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3127 2011-02-02 Ben Konrath <ben@bagu.org>
3129 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3131 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3133 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3134 the compiled webapp directory that Eclipse uses as we're using Maven now.
3135 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3136 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3138 * pom.xml: Format file, change target Java version to 1.6.
3140 2011-02-02 Ben Konrath <ben@bagu.org>
3142 Add information about a deployment related issue.
3144 * README: Add Notes section with the problem outlined.
3146 2011-02-02 Ben Konrath <ben@bagu.org>
3148 Call Glom.libglom_deinit() when the servlet is shutdown.
3150 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3151 Glom.libglom_deinit() to destroy() method.
3153 2011-01-28 Ben Konrath <ben@bagu.org>
3155 Use generated Util class to get the RPC Async interface.
3157 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3159 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3160 getInstance() method to get a reference to the RPC Async interface.
3161 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3162 getInstance() method to get a reference to the RPC Async interface, remove
3163 the now unused getLibGlomServiceProxy() method.
3165 2011-01-27 Ben Konrath <ben@bagu.org>
3167 Cleanup ChangeLog entry from previous commit.
3169 * ChangeLog: Group logical changes together and add comments.
3171 2011-01-25 Ben Konrath <ben@bagu.org>
3173 Convert to gwt-maven project.
3175 * .gitignore: Update for new project structure.
3176 * README: New file with a link to the online documentation.
3177 * pom.xml: The generated maven configuration file with some tweaks.
3179 Add / update Eclipse settings. These files are a merge of the files that
3180 were generated with the gwt-maven plugin and the files we were previously
3184 * .settings/.jsdtscope:
3185 * .settings/com.google.gdt.eclipse.core.prefs:
3186 * .settings/com.google.gwt.eclipse.core.prefs:
3187 * .settings/org.eclipse.jdt.core.prefs:
3188 * .settings/org.eclipse.wst.common.component:
3189 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3190 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3191 * .settings/org.maven.ide.eclipse.prefs:
3192 * OnlineGlomTest-dev.launch:
3193 * OnlineGlomTest-prod.launch:
3195 Java source files moved from the 'src' directory to the directory structure
3197 * src/main/java/org/glom/web/client/GlomDocument.java:
3198 * src/main/java/org/glom/web/client/GlomTable.java:
3199 * src/main/java/org/glom/web/client/LayoutList.java:
3200 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3201 * src/main/java/org/glom/web/client/LibGlomService.java:
3202 * src/main/java/org/glom/web/client/OnlineGlom.java:
3203 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3205 Non-functional property file used for translations. I included this as
3206 reminder that it's something I need to sort out.
3207 * src/main/resources/org/glom/web/client/Messages.properties:
3209 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3210 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3212 The servlet configuration files moved from the 'war' directory.
3213 * src/main/webapp/OnlineGlom.css:
3214 * src/main/webapp/OnlineGlom.html:
3215 * src/main/webapp/WEB-INF/web.xml:
3217 Generated test files with most of the code commented out. I included these
3218 so that it's easy to add tests when we're ready for them.
3219 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3220 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3222 2011-01-25 Ben Konrath <ben@bagu.org>
3224 Remove unused println.
3226 * src/org/glom/web/server/LibGlomServiceImpl.java:
3228 2011-01-25 Ben Konrath <ben@bagu.org>
3230 Add project specific JDT settings.
3232 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3233 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3235 2011-01-25 Ben Konrath <ben@bagu.org>
3237 Populate celltable with example data.