1 2011-12-12 Ben Konrath <ben@bagu.org>
3 Properly initialize numNonEmptyRows variable to zero.
5 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
6 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
8 2011-12-05 Ben Konrath <ben@bagu.org>
10 Add latest mockup with HTML tables.
12 Features of this mockup:
14 -> HTML table for flowtable
15 -> HTML table for flowtable column
16 -> Example of how related lists would look
17 -> Not using text entries for data items
19 The current version of Online Glom doesn't use HTML tables for the
22 This mockup has been sent to the glom-devel mailing list but it's good
23 to have it here as well.
25 * mockups/details-view-html-tables.html:
27 2011-12-05 Ben Konrath <ben@bagu.org>
29 Remove unnecessary getPrimaryKeyField() method.
31 getPrimaryKeyFieldForTable(String) has been renamed to
32 getPrimaryKeyField(String).
34 * src/main/java/org/glom/web/server/database/DBAccess.java:
35 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
36 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
38 2011-12-05 Ben Konrath <ben@bagu.org>
40 Add string representation of TypedDataItem value to conversion error message.
42 * src/main/java/org/glom/web/server/Utils.java: Logging the error
43 message was extracted into its own method to avoid duplication.
45 2011-12-05 Ben Konrath <ben@bagu.org>
47 Add type checking to navigation primary key value creation.
49 Create navigation primary key only if the expected type from the Glom
50 document matches the type returned by the SQL query.
52 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
54 2011-12-05 Ben Konrath <ben@bagu.org>
56 Rename a couple of variables in RelatedListNavigation.
58 This is a rename-only refactor.
60 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
62 2011-12-05 Ben Konrath <ben@bagu.org>
64 Move getListLayoutGroup() into getListViewLayoutGroup().
66 This removes getListLayoutGroup(). It was only being called by
67 getListViewLayoutGroup().
69 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
71 2011-12-05 Ben Konrath <ben@bagu.org>
73 Remove check for LayoutItem_Portal in list table method.
75 This check is no longer necessary because the method isn't being used
76 to create the LayoutItemPortal DTO.
78 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
80 2011-12-05 Ben Konrath <ben@bagu.org>
82 Properly support related list navigation.
84 Navigation from the "Repository Analyzer -> Package Scans ->
85 Dependencies" related table wasn't working because the primary key for
86 related tables wasn't being set properly. This commit fixes the
89 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
90 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
91 doesn't set the primary key properly for related list tables.
92 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
93 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
94 useful for getting the primary key for list view tables and for related
96 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
97 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
98 Move code to set the primary key for the table from the abstract
99 ListDBAccess class to ListViewDBAccess as it's only correct for list
101 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
102 Properly add primary key to related list tables.
104 2011-12-02 Ben Konrath <ben@bagu.org>
106 Properly set the horizontal alignment of fields.
108 This fix is for both the list tables and the details view.
110 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
111 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
112 to set the horizontal alignment of fields.
114 2011-12-02 Ben Konrath <ben@bagu.org>
116 Display currency codes in the details view.
118 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
120 2011-12-02 Ben Konrath <ben@bagu.org>
122 Avoid duplicate JNI call.
124 JNI is not as efficient as pure Java and this is an easy (and small)
127 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
128 Use previously retrieved value for whereClauseToTableName instead of
131 2011-12-02 Ben Konrath <ben@bagu.org>
133 Rename a couple of variables in RelatedListNavigation.
135 This is a rename-only refactor.
137 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
139 2011-12-02 Ben Konrath <ben@bagu.org>
141 Indicate clearly that a mismatched primary key type is a bug.
143 * src/main/java/org/glom/web/server/Utils.java: Change log level from
144 warning to error. Add 'This is a bug.' to message.
146 2011-12-02 Ben Konrath <ben@bagu.org>
148 Update / fix some comments.
150 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
152 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
154 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
155 Fix comments. Add some TODOs.
157 2011-12-02 Ben Konrath <ben@bagu.org>
159 Enable navigation to details view with string primary key from related list.
161 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
162 Create a text primary key value when return type of result is
163 java.sql.Types.VARCHAR.
165 2011-12-02 Ben Konrath <ben@bagu.org>
167 Use checkboxes for booleans in the details view.
169 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
171 2011-12-01 Ben Konrath <ben@bagu.org>
173 Improve performance of related list height calculation.
175 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
176 Put code to calculate the expected height in a static initializer so
177 that that it's only called once.
179 2011-12-01 Ben Konrath <ben@bagu.org>
181 Show related list tables in notebooks (again).
183 Calculate the height of the related list tables so the Notebook can be
184 set the correct height. The height of the related list table is also needed by
185 FlowTable to be able decide how to create the layout.
187 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
188 and set the Portal height based on the height of the related list
189 table and the Portal container.
190 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
191 Add method to calculate the height of the related list tables.
192 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
193 * src/main/webapp/style.css: Add css class for Pager. This is needed to
194 calculate the height of the Pager widget.
196 2011-12-01 Ben Konrath <ben@bagu.org>
198 Use CellTable API for table property instead of setting style on Element.
200 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
202 2011-12-01 Ben Konrath <ben@bagu.org>
204 Make ListViewTable and RelatedListTable a consistent height.
206 The tables are now a consistent height regardless of the contents of
207 the table. A hidden button is added to empty rows to ensure that the
208 height of these rows will match the height of rows with data.
210 A navigation button column is now added to every table. The width of
211 the navigation column is set to 0px when a RelatedListTable shouldn't
212 have navigation buttons. This maintains the a consistent row height in
213 tables that don't show the navigation buttons.
215 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
216 navigation column when not needed.
217 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
218 arguments for navigation button to constructor of ListViewTable.
219 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
220 hidden button for empty data rows.
221 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
222 arguments for navigation button to constructor.
223 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
224 create navigation buttons. Add hideNavigationButtons() method.
225 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
226 arguments for navigation button to constructor.
228 2011-12-01 Ben Konrath <ben@bagu.org>
230 Use 'visibility: hidden' in Utils.getWidgetHeight().
232 This is better choice because hidden elements are invisible, don't
233 respond to events and are not part of the tab order. They will,
234 however, take up space which is required to be able to calculate the
235 height of the widget.
237 * src/main/java/org/glom/web/client/Utils.java:
239 2011-12-01 Ben Konrath <ben@bagu.org>
241 Use Utils.getWidgetHeight() in FlowTable.
243 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
245 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
247 2011-12-01 Ben Konrath <ben@bagu.org>
249 Put the details css class name on the correct table column.
251 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
253 2011-11-30 Ben Konrath <ben@bagu.org>
255 Update for java-libglom API change.
257 The getters and setters on FieldFormatting and NumericFormat were
258 changed to remove the 'M'.
260 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
262 2011-11-29 Ben Konrath <ben@bagu.org>
264 Only allow RelatedListTables in Portals.
266 * src/main/java/org/glom/web/client/ui/details/Portal.java:
268 2011-11-29 Ben Konrath <ben@bagu.org>
270 Only create a contents panel for Portals when title is being set.
272 * src/main/java/org/glom/web/client/ui/details/Portal.java:
274 2011-11-29 Ben Konrath <ben@bagu.org>
276 Set TabLayoutPanel height based on calculated height its widgets.
278 This is a potential fix for this bug:
280 https://bugzilla.gnome.org/show_bug.cgi?id=665133
282 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
284 2011-11-29 Ben Konrath <ben@bagu.org>
286 Align details field labels and data with the Open buttons.
288 * src/main/webapp/style.css:
290 2011-11-29 Ben Konrath <ben@bagu.org>
292 Remove unnecessary <div> in the Notebook widget.
294 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
295 method to get container FlowPanel (<div>).
296 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
297 initWidget() method directly on the TabLayoutPanel widget instead of
298 Group's container widget.
300 2011-11-29 Ben Konrath <ben@bagu.org>
302 Don't add group titles for Portals in Notebooks.
304 This reverts the previous patch and fixes a bug I introduced with
305 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
307 * src/main/java/org/glom/web/client/ui/details/Group.java:
308 * src/main/java/org/glom/web/client/ui/details/Portal.java:
310 2011-11-28 Ben Konrath <ben@bagu.org>
312 Remove unused boolean argument in Portal constructor.
316 * src/main/java/org/glom/web/client/ui/details/Group.java:
317 * src/main/java/org/glom/web/client/ui/details/Portal.java:
319 2011-11-28 Ben Konrath <ben@bagu.org>
321 Remove hack for glom 1.18 style glom files.
323 * src/main/java/org/glom/web/client/ui/details/Group.java:
324 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
325 * src/main/java/org/glom/web/client/ui/details/Portal.java:
327 2011-11-28 Ben Konrath <ben@bagu.org>
329 Use Gda Value version of primary key to log result too large error.
331 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
333 2011-11-28 Ben Konrath <ben@bagu.org>
335 Don't use TypedDataItem.getText() for Unknown types from the URL.
337 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
338 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
339 instead of getText().
340 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
341 String field and getUnknown() method.
343 2011-11-28 Ben Konrath <ben@bagu.org>
345 Log an error message when the java-libglom .so is not present.
347 The error message was being set in the exception but not logged.
349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
351 2011-11-28 Ben Konrath <ben@bagu.org>
353 Ignore LayoutItem_CalendarPortals.
355 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
356 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
358 2011-11-28 Ben Konrath <ben@bagu.org>
360 Extract method for creating the LayoutItemPortal DTO.
362 Just breaking the code up into smaller chunks.
364 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
366 2011-11-28 Ben Konrath <ben@bagu.org>
370 This should have been added with the refactor. Oops!
372 * src/main/java/org/glom/web/shared/TypedDataItem.java:
374 2011-11-28 Ben Konrath <ben@bagu.org>
376 Create primary key value from URL string using type from Glom document.
378 See this bug, comments 19 - 25:
380 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
382 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
383 create a TypeDataItem for the primary key here when loading from a
384 URL. Show the same string for the primary key value as was received
385 from the URL string (when loading from a URL).
386 * src/main/java/org/glom/web/server/Utils.java: Update method for
387 creating the Gda Value from the TypeDataItem to properly deal with
388 creating a Gda Value based on the Glom document type for the primary
389 key value string when loading from a URL.
390 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
391 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
392 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
393 Update for changed method name.
395 2011-11-27 Ben Konrath <ben@bagu.org>
397 Rename PrimaryKeyItem to TypedDataItem.
399 The name PrimaryKeyItem suggests what the class should be used for.
400 TypedDataItem is a neutral name that describes the class better.
402 This is a rename-only refactor.
404 * src/main/java/org/glom/web/client/OnlineGlomService.java:
405 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
406 * src/main/java/org/glom/web/client/Utils.java:
407 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
408 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
409 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
410 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
411 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
412 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
413 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
414 * src/main/java/org/glom/web/server/Utils.java:
415 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
416 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
417 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
418 * src/main/java/org/glom/web/shared/NavigationRecord.java:
420 2011-11-25 Ben Konrath <ben@bagu.org>
422 Improve Gda Value conversion from PrimaryKeyItem.
424 The value from the PrimaryKeyItem is only used if its type match the
425 type from the glom document.
427 * src/main/java/org/glom/web/server/Utils.java:
429 2011-11-25 Ben Konrath <ben@bagu.org>
431 Manually check if the java-liblgom .so is visible to the JVM.
433 It seems that Tomcat has problems when a static initializer throws an
434 exception. This check is done before the first method call into
435 java-libglom so that execution doesn't continue if the .so is not
438 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
440 2011-11-25 Ben Konrath <ben@bagu.org>
442 Improve browser configuration error messages.
446 https://bugzilla.gnome.org/show_bug.cgi?id=662792
448 * src/main/java/org/glom/web/client/OnlineGlomService.java:
449 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
450 getConfigurationErrorMessage() method.
451 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
452 Get and display a specific configuration error message when no Glom
454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
455 Implement getConfigurationErrorMessage() method. Surround configuration
456 code in the init() method with a try/catch block. This allows the
457 errors to be caught while keeping the servlet available to retrieve the
458 configuration error message.
460 2011-11-25 Ben Konrath <ben@bagu.org>
462 Don't use Strings to hold primary key values.
464 The primary key values are now held in a new data object
465 (PrimaryKeyItem) that holds type information and the primary key value
466 using the correct type.
468 * src/main/java/org/glom/web/client/OnlineGlomService.java:
469 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
471 PrimaryKeyItem instead of String to hold the primary key value.
472 * src/main/java/org/glom/web/client/Utils.java: Remove
473 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
474 PrimaryKeyItem based on the GlomFieldType and the DataItem.
475 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
476 PrimaryKeyItem instead of String to hold the primary key value. Load
477 document selection page when the documentID has not been set correctly.
478 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
479 DetailsPlace -> URL and URL -> DetailsPlace conversion with
481 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
482 Return empty string for URL instead of "null".
483 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
484 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
485 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
486 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
487 PrimaryKeyItem instead of String to hold primary key values.
488 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
489 PrimaryKeyValue to a Gda Value.
490 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
491 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
492 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
493 Replace temporary database access code that uses the PrimaryKeyValue to
494 Gda Value conversion.
495 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
496 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
497 PrimaryKeyItem instead of String.
498 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
499 hold primary key values.
501 2011-11-24 Ben Konrath <ben@bagu.org>
503 Use newly added java-libglom API to create queries.
505 This isn't finished. I still need to stop using Strings for primary key
506 values in the client code.
508 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
509 libglom to use fake connections so that retrieving the query string will
511 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
512 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
513 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
514 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
515 Use the newly added libglom sql methods and classes to create the
516 query. Add temporary hack to convert primary value strings to Gda
519 2011-11-23 Ben Konrath <ben@bagu.org>
521 Don't explicitly set the height of Portals.
523 See comments 6 - 10 of this bug for details:
525 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
527 * src/main/java/org/glom/web/client/ui/details/Portal.java:
529 2011-11-23 Ben Konrath <ben@bagu.org>
531 Use an HTML table instead of CSS for the FlowTable layout.
533 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
534 GWT's FlexTable to implement the FlowTable.
535 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
537 2011-11-18 Ben Konrath <ben@bagu.org>
539 Add boolean example to HTML table mockup.
541 * mockups/details-view-html-tables-text-entries.html:
543 2011-11-17 Ben Konrath <ben@bagu.org>
545 Ensure the pager buttons are always visible for related lists.
547 To accomplish this, I've turned off text wrapping in the list view and
548 related list tables for both the header and data text. The related list
549 table now has a fixed layout so the it doesn't overflow its container.
550 This is required to ensure that the cell text is clipped when it
551 overflows the cell and an ellipsis is added to the right side of the
552 cell when text is clipped.
554 A fixed table layout for the related list table in the details view
555 seems what we want for the details view anyway, so the side-effect is
558 The ellipsis will only be displayed in Firefox >= 7.
562 https://bugzilla.gnome.org/show_bug.cgi?id=662930
564 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
565 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
566 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
568 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
569 Set the 'table-layout: fixed' CSS property to the related list table.
570 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
571 'white-space: nowrap;' CSS property on both the list view and the
574 2011-11-16 Ben Konrath <ben@bagu.org>
576 Rework the fix for empty notebook tab labels.
578 Setting the empty group titles with its name caused problems for the
579 details layout. Instead of using libglom's
580 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
581 to the client when the title is empty. This allows the Notebook to use
582 the name when the title is empty without affecting anything else.
584 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
585 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
587 2011-11-16 Ben Konrath <ben@bagu.org>
589 Set group titles with name when title is empty.
591 This fixes a problem with an empty notebook tab label in the Lesson
592 Planner document. The forth tab in the notebook should be "Internet":
594 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
596 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
597 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
600 2011-11-16 Ben Konrath <ben@bagu.org>
602 Remove whitespace from the configured username properties.
604 This assumes that usernames won't have whitespace at the beginning
605 or end. But I think this is a reasonable assumption.
607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
608 String.trim() to remove the whitespace from the username properties.
610 2011-11-15 Ben Konrath <ben@bagu.org>
612 Add details view mockup with HTML tables and text entries.
614 This is from the attachment on this bug:
616 https://bugzilla.gnome.org/show_bug.cgi?id=663109
618 * mockups/details-view-html-tables-text-entries.html:
620 2011-11-15 Ben Konrath <ben@bagu.org>
622 Add space between the columns of the flow table.
626 https://bugzilla.gnome.org/show_bug.cgi?id=662918
628 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
629 space between columns in the flow table.
631 2011-11-15 Ben Konrath <ben@bagu.org>
633 Add backup files to the .gitignore.
635 * .gitignore: Ignore files that end with ~.
637 2011-11-09 Ben Konrath <ben@bagu.org>
639 Use latest release of gwt-log.
641 Gwt-log releases are now being submitted to the maven central
642 repository so manual installation of the jar is no longer required.
644 * pom.xml: Update version and groupId of gwt-log dependency.
646 2011-10-31 Ben Konrath <ben@bagu.org>
648 Don't use GWT numeric formatting to override the glom currency formatting.
650 Currencies are now displayed like they are in Glom. See this bug:
652 https://bugzilla.gnome.org/show_bug.cgi?id=646216
654 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
656 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
657 currency code to constructor and set it when the cell is rendered.
658 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
659 currency code to the constructor of the NumericCell.
661 2011-10-27 Ben Konrath <ben@bagu.org>
663 Require the latest release of java-libglom (1.17.4).
667 2011-10-26 Ben Konrath <ben@bagu.org>
669 Add style to Notebook that matches current theme.
671 It's not the best style in the world but it's better than the default.
673 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
674 padding at the bottom of the child widgets.
675 * src/main/webapp/style.css: Add style for the Notebook.
677 2011-10-26 Ben Konrath <ben@bagu.org>
679 Move servlet initialization code to overridden init method.
681 This is half of the solution to getting proper error messages
682 displayed when configuration errors occur. Here's the relevant bug:
684 https://bugzilla.gnome.org/show_bug.cgi?id=662792
686 The rest of the solution involves surrounding the init method with a
687 try/catch block and setting a global variable with the error /
688 exception. A new async method should be created to retrieve and display
689 the error message / exception.
691 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
692 code from constructor to init method adding exceptions as needed.
694 2011-10-26 Ben Konrath <ben@bagu.org>
696 Add script to monitor and restart tomcat if required.
698 * utils/check-and-recover-tomcat.py: New file.
700 2011-10-26 Ben Konrath <ben@bagu.org>
702 Display the correct number of data items in the pager.
706 https://bugzilla.gnome.org/show_bug.cgi?id=661441
708 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
709 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
710 The implementation is the same for both tables: Keep track of the
711 number of non-empty rows and fire and RowCountChangeEvent after the data has
713 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
714 custom Pager class that subclasses SimplePager to handle displaying
715 the correct number when empty rows have been added.
717 2011-10-26 Ben Konrath <ben@bagu.org>
719 Correct error in previous commit.
721 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
722 eventBus parameter from listView.setCellTable().
724 2011-10-26 Ben Konrath <ben@bagu.org>
726 Fix error in TODO comment.
728 * src/main/java/org/glom/web/client/activity/ListActivity.java:
730 2011-10-24 Ben Konrath <ben@bagu.org>
732 Create Notebook widgets to the details view.
734 This isn't finished just yet - I still need to create a reasonable
735 style to match the current theme.
737 * src/main/java/org/glom/web/client/Utils.java: Add method for
738 calculating the height of a widget. This is used in the Notebook class.
739 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
740 new constructor method in Group.
741 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
742 method for creating child widget that can be used by subclasses
743 like Notebook. New constructor that allows disabling the group
744 titles - Notebooks don't set a group title for their child groups.
745 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
746 to make Notebooks using GWT's TabLayoutPanel.
747 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
748 constructor that allows disabling the group titles.
749 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
750 LayoutItemNotebook DTO.
751 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
752 DTO for Notebooks. It's just an empty class for now but we might need
753 it to transfer some specific information in the future.
755 2011-10-21 Ben Konrath <ben@bagu.org>
757 Add navigation buttons to related list tables.
759 * src/main/java/org/glom/web/client/OnlineGlomService.java:
760 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
761 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
762 method getSuitableRecordToViewDetails() for getting the table name
763 and primary key value for related list navigation buttons.
764 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
765 private cell renderer class to get the navigation information for
766 related list tables from the server. Extract the navigation
767 processing code from the details cell navigation and use it for the
768 related list navigation as well.
769 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
770 cell renderer class for the details open buttons. This was needed
771 because the related list navigation buttons and the list view
772 navigation buttons need to react differently when clicked.
773 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
774 the onEnterKeyDown() method because it's now overriden in the
775 subclasses that are specific to the related list tables and the list
777 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
778 the vertical size a little because the buttons add a bit of vertical
779 space to table. This is not a perfect solution because the vertical
780 size of with table fewer than 5 rows will be a little smaller.
781 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
782 changes in how navigation buttons are handled.
783 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
784 getSuitableRecordToViewDetails() using the new RelatedListNavigation
785 database access object.
786 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
787 to find the portal for a given relationship name from
788 RelatedListDBAccess. Add method to find a primary key field for a
790 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
791 Move code to find the portal for a given relationship name to
793 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
794 New file: database access object for getting the related list
795 navigation information (the table name and the primary key value).
796 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
797 DTO for transferring a table name to navigate to and a primary key
799 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
800 boolean and getter/setter to specifies if the related list should add
803 2011-10-24 Murray Cumming <murrayc@murrayc.com>
805 Use the master branch of java-libglom
807 * pom.xml: Depend on java-libglom 1.19 instead.
809 This is the master branch. See also the libglom-1-18 branch.
811 2011-10-11 Ben Konrath <ben@bagu.org>
813 Enable the open navigation button when the data has been set.
815 This avoids having active buttons that don't do anything when the data
818 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
820 2011-10-11 Ben Konrath <ben@bagu.org>
822 Use IsWidget interface for FlowTableItem.
824 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
825 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
827 2011-10-11 Ben Konrath <ben@bagu.org>
829 Remove GWT styling from open button in details view.
831 There are still some issues with how the details cell is arranged but
832 this should be made to match Glom 1.20. I'm going to leave fixing this
833 until I have Glom 1.20 up and running.
835 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
836 style name on open button.
837 * src/main/webapp/style.css: Move and edit details-navigation class.
838 Re-arrange some classes to make them appear in the same order as the
841 2011-10-07 Ben Konrath <ben@bagu.org>
845 * .gitignore: Ignore new cache directory.
846 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
847 * pom.xml: Change GWT and maven plugin to 2.4.0.
848 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
850 * src/main/java/org/glom/web/client/ClientFactory.java:
851 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
852 * src/main/java/org/glom/web/client/OnlineGlom.java:
853 Update source for API changes.
854 * utils/build-onlineglom-war.sh: Remove cache directory before the
857 2011-10-07 Ben Konrath <ben@bagu.org>
859 Add navigation buttons in the details view.
861 This isn't finished but I thought I'd commit what I have as it's a
862 pretty good start. I still need to:
864 1. Change the style so that it fits better into the current theme
865 2. Adjust the details cell to expand as much as possible.
867 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
868 click handlers to navigation buttons in the DetailsCells. Create a
869 refreshData() method to get just the data from the server without the
871 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
872 Update the tableSelector and browser title when the table name
873 changes without using the tableSelector.
874 * src/main/java/org/glom/web/client/ui/DetailsView.java:
875 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
876 getDetailsCells() to getCells(). Update variable names.
877 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
878 method to set click handler on navigation button. Rename a few
879 variables. Add navigation buttons where needed.
880 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
881 variables and methods.
882 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
883 navigation boolean and navigation table as required in the
885 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
886 variables for navigation along with getter/setter methods.
888 2011-10-07 Ben Konrath <ben@bagu.org>
890 Rename Field to DetailsCell.
892 This is a refactor-only commit. No functionality has been added or
895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
896 Update variable and method names.
897 * src/main/java/org/glom/web/client/ui/DetailsView.java:
898 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
899 variable and method names.
900 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
902 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
903 variable and method names.
905 2011-10-07 Ben Konrath <ben@bagu.org>
907 Create separate methods for layout and data the details view.
909 This is a refactor-only commit. No functionality has been added or
912 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
913 private methods: setData(), createLayout().
915 2011-10-07 Ben Konrath <ben@bagu.org>
917 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
919 This is part of a change to get navigation buttons in the details view
920 but it should have been done this way from the start.
922 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
923 for method name change in TableSelectionView.
924 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
925 Create TableChangeEvent and set the browser title using the
926 TableSelectionView API.
927 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
928 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
929 Change getSelectedTable() to getSelectedTableName(). Add
930 getSelectedTableTitle().
932 2011-10-07 Ben Konrath <ben@bagu.org>
934 Use primaryKeyValue naming convention in constructor of DetailsPlace.
936 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
938 2011-10-07 Ben Konrath <ben@bagu.org>
940 Update TableChangeEvent to use newTableName naming convention.
942 This makes the class more consistent with GWT naming conventions.
944 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
945 Update for method name change in TableChangeEvent.
946 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
947 for method name change in TableChangeEvent.
948 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
949 newTableName variable and getter method. Make toDebugString()
952 2011-09-30 Ben Konrath <ben@bagu.org>
954 Disable the pager in the list tables when the data row count is less than the minimum.
956 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
957 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
959 2011-09-30 Ben Konrath <ben@bagu.org>
961 Add empty rows to the end of related list and list view tables.
963 I also extracted the cell rendering classes from the ListTable because
964 the code was becoming a little crazy with all the anonymous inner
965 classes. My plan is to use these cell rendering classes in the details
966 view as well so this refactor will be needed for that change.
968 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
969 set the row count in related list tables if the data has more rows
970 than the minimum number of rows visible.
971 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
972 row count in list view tables if the data has more rows than the
973 minimum number of rows visible.
974 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
975 for rendering TYPE_BOOLEAN cells. The code was extracted from the
977 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
978 for rendering TYPE_NUMERIC cells. The code was extracted from the
980 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
981 class for rendering cells with buttons in list views. The code was
982 extracted from the ListTable class.
983 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
984 for rendering TYPE_TEXT cells. The code was extracted from the
986 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
987 Add empty rows to the end of the data if required. Implement
988 ListTable.getMinNumVisibleRows().
989 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
990 cell renderer code to public classes. Return null in
991 Column.getValue() for empty rows. Add new abstract method:
992 getMinNumVisibleRows(). Move code to set the row count of the list view
993 table to ListViewImpl.
994 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
995 empty rows to the end of the data if required. Implement
996 ListTable.getMinNumVisibleRows().
999 2011-09-27 Ben Konrath <ben@bagu.org>
1001 Use GWT.log for client-side debugging statements.
1003 These are optimized out when deployed so I should have used this method
1004 in the first place. These statements will eventually be replaced with some sort
1005 of notification in the browser.
1007 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1008 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1009 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1010 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1011 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1013 2011-09-27 Ben Konrath <ben@bagu.org>
1015 Put tableselector on the right, back to list link on right.
1017 The idea is that the table selector is acting like a label for the
1018 currently displayed table so it should be placed below the document title. This
1019 puts the table title in a similar position to where it is in Glom.
1021 * mockups/details-contacts.html:
1022 * mockups/details-projects.html:
1023 * mockups/listview-contacts.html:
1024 * mockups/listview-projects.html:
1025 * mockups/style.css:
1026 Update mockups to match how the interfaces currently look.
1027 * src/main/webapp/style.css: Swap positions of backlink with the table
1028 selector. Add some space on the left side of the table selector to
1029 line things up with the document title.
1031 2011-09-27 Ben Konrath <ben@bagu.org>
1033 Add field colouring to details view.
1035 This change re-works how field colouring works. The colour formatting
1036 information is now set to the client with the layout information instead of
1037 with the data. This eliminates the need to send the same colour strings for
1038 data in list view column when colour information is set.
1040 In order to set an alternate colour for negative numeric values, the
1041 number is now sent to client and formatted with the GWT NumberFormat class.
1043 This change also fixes:
1045 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1047 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1048 internationalization framework which is needed for client side numeric
1050 * src/main/java/org/glom/web/client/Utils.java: New file for some
1051 client static utility methods.
1052 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1053 the DataItem object to the Field class. Use a utility method to
1054 create the foreignKeyValue string.
1055 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1056 alignment and text colours in the constructor. Add setData(DataItem)
1057 method. Remove setText(String) method.
1058 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1059 colour information to GlomTextCell. Create and use GlomNumberCell for
1060 rendering numbers. Use utility method to get the string for the
1061 primary key of the key provider. Re-work how the horizontal alignment
1063 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1064 formatting to layout information. Methods for converting the libglom
1065 formatting information were moved from DBAccess.
1066 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1067 numeric formatting (it's now done on the client side). Don't set text
1068 colours in DataItem. Move libglom formatting conversion methods to
1070 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1071 getters/setters for text colour information.
1072 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1073 for transferring the libglom NumericFormat information to the client.
1074 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1075 and getters/setters for: GlomNumericFormat, background colour and
1076 foreground colour strings.
1078 2011-09-26 Ben Konrath <ben@bagu.org>
1080 Simplify code that iterates through the LayoutGroup.
1082 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1084 2011-09-26 Ben Konrath <ben@bagu.org>
1086 Accept Eclipse formatting for OnlineGlomServiceAsync.
1088 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1090 2011-09-26 Ben Konrath <ben@bagu.org>
1092 Don't use the ListDBAccess classes to get the primary key layout information.
1094 This was causing a bug where the wrong index for the hidden primary key
1095 was being sent to the client.
1097 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1098 primary key while creating the LayoutGroup DTO. Create a
1099 LayoutItemField DTO for hidden primary keys. Don't use the
1100 RelatedListDBAccess because it was only used for getting the primary
1102 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1103 access modifier from public to protected for getPrimaryKeyField() and
1104 getPrimaryKeyLayoutItemField().
1105 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1106 abstract method getExpectedResultSize() because RelatedListDBAccess
1107 doesn't have enough info to implement it.
1108 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1109 Remove @Override for getExpectedResultSize().
1110 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1111 Remove method getExpectedResultSize().
1113 2011-09-23 Ben Konrath <ben@bagu.org>
1115 Log which layout (list or details) the ignored item is from.
1117 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1119 2011-09-23 Ben Konrath <ben@bagu.org>
1121 Remove annotations that turn off code formatting in DataItem.
1123 * src/main/java/org/glom/web/shared/DataItem.java:
1125 2011-09-23 Ben Konrath <ben@bagu.org>
1127 Rename GlomField to DataItem and update associated methods.
1129 This is a rename-only refactor. No functionality has been added or
1132 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1133 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1134 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1135 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1136 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1137 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1138 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1139 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1141 * src/main/java/org/glom/web/server/database/DBAccess.java:
1142 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1143 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1144 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1145 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1146 * src/main/java/org/glom/web/shared/DataItem.java:
1147 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1148 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1150 2011-09-23 Ben Konrath <ben@bagu.org>
1152 Rename GlomDocument to DocumentInfo and update associated methods.
1154 This is a rename-only refactor. No functionality has been added or
1157 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1158 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1159 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1160 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1161 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1162 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1163 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1165 2011-09-20 Ben Konrath <ben@bagu.org>
1167 Require java-libglom 1.17.3.
1169 This picks up the fix for the seg fault problem with the Scenes table
1170 in the Openismus Film Manager example.
1174 2011-09-20 Ben Konrath <ben@bagu.org>
1176 Change the way sort clause is added for primary key when no sort clause is requested.
1178 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1179 before the sort clause is created. When a sort clause is not requested, the
1180 sort clause is created by finding the primary key in the LayoutFieldVector
1183 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1185 2011-09-20 Ben Konrath <ben@bagu.org>
1187 Log error message if no documents are found in the configured directory.
1189 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1190 Extract the glom file extension string to a private static final class
1191 variable (mostly as syntactic sugar). Accept a minor formatting change.
1192 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1193 the example glom.document.directory configuration property to make it
1194 more clear that it can any directory, not just the home directory.
1196 2011-09-18 Ben Konrath <ben@bagu.org>
1198 Add related lists to details view.
1200 The related list table has support for paging and sorting just like the
1201 table in the list view.
1203 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1204 SQL queries for the related list tables.
1205 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1206 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1208 Rename getList methods to getListView and add comments. Remove
1209 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1210 it being unused. Add methods: getDetailsLayoutAndData(),
1211 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1212 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1213 Create the layout and set the data for the fields in one async call
1214 instead of two. Create related lists where appropriate.
1215 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1216 for method name changes in OnlineGlomService.
1217 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1218 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1219 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1221 * src/main/java/org/glom/web/client/ui/ListView.java:
1222 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1223 tableName from setCellTable(). Create a ListViewTable instead of
1225 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1226 represent a data field in the details view.
1227 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1228 from addDetailsCell() to Field class. Keep track of the Fields and
1229 Portals in the details view.
1230 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1231 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1232 and add a method to get it. Add method to set the contents of the
1234 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1235 New class for related list tables. This class has the data provider
1236 for the related list table.
1237 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1238 abstract class which is the base class for the ListViewTable and the
1240 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1241 New class for list view tables. This class has the data provider for
1242 the list view table.
1243 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1244 methods for related list tables. Add more information to the
1245 LayoutItemField and LayoutItemPortal DTOs.
1246 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1247 Remove debugging print statement.
1248 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1249 Remove debugging print statements. Add primary key field to SQL count
1251 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1252 Remove unnecessary LayoutFieldVector parameter from
1253 getResultSizeOfSQLQuery() method.
1254 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1255 New class for related list table database access.
1256 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1257 class that is a wrapper DTO for details view layout and data.
1258 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1259 new 'fromField' string to this DTO.
1260 * src/main/webapp/style.css: Remove bottom margin and override top
1263 2011-09-15 Ben Konrath <ben@bagu.org>
1265 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1267 This sets things up to make it easier to add the data retrieval for
1268 related lists (portals). No user noticeable changes were made with
1271 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1272 class has the code to retrieve the layouts and access the
1273 database using the new database helper classes.
1274 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1275 Most of the functionality has been removed from this class. This
1276 class now represents the public interface for the client side
1277 code. It also deals with configuring the servlet and cleaning
1278 things up when the servlet is stopped.
1279 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1280 of static methods into this utility class.
1281 * src/main/java/org/glom/web/server/database/DBAccess.java:
1282 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1283 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1284 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1285 These classes have the database retrieval code. The class hierarchy
1286 has been setup to make it easy to reuse code for similar
1289 2011-09-06 Ben Konrath <ben@bagu.org>
1291 Create separate classes for list table code and the data provider.
1293 As part of this refactor, I also split up the code a bit to make it
1296 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1297 table code to two new classes (below).
1298 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1299 with code from ListViewImpl.
1300 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1301 New file with code from ListViewImpl.
1303 2011-09-06 Ben Konrath <ben@bagu.org>
1305 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1307 This fixes the LayoutItemPortal DTO to match the libglom layout object
1310 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1312 2011-09-01 Ben Konrath <ben@bagu.org>
1314 Set title of Portals in the Details View.
1316 * pom.xml: Bump required version of java-libglom to 1.17.1.
1317 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1318 widget creation to its own class. Add comments to constructor.
1319 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1320 The code is mostly from the Group class with the title now set.
1321 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1322 title of Portal. Update some comments. Fix some code formatting.
1324 2011-09-01 Ben Konrath <ben@bagu.org>
1326 Remove TODO comment for the flow table column width.
1328 The flow table column width is working correctly and doesn't need to be
1329 changed. See this mailing list post for more info:
1331 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1333 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1335 2011-08-27 Ben Konrath <ben@bagu.org>
1337 Add document title (database name) to top of the browser page.
1339 I added the document title to the TableSelecitonView but that will
1340 change if / when we add a view that doesn't require table selection.
1342 * mockups/details-contacts.html:
1343 * mockups/details-projects.html:
1344 * mockups/listview-contacts.html:
1345 * mockups/listview-projects.html:
1346 * mockups/style.css: Add document title to mockups to keep things
1348 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1349 sizes to account for the document title.
1350 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1351 Set the document title when it has been retrieved from the server.
1352 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1353 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1354 and implement setDocumentTitle(String) method.
1355 * src/main/webapp/style.css: Add ID for document title style.
1357 2011-08-25 Ben Konrath <ben@bagu.org>
1359 Add NavigationType enum to LayoutItemPortal DTO.
1361 This is the start of adding support for Portals to the Details View.
1363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1364 LayoutItem_Portal.navigation_type enum from libglom to
1365 LayoutItemPortal.NavigationType enum.
1366 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1367 NavigationType enum, field for storing the NavigationType and getter
1370 2011-08-25 Ben Konrath <ben@bagu.org>
1372 Implement the flow table layout in the Details View.
1374 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1375 FlowTable to Group to account for the renamed class.
1376 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1377 File. This is a container widget that implements the Glom details view
1378 flow table behaviour.
1379 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1380 org/glom/web/client/ui/FlowTable.java.
1381 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1382 so that the size of the subgroups are a closer match to the size of
1383 the Glom subgroups. This makes the flowtable layout match the layout
1384 in Glom for the Music Collection example file.
1386 2011-08-16 Ben Konrath <ben@bagu.org>
1388 Create container element for LayoutItemPortal in Details View.
1390 This will help me develop the layout for the FlowTable.
1392 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1393 fieldPanel variable to detailsCell.
1395 2011-08-15 Ben Konrath <ben@bagu.org>
1397 Set the height of the data element in the Details View.
1399 I changed the InlineLabels (text in a span element) to Labels (text in
1400 a div element) so that I could set the height of the details-data
1401 elements instead of the details-cell parent elements. This allows the
1402 the details-data element to display the correct height if style is
1403 applied that shows the height.
1405 This change has the added benefit of allowing the order of the labels
1406 and data elements to be changed for right-to-left languages.
1408 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1409 InlineLabels to Labels.
1410 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1411 InlineLabels to Labels. Set the height of the data element.
1412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1413 multiline text height in the Formatting DTO.
1414 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1415 for multiline height along with getter and setter methods.
1416 * src/main/webapp/style.css: Adjust style to account for the change
1417 from span elements to div elements in the details cell.
1419 2011-08-15 Ben Konrath <ben@bagu.org>
1421 Make the List View appearance match the mockups.
1423 It doesn't match exactly but it's much better than it was.
1425 * mockups/listview-contacts.html: Remove unused css classes.
1426 * mockups/listview-projects.html: Remove unused css classes.
1427 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1428 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1429 for mainPanel instead of VerticalPanel (table). Set style name on
1430 CellTable. Set style name on Details column. Right-align Details
1432 * src/main/webapp/style.css: Adjust properties to match the mockups.
1434 2011-08-12 Ben Konrath <ben@bagu.org>
1436 Add better support for subgroups in the details view.
1438 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1439 changed FlowTable constructor.
1440 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1441 support for subgroups and subgroup-titles.
1442 * src/main/webapp/style.css: Add CSS class for subgroups and
1445 2011-08-12 Ben Konrath <ben@bagu.org>
1447 Return the top level LayoutGroup title.
1449 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1451 2011-08-11 Ben Konrath <ben@bagu.org>
1453 Make the TableSelector header match the mockup.
1455 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1456 the layout panel. Properly lineup the table selection header with
1457 the list and details view.
1458 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1459 margin around the details view.
1460 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1461 Rename listBox variable to tableSelector. Set id for the style sheet.
1462 Use a FlowPanel instead of a HorizontalPanel.
1463 * src/main/webapp/style.css: Add properties to make the TableSelector
1464 box match the mockups.
1466 2011-07-13 Ben Konrath <ben@bagu.org>
1468 Update install script for java-libglom version change.
1470 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1473 2011-07-13 Ben Konrath <ben@bagu.org>
1475 Add support sub-group in the details view.
1477 I also removed the code that special-cased the default details view
1480 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1482 I still have to make a proper flowtable.
1484 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1485 Don't special-case default details view layout.
1486 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1487 addLayoutField() as I'm going to use it.
1488 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1489 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1491 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1492 extracted from DetailsViewImpl.GroupPanel. Add support for
1494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1495 column count when getting the details layout.
1497 2011-07-12 Ben Konrath <ben@bagu.org>
1499 Set browser title with database and table titles.
1501 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1502 Set the browser title when the table changes and when the activity
1504 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1505 title when retrieving document info (the GlomDocument object).
1506 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1507 with getter and setter methods. Remove unused convenience constructor.
1508 Use default code formatting.
1510 2011-07-12 Ben Konrath <ben@bagu.org>
1512 Ignore LayoutItemPortals in the details view.
1514 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1517 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1518 LayoutItemPortal layout objects.
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1520 LayoutItemPortal objects when retrieving the details layout.
1521 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1522 file. This is an empty class and just used to get type information for
1525 2011-07-12 Ben Konrath <ben@bagu.org>
1527 Use java-libglom 1.17.0.
1531 2011-07-11 Ben Konrath <ben@bagu.org>
1533 Remove "Table:" label from table selector.
1535 This matches a recent change in the Glom UI.
1537 * mockups/details-contacts.html:
1538 * mockups/details-projects.html:
1539 * mockups/listview-contacts.html:
1540 * mockups/listview-projects.html: Remove the "Table:" label from the
1542 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1544 2011-07-11 Ben Konrath <ben@bagu.org>
1546 Add main groups to the details view.
1548 This makes things look a little nicer in the details view. The next step
1549 is to implement the flowtable.
1551 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1552 resources from the standard gwt css theme. Standard.css is now
1553 included in OnlineGlom.html so that the online glom css rules have
1554 precedence over the gwt theme.
1555 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1556 the whole LayoutGroup to the DetailsView instead of just the titles.
1557 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1558 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1559 details layout with a helper class (GroupPanel). I might extract this
1560 class when I make the full flowtable.
1561 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1562 string as default so I don't have to worry about NPEs when processing
1564 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1565 note beside OnlineGlom.gwt.xml above).
1566 * src/main/webapp/style.css: Add default font-size to body to override
1567 the font-size set by the standard theme. Don't use h2 tags for
1568 group-title. Create new details-cell class.
1570 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1572 ConfiguredDocument: Set the port number too.
1574 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1575 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1576 Glom document. Presumably this worked sometimes so far because there is a
1577 default port number.
1579 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1581 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1583 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1584 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1585 correct, though we should throw an exception too.
1587 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1589 Fix a addDocuemnt typo.
1591 * src/main/java/org/glom/web/shared/Documents.java
1592 (Documents.addDocuemnt): Rename to addDocument().
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1594 (OnlineGlomServiceImpl.getDocuments): Adapt.
1596 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1598 Slightly improved log output when connection fails.
1600 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1601 (ConfiguredDocument.setUsernameAndPassword):
1602 We don't know for sure if it' the username/password that's wrong, so
1603 rephrase the message.
1604 Also ouput the exception message, though it's generic in this case.
1606 2011-07-08 Ben Konrath <ben@bagu.org>
1610 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1611 added braces to a one line if statement because the Eclipse formatter
1612 was getting confused.
1614 2011-07-07 Ben Konrath <ben@bagu.org>
1616 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1618 These should really be two separate tasks but I counldn't get things to
1619 work with GWT 2.2.0 and Eclipse 3.7.
1623 * .settings/org.eclipse.jdt.core.prefs:
1624 * .settings/org.eclipse.jdt.ui.prefs:
1625 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1626 * .settings/org.eclipse.m2e.core.prefs:
1627 Add new config files. Update current files. Remove references to the
1628 webtools plugins as we're not using any of the webtools features.
1629 * .gitignore: Add logs directory which is created when running with
1631 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1632 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1633 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1635 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1637 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1639 onlineglom.properties: Add explanatory comments.
1641 * src/main/resources/onlineglom.properties: Also change the default user
1642 from ben to someuser, to avoid the risk of people thinking we just
1643 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1645 2011-06-28 Ben Konrath <ben@bagu.org>
1647 Use filename in Log for incorrect passwords.
1649 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1650 getFileName(String) method to get the filename from the URI.
1652 2011-06-28 Ben Konrath <ben@bagu.org>
1654 Add the table name to the URL token for the ListPlace.
1656 This makes things consistent between the DetailsPlace and the
1657 ListPlace. It also allows the the ListPlace to be bookmarked.
1659 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1660 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1661 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1662 Remove getDefaultListLayout(). The default layout is now returned
1663 by the getListLayout() method when the table name is an empty string.
1664 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1665 Add table name field. Change to a new ListPlace when the table
1666 has been changed. Use getListLayout() for getting the default
1668 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1669 Add table name field. Set the correct table name in the list box
1670 when loading from bookmark. This corrects a problem for the
1672 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1673 Move table name to super-class (HasSelectableTable). Move document
1674 and table URL keys to super-class in HasSelectableTable.
1675 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1676 Add table name field. Add Tokenizer class with URL key common to
1677 the subclasses (DetailsPlace and ListPlace).
1678 * src/main/java/org/glom/web/client/place/ListPlace.java:
1679 Add table name. Add code to parse the URL token.
1680 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1681 Update ListPlace construction with empty table name string.
1682 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1683 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1684 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1685 Update ListPlace construction with table name string.
1686 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1687 Change defaultTableName field to tableName to reflect how it's now
1688 used. Update the getter and setter methods.
1690 2011-06-28 Ben Konrath <ben@bagu.org>
1692 Enable the table selector in the DetailsView.
1694 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1695 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1696 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1697 Remove getDefaultDetailsLayout(). The default layout is now returned
1698 by the getDetailsLayout() method when the table name is an empty
1700 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1701 event handler for table change event. Change to using
1702 getDetailsLayout() for the default details layout.
1703 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1705 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1706 when navigating to the details place.
1708 2011-06-27 Ben Konrath <ben@bagu.org>
1710 Use filename based unique document ID in URL and for RPC.
1712 The document ID is the glom document name with spaces (' ') replaced
1713 with pluses ('+') and without the .glom extension.
1715 This change is mostly a string substitution of 'documentTitle' for
1716 'documentID'. The only code change is the addition of a Documents DTO to get the
1717 filename to document title mappings as indicated below.
1719 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1720 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1721 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1722 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1723 Use Documents DTO to create the document links in the document
1725 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1726 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1727 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1728 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1729 * src/main/java/org/glom/web/client/place/ListPlace.java:
1730 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1731 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1732 * src/main/java/org/glom/web/client/ui/ListView.java:
1733 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1734 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1735 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1736 * src/main/java/org/glom/web/server/Log.java:
1737 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1738 getDocumentTitles() to getDocuments() and return the Documents DTO.
1739 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1740 transferring the filename to document title mappings.
1742 2011-06-25 Ben Konrath <ben@bagu.org>
1744 Make the authentication popup work again.
1746 This bug was introduced when I extracted ConfiguredDocument to its own class.
1748 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1749 correct success / fail status in setUsernameAndPassword().
1751 2011-06-25 Ben Konrath <ben@bagu.org>
1753 Use filename as unique key for configuring database usernames and passwords.
1755 This replaces the use of the Glom document title which could change
1756 depending on the locale. Thanks to Murray Cumming for pointing out this
1759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1760 * src/main/resources/onlineglom.properties:
1762 2011-06-24 Ben Konrath <ben@bagu.org>
1764 Pass primary key value to DetailsView.
1766 This enables the DetailsView to load the correct data.
1768 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1769 primary key value field and set in constructor. Pass primary key
1770 value to getDetailsData().
1771 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1772 variables for document title and primary key value.
1773 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1774 key value to the DetailsPlace.
1776 2011-06-24 Ben Konrath <ben@bagu.org>
1778 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1780 This allows the primary key to be retrieved by the Details button. This
1781 functionality has not been implemented yet but it's in the works.
1783 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1784 the LayoutGroup result to ListView.setCellTable instead of all of its
1785 fields individually.
1786 * src/main/java/org/glom/web/client/ui/ListView.java:
1787 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1788 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1789 get the primary key for the table.
1790 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1791 index of the primary key in the LayoutGroup accounting for hidden
1792 primary keys. Rename getJavaNumberFormat() to
1793 convertToJavaNumberFormat() for consistency. Cleanup / add some
1795 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1796 field for primary key index and a field to indicate whether the
1797 primary key is hidden or not.
1799 2011-06-23 Ben Konrath <ben@bagu.org>
1801 Rename getTableData methods to getListData.
1803 This is a rename refactor for consistency with other methods.
1805 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1806 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1807 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1808 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1810 2011-06-23 Ben Konrath <ben@bagu.org>
1812 Extract the ConfiguredDocument innerclass into its own class.
1814 This makes the servlet code more object oriented.
1816 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1817 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1818 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1819 new ConfiguredDocument class.
1821 2011-06-21 Ben Konrath <ben@bagu.org>
1823 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1825 This makes things more inline with how libglom works and reduces code
1826 duplication. This refactor lays the groundwork for adding the primary key to
1827 the LayoutGroup object.
1829 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1830 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1831 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1832 Change method names to getListLayout and getDefaultListLayout for
1833 consistency. Use LayoutGroup as the DTO for the list layout instead of
1834 ColumnInfo and LayoutListTable.
1835 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1836 new method names along with the LayoutGroup object for transferring the
1838 * src/main/java/org/glom/web/client/ui/ListView.java:
1839 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1840 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1841 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1843 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1844 Replaced with LayoutGroup.
1845 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1846 expectedResultSize and defaultTableName fields which are needed for
1848 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1849 type field which is needed for the list layout but will also be
1850 useful for the details layout as things progress.
1851 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1852 Make class abstract. Remove the unnecessary
1853 getFormattingHorizontalAlignment method. Add setFormatting method.
1855 2011-06-16 Ben Konrath <ben@bagu.org>
1857 Add scripts for building and installing war.
1859 These will help when updating OnlineGlom but they're also good
1860 supplemental documentation of the build and deployment proceeding.
1862 * utils/build-onlineglom-war.sh: New file.
1863 * utils/install-onlineglom-war.sh: New file.
1865 2011-06-16 Ben Konrath <ben@bagu.org>
1867 Create wrapper class to create consistent log messages.
1869 I wrapped methods in the Log class of gwt-log to add the method names
1870 from the servlet and create consistent formatting of the document title
1871 and table names in the log messages.
1873 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1874 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1875 log methods to use methods from wrapped Log class.
1877 2011-06-16 Ben Konrath <ben@bagu.org>
1879 Remove superfluous conditional return.
1881 Thanks to Murray Cumming for pointing this out!
1883 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1885 2011-06-15 Ben Konrath <ben@bagu.org>
1887 Return an ArrayList of LayoutGroups for the Details layout.
1889 This corrects a problem with the details layout as it can have more
1890 than one top level LayoutGroup.
1892 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1893 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1894 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1895 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1896 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1897 with ArrayList of LayoutGroups for the details view layout.
1898 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1899 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1900 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1901 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1902 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1903 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1905 2011-06-14 Ben Konrath <ben@bagu.org>
1907 Use cast_dynamic method to determine the libglom LayoutItem type.
1909 This is better than finding the LayoutItem type by using the string
1910 returned from the get_part_type_name() method.
1912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1914 2011-06-14 Ben Konrath <ben@bagu.org>
1916 Add method names to log entries in the servlet.
1918 This helps when tracking down deployment problems.
1920 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1922 2011-06-14 Ben Konrath <ben@bagu.org>
1924 Add data to the DetailsView using a hard-coded primary key value.
1926 The layout and functionality of the DetailsView is not complete. This
1927 is just a checkpoint so the patch doesn't get too big.
1929 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1930 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1931 Add getDetailsData() servlet method.
1932 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1933 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1934 LayoutFields are added to the DetailsView.
1935 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1936 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1937 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1938 take the string for the title instead of the object.
1939 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1940 Add implementation getDetailsData() along with some private helper
1942 * src/main/webapp/style.css: Add padding to details-data class. Add a
1943 details-label class with the same padding as the details-data class.
1945 2011-06-03 Ben Konrath <ben@bagu.org>
1947 Use presenter.goTo() to change to the DetailsPlace.
1949 This will make things easier when we need to open the DetailsView with
1950 data specific to the row that was clicked.
1952 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1954 2011-06-02 Ben Konrath <ben@bagu.org>
1956 Add CSS file from mockups.
1958 I'm adding this now because it's going to be useful to have when
1959 developing the DetailsView. The TableSelectionView and ListView aren't
1962 * src/main/webapp/OnlineGlom.html:
1963 * src/main/webapp/style.css:
1965 2011-06-02 Ben Konrath <ben@bagu.org>
1967 Use String.isEmpty() to check for empty string.
1969 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1971 2011-06-02 Ben Konrath <ben@bagu.org>
1973 Display main layout group titles in the DetailsView.
1975 This is the start of the DetailsActivity/DetailsView implementation.
1977 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1978 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1979 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1980 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1981 Get the layout information for the details view from the server and set
1982 the main layout group titles.
1983 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1984 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1985 Add addLayoutGroup() and addLayoutField() methods. This are just
1986 temporary methods for creating the the details view that will change
1988 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1989 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1991 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1992 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1993 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1994 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1995 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1996 Data Transfer Objects that mimic the libglom object structure. These are
1997 used for transferring the details layout but could also be used for
1998 transferring the list layout.
2000 2011-05-27 Ben Konrath <ben@bagu.org>
2002 Reset the AuthenticationPopup when clearing the ListView.
2004 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2006 2011-05-27 Ben Konrath <ben@bagu.org>
2008 Fix problem with onlineglom.properties file loading.
2010 The old way worked in Eclipse but not on the server. Loading the
2011 onlineglom.properties file now works in Eclipse and on the server.
2013 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2015 2011-05-24 Ben Konrath <ben@bagu.org>
2017 Update gwt-log from 3.1.0 to 3.1.2.
2019 Gwt-log 3.1.0 has been marked as depreciated.
2023 2011-05-24 Ben Konrath <ben@bagu.org>
2025 Add comment to ListActivity.goTo() method.
2027 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2029 2011-05-24 Ben Konrath <ben@bagu.org>
2031 Remove FIXME in convertGdkColorToHtmlColour()
2033 The Gdk::Color value returned by libglom is 16-bits per channel on both
2034 64 and 32-bit platforms.
2036 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2038 2011-05-19 Ben Konrath <ben@bagu.org>
2040 Improve performance of initial ListView load.
2042 I removed a round trip to the server for getting the default table name
2043 and then requesting information about that table. This also removes a potential
2044 problem with the table change handler not being setup in time to receive the
2045 table change event from the ListActivity.
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2048 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2049 getDefaultLayoutListTable() method. Improve comments.
2050 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2051 getDefaultLayoutListTable() method instead of firing a table change
2052 event to get the table to load.
2053 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2054 implementation of getDefaultLayoutListTable() method.
2055 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2058 2011-05-19 Ben Konrath <ben@bagu.org>
2060 Override toDebugString() in TableChangeEvent.
2062 This is useful to have for debugging.
2064 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2066 2011-05-19 Ben Konrath <ben@bagu.org>
2068 Add a "Back to List" link when at the DetailsPlace.
2070 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2071 Populate the CellTable based on the selected table of the ListBox if
2072 it's set otherwise use the default table. This allows the "Back to
2074 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2075 Remove Place from constructors. Add a setPlace() method. Add
2076 goToPlace() method. Set class as presenter for TableSelectionView.
2077 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2078 Use the same TableSelectionActivity when switching between the List and
2080 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2081 Subclass the new HasSelectableTablePlace. This removes some duplicate
2083 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2084 New class to represent Places that display the TableSelectionView.
2085 * src/main/java/org/glom/web/client/place/ListPlace.java:
2086 Subclass the new HasSelectableTablePlace. This removes some duplicate
2088 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2089 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2090 Add Presenter interface. Add setBackLinkVisible() method. Add
2091 setBackLink() method.
2093 2011-05-18 Ben Konrath <ben@bagu.org>
2095 Enable the "Details" buttons.
2097 Right now only an empty details view is displayed.
2099 * src/main/java/org/glom/web/client/ClientFactory.java:
2100 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2101 Add DetailsView to ClientFactory.
2102 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2103 A basic activity for the details view.
2104 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2105 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2107 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2108 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2110 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2111 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2112 unnecessary super() in constructor.
2113 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2114 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2115 really shouldn't create a new TableSelectionActivity for both the ListPlace
2116 and the DetailsPlace so this should be considered a temporary solution.
2117 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2118 New file. Represents a URL for the details view.
2119 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2120 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2121 A basic details view interface and implementation.
2122 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2123 Enable the "Details" buttons.
2125 2011-05-12 Ben Konrath <ben@bagu.org>
2127 Use a LayoutPanel with multiple display areas for main layout.
2129 This is mostly a refactor in that there are no changes from the user
2130 point of view. These changes are required so that we can swap out the list view
2131 with the details view when the user clicks the "Details" button.
2133 * src/main/java/org/glom/web/client/ClientFactory.java:
2134 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2135 OnlineGlomView. Add TableSelectionView, ListView and
2136 AuthenticationPopup.
2137 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2138 for main layout. Add display regions for main activities. Add
2139 activity manager for for main activities.
2140 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2141 file from parts of the deleted OnlineGlomActivity.
2142 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2143 New file from parts of the deleted OnlineGlomActivity.
2144 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2145 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2146 New files for app wide table change event.
2147 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2148 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2149 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2150 Activity mappers for the main activities replace the deleted app-wide
2152 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2153 Fix a spelling error in he comment.
2154 * src/main/java/org/glom/web/client/ui/ListView.java:
2155 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2156 Renamed from LayoutListView and modified for MVP. This still not a
2157 proper dumb view as prescribed by the MVP pattern but it works for now.
2158 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2159 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2160 New widget stripped out of the deleted OnlineGlomView.
2161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2162 Remove hack that is fixed by this patch.
2164 2011-05-06 Ben Konrath <ben@bagu.org>
2166 Rename OnlineGlomPlace to ListPlace.
2168 The only change besides the rename is that url will now display #list
2169 instead of #Document.
2171 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2172 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2173 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2174 * src/main/java/org/glom/web/client/place/ListPlace.java:
2175 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2177 2011-05-06 Ben Konrath <ben@bagu.org>
2179 Use Presenter for app navigation.
2181 This is the proper way to deal with Place (URL) changes with the MVP
2184 * src/main/java/org/glom/web/client/ClientFactory.java:
2185 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2186 PlaceHistoryMapper and PlaceHistoryHandler.
2187 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2188 PlaceHistoryMapper and PlaceHistoryHandler.
2189 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2190 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2191 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2192 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2193 Add Presenter interface and setPresenter methods. Rename addHyperLink
2194 to addDocumentLink taking only the document title as a parameter.
2196 2011-04-14 Ben Konrath <ben@bagu.org>
2198 Prompt for db username/password if they haven't been set.
2200 This is implemented with a popup widget that is contained within the
2201 OnlineGlomView and managed by the OnlineGlomActivity.
2203 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2204 methods for checking and setting the database username and password.
2205 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2206 new methods for checking and setting the database username and
2208 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2209 Display authentication popup if the JDBC connection to the database
2210 has not been authenticated.
2211 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2213 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2214 for dealing with the authentication popup.
2215 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2216 Implement the methods for dealing with the authentication popup.
2217 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2218 try to executed queries if the database connection hasn't been
2219 authenticated. Implement methods for checking and setting the
2220 database username and password.
2222 2011-04-12 Ben Konrath <ben@bagu.org>
2224 Make log messages a little clearer.
2226 Add a dash betweeen the document title and the table name.
2228 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2230 2011-04-12 Ben Konrath <ben@bagu.org>
2232 Protect against NPEs when cleaning up database resources.
2234 While this isn't strictly necessary because the exception is caught,
2235 not protecting against the NPEs makes it harder to find the real error
2238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2240 2011-04-12 Ben Konrath <ben@bagu.org>
2242 Move configuration of the servlet to the constructor.
2244 The servlet will be initialized even if the database authentication
2245 information is not set or correct. I still need to add the UI for prompting
2246 the user for the authentication information when it's required.
2248 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2249 javadocs for getDocumentTitles() method.
2250 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2251 Set error message when RPC fails.
2252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2253 glom files directory from the configuration file. Try to set the
2254 database authentication information for the specific document if it's
2255 set and works otherwise try to use the global authentication
2256 information set for the directory.
2257 * src/main/resources/onlineglom.properties: Moved from
2258 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2259 Added detailed comments for the new keys.
2261 2011-04-11 Ben Konrath <ben@bagu.org>
2263 Remove unnecessary @Override in DocumentSelectionViewImpl.
2265 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2267 2011-04-11 Ben Konrath <ben@bagu.org>
2269 Remove center alignment in DocumentSelectionView.
2271 The title element is still centred but the document titles and bottom
2272 sentence are both left-aligned.
2274 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2276 2011-04-11 Ben Konrath <ben@bagu.org>
2278 Change 'Demo' naming convention to 'Document'.
2280 This is just a rename refactor with no functional changes to the code.
2282 * src/main/java/org/glom/web/client/ClientFactory.java:
2283 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2284 * src/main/java/org/glom/web/client/OnlineGlom.java:
2285 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2286 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2287 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2288 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2289 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2290 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2291 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2292 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2293 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2296 2011-04-08 Ben Konrath <ben@bagu.org>
2298 Remove FIXME from safeLongToInt() method.
2300 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2303 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2305 2011-04-08 Ben Konrath <ben@bagu.org>
2307 Display an error if no glom documents are found in the specified directory.
2309 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2310 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2311 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2312 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2314 2011-04-08 Ben Konrath <ben@bagu.org>
2316 Add copyright header to one more file ... oops.
2318 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2320 2011-04-08 Ben Konrath <ben@bagu.org>
2322 Add copyright header to files without it.
2324 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2325 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2326 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2327 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2328 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2329 * src/main/java/org/glom/web/shared/GlomField.java:
2331 2011-04-08 Ben Konrath <ben@bagu.org>
2333 Add support for accessing multiple glom documents in the servlet.
2335 This completes the demo selection functionality.
2337 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2338 document title to methods.
2339 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2340 document title to methods.
2341 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2342 Set browser window title when the activity starts. Correct name of
2343 document title variable.
2344 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2345 Set browser window title when the activity starts. Set the table
2346 selector change handler after table selector has been set. Clear the
2347 OnlineGlomView when the activity has been stopped.
2348 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2349 document title as the place token. Use "#Document:" instead of
2350 "#OnlineGlomPlace:" in the URL.
2351 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2352 Change heading to "Online Glom"
2353 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2354 document title in RPC methods.
2355 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2356 setDocumentTitle() method. Add clear() method.
2357 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2358 setDocumentTitle() method. Implement clear() method which removes the
2359 change handler on the ListBox, clears the ListBox and clears the
2361 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2362 Implement methods with document title. Keep track for the configured
2363 glom documents and their corresponding JDBC configurations in a hash
2364 table. This information is retrieved using the document title as the
2365 key in the hash table.
2366 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2367 document title field as it's no longer needed.
2369 2011-04-08 Ben Konrath <ben@bagu.org>
2371 Update the Eclipse JDT configuration.
2373 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2374 methods. Automatically add the copyright header to new files.
2376 2011-04-05 Ben Konrath <ben@bagu.org>
2378 Add new page for demo selection.
2380 This patch adds all the components required to view and start an
2381 OnlineGlom demo by clicking on the desired hyperlink. The user is
2382 able to return to the demo selection page with the browser's back
2383 button. I still need to modify the servlet to work with multiple
2384 documents so all demo links will load the file defined in the
2385 OnlineGlom.properties.
2387 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2388 This is only useful during development so we don't need to save it.
2389 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2390 get a reference to the DemoSelectionView.
2391 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2392 method to get a reference to the DemoSelectionView.
2393 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2394 default view to DemoSelectionView.
2395 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2396 to get glom document titles for glom files in a hard-coded directory.
2397 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2398 method to get glom document titles for glom files in a hard-coded
2400 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2401 Presenter for DemoSelectionView.
2402 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2403 for DemoSelectionView.
2404 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2405 Update for DemoSelectionView.
2406 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2407 Basic 'Place' implementation for the DemoSelectionView.
2408 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2409 The interface for the DemoSelectionView.
2410 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2411 The implementation of the DemoSelectionView.
2412 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2413 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2415 implementation of method to get glom document titles for glom files
2416 in a hard-coded directory.
2417 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2418 on longer being used.
2419 * src/main/webapp/glom.png: Glom logo.
2421 2011-04-05 Ben Konrath <ben@bagu.org>
2423 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2425 This is the forth and final commit of a refactor that will allow
2426 OnlineGlom to be used with multiple documents.
2428 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2429 Move RPC code from OnlineGlomViewImpl to this class.
2430 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2432 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2433 RPC code to the presenter class (the P in MVP).
2435 2011-04-04 Ben Konrath <ben@bagu.org>
2437 Start moving the existing OnlineGlom code to MVP.
2439 This work is based on the GWT MVP framework that is documented here:
2441 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2443 This is the third commit of a refactor that will allow OnlineGlom to
2444 be used with multiple documents.
2446 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2447 Interface for client factory which is used to get instances of various
2448 classes throughout the app.
2449 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2450 Implementation of client factory.
2451 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2452 initialize the MVP framework.
2453 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2454 New file. Activity manager for the main container widget. This is the
2456 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2457 Maps place (URL) to its corresponding activity.
2458 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2459 New file. This is just a place holder for a generated file.
2460 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2461 New file. Represents the URL for the main Online Glom app.
2462 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2463 for changes in LayoutListViewImpl.
2464 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2465 interface for View. Move code to OnlineGlomViewImpl class.
2466 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2467 file. Implementation of OnlineGlomView.
2468 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2469 Place resources. Use ClientFactoryImpl by default.
2471 2011-04-04 Ben Konrath <ben@bagu.org>
2473 Move View classes to their own package.
2475 This is the second commit of a refactor that will allow OnlineGlom to
2476 be used with multiple documents.
2478 * src/main/java/org/glom/web/client/OnlineGlom.java:
2479 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2480 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2482 2011-04-02 Ben Konrath <ben@bagu.org>
2484 Move UI code from the main module to its own class.
2486 This is the first commit of a refactor that will allow OnlineGlom to be
2487 used with multiple documents.
2489 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2490 references to OnlineGlom to OnlineGlomView.
2491 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2492 OnlineGlomView and instantiate it here.
2493 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2494 represents the main OnlineGlomView with one document.
2496 2011-04-01 Ben Konrath <ben@bagu.org>
2498 Fix formatting of gwt.xml and add DTD.
2500 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2502 2011-03-30 Ben Konrath <ben@bagu.org>
2504 Propperly convert gdkColor string to html colour string.
2506 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2508 2011-03-28 Ben Konrath <ben@bagu.org>
2510 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2512 This implementation matches
2513 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2514 readable and is not tied to Swig.
2516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2518 2011-03-28 Ben Konrath <ben@bagu.org>
2520 Use read-only checkboxes for boolean field types.
2522 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2523 in the CellTable based on the field type. It currently only
2524 distinguishes between boolean and text columns but I'll need to add
2525 support for more types.
2526 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2527 column type in the ColumnInfo object. Add method to convert between the
2528 glom field type enum in ColumnInfo and the glom field type in libglom.
2529 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2531 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2532 getting and setting booleans.
2534 2011-03-25 Ben Konrath <ben@bagu.org>
2536 Don't get the Date twice from the ResultSet.
2538 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2540 2011-03-25 Ben Konrath <ben@bagu.org>
2542 Cleanup code in the servlet.
2544 * TODO: Remove item about row count. Add item about testing row count
2545 query with large number of rows.
2546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2547 spelling mistakes, change method parameter to be consistent with
2550 2011-03-25 Ben Konrath <ben@bagu.org>
2552 Add server side logging with the gwt-log library.
2554 * .gitignore: Ignore the log file we're now producing.
2555 * TODO: Add a couple TODO item for logging.
2556 * pom.xml: Add gwt-log and log4j as a dependency.
2557 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2558 logging of errors, warnings and some important info.
2559 * src/main/resources/log4j.properties: New file to configure log4j.
2561 2011-03-24 Ben Konrath <ben@bagu.org>
2563 Add a disable button for the Details view.
2565 * src/main/java/org/glom/web/client/LayoutListView.java:
2567 2011-03-22 Ben Konrath <ben@bagu.org>
2569 Use a count query to get the number of rows for the list view pager.
2571 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2573 2011-03-22 Ben Konrath <ben@bagu.org>
2575 Add more TODO information about CellTable pager positioning.
2579 2011-03-19 Ben Konrath <ben@bagu.org>
2581 Add TODO item about CellTable pager positioning.
2585 2011-03-18 Ben Konrath <ben@bagu.org>
2587 Remove unneeded GlomFieldColumn class.
2589 This is just a small code cleanup.
2591 * src/main/java/org/glom/web/client/LayoutListView.java:
2593 2011-03-18 Ben Konrath <ben@bagu.org>
2595 Use cursor mode in the query that gets data for the list view.
2597 I still need to fix the potential memory problem when getting the row
2598 count for the list view.
2600 * TODO: Add note about testing memory usage with large data sets. Add
2601 item about fixing row counting with large data sets.
2602 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2603 PostgreSQL JDBC driver into cursor mode when getting data for the
2606 2011-03-15 Ben Konrath <ben@bagu.org>
2608 Remove the GWT Container from the Eclipse build classpath.
2610 The GWT dependencies are set by Maven so this isn't needed.
2614 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2616 Added some earlier mockups to git, but not to the tarball dist.
2618 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2619 Openismus. These hopefully show how we might structure the HTML so that
2620 it can be styled easily with CSS. However, we probably need to adapt them
2621 for the CSS structure that GWT dictates for common widgets.
2623 2011-03-14 Ben Konrath <ben@bagu.org>
2625 Locate OnlineGlom.properties using the ServletContext.
2627 This is required to be able to locate the file in the deployed servlet.
2629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2630 Configure the database and glom document in in a helper method so
2631 that the ServletContext can be used to locate OnlineGlom.properties.
2632 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2633 src/main/webapp. This is the proper location for .properites files.
2635 2011-03-12 Ben Konrath <ben@bagu.org>
2637 Add note to README about why we're compiling down to obfuscated JavaScript.
2641 2011-03-11 Ben Konrath <ben@bagu.org>
2643 Use properties file to configure servlet.
2645 This allows people to change the glom file path, db username and db
2646 password without recompiling the code.
2648 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2649 * src/main/webapp/OnlineGlom.properties:
2651 2011-03-11 Ben Konrath <ben@bagu.org>
2653 Use table fields in layout list view if the layout list is not defined.
2655 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2656 Manually create a LayoutFieldVector for the query builder using the
2657 table fields when a layout list is not defined in the glom file.
2659 2011-03-11 Ben Konrath <ben@bagu.org>
2661 Only show FIXME string for images when there's an image.
2663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2664 in this change are some small code cleanups.
2666 2011-03-11 Ben Konrath <ben@bagu.org>
2668 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2672 2011-03-11 Ben Konrath <ben@bagu.org>
2674 Correctly set the index of the default table.
2676 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2677 Correctly set the index of the default table. Add commented out example
2680 2011-03-10 Ben Konrath <ben@bagu.org>
2682 Add comment to pom.xml about the previous change.
2684 * pom.xml: Add comment about the deployment issue so that it's obvious
2685 why java-libglom is set to the provided scope.
2687 2011-03-10 Ben Konrath <ben@bagu.org>
2689 Change java-libglom dependency from compile to provided in pom.xml.
2691 Since java-libglom uses jni it can only be loaded once and therefore
2692 must be placed in $CATALINA_HOME/lib and not included in each war.
2693 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2694 More information about this issue can be found in the Tomcat 6 release
2695 notes in the "JNI Based Applications" section:
2697 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2699 * README: Remove note about this issue. Deployment info should really
2700 be on the wiki anyway so I'll add it right now.
2701 * pom.xml: Change java-libglom dependency from compile to provided so
2702 that it's copied in to the packaged war.
2704 2011-03-09 Ben Konrath <ben@bagu.org>
2706 Change to using a neutral locale for currency, date and time formatting.
2708 This solves the problem of currency values being represented without a
2709 space between the currency code and the number (e.g. "EUR5.89" is now
2710 represented as "EUR 5.89"). More work is required when we implement
2711 a locale preference setting.
2713 * TODO: Add note about currency formatting issues with different
2715 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2716 to using the neutral ROOT locale.
2718 2011-03-09 Ben Konrath <ben@bagu.org>
2720 Add support for currency codes that are not ISO 4217 codes.
2722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2723 the currency code defined in the glom file when it's not 3 characters
2724 long or when Java doesn't recognize the string as an ISO 4217 code.
2726 2011-03-08 Ben Konrath <ben@bagu.org>
2728 Remove test classes, launch configurations and configuration.
2730 The test stuff was getting in the way when creating the war. To make
2731 the war file you can now do 'mvn clean package'. The packaged war file
2732 will be in the target directory.
2734 * .classpath: Remove unused classpathentry for tests and i18n.
2735 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2736 property. Don't run test or i18n goals when packaging the war.
2737 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2742 * OnlineGlomTest-dev.launch:
2743 * OnlineGlomTest-prod.launch:
2744 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2745 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2747 2011-03-07 Ben Konrath <ben@bagu.org>
2749 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2751 These fixes allow me to use 'mvn deploy' to create the war file.
2753 * .classpath: This generated config has been updated by Eclipse. This
2754 change was probably triggered by me updating from Eclipse 3.6.1 to
2756 * .gitignore: Add entry to ignore the directory
2757 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2758 * .project: The generated config has been updated by Eclipse. This
2759 change was probably triggered by me updating from Eclipse 3.6.1 to
2761 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2762 so that Eclipse doesn't complain
2763 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2764 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2765 'tests' directory to 'client' directory. This is the new
2766 gwt-maven-plugin convension.
2767 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2768 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2770 2011-03-07 Ben Konrath <ben@bagu.org>
2772 Add support for horizontal alignment in the LayoutList columns.
2774 * TODO: Remove item about horizontal alignment. Add item about
2775 improvements to ColumnInfo.
2776 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2777 alignment on the columns. Use ColumnInfo RPC object get the column
2778 title and horizontal alignment.
2779 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2780 LayoutListView creation with ColumnInfo RPC object.
2781 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2782 a ColumnInfo object for every LayoutList columnn. Convert the
2783 FieldFormatting.HorizontalAlignment to the correct
2784 ColumnnInfo.HorizontatlAlignment with the new
2785 getColumnInfoHorizontalAlignment helper method.
2786 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2787 to encapsulate column information like alignment and title. This
2788 could be used to set the colour instead of on a per cell field basis.
2789 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2790 column title storage and retrieval with ColumnInfo.
2792 2011-03-04 Ben Konrath <ben@bagu.org>
2794 Add support for column sorting.
2796 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2797 AsynDataProvider to be an anonymous inner class. Use new
2798 getSortedTableData RPC method when column sort is requested. Set all
2799 columns sortable and add an AsyncHandler to activate sorting in the
2801 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2802 method getSortedTableData(). Cleanup other method signatures.
2803 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2804 new method getSortedTableData(). Cleanup other method signatures.
2805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2806 Implement getSortedTableData() and getTableData() methods by using a
2807 private helper method with the appropriate parameters filled in. Use
2808 user supplied sort clause when supplied, otherwise fall back to
2809 sorting by the primary key. Move destroy() method to be underneath
2810 constructor for readability. Cleanup comments.
2812 2011-03-03 Ben Konrath <ben@bagu.org>
2814 Add support for colour text and colour backgrounds to the layout list cells.
2816 Only the cell backgrounds are coloured which leaves a gap between the
2817 cells that isn't coloured. I need to figure out a way to set
2818 'style=background-colour:' on the whole column rather than just the
2821 * TODO: Add a note about colouring the background of the whole column.
2822 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2823 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2824 render the coloured text and backgrounds. Use GlomField[] for the row type.
2825 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2827 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2828 GlomField[] for the row type.
2829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2830 GlomField[] for the row type. Set the text, text colour and background
2831 colour in the GlomField objects as specified in the glom document. Add
2832 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2833 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2834 the glom field text, foreground colour and background colour.
2836 2011-03-02 Ben Konrath <ben@bagu.org>
2838 Don't display hidden tables in the combo box.
2840 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2842 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2843 code to ignore hidden tables using ArrayLists for the table names and
2845 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2846 tableNames to use ArrayLists instead of String[]. Update getter and setter
2849 2011-03-01 Ben Konrath <ben@bagu.org>
2851 Add support for Date and Time number types.
2853 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2854 Implement formatting for Date and Time values. Change the default glom
2855 file to small business example.
2857 2011-03-01 Ben Konrath <ben@bagu.org>
2859 Add support for formatting glom types as specified in the glom file.
2861 Formatting isn't finished yet - I still need to add support for Date
2864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2865 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2866 checks for null values in JDBC cleanup code and catch all exceptions
2867 instead of just SQLExceptions.
2868 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2871 2011-03-01 Ben Konrath <ben@bagu.org>
2873 Use GWT 2.2.0 instead of 2.1.1.
2875 * pom.xml: Change GWT version numbers.
2877 2011-03-01 Ben Konrath <ben@bagu.org>
2879 A few small code cleanups.
2881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2883 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2884 unnecessary object creation in constructor.
2885 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2886 unnecessary object creation in constructor.
2888 2011-02-28 Ben Konrath <ben@bagu.org>
2890 Add file for TODO list.
2894 2011-02-18 Ben Konrath <ben@bagu.org>
2896 Enable the CellTable Pager when more than 20 rows need to be viewed.
2898 The Pager will automatically become active when the results are larger
2899 than the CellTable size which is currently set to 20 lines.
2901 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2902 name on debug statment in RPC call in LayoutListDataProvider, add
2903 numRows parameter to LayoutListView constructor, propperly set rowCount
2905 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2906 name on debug statment in RPC call, use LayoutListTable object in RPC
2907 calls, pass rowCount to LayoutListView.
2908 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2909 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2911 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2912 interface for changes in OnlineGlomService.
2913 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2914 getLayoutListHeaders() to getLayoutListTable() and return
2915 LayoutListTable. Using this object allows me to pass other information
2916 about the LayoutList like the expected number of rows in the result set.
2917 The Connection object from the connection pool is now propperly closed.
2918 Only the requested number of lines are returned to the client in
2920 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2921 GlomTable and add columnTitles and numRows.
2923 2011-02-18 Ben Konrath <ben@bagu.org>
2925 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2927 This is a small performance boost. I'll use GlomTable to get the required
2928 layoutlist information.
2930 * src/main/java/org/glom/web/client/OnlineGlom.java:
2931 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2932 * src/main/java/org/glom/web/shared/GlomDocument.java:
2934 2011-02-18 Ben Konrath <ben@bagu.org>
2936 Add option to turn off formatting in JDT formatter preferences.
2938 * .settings/org.eclipse.jdt.core.prefs:
2940 2011-02-18 Ben Konrath <ben@bagu.org>
2942 Rename LayoutList to LayoutListView.
2944 I'm working towards setting things up to easily use MVP when the time
2947 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2949 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2952 2011-02-17 Ben Konrath <ben@bagu.org>
2954 Move LayoutListDataProvider class into LayoutList.java.
2956 * src/main/java/org/glom/web/client/LayoutList.java:
2958 2011-02-17 Ben Konrath <ben@bagu.org>
2960 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2962 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2964 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2965 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2966 from LibGlomServer.java.
2967 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2968 Rename from LibGlomServiceAsync.java.
2969 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2970 Rename from LibGlomServiceImpl.java.
2971 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2973 2011-02-17 Ben Konrath <ben@bagu.org>
2975 Update JDT settings.
2977 * .settings/org.eclipse.jdt.core.prefs:
2979 2011-02-17 Ben Konrath <ben@bagu.org>
2981 Move GWT-RPC objects to shared package (where they should be).
2983 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2984 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2985 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2986 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2987 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2988 org.glom.web.shared package.
2989 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2990 org.glom.web.shared package.
2991 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2992 directory in compilation to javascript.
2994 2011-02-16 Ben Konrath <ben@bagu.org>
2996 Add sort clause to the sql query that grabs table information.
2998 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2999 if one of the columns is a primary key.
3001 2011-02-16 Ben Konrath <ben@bagu.org>
3003 Disable generateAsync feature of gwt-maven.
3005 The generated interface does not correctly match the methods in LibGlomService
3006 and the generated singleton Util inner-class doesn't respect the servlet
3009 * pom.xml: Turn off generateAsync feature.
3010 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3011 with singleton Util inner-class.
3013 2011-02-14 Ben Konrath <ben@bagu.org>
3015 Add LGPL v3 licence notices.
3017 Followed directions listed here:
3018 http://www.gnu.org/licenses/gpl-howto.html
3020 * COPYING: This file is a copy of the GPL v3.
3021 * COPYING.LESSER: This file is a copy of the LGPL v3.
3022 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3024 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3026 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3028 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3030 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3032 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3034 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3037 2011-02-14 Ben Konrath <ben@bagu.org>
3039 Use ArrayList instead of Array in GWT-RPC calls.
3041 Apparently this gives a slight performance boost to the compiled
3044 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3046 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3049 2011-02-14 Ben Konrath <ben@bagu.org>
3051 Access data from a postgres db rather than the example glom file.
3053 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3054 compile down to obfuscated javascript.
3055 * pom.xml: Add c3p0 and postgres JDBC libraries.
3056 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3057 using a postgres db accessed through the c3p0 connection pooling library.
3059 2011-02-14 Ben Konrath <ben@bagu.org>
3061 Update Java formatter settings.
3063 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3065 2011-02-02 Ben Konrath <ben@bagu.org>
3067 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3069 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3071 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3072 the compiled webapp directory that Eclipse uses as we're using Maven now.
3073 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3074 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3076 * pom.xml: Format file, change target Java version to 1.6.
3078 2011-02-02 Ben Konrath <ben@bagu.org>
3080 Add information about a deployment related issue.
3082 * README: Add Notes section with the problem outlined.
3084 2011-02-02 Ben Konrath <ben@bagu.org>
3086 Call Glom.libglom_deinit() when the servlet is shutdown.
3088 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3089 Glom.libglom_deinit() to destroy() method.
3091 2011-01-28 Ben Konrath <ben@bagu.org>
3093 Use generated Util class to get the RPC Async interface.
3095 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3097 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3098 getInstance() method to get a reference to the RPC Async interface.
3099 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3100 getInstance() method to get a reference to the RPC Async interface, remove
3101 the now unused getLibGlomServiceProxy() method.
3103 2011-01-27 Ben Konrath <ben@bagu.org>
3105 Cleanup ChangeLog entry from previous commit.
3107 * ChangeLog: Group logical changes together and add comments.
3109 2011-01-25 Ben Konrath <ben@bagu.org>
3111 Convert to gwt-maven project.
3113 * .gitignore: Update for new project structure.
3114 * README: New file with a link to the online documentation.
3115 * pom.xml: The generated maven configuration file with some tweaks.
3117 Add / update Eclipse settings. These files are a merge of the files that
3118 were generated with the gwt-maven plugin and the files we were previously
3122 * .settings/.jsdtscope:
3123 * .settings/com.google.gdt.eclipse.core.prefs:
3124 * .settings/com.google.gwt.eclipse.core.prefs:
3125 * .settings/org.eclipse.jdt.core.prefs:
3126 * .settings/org.eclipse.wst.common.component:
3127 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3128 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3129 * .settings/org.maven.ide.eclipse.prefs:
3130 * OnlineGlomTest-dev.launch:
3131 * OnlineGlomTest-prod.launch:
3133 Java source files moved from the 'src' directory to the directory structure
3135 * src/main/java/org/glom/web/client/GlomDocument.java:
3136 * src/main/java/org/glom/web/client/GlomTable.java:
3137 * src/main/java/org/glom/web/client/LayoutList.java:
3138 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3139 * src/main/java/org/glom/web/client/LibGlomService.java:
3140 * src/main/java/org/glom/web/client/OnlineGlom.java:
3141 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3143 Non-functional property file used for translations. I included this as
3144 reminder that it's something I need to sort out.
3145 * src/main/resources/org/glom/web/client/Messages.properties:
3147 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3148 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3150 The servlet configuration files moved from the 'war' directory.
3151 * src/main/webapp/OnlineGlom.css:
3152 * src/main/webapp/OnlineGlom.html:
3153 * src/main/webapp/WEB-INF/web.xml:
3155 Generated test files with most of the code commented out. I included these
3156 so that it's easy to add tests when we're ready for them.
3157 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3158 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3160 2011-01-25 Ben Konrath <ben@bagu.org>
3162 Remove unused println.
3164 * src/org/glom/web/server/LibGlomServiceImpl.java:
3166 2011-01-25 Ben Konrath <ben@bagu.org>
3168 Add project specific JDT settings.
3170 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3171 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3173 2011-01-25 Ben Konrath <ben@bagu.org>
3175 Populate celltable with example data.
3177 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3178 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3179 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3180 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3181 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3182 asynchronously gets the example data.
3183 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3184 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3185 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3186 curently selected table to be retrieved by other widgets.
3187 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3188 implement getTableData() in a hacky way. This method needs to be updated
3189 to grab information from the database when database creating is
3192 2011-01-20 Ben Konrath <ben@bagu.org>
3194 Set table headers when table dropBox changes.
3196 * src/org/glom/web/client/GlomDocument.java: Correct some method
3198 * src/org/glom/web/client/LibGlomService.java: Add method
3199 to get list layout field names.
3200 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3201 to get list layout field names.
3202 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3203 widget for list layout table.
3204 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3205 the table drop box and add new updateTable() method to asynchronously
3206 get the layout list field names for the currently selected table.
3207 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3208 implementation of getLayoutListHeaders() method.
3209 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3211 2011-01-18 Ben Konrath <ben@bagu.org>
3213 Make a listBox with table titles instead of the flexTable demo.
3215 This is the start of something more useful.
3217 * .classpath: Exclude a bunch of packages from the JVM that are
3218 getting in the way of the Eclipse content assist.
3219 * src/org/glom/web/client/GlomDocument.java:
3220 * src/org/glom/web/client/GlomTable.java:
3221 * src/org/glom/web/client/LibGlomService.java:
3222 * src/org/glom/web/client/LibGlomServiceAsync.java:
3223 * src/org/glom/web/client/OnlineGlom.java:
3224 * src/org/glom/web/server/LibGlomServiceImpl.java:
3225 * war/OnlineGlom.html:
3226 * war/WEB-INF/web.xml:
3228 211-01-13 Ben Konrath <ben@bagu.org>
3230 Update to new java-libglom API.