1 2011-12-14 Ben Konrath <ben@bagu.org>
3 Revamp the appearance of the document selection page.
5 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
6 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
7 * src/main/webapp/style.css:
9 2011-12-13 Ben Konrath <ben@bagu.org>
11 Set navigation button column to the smallest size possible.
13 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
15 2011-12-13 Ben Konrath <ben@bagu.org>
17 Change OpenButton nomenclature to NavigationButton.
19 Using NavigtionButton makes things more generic. Classes, methods and
20 variables have been changed.
22 This is a rename-only refactor.
24 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
25 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
26 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
27 Renamed from OpenButtonCell.
28 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
29 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
30 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
32 2011-12-12 Ben Konrath <ben@bagu.org>
34 Remove unnecessary String argument in RelatedListTable and ListViewTable.
36 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
37 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
38 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
39 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
41 2011-12-12 Ben Konrath <ben@bagu.org>
43 Update variable names and comments.
45 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
46 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
48 2011-12-12 Ben Konrath <ben@bagu.org>
50 Properly initialize numNonEmptyRows variable to zero.
52 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
53 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
55 2011-12-05 Ben Konrath <ben@bagu.org>
57 Add latest mockup with HTML tables.
59 Features of this mockup:
61 -> HTML table for flowtable
62 -> HTML table for flowtable column
63 -> Example of how related lists would look
64 -> Not using text entries for data items
66 The current version of Online Glom doesn't use HTML tables for the
69 This mockup has been sent to the glom-devel mailing list but it's good
70 to have it here as well.
72 * mockups/details-view-html-tables.html:
74 2011-12-05 Ben Konrath <ben@bagu.org>
76 Remove unnecessary getPrimaryKeyField() method.
78 getPrimaryKeyFieldForTable(String) has been renamed to
79 getPrimaryKeyField(String).
81 * src/main/java/org/glom/web/server/database/DBAccess.java:
82 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
83 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
85 2011-12-05 Ben Konrath <ben@bagu.org>
87 Add string representation of TypedDataItem value to conversion error message.
89 * src/main/java/org/glom/web/server/Utils.java: Logging the error
90 message was extracted into its own method to avoid duplication.
92 2011-12-05 Ben Konrath <ben@bagu.org>
94 Add type checking to navigation primary key value creation.
96 Create navigation primary key only if the expected type from the Glom
97 document matches the type returned by the SQL query.
99 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
101 2011-12-05 Ben Konrath <ben@bagu.org>
103 Rename a couple of variables in RelatedListNavigation.
105 This is a rename-only refactor.
107 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
109 2011-12-05 Ben Konrath <ben@bagu.org>
111 Move getListLayoutGroup() into getListViewLayoutGroup().
113 This removes getListLayoutGroup(). It was only being called by
114 getListViewLayoutGroup().
116 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
118 2011-12-05 Ben Konrath <ben@bagu.org>
120 Remove check for LayoutItem_Portal in list table method.
122 This check is no longer necessary because the method isn't being used
123 to create the LayoutItemPortal DTO.
125 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
127 2011-12-05 Ben Konrath <ben@bagu.org>
129 Properly support related list navigation.
131 Navigation from the "Repository Analyzer -> Package Scans ->
132 Dependencies" related table wasn't working because the primary key for
133 related tables wasn't being set properly. This commit fixes the
136 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
137 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
138 doesn't set the primary key properly for related list tables.
139 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
140 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
141 useful for getting the primary key for list view tables and for related
143 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
144 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
145 Move code to set the primary key for the table from the abstract
146 ListDBAccess class to ListViewDBAccess as it's only correct for list
148 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
149 Properly add primary key to related list tables.
151 2011-12-02 Ben Konrath <ben@bagu.org>
153 Properly set the horizontal alignment of fields.
155 This fix is for both the list tables and the details view.
157 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
158 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
159 to set the horizontal alignment of fields.
161 2011-12-02 Ben Konrath <ben@bagu.org>
163 Display currency codes in the details view.
165 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
167 2011-12-02 Ben Konrath <ben@bagu.org>
169 Avoid duplicate JNI call.
171 JNI is not as efficient as pure Java and this is an easy (and small)
174 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
175 Use previously retrieved value for whereClauseToTableName instead of
178 2011-12-02 Ben Konrath <ben@bagu.org>
180 Rename a couple of variables in RelatedListNavigation.
182 This is a rename-only refactor.
184 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
186 2011-12-02 Ben Konrath <ben@bagu.org>
188 Indicate clearly that a mismatched primary key type is a bug.
190 * src/main/java/org/glom/web/server/Utils.java: Change log level from
191 warning to error. Add 'This is a bug.' to message.
193 2011-12-02 Ben Konrath <ben@bagu.org>
195 Update / fix some comments.
197 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
199 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
201 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
202 Fix comments. Add some TODOs.
204 2011-12-02 Ben Konrath <ben@bagu.org>
206 Enable navigation to details view with string primary key from related list.
208 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
209 Create a text primary key value when return type of result is
210 java.sql.Types.VARCHAR.
212 2011-12-02 Ben Konrath <ben@bagu.org>
214 Use checkboxes for booleans in the details view.
216 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
218 2011-12-01 Ben Konrath <ben@bagu.org>
220 Improve performance of related list height calculation.
222 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
223 Put code to calculate the expected height in a static initializer so
224 that that it's only called once.
226 2011-12-01 Ben Konrath <ben@bagu.org>
228 Show related list tables in notebooks (again).
230 Calculate the height of the related list tables so the Notebook can be
231 set the correct height. The height of the related list table is also needed by
232 FlowTable to be able decide how to create the layout.
234 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
235 and set the Portal height based on the height of the related list
236 table and the Portal container.
237 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
238 Add method to calculate the height of the related list tables.
239 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
240 * src/main/webapp/style.css: Add css class for Pager. This is needed to
241 calculate the height of the Pager widget.
243 2011-12-01 Ben Konrath <ben@bagu.org>
245 Use CellTable API for table property instead of setting style on Element.
247 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
249 2011-12-01 Ben Konrath <ben@bagu.org>
251 Make ListViewTable and RelatedListTable a consistent height.
253 The tables are now a consistent height regardless of the contents of
254 the table. A hidden button is added to empty rows to ensure that the
255 height of these rows will match the height of rows with data.
257 A navigation button column is now added to every table. The width of
258 the navigation column is set to 0px when a RelatedListTable shouldn't
259 have navigation buttons. This maintains the a consistent row height in
260 tables that don't show the navigation buttons.
262 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
263 navigation column when not needed.
264 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
265 arguments for navigation button to constructor of ListViewTable.
266 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
267 hidden button for empty data rows.
268 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
269 arguments for navigation button to constructor.
270 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
271 create navigation buttons. Add hideNavigationButtons() method.
272 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
273 arguments for navigation button to constructor.
275 2011-12-01 Ben Konrath <ben@bagu.org>
277 Use 'visibility: hidden' in Utils.getWidgetHeight().
279 This is better choice because hidden elements are invisible, don't
280 respond to events and are not part of the tab order. They will,
281 however, take up space which is required to be able to calculate the
282 height of the widget.
284 * src/main/java/org/glom/web/client/Utils.java:
286 2011-12-01 Ben Konrath <ben@bagu.org>
288 Use Utils.getWidgetHeight() in FlowTable.
290 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
292 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
294 2011-12-01 Ben Konrath <ben@bagu.org>
296 Put the details css class name on the correct table column.
298 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
300 2011-11-30 Ben Konrath <ben@bagu.org>
302 Update for java-libglom API change.
304 The getters and setters on FieldFormatting and NumericFormat were
305 changed to remove the 'M'.
307 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
309 2011-11-29 Ben Konrath <ben@bagu.org>
311 Only allow RelatedListTables in Portals.
313 * src/main/java/org/glom/web/client/ui/details/Portal.java:
315 2011-11-29 Ben Konrath <ben@bagu.org>
317 Only create a contents panel for Portals when title is being set.
319 * src/main/java/org/glom/web/client/ui/details/Portal.java:
321 2011-11-29 Ben Konrath <ben@bagu.org>
323 Set TabLayoutPanel height based on calculated height its widgets.
325 This is a potential fix for this bug:
327 https://bugzilla.gnome.org/show_bug.cgi?id=665133
329 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
331 2011-11-29 Ben Konrath <ben@bagu.org>
333 Align details field labels and data with the Open buttons.
335 * src/main/webapp/style.css:
337 2011-11-29 Ben Konrath <ben@bagu.org>
339 Remove unnecessary <div> in the Notebook widget.
341 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
342 method to get container FlowPanel (<div>).
343 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
344 initWidget() method directly on the TabLayoutPanel widget instead of
345 Group's container widget.
347 2011-11-29 Ben Konrath <ben@bagu.org>
349 Don't add group titles for Portals in Notebooks.
351 This reverts the previous patch and fixes a bug I introduced with
352 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
354 * src/main/java/org/glom/web/client/ui/details/Group.java:
355 * src/main/java/org/glom/web/client/ui/details/Portal.java:
357 2011-11-28 Ben Konrath <ben@bagu.org>
359 Remove unused boolean argument in Portal constructor.
363 * src/main/java/org/glom/web/client/ui/details/Group.java:
364 * src/main/java/org/glom/web/client/ui/details/Portal.java:
366 2011-11-28 Ben Konrath <ben@bagu.org>
368 Remove hack for glom 1.18 style glom files.
370 * src/main/java/org/glom/web/client/ui/details/Group.java:
371 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
372 * src/main/java/org/glom/web/client/ui/details/Portal.java:
374 2011-11-28 Ben Konrath <ben@bagu.org>
376 Use Gda Value version of primary key to log result too large error.
378 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
380 2011-11-28 Ben Konrath <ben@bagu.org>
382 Don't use TypedDataItem.getText() for Unknown types from the URL.
384 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
385 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
386 instead of getText().
387 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
388 String field and getUnknown() method.
390 2011-11-28 Ben Konrath <ben@bagu.org>
392 Log an error message when the java-libglom .so is not present.
394 The error message was being set in the exception but not logged.
396 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
398 2011-11-28 Ben Konrath <ben@bagu.org>
400 Ignore LayoutItem_CalendarPortals.
402 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
403 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
405 2011-11-28 Ben Konrath <ben@bagu.org>
407 Extract method for creating the LayoutItemPortal DTO.
409 Just breaking the code up into smaller chunks.
411 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
413 2011-11-28 Ben Konrath <ben@bagu.org>
417 This should have been added with the refactor. Oops!
419 * src/main/java/org/glom/web/shared/TypedDataItem.java:
421 2011-11-28 Ben Konrath <ben@bagu.org>
423 Create primary key value from URL string using type from Glom document.
425 See this bug, comments 19 - 25:
427 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
429 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
430 create a TypeDataItem for the primary key here when loading from a
431 URL. Show the same string for the primary key value as was received
432 from the URL string (when loading from a URL).
433 * src/main/java/org/glom/web/server/Utils.java: Update method for
434 creating the Gda Value from the TypeDataItem to properly deal with
435 creating a Gda Value based on the Glom document type for the primary
436 key value string when loading from a URL.
437 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
438 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
439 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
440 Update for changed method name.
442 2011-11-27 Ben Konrath <ben@bagu.org>
444 Rename PrimaryKeyItem to TypedDataItem.
446 The name PrimaryKeyItem suggests what the class should be used for.
447 TypedDataItem is a neutral name that describes the class better.
449 This is a rename-only refactor.
451 * src/main/java/org/glom/web/client/OnlineGlomService.java:
452 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
453 * src/main/java/org/glom/web/client/Utils.java:
454 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
455 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
456 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
457 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
458 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
459 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
460 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
461 * src/main/java/org/glom/web/server/Utils.java:
462 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
463 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
464 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
465 * src/main/java/org/glom/web/shared/NavigationRecord.java:
467 2011-11-25 Ben Konrath <ben@bagu.org>
469 Improve Gda Value conversion from PrimaryKeyItem.
471 The value from the PrimaryKeyItem is only used if its type match the
472 type from the glom document.
474 * src/main/java/org/glom/web/server/Utils.java:
476 2011-11-25 Ben Konrath <ben@bagu.org>
478 Manually check if the java-liblgom .so is visible to the JVM.
480 It seems that Tomcat has problems when a static initializer throws an
481 exception. This check is done before the first method call into
482 java-libglom so that execution doesn't continue if the .so is not
485 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
487 2011-11-25 Ben Konrath <ben@bagu.org>
489 Improve browser configuration error messages.
493 https://bugzilla.gnome.org/show_bug.cgi?id=662792
495 * src/main/java/org/glom/web/client/OnlineGlomService.java:
496 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
497 getConfigurationErrorMessage() method.
498 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
499 Get and display a specific configuration error message when no Glom
501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
502 Implement getConfigurationErrorMessage() method. Surround configuration
503 code in the init() method with a try/catch block. This allows the
504 errors to be caught while keeping the servlet available to retrieve the
505 configuration error message.
507 2011-11-25 Ben Konrath <ben@bagu.org>
509 Don't use Strings to hold primary key values.
511 The primary key values are now held in a new data object
512 (PrimaryKeyItem) that holds type information and the primary key value
513 using the correct type.
515 * src/main/java/org/glom/web/client/OnlineGlomService.java:
516 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
518 PrimaryKeyItem instead of String to hold the primary key value.
519 * src/main/java/org/glom/web/client/Utils.java: Remove
520 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
521 PrimaryKeyItem based on the GlomFieldType and the DataItem.
522 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
523 PrimaryKeyItem instead of String to hold the primary key value. Load
524 document selection page when the documentID has not been set correctly.
525 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
526 DetailsPlace -> URL and URL -> DetailsPlace conversion with
528 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
529 Return empty string for URL instead of "null".
530 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
531 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
532 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
533 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
534 PrimaryKeyItem instead of String to hold primary key values.
535 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
536 PrimaryKeyValue to a Gda Value.
537 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
538 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
539 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
540 Replace temporary database access code that uses the PrimaryKeyValue to
541 Gda Value conversion.
542 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
543 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
544 PrimaryKeyItem instead of String.
545 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
546 hold primary key values.
548 2011-11-24 Ben Konrath <ben@bagu.org>
550 Use newly added java-libglom API to create queries.
552 This isn't finished. I still need to stop using Strings for primary key
553 values in the client code.
555 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
556 libglom to use fake connections so that retrieving the query string will
558 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
559 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
560 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
561 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
562 Use the newly added libglom sql methods and classes to create the
563 query. Add temporary hack to convert primary value strings to Gda
566 2011-11-23 Ben Konrath <ben@bagu.org>
568 Don't explicitly set the height of Portals.
570 See comments 6 - 10 of this bug for details:
572 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
574 * src/main/java/org/glom/web/client/ui/details/Portal.java:
576 2011-11-23 Ben Konrath <ben@bagu.org>
578 Use an HTML table instead of CSS for the FlowTable layout.
580 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
581 GWT's FlexTable to implement the FlowTable.
582 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
584 2011-11-18 Ben Konrath <ben@bagu.org>
586 Add boolean example to HTML table mockup.
588 * mockups/details-view-html-tables-text-entries.html:
590 2011-11-17 Ben Konrath <ben@bagu.org>
592 Ensure the pager buttons are always visible for related lists.
594 To accomplish this, I've turned off text wrapping in the list view and
595 related list tables for both the header and data text. The related list
596 table now has a fixed layout so the it doesn't overflow its container.
597 This is required to ensure that the cell text is clipped when it
598 overflows the cell and an ellipsis is added to the right side of the
599 cell when text is clipped.
601 A fixed table layout for the related list table in the details view
602 seems what we want for the details view anyway, so the side-effect is
605 The ellipsis will only be displayed in Firefox >= 7.
609 https://bugzilla.gnome.org/show_bug.cgi?id=662930
611 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
612 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
613 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
615 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
616 Set the 'table-layout: fixed' CSS property to the related list table.
617 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
618 'white-space: nowrap;' CSS property on both the list view and the
621 2011-11-16 Ben Konrath <ben@bagu.org>
623 Rework the fix for empty notebook tab labels.
625 Setting the empty group titles with its name caused problems for the
626 details layout. Instead of using libglom's
627 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
628 to the client when the title is empty. This allows the Notebook to use
629 the name when the title is empty without affecting anything else.
631 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
632 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
634 2011-11-16 Ben Konrath <ben@bagu.org>
636 Set group titles with name when title is empty.
638 This fixes a problem with an empty notebook tab label in the Lesson
639 Planner document. The forth tab in the notebook should be "Internet":
641 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
643 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
644 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
647 2011-11-16 Ben Konrath <ben@bagu.org>
649 Remove whitespace from the configured username properties.
651 This assumes that usernames won't have whitespace at the beginning
652 or end. But I think this is a reasonable assumption.
654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
655 String.trim() to remove the whitespace from the username properties.
657 2011-11-15 Ben Konrath <ben@bagu.org>
659 Add details view mockup with HTML tables and text entries.
661 This is from the attachment on this bug:
663 https://bugzilla.gnome.org/show_bug.cgi?id=663109
665 * mockups/details-view-html-tables-text-entries.html:
667 2011-11-15 Ben Konrath <ben@bagu.org>
669 Add space between the columns of the flow table.
673 https://bugzilla.gnome.org/show_bug.cgi?id=662918
675 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
676 space between columns in the flow table.
678 2011-11-15 Ben Konrath <ben@bagu.org>
680 Add backup files to the .gitignore.
682 * .gitignore: Ignore files that end with ~.
684 2011-11-09 Ben Konrath <ben@bagu.org>
686 Use latest release of gwt-log.
688 Gwt-log releases are now being submitted to the maven central
689 repository so manual installation of the jar is no longer required.
691 * pom.xml: Update version and groupId of gwt-log dependency.
693 2011-10-31 Ben Konrath <ben@bagu.org>
695 Don't use GWT numeric formatting to override the glom currency formatting.
697 Currencies are now displayed like they are in Glom. See this bug:
699 https://bugzilla.gnome.org/show_bug.cgi?id=646216
701 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
703 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
704 currency code to constructor and set it when the cell is rendered.
705 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
706 currency code to the constructor of the NumericCell.
708 2011-10-27 Ben Konrath <ben@bagu.org>
710 Require the latest release of java-libglom (1.17.4).
714 2011-10-26 Ben Konrath <ben@bagu.org>
716 Add style to Notebook that matches current theme.
718 It's not the best style in the world but it's better than the default.
720 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
721 padding at the bottom of the child widgets.
722 * src/main/webapp/style.css: Add style for the Notebook.
724 2011-10-26 Ben Konrath <ben@bagu.org>
726 Move servlet initialization code to overridden init method.
728 This is half of the solution to getting proper error messages
729 displayed when configuration errors occur. Here's the relevant bug:
731 https://bugzilla.gnome.org/show_bug.cgi?id=662792
733 The rest of the solution involves surrounding the init method with a
734 try/catch block and setting a global variable with the error /
735 exception. A new async method should be created to retrieve and display
736 the error message / exception.
738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
739 code from constructor to init method adding exceptions as needed.
741 2011-10-26 Ben Konrath <ben@bagu.org>
743 Add script to monitor and restart tomcat if required.
745 * utils/check-and-recover-tomcat.py: New file.
747 2011-10-26 Ben Konrath <ben@bagu.org>
749 Display the correct number of data items in the pager.
753 https://bugzilla.gnome.org/show_bug.cgi?id=661441
755 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
756 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
757 The implementation is the same for both tables: Keep track of the
758 number of non-empty rows and fire and RowCountChangeEvent after the data has
760 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
761 custom Pager class that subclasses SimplePager to handle displaying
762 the correct number when empty rows have been added.
764 2011-10-26 Ben Konrath <ben@bagu.org>
766 Correct error in previous commit.
768 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
769 eventBus parameter from listView.setCellTable().
771 2011-10-26 Ben Konrath <ben@bagu.org>
773 Fix error in TODO comment.
775 * src/main/java/org/glom/web/client/activity/ListActivity.java:
777 2011-10-24 Ben Konrath <ben@bagu.org>
779 Create Notebook widgets to the details view.
781 This isn't finished just yet - I still need to create a reasonable
782 style to match the current theme.
784 * src/main/java/org/glom/web/client/Utils.java: Add method for
785 calculating the height of a widget. This is used in the Notebook class.
786 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
787 new constructor method in Group.
788 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
789 method for creating child widget that can be used by subclasses
790 like Notebook. New constructor that allows disabling the group
791 titles - Notebooks don't set a group title for their child groups.
792 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
793 to make Notebooks using GWT's TabLayoutPanel.
794 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
795 constructor that allows disabling the group titles.
796 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
797 LayoutItemNotebook DTO.
798 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
799 DTO for Notebooks. It's just an empty class for now but we might need
800 it to transfer some specific information in the future.
802 2011-10-21 Ben Konrath <ben@bagu.org>
804 Add navigation buttons to related list tables.
806 * src/main/java/org/glom/web/client/OnlineGlomService.java:
807 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
808 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
809 method getSuitableRecordToViewDetails() for getting the table name
810 and primary key value for related list navigation buttons.
811 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
812 private cell renderer class to get the navigation information for
813 related list tables from the server. Extract the navigation
814 processing code from the details cell navigation and use it for the
815 related list navigation as well.
816 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
817 cell renderer class for the details open buttons. This was needed
818 because the related list navigation buttons and the list view
819 navigation buttons need to react differently when clicked.
820 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
821 the onEnterKeyDown() method because it's now overriden in the
822 subclasses that are specific to the related list tables and the list
824 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
825 the vertical size a little because the buttons add a bit of vertical
826 space to table. This is not a perfect solution because the vertical
827 size of with table fewer than 5 rows will be a little smaller.
828 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
829 changes in how navigation buttons are handled.
830 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
831 getSuitableRecordToViewDetails() using the new RelatedListNavigation
832 database access object.
833 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
834 to find the portal for a given relationship name from
835 RelatedListDBAccess. Add method to find a primary key field for a
837 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
838 Move code to find the portal for a given relationship name to
840 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
841 New file: database access object for getting the related list
842 navigation information (the table name and the primary key value).
843 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
844 DTO for transferring a table name to navigate to and a primary key
846 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
847 boolean and getter/setter to specifies if the related list should add
850 2011-10-24 Murray Cumming <murrayc@murrayc.com>
852 Use the master branch of java-libglom
854 * pom.xml: Depend on java-libglom 1.19 instead.
856 This is the master branch. See also the libglom-1-18 branch.
858 2011-10-11 Ben Konrath <ben@bagu.org>
860 Enable the open navigation button when the data has been set.
862 This avoids having active buttons that don't do anything when the data
865 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
867 2011-10-11 Ben Konrath <ben@bagu.org>
869 Use IsWidget interface for FlowTableItem.
871 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
872 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
874 2011-10-11 Ben Konrath <ben@bagu.org>
876 Remove GWT styling from open button in details view.
878 There are still some issues with how the details cell is arranged but
879 this should be made to match Glom 1.20. I'm going to leave fixing this
880 until I have Glom 1.20 up and running.
882 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
883 style name on open button.
884 * src/main/webapp/style.css: Move and edit details-navigation class.
885 Re-arrange some classes to make them appear in the same order as the
888 2011-10-07 Ben Konrath <ben@bagu.org>
892 * .gitignore: Ignore new cache directory.
893 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
894 * pom.xml: Change GWT and maven plugin to 2.4.0.
895 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
897 * src/main/java/org/glom/web/client/ClientFactory.java:
898 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
899 * src/main/java/org/glom/web/client/OnlineGlom.java:
900 Update source for API changes.
901 * utils/build-onlineglom-war.sh: Remove cache directory before the
904 2011-10-07 Ben Konrath <ben@bagu.org>
906 Add navigation buttons in the details view.
908 This isn't finished but I thought I'd commit what I have as it's a
909 pretty good start. I still need to:
911 1. Change the style so that it fits better into the current theme
912 2. Adjust the details cell to expand as much as possible.
914 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
915 click handlers to navigation buttons in the DetailsCells. Create a
916 refreshData() method to get just the data from the server without the
918 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
919 Update the tableSelector and browser title when the table name
920 changes without using the tableSelector.
921 * src/main/java/org/glom/web/client/ui/DetailsView.java:
922 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
923 getDetailsCells() to getCells(). Update variable names.
924 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
925 method to set click handler on navigation button. Rename a few
926 variables. Add navigation buttons where needed.
927 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
928 variables and methods.
929 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
930 navigation boolean and navigation table as required in the
932 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
933 variables for navigation along with getter/setter methods.
935 2011-10-07 Ben Konrath <ben@bagu.org>
937 Rename Field to DetailsCell.
939 This is a refactor-only commit. No functionality has been added or
942 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
943 Update variable and method names.
944 * src/main/java/org/glom/web/client/ui/DetailsView.java:
945 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
946 variable and method names.
947 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
949 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
950 variable and method names.
952 2011-10-07 Ben Konrath <ben@bagu.org>
954 Create separate methods for layout and data the details view.
956 This is a refactor-only commit. No functionality has been added or
959 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
960 private methods: setData(), createLayout().
962 2011-10-07 Ben Konrath <ben@bagu.org>
964 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
966 This is part of a change to get navigation buttons in the details view
967 but it should have been done this way from the start.
969 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
970 for method name change in TableSelectionView.
971 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
972 Create TableChangeEvent and set the browser title using the
973 TableSelectionView API.
974 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
975 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
976 Change getSelectedTable() to getSelectedTableName(). Add
977 getSelectedTableTitle().
979 2011-10-07 Ben Konrath <ben@bagu.org>
981 Use primaryKeyValue naming convention in constructor of DetailsPlace.
983 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
985 2011-10-07 Ben Konrath <ben@bagu.org>
987 Update TableChangeEvent to use newTableName naming convention.
989 This makes the class more consistent with GWT naming conventions.
991 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
992 Update for method name change in TableChangeEvent.
993 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
994 for method name change in TableChangeEvent.
995 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
996 newTableName variable and getter method. Make toDebugString()
999 2011-09-30 Ben Konrath <ben@bagu.org>
1001 Disable the pager in the list tables when the data row count is less than the minimum.
1003 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1004 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1006 2011-09-30 Ben Konrath <ben@bagu.org>
1008 Add empty rows to the end of related list and list view tables.
1010 I also extracted the cell rendering classes from the ListTable because
1011 the code was becoming a little crazy with all the anonymous inner
1012 classes. My plan is to use these cell rendering classes in the details
1013 view as well so this refactor will be needed for that change.
1015 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
1016 set the row count in related list tables if the data has more rows
1017 than the minimum number of rows visible.
1018 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
1019 row count in list view tables if the data has more rows than the
1020 minimum number of rows visible.
1021 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
1022 for rendering TYPE_BOOLEAN cells. The code was extracted from the
1024 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
1025 for rendering TYPE_NUMERIC cells. The code was extracted from the
1027 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
1028 class for rendering cells with buttons in list views. The code was
1029 extracted from the ListTable class.
1030 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1031 for rendering TYPE_TEXT cells. The code was extracted from the
1033 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1034 Add empty rows to the end of the data if required. Implement
1035 ListTable.getMinNumVisibleRows().
1036 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1037 cell renderer code to public classes. Return null in
1038 Column.getValue() for empty rows. Add new abstract method:
1039 getMinNumVisibleRows(). Move code to set the row count of the list view
1040 table to ListViewImpl.
1041 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1042 empty rows to the end of the data if required. Implement
1043 ListTable.getMinNumVisibleRows().
1046 2011-09-27 Ben Konrath <ben@bagu.org>
1048 Use GWT.log for client-side debugging statements.
1050 These are optimized out when deployed so I should have used this method
1051 in the first place. These statements will eventually be replaced with some sort
1052 of notification in the browser.
1054 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1055 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1056 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1057 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1058 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1060 2011-09-27 Ben Konrath <ben@bagu.org>
1062 Put tableselector on the right, back to list link on right.
1064 The idea is that the table selector is acting like a label for the
1065 currently displayed table so it should be placed below the document title. This
1066 puts the table title in a similar position to where it is in Glom.
1068 * mockups/details-contacts.html:
1069 * mockups/details-projects.html:
1070 * mockups/listview-contacts.html:
1071 * mockups/listview-projects.html:
1072 * mockups/style.css:
1073 Update mockups to match how the interfaces currently look.
1074 * src/main/webapp/style.css: Swap positions of backlink with the table
1075 selector. Add some space on the left side of the table selector to
1076 line things up with the document title.
1078 2011-09-27 Ben Konrath <ben@bagu.org>
1080 Add field colouring to details view.
1082 This change re-works how field colouring works. The colour formatting
1083 information is now set to the client with the layout information instead of
1084 with the data. This eliminates the need to send the same colour strings for
1085 data in list view column when colour information is set.
1087 In order to set an alternate colour for negative numeric values, the
1088 number is now sent to client and formatted with the GWT NumberFormat class.
1090 This change also fixes:
1092 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1094 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1095 internationalization framework which is needed for client side numeric
1097 * src/main/java/org/glom/web/client/Utils.java: New file for some
1098 client static utility methods.
1099 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1100 the DataItem object to the Field class. Use a utility method to
1101 create the foreignKeyValue string.
1102 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1103 alignment and text colours in the constructor. Add setData(DataItem)
1104 method. Remove setText(String) method.
1105 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1106 colour information to GlomTextCell. Create and use GlomNumberCell for
1107 rendering numbers. Use utility method to get the string for the
1108 primary key of the key provider. Re-work how the horizontal alignment
1110 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1111 formatting to layout information. Methods for converting the libglom
1112 formatting information were moved from DBAccess.
1113 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1114 numeric formatting (it's now done on the client side). Don't set text
1115 colours in DataItem. Move libglom formatting conversion methods to
1117 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1118 getters/setters for text colour information.
1119 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1120 for transferring the libglom NumericFormat information to the client.
1121 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1122 and getters/setters for: GlomNumericFormat, background colour and
1123 foreground colour strings.
1125 2011-09-26 Ben Konrath <ben@bagu.org>
1127 Simplify code that iterates through the LayoutGroup.
1129 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1131 2011-09-26 Ben Konrath <ben@bagu.org>
1133 Accept Eclipse formatting for OnlineGlomServiceAsync.
1135 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1137 2011-09-26 Ben Konrath <ben@bagu.org>
1139 Don't use the ListDBAccess classes to get the primary key layout information.
1141 This was causing a bug where the wrong index for the hidden primary key
1142 was being sent to the client.
1144 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1145 primary key while creating the LayoutGroup DTO. Create a
1146 LayoutItemField DTO for hidden primary keys. Don't use the
1147 RelatedListDBAccess because it was only used for getting the primary
1149 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1150 access modifier from public to protected for getPrimaryKeyField() and
1151 getPrimaryKeyLayoutItemField().
1152 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1153 abstract method getExpectedResultSize() because RelatedListDBAccess
1154 doesn't have enough info to implement it.
1155 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1156 Remove @Override for getExpectedResultSize().
1157 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1158 Remove method getExpectedResultSize().
1160 2011-09-23 Ben Konrath <ben@bagu.org>
1162 Log which layout (list or details) the ignored item is from.
1164 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1166 2011-09-23 Ben Konrath <ben@bagu.org>
1168 Remove annotations that turn off code formatting in DataItem.
1170 * src/main/java/org/glom/web/shared/DataItem.java:
1172 2011-09-23 Ben Konrath <ben@bagu.org>
1174 Rename GlomField to DataItem and update associated methods.
1176 This is a rename-only refactor. No functionality has been added or
1179 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1180 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1181 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1182 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1183 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1184 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1185 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1186 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1187 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1188 * src/main/java/org/glom/web/server/database/DBAccess.java:
1189 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1190 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1191 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1192 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1193 * src/main/java/org/glom/web/shared/DataItem.java:
1194 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1195 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1197 2011-09-23 Ben Konrath <ben@bagu.org>
1199 Rename GlomDocument to DocumentInfo and update associated methods.
1201 This is a rename-only refactor. No functionality has been added or
1204 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1205 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1206 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1207 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1208 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1210 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1212 2011-09-20 Ben Konrath <ben@bagu.org>
1214 Require java-libglom 1.17.3.
1216 This picks up the fix for the seg fault problem with the Scenes table
1217 in the Openismus Film Manager example.
1221 2011-09-20 Ben Konrath <ben@bagu.org>
1223 Change the way sort clause is added for primary key when no sort clause is requested.
1225 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1226 before the sort clause is created. When a sort clause is not requested, the
1227 sort clause is created by finding the primary key in the LayoutFieldVector
1230 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1232 2011-09-20 Ben Konrath <ben@bagu.org>
1234 Log error message if no documents are found in the configured directory.
1236 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1237 Extract the glom file extension string to a private static final class
1238 variable (mostly as syntactic sugar). Accept a minor formatting change.
1239 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1240 the example glom.document.directory configuration property to make it
1241 more clear that it can any directory, not just the home directory.
1243 2011-09-18 Ben Konrath <ben@bagu.org>
1245 Add related lists to details view.
1247 The related list table has support for paging and sorting just like the
1248 table in the list view.
1250 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1251 SQL queries for the related list tables.
1252 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1253 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1255 Rename getList methods to getListView and add comments. Remove
1256 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1257 it being unused. Add methods: getDetailsLayoutAndData(),
1258 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1259 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1260 Create the layout and set the data for the fields in one async call
1261 instead of two. Create related lists where appropriate.
1262 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1263 for method name changes in OnlineGlomService.
1264 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1265 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1266 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1268 * src/main/java/org/glom/web/client/ui/ListView.java:
1269 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1270 tableName from setCellTable(). Create a ListViewTable instead of
1272 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1273 represent a data field in the details view.
1274 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1275 from addDetailsCell() to Field class. Keep track of the Fields and
1276 Portals in the details view.
1277 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1278 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1279 and add a method to get it. Add method to set the contents of the
1281 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1282 New class for related list tables. This class has the data provider
1283 for the related list table.
1284 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1285 abstract class which is the base class for the ListViewTable and the
1287 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1288 New class for list view tables. This class has the data provider for
1289 the list view table.
1290 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1291 methods for related list tables. Add more information to the
1292 LayoutItemField and LayoutItemPortal DTOs.
1293 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1294 Remove debugging print statement.
1295 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1296 Remove debugging print statements. Add primary key field to SQL count
1298 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1299 Remove unnecessary LayoutFieldVector parameter from
1300 getResultSizeOfSQLQuery() method.
1301 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1302 New class for related list table database access.
1303 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1304 class that is a wrapper DTO for details view layout and data.
1305 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1306 new 'fromField' string to this DTO.
1307 * src/main/webapp/style.css: Remove bottom margin and override top
1310 2011-09-15 Ben Konrath <ben@bagu.org>
1312 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1314 This sets things up to make it easier to add the data retrieval for
1315 related lists (portals). No user noticeable changes were made with
1318 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1319 class has the code to retrieve the layouts and access the
1320 database using the new database helper classes.
1321 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1322 Most of the functionality has been removed from this class. This
1323 class now represents the public interface for the client side
1324 code. It also deals with configuring the servlet and cleaning
1325 things up when the servlet is stopped.
1326 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1327 of static methods into this utility class.
1328 * src/main/java/org/glom/web/server/database/DBAccess.java:
1329 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1330 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1331 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1332 These classes have the database retrieval code. The class hierarchy
1333 has been setup to make it easy to reuse code for similar
1336 2011-09-06 Ben Konrath <ben@bagu.org>
1338 Create separate classes for list table code and the data provider.
1340 As part of this refactor, I also split up the code a bit to make it
1343 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1344 table code to two new classes (below).
1345 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1346 with code from ListViewImpl.
1347 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1348 New file with code from ListViewImpl.
1350 2011-09-06 Ben Konrath <ben@bagu.org>
1352 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1354 This fixes the LayoutItemPortal DTO to match the libglom layout object
1357 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1359 2011-09-01 Ben Konrath <ben@bagu.org>
1361 Set title of Portals in the Details View.
1363 * pom.xml: Bump required version of java-libglom to 1.17.1.
1364 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1365 widget creation to its own class. Add comments to constructor.
1366 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1367 The code is mostly from the Group class with the title now set.
1368 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1369 title of Portal. Update some comments. Fix some code formatting.
1371 2011-09-01 Ben Konrath <ben@bagu.org>
1373 Remove TODO comment for the flow table column width.
1375 The flow table column width is working correctly and doesn't need to be
1376 changed. See this mailing list post for more info:
1378 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1380 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1382 2011-08-27 Ben Konrath <ben@bagu.org>
1384 Add document title (database name) to top of the browser page.
1386 I added the document title to the TableSelecitonView but that will
1387 change if / when we add a view that doesn't require table selection.
1389 * mockups/details-contacts.html:
1390 * mockups/details-projects.html:
1391 * mockups/listview-contacts.html:
1392 * mockups/listview-projects.html:
1393 * mockups/style.css: Add document title to mockups to keep things
1395 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1396 sizes to account for the document title.
1397 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1398 Set the document title when it has been retrieved from the server.
1399 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1400 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1401 and implement setDocumentTitle(String) method.
1402 * src/main/webapp/style.css: Add ID for document title style.
1404 2011-08-25 Ben Konrath <ben@bagu.org>
1406 Add NavigationType enum to LayoutItemPortal DTO.
1408 This is the start of adding support for Portals to the Details View.
1410 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1411 LayoutItem_Portal.navigation_type enum from libglom to
1412 LayoutItemPortal.NavigationType enum.
1413 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1414 NavigationType enum, field for storing the NavigationType and getter
1417 2011-08-25 Ben Konrath <ben@bagu.org>
1419 Implement the flow table layout in the Details View.
1421 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1422 FlowTable to Group to account for the renamed class.
1423 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1424 File. This is a container widget that implements the Glom details view
1425 flow table behaviour.
1426 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1427 org/glom/web/client/ui/FlowTable.java.
1428 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1429 so that the size of the subgroups are a closer match to the size of
1430 the Glom subgroups. This makes the flowtable layout match the layout
1431 in Glom for the Music Collection example file.
1433 2011-08-16 Ben Konrath <ben@bagu.org>
1435 Create container element for LayoutItemPortal in Details View.
1437 This will help me develop the layout for the FlowTable.
1439 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1440 fieldPanel variable to detailsCell.
1442 2011-08-15 Ben Konrath <ben@bagu.org>
1444 Set the height of the data element in the Details View.
1446 I changed the InlineLabels (text in a span element) to Labels (text in
1447 a div element) so that I could set the height of the details-data
1448 elements instead of the details-cell parent elements. This allows the
1449 the details-data element to display the correct height if style is
1450 applied that shows the height.
1452 This change has the added benefit of allowing the order of the labels
1453 and data elements to be changed for right-to-left languages.
1455 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1456 InlineLabels to Labels.
1457 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1458 InlineLabels to Labels. Set the height of the data element.
1459 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1460 multiline text height in the Formatting DTO.
1461 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1462 for multiline height along with getter and setter methods.
1463 * src/main/webapp/style.css: Adjust style to account for the change
1464 from span elements to div elements in the details cell.
1466 2011-08-15 Ben Konrath <ben@bagu.org>
1468 Make the List View appearance match the mockups.
1470 It doesn't match exactly but it's much better than it was.
1472 * mockups/listview-contacts.html: Remove unused css classes.
1473 * mockups/listview-projects.html: Remove unused css classes.
1474 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1475 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1476 for mainPanel instead of VerticalPanel (table). Set style name on
1477 CellTable. Set style name on Details column. Right-align Details
1479 * src/main/webapp/style.css: Adjust properties to match the mockups.
1481 2011-08-12 Ben Konrath <ben@bagu.org>
1483 Add better support for subgroups in the details view.
1485 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1486 changed FlowTable constructor.
1487 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1488 support for subgroups and subgroup-titles.
1489 * src/main/webapp/style.css: Add CSS class for subgroups and
1492 2011-08-12 Ben Konrath <ben@bagu.org>
1494 Return the top level LayoutGroup title.
1496 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1498 2011-08-11 Ben Konrath <ben@bagu.org>
1500 Make the TableSelector header match the mockup.
1502 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1503 the layout panel. Properly lineup the table selection header with
1504 the list and details view.
1505 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1506 margin around the details view.
1507 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1508 Rename listBox variable to tableSelector. Set id for the style sheet.
1509 Use a FlowPanel instead of a HorizontalPanel.
1510 * src/main/webapp/style.css: Add properties to make the TableSelector
1511 box match the mockups.
1513 2011-07-13 Ben Konrath <ben@bagu.org>
1515 Update install script for java-libglom version change.
1517 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1520 2011-07-13 Ben Konrath <ben@bagu.org>
1522 Add support sub-group in the details view.
1524 I also removed the code that special-cased the default details view
1527 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1529 I still have to make a proper flowtable.
1531 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1532 Don't special-case default details view layout.
1533 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1534 addLayoutField() as I'm going to use it.
1535 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1536 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1538 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1539 extracted from DetailsViewImpl.GroupPanel. Add support for
1541 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1542 column count when getting the details layout.
1544 2011-07-12 Ben Konrath <ben@bagu.org>
1546 Set browser title with database and table titles.
1548 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1549 Set the browser title when the table changes and when the activity
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1552 title when retrieving document info (the GlomDocument object).
1553 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1554 with getter and setter methods. Remove unused convenience constructor.
1555 Use default code formatting.
1557 2011-07-12 Ben Konrath <ben@bagu.org>
1559 Ignore LayoutItemPortals in the details view.
1561 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1564 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1565 LayoutItemPortal layout objects.
1566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1567 LayoutItemPortal objects when retrieving the details layout.
1568 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1569 file. This is an empty class and just used to get type information for
1572 2011-07-12 Ben Konrath <ben@bagu.org>
1574 Use java-libglom 1.17.0.
1578 2011-07-11 Ben Konrath <ben@bagu.org>
1580 Remove "Table:" label from table selector.
1582 This matches a recent change in the Glom UI.
1584 * mockups/details-contacts.html:
1585 * mockups/details-projects.html:
1586 * mockups/listview-contacts.html:
1587 * mockups/listview-projects.html: Remove the "Table:" label from the
1589 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1591 2011-07-11 Ben Konrath <ben@bagu.org>
1593 Add main groups to the details view.
1595 This makes things look a little nicer in the details view. The next step
1596 is to implement the flowtable.
1598 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1599 resources from the standard gwt css theme. Standard.css is now
1600 included in OnlineGlom.html so that the online glom css rules have
1601 precedence over the gwt theme.
1602 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1603 the whole LayoutGroup to the DetailsView instead of just the titles.
1604 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1605 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1606 details layout with a helper class (GroupPanel). I might extract this
1607 class when I make the full flowtable.
1608 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1609 string as default so I don't have to worry about NPEs when processing
1611 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1612 note beside OnlineGlom.gwt.xml above).
1613 * src/main/webapp/style.css: Add default font-size to body to override
1614 the font-size set by the standard theme. Don't use h2 tags for
1615 group-title. Create new details-cell class.
1617 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1619 ConfiguredDocument: Set the port number too.
1621 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1622 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1623 Glom document. Presumably this worked sometimes so far because there is a
1624 default port number.
1626 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1628 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1630 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1631 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1632 correct, though we should throw an exception too.
1634 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1636 Fix a addDocuemnt typo.
1638 * src/main/java/org/glom/web/shared/Documents.java
1639 (Documents.addDocuemnt): Rename to addDocument().
1640 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1641 (OnlineGlomServiceImpl.getDocuments): Adapt.
1643 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1645 Slightly improved log output when connection fails.
1647 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1648 (ConfiguredDocument.setUsernameAndPassword):
1649 We don't know for sure if it' the username/password that's wrong, so
1650 rephrase the message.
1651 Also ouput the exception message, though it's generic in this case.
1653 2011-07-08 Ben Konrath <ben@bagu.org>
1657 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1658 added braces to a one line if statement because the Eclipse formatter
1659 was getting confused.
1661 2011-07-07 Ben Konrath <ben@bagu.org>
1663 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1665 These should really be two separate tasks but I counldn't get things to
1666 work with GWT 2.2.0 and Eclipse 3.7.
1670 * .settings/org.eclipse.jdt.core.prefs:
1671 * .settings/org.eclipse.jdt.ui.prefs:
1672 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1673 * .settings/org.eclipse.m2e.core.prefs:
1674 Add new config files. Update current files. Remove references to the
1675 webtools plugins as we're not using any of the webtools features.
1676 * .gitignore: Add logs directory which is created when running with
1678 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1679 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1680 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1682 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1684 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1686 onlineglom.properties: Add explanatory comments.
1688 * src/main/resources/onlineglom.properties: Also change the default user
1689 from ben to someuser, to avoid the risk of people thinking we just
1690 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1692 2011-06-28 Ben Konrath <ben@bagu.org>
1694 Use filename in Log for incorrect passwords.
1696 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1697 getFileName(String) method to get the filename from the URI.
1699 2011-06-28 Ben Konrath <ben@bagu.org>
1701 Add the table name to the URL token for the ListPlace.
1703 This makes things consistent between the DetailsPlace and the
1704 ListPlace. It also allows the the ListPlace to be bookmarked.
1706 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1707 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1708 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1709 Remove getDefaultListLayout(). The default layout is now returned
1710 by the getListLayout() method when the table name is an empty string.
1711 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1712 Add table name field. Change to a new ListPlace when the table
1713 has been changed. Use getListLayout() for getting the default
1715 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1716 Add table name field. Set the correct table name in the list box
1717 when loading from bookmark. This corrects a problem for the
1719 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1720 Move table name to super-class (HasSelectableTable). Move document
1721 and table URL keys to super-class in HasSelectableTable.
1722 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1723 Add table name field. Add Tokenizer class with URL key common to
1724 the subclasses (DetailsPlace and ListPlace).
1725 * src/main/java/org/glom/web/client/place/ListPlace.java:
1726 Add table name. Add code to parse the URL token.
1727 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1728 Update ListPlace construction with empty table name string.
1729 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1730 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1731 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1732 Update ListPlace construction with table name string.
1733 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1734 Change defaultTableName field to tableName to reflect how it's now
1735 used. Update the getter and setter methods.
1737 2011-06-28 Ben Konrath <ben@bagu.org>
1739 Enable the table selector in the DetailsView.
1741 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1742 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1743 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1744 Remove getDefaultDetailsLayout(). The default layout is now returned
1745 by the getDetailsLayout() method when the table name is an empty
1747 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1748 event handler for table change event. Change to using
1749 getDetailsLayout() for the default details layout.
1750 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1752 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1753 when navigating to the details place.
1755 2011-06-27 Ben Konrath <ben@bagu.org>
1757 Use filename based unique document ID in URL and for RPC.
1759 The document ID is the glom document name with spaces (' ') replaced
1760 with pluses ('+') and without the .glom extension.
1762 This change is mostly a string substitution of 'documentTitle' for
1763 'documentID'. The only code change is the addition of a Documents DTO to get the
1764 filename to document title mappings as indicated below.
1766 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1767 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1768 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1769 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1770 Use Documents DTO to create the document links in the document
1772 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1773 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1774 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1775 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1776 * src/main/java/org/glom/web/client/place/ListPlace.java:
1777 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1778 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1779 * src/main/java/org/glom/web/client/ui/ListView.java:
1780 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1781 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1782 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1783 * src/main/java/org/glom/web/server/Log.java:
1784 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1785 getDocumentTitles() to getDocuments() and return the Documents DTO.
1786 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1787 transferring the filename to document title mappings.
1789 2011-06-25 Ben Konrath <ben@bagu.org>
1791 Make the authentication popup work again.
1793 This bug was introduced when I extracted ConfiguredDocument to its own class.
1795 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1796 correct success / fail status in setUsernameAndPassword().
1798 2011-06-25 Ben Konrath <ben@bagu.org>
1800 Use filename as unique key for configuring database usernames and passwords.
1802 This replaces the use of the Glom document title which could change
1803 depending on the locale. Thanks to Murray Cumming for pointing out this
1806 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1807 * src/main/resources/onlineglom.properties:
1809 2011-06-24 Ben Konrath <ben@bagu.org>
1811 Pass primary key value to DetailsView.
1813 This enables the DetailsView to load the correct data.
1815 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1816 primary key value field and set in constructor. Pass primary key
1817 value to getDetailsData().
1818 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1819 variables for document title and primary key value.
1820 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1821 key value to the DetailsPlace.
1823 2011-06-24 Ben Konrath <ben@bagu.org>
1825 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1827 This allows the primary key to be retrieved by the Details button. This
1828 functionality has not been implemented yet but it's in the works.
1830 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1831 the LayoutGroup result to ListView.setCellTable instead of all of its
1832 fields individually.
1833 * src/main/java/org/glom/web/client/ui/ListView.java:
1834 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1835 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1836 get the primary key for the table.
1837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1838 index of the primary key in the LayoutGroup accounting for hidden
1839 primary keys. Rename getJavaNumberFormat() to
1840 convertToJavaNumberFormat() for consistency. Cleanup / add some
1842 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1843 field for primary key index and a field to indicate whether the
1844 primary key is hidden or not.
1846 2011-06-23 Ben Konrath <ben@bagu.org>
1848 Rename getTableData methods to getListData.
1850 This is a rename refactor for consistency with other methods.
1852 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1853 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1854 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1855 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1857 2011-06-23 Ben Konrath <ben@bagu.org>
1859 Extract the ConfiguredDocument innerclass into its own class.
1861 This makes the servlet code more object oriented.
1863 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1864 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1865 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1866 new ConfiguredDocument class.
1868 2011-06-21 Ben Konrath <ben@bagu.org>
1870 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1872 This makes things more inline with how libglom works and reduces code
1873 duplication. This refactor lays the groundwork for adding the primary key to
1874 the LayoutGroup object.
1876 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1877 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1879 Change method names to getListLayout and getDefaultListLayout for
1880 consistency. Use LayoutGroup as the DTO for the list layout instead of
1881 ColumnInfo and LayoutListTable.
1882 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1883 new method names along with the LayoutGroup object for transferring the
1885 * src/main/java/org/glom/web/client/ui/ListView.java:
1886 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1887 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1888 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1890 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1891 Replaced with LayoutGroup.
1892 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1893 expectedResultSize and defaultTableName fields which are needed for
1895 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1896 type field which is needed for the list layout but will also be
1897 useful for the details layout as things progress.
1898 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1899 Make class abstract. Remove the unnecessary
1900 getFormattingHorizontalAlignment method. Add setFormatting method.
1902 2011-06-16 Ben Konrath <ben@bagu.org>
1904 Add scripts for building and installing war.
1906 These will help when updating OnlineGlom but they're also good
1907 supplemental documentation of the build and deployment proceeding.
1909 * utils/build-onlineglom-war.sh: New file.
1910 * utils/install-onlineglom-war.sh: New file.
1912 2011-06-16 Ben Konrath <ben@bagu.org>
1914 Create wrapper class to create consistent log messages.
1916 I wrapped methods in the Log class of gwt-log to add the method names
1917 from the servlet and create consistent formatting of the document title
1918 and table names in the log messages.
1920 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1921 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1922 log methods to use methods from wrapped Log class.
1924 2011-06-16 Ben Konrath <ben@bagu.org>
1926 Remove superfluous conditional return.
1928 Thanks to Murray Cumming for pointing this out!
1930 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1932 2011-06-15 Ben Konrath <ben@bagu.org>
1934 Return an ArrayList of LayoutGroups for the Details layout.
1936 This corrects a problem with the details layout as it can have more
1937 than one top level LayoutGroup.
1939 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1940 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1941 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1942 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1943 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1944 with ArrayList of LayoutGroups for the details view layout.
1945 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1946 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1947 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1948 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1949 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1950 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1952 2011-06-14 Ben Konrath <ben@bagu.org>
1954 Use cast_dynamic method to determine the libglom LayoutItem type.
1956 This is better than finding the LayoutItem type by using the string
1957 returned from the get_part_type_name() method.
1959 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1961 2011-06-14 Ben Konrath <ben@bagu.org>
1963 Add method names to log entries in the servlet.
1965 This helps when tracking down deployment problems.
1967 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1969 2011-06-14 Ben Konrath <ben@bagu.org>
1971 Add data to the DetailsView using a hard-coded primary key value.
1973 The layout and functionality of the DetailsView is not complete. This
1974 is just a checkpoint so the patch doesn't get too big.
1976 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1977 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1978 Add getDetailsData() servlet method.
1979 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1980 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1981 LayoutFields are added to the DetailsView.
1982 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1983 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1984 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1985 take the string for the title instead of the object.
1986 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1987 Add implementation getDetailsData() along with some private helper
1989 * src/main/webapp/style.css: Add padding to details-data class. Add a
1990 details-label class with the same padding as the details-data class.
1992 2011-06-03 Ben Konrath <ben@bagu.org>
1994 Use presenter.goTo() to change to the DetailsPlace.
1996 This will make things easier when we need to open the DetailsView with
1997 data specific to the row that was clicked.
1999 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2001 2011-06-02 Ben Konrath <ben@bagu.org>
2003 Add CSS file from mockups.
2005 I'm adding this now because it's going to be useful to have when
2006 developing the DetailsView. The TableSelectionView and ListView aren't
2009 * src/main/webapp/OnlineGlom.html:
2010 * src/main/webapp/style.css:
2012 2011-06-02 Ben Konrath <ben@bagu.org>
2014 Use String.isEmpty() to check for empty string.
2016 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2018 2011-06-02 Ben Konrath <ben@bagu.org>
2020 Display main layout group titles in the DetailsView.
2022 This is the start of the DetailsActivity/DetailsView implementation.
2024 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2025 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2026 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
2027 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2028 Get the layout information for the details view from the server and set
2029 the main layout group titles.
2030 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2031 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2032 Add addLayoutGroup() and addLayoutField() methods. This are just
2033 temporary methods for creating the the details view that will change
2035 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2036 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2038 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2039 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2040 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2041 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2042 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2043 Data Transfer Objects that mimic the libglom object structure. These are
2044 used for transferring the details layout but could also be used for
2045 transferring the list layout.
2047 2011-05-27 Ben Konrath <ben@bagu.org>
2049 Reset the AuthenticationPopup when clearing the ListView.
2051 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2053 2011-05-27 Ben Konrath <ben@bagu.org>
2055 Fix problem with onlineglom.properties file loading.
2057 The old way worked in Eclipse but not on the server. Loading the
2058 onlineglom.properties file now works in Eclipse and on the server.
2060 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2062 2011-05-24 Ben Konrath <ben@bagu.org>
2064 Update gwt-log from 3.1.0 to 3.1.2.
2066 Gwt-log 3.1.0 has been marked as depreciated.
2070 2011-05-24 Ben Konrath <ben@bagu.org>
2072 Add comment to ListActivity.goTo() method.
2074 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2076 2011-05-24 Ben Konrath <ben@bagu.org>
2078 Remove FIXME in convertGdkColorToHtmlColour()
2080 The Gdk::Color value returned by libglom is 16-bits per channel on both
2081 64 and 32-bit platforms.
2083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2085 2011-05-19 Ben Konrath <ben@bagu.org>
2087 Improve performance of initial ListView load.
2089 I removed a round trip to the server for getting the default table name
2090 and then requesting information about that table. This also removes a potential
2091 problem with the table change handler not being setup in time to receive the
2092 table change event from the ListActivity.
2094 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2095 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2096 getDefaultLayoutListTable() method. Improve comments.
2097 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2098 getDefaultLayoutListTable() method instead of firing a table change
2099 event to get the table to load.
2100 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2101 implementation of getDefaultLayoutListTable() method.
2102 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2105 2011-05-19 Ben Konrath <ben@bagu.org>
2107 Override toDebugString() in TableChangeEvent.
2109 This is useful to have for debugging.
2111 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2113 2011-05-19 Ben Konrath <ben@bagu.org>
2115 Add a "Back to List" link when at the DetailsPlace.
2117 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2118 Populate the CellTable based on the selected table of the ListBox if
2119 it's set otherwise use the default table. This allows the "Back to
2121 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2122 Remove Place from constructors. Add a setPlace() method. Add
2123 goToPlace() method. Set class as presenter for TableSelectionView.
2124 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2125 Use the same TableSelectionActivity when switching between the List and
2127 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2128 Subclass the new HasSelectableTablePlace. This removes some duplicate
2130 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2131 New class to represent Places that display the TableSelectionView.
2132 * src/main/java/org/glom/web/client/place/ListPlace.java:
2133 Subclass the new HasSelectableTablePlace. This removes some duplicate
2135 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2136 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2137 Add Presenter interface. Add setBackLinkVisible() method. Add
2138 setBackLink() method.
2140 2011-05-18 Ben Konrath <ben@bagu.org>
2142 Enable the "Details" buttons.
2144 Right now only an empty details view is displayed.
2146 * src/main/java/org/glom/web/client/ClientFactory.java:
2147 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2148 Add DetailsView to ClientFactory.
2149 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2150 A basic activity for the details view.
2151 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2152 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2154 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2155 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2157 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2158 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2159 unnecessary super() in constructor.
2160 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2161 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2162 really shouldn't create a new TableSelectionActivity for both the ListPlace
2163 and the DetailsPlace so this should be considered a temporary solution.
2164 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2165 New file. Represents a URL for the details view.
2166 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2167 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2168 A basic details view interface and implementation.
2169 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2170 Enable the "Details" buttons.
2172 2011-05-12 Ben Konrath <ben@bagu.org>
2174 Use a LayoutPanel with multiple display areas for main layout.
2176 This is mostly a refactor in that there are no changes from the user
2177 point of view. These changes are required so that we can swap out the list view
2178 with the details view when the user clicks the "Details" button.
2180 * src/main/java/org/glom/web/client/ClientFactory.java:
2181 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2182 OnlineGlomView. Add TableSelectionView, ListView and
2183 AuthenticationPopup.
2184 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2185 for main layout. Add display regions for main activities. Add
2186 activity manager for for main activities.
2187 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2188 file from parts of the deleted OnlineGlomActivity.
2189 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2190 New file from parts of the deleted OnlineGlomActivity.
2191 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2192 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2193 New files for app wide table change event.
2194 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2195 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2196 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2197 Activity mappers for the main activities replace the deleted app-wide
2199 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2200 Fix a spelling error in he comment.
2201 * src/main/java/org/glom/web/client/ui/ListView.java:
2202 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2203 Renamed from LayoutListView and modified for MVP. This still not a
2204 proper dumb view as prescribed by the MVP pattern but it works for now.
2205 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2206 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2207 New widget stripped out of the deleted OnlineGlomView.
2208 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2209 Remove hack that is fixed by this patch.
2211 2011-05-06 Ben Konrath <ben@bagu.org>
2213 Rename OnlineGlomPlace to ListPlace.
2215 The only change besides the rename is that url will now display #list
2216 instead of #Document.
2218 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2219 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2220 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2221 * src/main/java/org/glom/web/client/place/ListPlace.java:
2222 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2224 2011-05-06 Ben Konrath <ben@bagu.org>
2226 Use Presenter for app navigation.
2228 This is the proper way to deal with Place (URL) changes with the MVP
2231 * src/main/java/org/glom/web/client/ClientFactory.java:
2232 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2233 PlaceHistoryMapper and PlaceHistoryHandler.
2234 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2235 PlaceHistoryMapper and PlaceHistoryHandler.
2236 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2237 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2238 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2239 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2240 Add Presenter interface and setPresenter methods. Rename addHyperLink
2241 to addDocumentLink taking only the document title as a parameter.
2243 2011-04-14 Ben Konrath <ben@bagu.org>
2245 Prompt for db username/password if they haven't been set.
2247 This is implemented with a popup widget that is contained within the
2248 OnlineGlomView and managed by the OnlineGlomActivity.
2250 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2251 methods for checking and setting the database username and password.
2252 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2253 new methods for checking and setting the database username and
2255 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2256 Display authentication popup if the JDBC connection to the database
2257 has not been authenticated.
2258 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2260 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2261 for dealing with the authentication popup.
2262 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2263 Implement the methods for dealing with the authentication popup.
2264 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2265 try to executed queries if the database connection hasn't been
2266 authenticated. Implement methods for checking and setting the
2267 database username and password.
2269 2011-04-12 Ben Konrath <ben@bagu.org>
2271 Make log messages a little clearer.
2273 Add a dash betweeen the document title and the table name.
2275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2277 2011-04-12 Ben Konrath <ben@bagu.org>
2279 Protect against NPEs when cleaning up database resources.
2281 While this isn't strictly necessary because the exception is caught,
2282 not protecting against the NPEs makes it harder to find the real error
2285 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2287 2011-04-12 Ben Konrath <ben@bagu.org>
2289 Move configuration of the servlet to the constructor.
2291 The servlet will be initialized even if the database authentication
2292 information is not set or correct. I still need to add the UI for prompting
2293 the user for the authentication information when it's required.
2295 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2296 javadocs for getDocumentTitles() method.
2297 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2298 Set error message when RPC fails.
2299 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2300 glom files directory from the configuration file. Try to set the
2301 database authentication information for the specific document if it's
2302 set and works otherwise try to use the global authentication
2303 information set for the directory.
2304 * src/main/resources/onlineglom.properties: Moved from
2305 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2306 Added detailed comments for the new keys.
2308 2011-04-11 Ben Konrath <ben@bagu.org>
2310 Remove unnecessary @Override in DocumentSelectionViewImpl.
2312 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2314 2011-04-11 Ben Konrath <ben@bagu.org>
2316 Remove center alignment in DocumentSelectionView.
2318 The title element is still centred but the document titles and bottom
2319 sentence are both left-aligned.
2321 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2323 2011-04-11 Ben Konrath <ben@bagu.org>
2325 Change 'Demo' naming convention to 'Document'.
2327 This is just a rename refactor with no functional changes to the code.
2329 * src/main/java/org/glom/web/client/ClientFactory.java:
2330 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2331 * src/main/java/org/glom/web/client/OnlineGlom.java:
2332 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2333 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2334 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2335 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2336 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2337 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2338 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2339 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2340 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2341 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2343 2011-04-08 Ben Konrath <ben@bagu.org>
2345 Remove FIXME from safeLongToInt() method.
2347 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2352 2011-04-08 Ben Konrath <ben@bagu.org>
2354 Display an error if no glom documents are found in the specified directory.
2356 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2357 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2358 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2361 2011-04-08 Ben Konrath <ben@bagu.org>
2363 Add copyright header to one more file ... oops.
2365 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2367 2011-04-08 Ben Konrath <ben@bagu.org>
2369 Add copyright header to files without it.
2371 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2372 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2373 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2374 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2375 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2376 * src/main/java/org/glom/web/shared/GlomField.java:
2378 2011-04-08 Ben Konrath <ben@bagu.org>
2380 Add support for accessing multiple glom documents in the servlet.
2382 This completes the demo selection functionality.
2384 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2385 document title to methods.
2386 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2387 document title to methods.
2388 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2389 Set browser window title when the activity starts. Correct name of
2390 document title variable.
2391 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2392 Set browser window title when the activity starts. Set the table
2393 selector change handler after table selector has been set. Clear the
2394 OnlineGlomView when the activity has been stopped.
2395 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2396 document title as the place token. Use "#Document:" instead of
2397 "#OnlineGlomPlace:" in the URL.
2398 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2399 Change heading to "Online Glom"
2400 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2401 document title in RPC methods.
2402 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2403 setDocumentTitle() method. Add clear() method.
2404 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2405 setDocumentTitle() method. Implement clear() method which removes the
2406 change handler on the ListBox, clears the ListBox and clears the
2408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2409 Implement methods with document title. Keep track for the configured
2410 glom documents and their corresponding JDBC configurations in a hash
2411 table. This information is retrieved using the document title as the
2412 key in the hash table.
2413 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2414 document title field as it's no longer needed.
2416 2011-04-08 Ben Konrath <ben@bagu.org>
2418 Update the Eclipse JDT configuration.
2420 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2421 methods. Automatically add the copyright header to new files.
2423 2011-04-05 Ben Konrath <ben@bagu.org>
2425 Add new page for demo selection.
2427 This patch adds all the components required to view and start an
2428 OnlineGlom demo by clicking on the desired hyperlink. The user is
2429 able to return to the demo selection page with the browser's back
2430 button. I still need to modify the servlet to work with multiple
2431 documents so all demo links will load the file defined in the
2432 OnlineGlom.properties.
2434 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2435 This is only useful during development so we don't need to save it.
2436 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2437 get a reference to the DemoSelectionView.
2438 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2439 method to get a reference to the DemoSelectionView.
2440 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2441 default view to DemoSelectionView.
2442 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2443 to get glom document titles for glom files in a hard-coded directory.
2444 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2445 method to get glom document titles for glom files in a hard-coded
2447 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2448 Presenter for DemoSelectionView.
2449 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2450 for DemoSelectionView.
2451 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2452 Update for DemoSelectionView.
2453 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2454 Basic 'Place' implementation for the DemoSelectionView.
2455 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2456 The interface for the DemoSelectionView.
2457 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2458 The implementation of the DemoSelectionView.
2459 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2460 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2461 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2462 implementation of method to get glom document titles for glom files
2463 in a hard-coded directory.
2464 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2465 on longer being used.
2466 * src/main/webapp/glom.png: Glom logo.
2468 2011-04-05 Ben Konrath <ben@bagu.org>
2470 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2472 This is the forth and final commit of a refactor that will allow
2473 OnlineGlom to be used with multiple documents.
2475 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2476 Move RPC code from OnlineGlomViewImpl to this class.
2477 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2479 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2480 RPC code to the presenter class (the P in MVP).
2482 2011-04-04 Ben Konrath <ben@bagu.org>
2484 Start moving the existing OnlineGlom code to MVP.
2486 This work is based on the GWT MVP framework that is documented here:
2488 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2490 This is the third commit of a refactor that will allow OnlineGlom to
2491 be used with multiple documents.
2493 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2494 Interface for client factory which is used to get instances of various
2495 classes throughout the app.
2496 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2497 Implementation of client factory.
2498 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2499 initialize the MVP framework.
2500 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2501 New file. Activity manager for the main container widget. This is the
2503 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2504 Maps place (URL) to its corresponding activity.
2505 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2506 New file. This is just a place holder for a generated file.
2507 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2508 New file. Represents the URL for the main Online Glom app.
2509 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2510 for changes in LayoutListViewImpl.
2511 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2512 interface for View. Move code to OnlineGlomViewImpl class.
2513 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2514 file. Implementation of OnlineGlomView.
2515 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2516 Place resources. Use ClientFactoryImpl by default.
2518 2011-04-04 Ben Konrath <ben@bagu.org>
2520 Move View classes to their own package.
2522 This is the second commit of a refactor that will allow OnlineGlom to
2523 be used with multiple documents.
2525 * src/main/java/org/glom/web/client/OnlineGlom.java:
2526 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2527 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2529 2011-04-02 Ben Konrath <ben@bagu.org>
2531 Move UI code from the main module to its own class.
2533 This is the first commit of a refactor that will allow OnlineGlom to be
2534 used with multiple documents.
2536 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2537 references to OnlineGlom to OnlineGlomView.
2538 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2539 OnlineGlomView and instantiate it here.
2540 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2541 represents the main OnlineGlomView with one document.
2543 2011-04-01 Ben Konrath <ben@bagu.org>
2545 Fix formatting of gwt.xml and add DTD.
2547 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2549 2011-03-30 Ben Konrath <ben@bagu.org>
2551 Propperly convert gdkColor string to html colour string.
2553 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2555 2011-03-28 Ben Konrath <ben@bagu.org>
2557 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2559 This implementation matches
2560 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2561 readable and is not tied to Swig.
2563 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2565 2011-03-28 Ben Konrath <ben@bagu.org>
2567 Use read-only checkboxes for boolean field types.
2569 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2570 in the CellTable based on the field type. It currently only
2571 distinguishes between boolean and text columns but I'll need to add
2572 support for more types.
2573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2574 column type in the ColumnInfo object. Add method to convert between the
2575 glom field type enum in ColumnInfo and the glom field type in libglom.
2576 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2578 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2579 getting and setting booleans.
2581 2011-03-25 Ben Konrath <ben@bagu.org>
2583 Don't get the Date twice from the ResultSet.
2585 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2587 2011-03-25 Ben Konrath <ben@bagu.org>
2589 Cleanup code in the servlet.
2591 * TODO: Remove item about row count. Add item about testing row count
2592 query with large number of rows.
2593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2594 spelling mistakes, change method parameter to be consistent with
2597 2011-03-25 Ben Konrath <ben@bagu.org>
2599 Add server side logging with the gwt-log library.
2601 * .gitignore: Ignore the log file we're now producing.
2602 * TODO: Add a couple TODO item for logging.
2603 * pom.xml: Add gwt-log and log4j as a dependency.
2604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2605 logging of errors, warnings and some important info.
2606 * src/main/resources/log4j.properties: New file to configure log4j.
2608 2011-03-24 Ben Konrath <ben@bagu.org>
2610 Add a disable button for the Details view.
2612 * src/main/java/org/glom/web/client/LayoutListView.java:
2614 2011-03-22 Ben Konrath <ben@bagu.org>
2616 Use a count query to get the number of rows for the list view pager.
2618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2620 2011-03-22 Ben Konrath <ben@bagu.org>
2622 Add more TODO information about CellTable pager positioning.
2626 2011-03-19 Ben Konrath <ben@bagu.org>
2628 Add TODO item about CellTable pager positioning.
2632 2011-03-18 Ben Konrath <ben@bagu.org>
2634 Remove unneeded GlomFieldColumn class.
2636 This is just a small code cleanup.
2638 * src/main/java/org/glom/web/client/LayoutListView.java:
2640 2011-03-18 Ben Konrath <ben@bagu.org>
2642 Use cursor mode in the query that gets data for the list view.
2644 I still need to fix the potential memory problem when getting the row
2645 count for the list view.
2647 * TODO: Add note about testing memory usage with large data sets. Add
2648 item about fixing row counting with large data sets.
2649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2650 PostgreSQL JDBC driver into cursor mode when getting data for the
2653 2011-03-15 Ben Konrath <ben@bagu.org>
2655 Remove the GWT Container from the Eclipse build classpath.
2657 The GWT dependencies are set by Maven so this isn't needed.
2661 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2663 Added some earlier mockups to git, but not to the tarball dist.
2665 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2666 Openismus. These hopefully show how we might structure the HTML so that
2667 it can be styled easily with CSS. However, we probably need to adapt them
2668 for the CSS structure that GWT dictates for common widgets.
2670 2011-03-14 Ben Konrath <ben@bagu.org>
2672 Locate OnlineGlom.properties using the ServletContext.
2674 This is required to be able to locate the file in the deployed servlet.
2676 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2677 Configure the database and glom document in in a helper method so
2678 that the ServletContext can be used to locate OnlineGlom.properties.
2679 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2680 src/main/webapp. This is the proper location for .properites files.
2682 2011-03-12 Ben Konrath <ben@bagu.org>
2684 Add note to README about why we're compiling down to obfuscated JavaScript.
2688 2011-03-11 Ben Konrath <ben@bagu.org>
2690 Use properties file to configure servlet.
2692 This allows people to change the glom file path, db username and db
2693 password without recompiling the code.
2695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2696 * src/main/webapp/OnlineGlom.properties:
2698 2011-03-11 Ben Konrath <ben@bagu.org>
2700 Use table fields in layout list view if the layout list is not defined.
2702 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2703 Manually create a LayoutFieldVector for the query builder using the
2704 table fields when a layout list is not defined in the glom file.
2706 2011-03-11 Ben Konrath <ben@bagu.org>
2708 Only show FIXME string for images when there's an image.
2710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2711 in this change are some small code cleanups.
2713 2011-03-11 Ben Konrath <ben@bagu.org>
2715 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2717 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2719 2011-03-11 Ben Konrath <ben@bagu.org>
2721 Correctly set the index of the default table.
2723 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2724 Correctly set the index of the default table. Add commented out example
2727 2011-03-10 Ben Konrath <ben@bagu.org>
2729 Add comment to pom.xml about the previous change.
2731 * pom.xml: Add comment about the deployment issue so that it's obvious
2732 why java-libglom is set to the provided scope.
2734 2011-03-10 Ben Konrath <ben@bagu.org>
2736 Change java-libglom dependency from compile to provided in pom.xml.
2738 Since java-libglom uses jni it can only be loaded once and therefore
2739 must be placed in $CATALINA_HOME/lib and not included in each war.
2740 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2741 More information about this issue can be found in the Tomcat 6 release
2742 notes in the "JNI Based Applications" section:
2744 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2746 * README: Remove note about this issue. Deployment info should really
2747 be on the wiki anyway so I'll add it right now.
2748 * pom.xml: Change java-libglom dependency from compile to provided so
2749 that it's copied in to the packaged war.
2751 2011-03-09 Ben Konrath <ben@bagu.org>
2753 Change to using a neutral locale for currency, date and time formatting.
2755 This solves the problem of currency values being represented without a
2756 space between the currency code and the number (e.g. "EUR5.89" is now
2757 represented as "EUR 5.89"). More work is required when we implement
2758 a locale preference setting.
2760 * TODO: Add note about currency formatting issues with different
2762 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2763 to using the neutral ROOT locale.
2765 2011-03-09 Ben Konrath <ben@bagu.org>
2767 Add support for currency codes that are not ISO 4217 codes.
2769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2770 the currency code defined in the glom file when it's not 3 characters
2771 long or when Java doesn't recognize the string as an ISO 4217 code.
2773 2011-03-08 Ben Konrath <ben@bagu.org>
2775 Remove test classes, launch configurations and configuration.
2777 The test stuff was getting in the way when creating the war. To make
2778 the war file you can now do 'mvn clean package'. The packaged war file
2779 will be in the target directory.
2781 * .classpath: Remove unused classpathentry for tests and i18n.
2782 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2783 property. Don't run test or i18n goals when packaging the war.
2784 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2789 * OnlineGlomTest-dev.launch:
2790 * OnlineGlomTest-prod.launch:
2791 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2792 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2794 2011-03-07 Ben Konrath <ben@bagu.org>
2796 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2798 These fixes allow me to use 'mvn deploy' to create the war file.
2800 * .classpath: This generated config has been updated by Eclipse. This
2801 change was probably triggered by me updating from Eclipse 3.6.1 to
2803 * .gitignore: Add entry to ignore the directory
2804 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2805 * .project: The generated config has been updated by Eclipse. This
2806 change was probably triggered by me updating from Eclipse 3.6.1 to
2808 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2809 so that Eclipse doesn't complain
2810 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2811 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2812 'tests' directory to 'client' directory. This is the new
2813 gwt-maven-plugin convension.
2814 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2815 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2817 2011-03-07 Ben Konrath <ben@bagu.org>
2819 Add support for horizontal alignment in the LayoutList columns.
2821 * TODO: Remove item about horizontal alignment. Add item about
2822 improvements to ColumnInfo.
2823 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2824 alignment on the columns. Use ColumnInfo RPC object get the column
2825 title and horizontal alignment.
2826 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2827 LayoutListView creation with ColumnInfo RPC object.
2828 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2829 a ColumnInfo object for every LayoutList columnn. Convert the
2830 FieldFormatting.HorizontalAlignment to the correct
2831 ColumnnInfo.HorizontatlAlignment with the new
2832 getColumnInfoHorizontalAlignment helper method.
2833 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2834 to encapsulate column information like alignment and title. This
2835 could be used to set the colour instead of on a per cell field basis.
2836 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2837 column title storage and retrieval with ColumnInfo.
2839 2011-03-04 Ben Konrath <ben@bagu.org>
2841 Add support for column sorting.
2843 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2844 AsynDataProvider to be an anonymous inner class. Use new
2845 getSortedTableData RPC method when column sort is requested. Set all
2846 columns sortable and add an AsyncHandler to activate sorting in the
2848 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2849 method getSortedTableData(). Cleanup other method signatures.
2850 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2851 new method getSortedTableData(). Cleanup other method signatures.
2852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2853 Implement getSortedTableData() and getTableData() methods by using a
2854 private helper method with the appropriate parameters filled in. Use
2855 user supplied sort clause when supplied, otherwise fall back to
2856 sorting by the primary key. Move destroy() method to be underneath
2857 constructor for readability. Cleanup comments.
2859 2011-03-03 Ben Konrath <ben@bagu.org>
2861 Add support for colour text and colour backgrounds to the layout list cells.
2863 Only the cell backgrounds are coloured which leaves a gap between the
2864 cells that isn't coloured. I need to figure out a way to set
2865 'style=background-colour:' on the whole column rather than just the
2868 * TODO: Add a note about colouring the background of the whole column.
2869 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2870 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2871 render the coloured text and backgrounds. Use GlomField[] for the row type.
2872 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2874 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2875 GlomField[] for the row type.
2876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2877 GlomField[] for the row type. Set the text, text colour and background
2878 colour in the GlomField objects as specified in the glom document. Add
2879 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2880 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2881 the glom field text, foreground colour and background colour.
2883 2011-03-02 Ben Konrath <ben@bagu.org>
2885 Don't display hidden tables in the combo box.
2887 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2890 code to ignore hidden tables using ArrayLists for the table names and
2892 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2893 tableNames to use ArrayLists instead of String[]. Update getter and setter
2896 2011-03-01 Ben Konrath <ben@bagu.org>
2898 Add support for Date and Time number types.
2900 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2901 Implement formatting for Date and Time values. Change the default glom
2902 file to small business example.
2904 2011-03-01 Ben Konrath <ben@bagu.org>
2906 Add support for formatting glom types as specified in the glom file.
2908 Formatting isn't finished yet - I still need to add support for Date
2911 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2912 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2913 checks for null values in JDBC cleanup code and catch all exceptions
2914 instead of just SQLExceptions.
2915 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2918 2011-03-01 Ben Konrath <ben@bagu.org>
2920 Use GWT 2.2.0 instead of 2.1.1.
2922 * pom.xml: Change GWT version numbers.
2924 2011-03-01 Ben Konrath <ben@bagu.org>
2926 A few small code cleanups.
2928 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2930 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2931 unnecessary object creation in constructor.
2932 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2933 unnecessary object creation in constructor.
2935 2011-02-28 Ben Konrath <ben@bagu.org>
2937 Add file for TODO list.
2941 2011-02-18 Ben Konrath <ben@bagu.org>
2943 Enable the CellTable Pager when more than 20 rows need to be viewed.
2945 The Pager will automatically become active when the results are larger
2946 than the CellTable size which is currently set to 20 lines.
2948 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2949 name on debug statment in RPC call in LayoutListDataProvider, add
2950 numRows parameter to LayoutListView constructor, propperly set rowCount
2952 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2953 name on debug statment in RPC call, use LayoutListTable object in RPC
2954 calls, pass rowCount to LayoutListView.
2955 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2956 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2958 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2959 interface for changes in OnlineGlomService.
2960 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2961 getLayoutListHeaders() to getLayoutListTable() and return
2962 LayoutListTable. Using this object allows me to pass other information
2963 about the LayoutList like the expected number of rows in the result set.
2964 The Connection object from the connection pool is now propperly closed.
2965 Only the requested number of lines are returned to the client in
2967 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2968 GlomTable and add columnTitles and numRows.
2970 2011-02-18 Ben Konrath <ben@bagu.org>
2972 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2974 This is a small performance boost. I'll use GlomTable to get the required
2975 layoutlist information.
2977 * src/main/java/org/glom/web/client/OnlineGlom.java:
2978 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2979 * src/main/java/org/glom/web/shared/GlomDocument.java:
2981 2011-02-18 Ben Konrath <ben@bagu.org>
2983 Add option to turn off formatting in JDT formatter preferences.
2985 * .settings/org.eclipse.jdt.core.prefs:
2987 2011-02-18 Ben Konrath <ben@bagu.org>
2989 Rename LayoutList to LayoutListView.
2991 I'm working towards setting things up to easily use MVP when the time
2994 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2996 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2999 2011-02-17 Ben Konrath <ben@bagu.org>
3001 Move LayoutListDataProvider class into LayoutList.java.
3003 * src/main/java/org/glom/web/client/LayoutList.java:
3005 2011-02-17 Ben Konrath <ben@bagu.org>
3007 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
3009 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
3011 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
3012 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
3013 from LibGlomServer.java.
3014 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
3015 Rename from LibGlomServiceAsync.java.
3016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
3017 Rename from LibGlomServiceImpl.java.
3018 * src/main/webapp/WEB-INF/web.xml: Update configuration.
3020 2011-02-17 Ben Konrath <ben@bagu.org>
3022 Update JDT settings.
3024 * .settings/org.eclipse.jdt.core.prefs:
3026 2011-02-17 Ben Konrath <ben@bagu.org>
3028 Move GWT-RPC objects to shared package (where they should be).
3030 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3031 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3032 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3033 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3034 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3035 org.glom.web.shared package.
3036 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3037 org.glom.web.shared package.
3038 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3039 directory in compilation to javascript.
3041 2011-02-16 Ben Konrath <ben@bagu.org>
3043 Add sort clause to the sql query that grabs table information.
3045 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3046 if one of the columns is a primary key.
3048 2011-02-16 Ben Konrath <ben@bagu.org>
3050 Disable generateAsync feature of gwt-maven.
3052 The generated interface does not correctly match the methods in LibGlomService
3053 and the generated singleton Util inner-class doesn't respect the servlet
3056 * pom.xml: Turn off generateAsync feature.
3057 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3058 with singleton Util inner-class.
3060 2011-02-14 Ben Konrath <ben@bagu.org>
3062 Add LGPL v3 licence notices.
3064 Followed directions listed here:
3065 http://www.gnu.org/licenses/gpl-howto.html
3067 * COPYING: This file is a copy of the GPL v3.
3068 * COPYING.LESSER: This file is a copy of the LGPL v3.
3069 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3071 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3073 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3075 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3077 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3079 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3081 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3084 2011-02-14 Ben Konrath <ben@bagu.org>
3086 Use ArrayList instead of Array in GWT-RPC calls.
3088 Apparently this gives a slight performance boost to the compiled
3091 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3093 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3096 2011-02-14 Ben Konrath <ben@bagu.org>
3098 Access data from a postgres db rather than the example glom file.
3100 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3101 compile down to obfuscated javascript.
3102 * pom.xml: Add c3p0 and postgres JDBC libraries.
3103 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3104 using a postgres db accessed through the c3p0 connection pooling library.
3106 2011-02-14 Ben Konrath <ben@bagu.org>
3108 Update Java formatter settings.
3110 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3112 2011-02-02 Ben Konrath <ben@bagu.org>
3114 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3116 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3118 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3119 the compiled webapp directory that Eclipse uses as we're using Maven now.
3120 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3121 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3123 * pom.xml: Format file, change target Java version to 1.6.
3125 2011-02-02 Ben Konrath <ben@bagu.org>
3127 Add information about a deployment related issue.
3129 * README: Add Notes section with the problem outlined.
3131 2011-02-02 Ben Konrath <ben@bagu.org>
3133 Call Glom.libglom_deinit() when the servlet is shutdown.
3135 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3136 Glom.libglom_deinit() to destroy() method.
3138 2011-01-28 Ben Konrath <ben@bagu.org>
3140 Use generated Util class to get the RPC Async interface.
3142 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3144 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3145 getInstance() method to get a reference to the RPC Async interface.
3146 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3147 getInstance() method to get a reference to the RPC Async interface, remove
3148 the now unused getLibGlomServiceProxy() method.
3150 2011-01-27 Ben Konrath <ben@bagu.org>
3152 Cleanup ChangeLog entry from previous commit.
3154 * ChangeLog: Group logical changes together and add comments.
3156 2011-01-25 Ben Konrath <ben@bagu.org>
3158 Convert to gwt-maven project.
3160 * .gitignore: Update for new project structure.
3161 * README: New file with a link to the online documentation.
3162 * pom.xml: The generated maven configuration file with some tweaks.
3164 Add / update Eclipse settings. These files are a merge of the files that
3165 were generated with the gwt-maven plugin and the files we were previously
3169 * .settings/.jsdtscope:
3170 * .settings/com.google.gdt.eclipse.core.prefs:
3171 * .settings/com.google.gwt.eclipse.core.prefs:
3172 * .settings/org.eclipse.jdt.core.prefs:
3173 * .settings/org.eclipse.wst.common.component:
3174 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3175 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3176 * .settings/org.maven.ide.eclipse.prefs:
3177 * OnlineGlomTest-dev.launch:
3178 * OnlineGlomTest-prod.launch:
3180 Java source files moved from the 'src' directory to the directory structure
3182 * src/main/java/org/glom/web/client/GlomDocument.java:
3183 * src/main/java/org/glom/web/client/GlomTable.java:
3184 * src/main/java/org/glom/web/client/LayoutList.java:
3185 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3186 * src/main/java/org/glom/web/client/LibGlomService.java:
3187 * src/main/java/org/glom/web/client/OnlineGlom.java:
3188 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3190 Non-functional property file used for translations. I included this as
3191 reminder that it's something I need to sort out.
3192 * src/main/resources/org/glom/web/client/Messages.properties:
3194 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3195 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3197 The servlet configuration files moved from the 'war' directory.
3198 * src/main/webapp/OnlineGlom.css:
3199 * src/main/webapp/OnlineGlom.html:
3200 * src/main/webapp/WEB-INF/web.xml:
3202 Generated test files with most of the code commented out. I included these
3203 so that it's easy to add tests when we're ready for them.
3204 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3205 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3207 2011-01-25 Ben Konrath <ben@bagu.org>
3209 Remove unused println.
3211 * src/org/glom/web/server/LibGlomServiceImpl.java:
3213 2011-01-25 Ben Konrath <ben@bagu.org>
3215 Add project specific JDT settings.
3217 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3218 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3220 2011-01-25 Ben Konrath <ben@bagu.org>
3222 Populate celltable with example data.
3224 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3225 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3226 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3227 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3228 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3229 asynchronously gets the example data.
3230 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3231 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3232 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3233 curently selected table to be retrieved by other widgets.
3234 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,