1 2011-12-12 Ben Konrath <ben@bagu.org>
3 Remove unnecessary String argument in RelatedListTable and ListViewTable.
5 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
6 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
7 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
8 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
10 2011-12-12 Ben Konrath <ben@bagu.org>
12 Update variable names and comments.
14 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
15 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
17 2011-12-12 Ben Konrath <ben@bagu.org>
19 Properly initialize numNonEmptyRows variable to zero.
21 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
22 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
24 2011-12-05 Ben Konrath <ben@bagu.org>
26 Add latest mockup with HTML tables.
28 Features of this mockup:
30 -> HTML table for flowtable
31 -> HTML table for flowtable column
32 -> Example of how related lists would look
33 -> Not using text entries for data items
35 The current version of Online Glom doesn't use HTML tables for the
38 This mockup has been sent to the glom-devel mailing list but it's good
39 to have it here as well.
41 * mockups/details-view-html-tables.html:
43 2011-12-05 Ben Konrath <ben@bagu.org>
45 Remove unnecessary getPrimaryKeyField() method.
47 getPrimaryKeyFieldForTable(String) has been renamed to
48 getPrimaryKeyField(String).
50 * src/main/java/org/glom/web/server/database/DBAccess.java:
51 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
52 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
54 2011-12-05 Ben Konrath <ben@bagu.org>
56 Add string representation of TypedDataItem value to conversion error message.
58 * src/main/java/org/glom/web/server/Utils.java: Logging the error
59 message was extracted into its own method to avoid duplication.
61 2011-12-05 Ben Konrath <ben@bagu.org>
63 Add type checking to navigation primary key value creation.
65 Create navigation primary key only if the expected type from the Glom
66 document matches the type returned by the SQL query.
68 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
70 2011-12-05 Ben Konrath <ben@bagu.org>
72 Rename a couple of variables in RelatedListNavigation.
74 This is a rename-only refactor.
76 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
78 2011-12-05 Ben Konrath <ben@bagu.org>
80 Move getListLayoutGroup() into getListViewLayoutGroup().
82 This removes getListLayoutGroup(). It was only being called by
83 getListViewLayoutGroup().
85 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
87 2011-12-05 Ben Konrath <ben@bagu.org>
89 Remove check for LayoutItem_Portal in list table method.
91 This check is no longer necessary because the method isn't being used
92 to create the LayoutItemPortal DTO.
94 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
96 2011-12-05 Ben Konrath <ben@bagu.org>
98 Properly support related list navigation.
100 Navigation from the "Repository Analyzer -> Package Scans ->
101 Dependencies" related table wasn't working because the primary key for
102 related tables wasn't being set properly. This commit fixes the
105 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
106 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
107 doesn't set the primary key properly for related list tables.
108 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
109 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
110 useful for getting the primary key for list view tables and for related
112 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
113 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
114 Move code to set the primary key for the table from the abstract
115 ListDBAccess class to ListViewDBAccess as it's only correct for list
117 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
118 Properly add primary key to related list tables.
120 2011-12-02 Ben Konrath <ben@bagu.org>
122 Properly set the horizontal alignment of fields.
124 This fix is for both the list tables and the details view.
126 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
127 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
128 to set the horizontal alignment of fields.
130 2011-12-02 Ben Konrath <ben@bagu.org>
132 Display currency codes in the details view.
134 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
136 2011-12-02 Ben Konrath <ben@bagu.org>
138 Avoid duplicate JNI call.
140 JNI is not as efficient as pure Java and this is an easy (and small)
143 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
144 Use previously retrieved value for whereClauseToTableName instead of
147 2011-12-02 Ben Konrath <ben@bagu.org>
149 Rename a couple of variables in RelatedListNavigation.
151 This is a rename-only refactor.
153 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
155 2011-12-02 Ben Konrath <ben@bagu.org>
157 Indicate clearly that a mismatched primary key type is a bug.
159 * src/main/java/org/glom/web/server/Utils.java: Change log level from
160 warning to error. Add 'This is a bug.' to message.
162 2011-12-02 Ben Konrath <ben@bagu.org>
164 Update / fix some comments.
166 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
168 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
170 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
171 Fix comments. Add some TODOs.
173 2011-12-02 Ben Konrath <ben@bagu.org>
175 Enable navigation to details view with string primary key from related list.
177 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
178 Create a text primary key value when return type of result is
179 java.sql.Types.VARCHAR.
181 2011-12-02 Ben Konrath <ben@bagu.org>
183 Use checkboxes for booleans in the details view.
185 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
187 2011-12-01 Ben Konrath <ben@bagu.org>
189 Improve performance of related list height calculation.
191 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
192 Put code to calculate the expected height in a static initializer so
193 that that it's only called once.
195 2011-12-01 Ben Konrath <ben@bagu.org>
197 Show related list tables in notebooks (again).
199 Calculate the height of the related list tables so the Notebook can be
200 set the correct height. The height of the related list table is also needed by
201 FlowTable to be able decide how to create the layout.
203 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
204 and set the Portal height based on the height of the related list
205 table and the Portal container.
206 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
207 Add method to calculate the height of the related list tables.
208 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
209 * src/main/webapp/style.css: Add css class for Pager. This is needed to
210 calculate the height of the Pager widget.
212 2011-12-01 Ben Konrath <ben@bagu.org>
214 Use CellTable API for table property instead of setting style on Element.
216 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
218 2011-12-01 Ben Konrath <ben@bagu.org>
220 Make ListViewTable and RelatedListTable a consistent height.
222 The tables are now a consistent height regardless of the contents of
223 the table. A hidden button is added to empty rows to ensure that the
224 height of these rows will match the height of rows with data.
226 A navigation button column is now added to every table. The width of
227 the navigation column is set to 0px when a RelatedListTable shouldn't
228 have navigation buttons. This maintains the a consistent row height in
229 tables that don't show the navigation buttons.
231 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
232 navigation column when not needed.
233 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
234 arguments for navigation button to constructor of ListViewTable.
235 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
236 hidden button for empty data rows.
237 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
238 arguments for navigation button to constructor.
239 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
240 create navigation buttons. Add hideNavigationButtons() method.
241 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
242 arguments for navigation button to constructor.
244 2011-12-01 Ben Konrath <ben@bagu.org>
246 Use 'visibility: hidden' in Utils.getWidgetHeight().
248 This is better choice because hidden elements are invisible, don't
249 respond to events and are not part of the tab order. They will,
250 however, take up space which is required to be able to calculate the
251 height of the widget.
253 * src/main/java/org/glom/web/client/Utils.java:
255 2011-12-01 Ben Konrath <ben@bagu.org>
257 Use Utils.getWidgetHeight() in FlowTable.
259 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
261 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
263 2011-12-01 Ben Konrath <ben@bagu.org>
265 Put the details css class name on the correct table column.
267 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
269 2011-11-30 Ben Konrath <ben@bagu.org>
271 Update for java-libglom API change.
273 The getters and setters on FieldFormatting and NumericFormat were
274 changed to remove the 'M'.
276 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
278 2011-11-29 Ben Konrath <ben@bagu.org>
280 Only allow RelatedListTables in Portals.
282 * src/main/java/org/glom/web/client/ui/details/Portal.java:
284 2011-11-29 Ben Konrath <ben@bagu.org>
286 Only create a contents panel for Portals when title is being set.
288 * src/main/java/org/glom/web/client/ui/details/Portal.java:
290 2011-11-29 Ben Konrath <ben@bagu.org>
292 Set TabLayoutPanel height based on calculated height its widgets.
294 This is a potential fix for this bug:
296 https://bugzilla.gnome.org/show_bug.cgi?id=665133
298 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
300 2011-11-29 Ben Konrath <ben@bagu.org>
302 Align details field labels and data with the Open buttons.
304 * src/main/webapp/style.css:
306 2011-11-29 Ben Konrath <ben@bagu.org>
308 Remove unnecessary <div> in the Notebook widget.
310 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
311 method to get container FlowPanel (<div>).
312 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
313 initWidget() method directly on the TabLayoutPanel widget instead of
314 Group's container widget.
316 2011-11-29 Ben Konrath <ben@bagu.org>
318 Don't add group titles for Portals in Notebooks.
320 This reverts the previous patch and fixes a bug I introduced with
321 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
323 * src/main/java/org/glom/web/client/ui/details/Group.java:
324 * src/main/java/org/glom/web/client/ui/details/Portal.java:
326 2011-11-28 Ben Konrath <ben@bagu.org>
328 Remove unused boolean argument in Portal constructor.
332 * src/main/java/org/glom/web/client/ui/details/Group.java:
333 * src/main/java/org/glom/web/client/ui/details/Portal.java:
335 2011-11-28 Ben Konrath <ben@bagu.org>
337 Remove hack for glom 1.18 style glom files.
339 * src/main/java/org/glom/web/client/ui/details/Group.java:
340 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
341 * src/main/java/org/glom/web/client/ui/details/Portal.java:
343 2011-11-28 Ben Konrath <ben@bagu.org>
345 Use Gda Value version of primary key to log result too large error.
347 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
349 2011-11-28 Ben Konrath <ben@bagu.org>
351 Don't use TypedDataItem.getText() for Unknown types from the URL.
353 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
354 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
355 instead of getText().
356 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
357 String field and getUnknown() method.
359 2011-11-28 Ben Konrath <ben@bagu.org>
361 Log an error message when the java-libglom .so is not present.
363 The error message was being set in the exception but not logged.
365 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
367 2011-11-28 Ben Konrath <ben@bagu.org>
369 Ignore LayoutItem_CalendarPortals.
371 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
372 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
374 2011-11-28 Ben Konrath <ben@bagu.org>
376 Extract method for creating the LayoutItemPortal DTO.
378 Just breaking the code up into smaller chunks.
380 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
382 2011-11-28 Ben Konrath <ben@bagu.org>
386 This should have been added with the refactor. Oops!
388 * src/main/java/org/glom/web/shared/TypedDataItem.java:
390 2011-11-28 Ben Konrath <ben@bagu.org>
392 Create primary key value from URL string using type from Glom document.
394 See this bug, comments 19 - 25:
396 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
398 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
399 create a TypeDataItem for the primary key here when loading from a
400 URL. Show the same string for the primary key value as was received
401 from the URL string (when loading from a URL).
402 * src/main/java/org/glom/web/server/Utils.java: Update method for
403 creating the Gda Value from the TypeDataItem to properly deal with
404 creating a Gda Value based on the Glom document type for the primary
405 key value string when loading from a URL.
406 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
407 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
408 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
409 Update for changed method name.
411 2011-11-27 Ben Konrath <ben@bagu.org>
413 Rename PrimaryKeyItem to TypedDataItem.
415 The name PrimaryKeyItem suggests what the class should be used for.
416 TypedDataItem is a neutral name that describes the class better.
418 This is a rename-only refactor.
420 * src/main/java/org/glom/web/client/OnlineGlomService.java:
421 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
422 * src/main/java/org/glom/web/client/Utils.java:
423 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
424 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
425 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
426 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
427 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
428 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
429 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
430 * src/main/java/org/glom/web/server/Utils.java:
431 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
432 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
433 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
434 * src/main/java/org/glom/web/shared/NavigationRecord.java:
436 2011-11-25 Ben Konrath <ben@bagu.org>
438 Improve Gda Value conversion from PrimaryKeyItem.
440 The value from the PrimaryKeyItem is only used if its type match the
441 type from the glom document.
443 * src/main/java/org/glom/web/server/Utils.java:
445 2011-11-25 Ben Konrath <ben@bagu.org>
447 Manually check if the java-liblgom .so is visible to the JVM.
449 It seems that Tomcat has problems when a static initializer throws an
450 exception. This check is done before the first method call into
451 java-libglom so that execution doesn't continue if the .so is not
454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
456 2011-11-25 Ben Konrath <ben@bagu.org>
458 Improve browser configuration error messages.
462 https://bugzilla.gnome.org/show_bug.cgi?id=662792
464 * src/main/java/org/glom/web/client/OnlineGlomService.java:
465 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
466 getConfigurationErrorMessage() method.
467 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
468 Get and display a specific configuration error message when no Glom
470 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
471 Implement getConfigurationErrorMessage() method. Surround configuration
472 code in the init() method with a try/catch block. This allows the
473 errors to be caught while keeping the servlet available to retrieve the
474 configuration error message.
476 2011-11-25 Ben Konrath <ben@bagu.org>
478 Don't use Strings to hold primary key values.
480 The primary key values are now held in a new data object
481 (PrimaryKeyItem) that holds type information and the primary key value
482 using the correct type.
484 * src/main/java/org/glom/web/client/OnlineGlomService.java:
485 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
487 PrimaryKeyItem instead of String to hold the primary key value.
488 * src/main/java/org/glom/web/client/Utils.java: Remove
489 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
490 PrimaryKeyItem based on the GlomFieldType and the DataItem.
491 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
492 PrimaryKeyItem instead of String to hold the primary key value. Load
493 document selection page when the documentID has not been set correctly.
494 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
495 DetailsPlace -> URL and URL -> DetailsPlace conversion with
497 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
498 Return empty string for URL instead of "null".
499 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
500 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
501 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
502 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
503 PrimaryKeyItem instead of String to hold primary key values.
504 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
505 PrimaryKeyValue to a Gda Value.
506 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
507 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
508 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
509 Replace temporary database access code that uses the PrimaryKeyValue to
510 Gda Value conversion.
511 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
512 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
513 PrimaryKeyItem instead of String.
514 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
515 hold primary key values.
517 2011-11-24 Ben Konrath <ben@bagu.org>
519 Use newly added java-libglom API to create queries.
521 This isn't finished. I still need to stop using Strings for primary key
522 values in the client code.
524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
525 libglom to use fake connections so that retrieving the query string will
527 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
528 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
529 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
530 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
531 Use the newly added libglom sql methods and classes to create the
532 query. Add temporary hack to convert primary value strings to Gda
535 2011-11-23 Ben Konrath <ben@bagu.org>
537 Don't explicitly set the height of Portals.
539 See comments 6 - 10 of this bug for details:
541 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
543 * src/main/java/org/glom/web/client/ui/details/Portal.java:
545 2011-11-23 Ben Konrath <ben@bagu.org>
547 Use an HTML table instead of CSS for the FlowTable layout.
549 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
550 GWT's FlexTable to implement the FlowTable.
551 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
553 2011-11-18 Ben Konrath <ben@bagu.org>
555 Add boolean example to HTML table mockup.
557 * mockups/details-view-html-tables-text-entries.html:
559 2011-11-17 Ben Konrath <ben@bagu.org>
561 Ensure the pager buttons are always visible for related lists.
563 To accomplish this, I've turned off text wrapping in the list view and
564 related list tables for both the header and data text. The related list
565 table now has a fixed layout so the it doesn't overflow its container.
566 This is required to ensure that the cell text is clipped when it
567 overflows the cell and an ellipsis is added to the right side of the
568 cell when text is clipped.
570 A fixed table layout for the related list table in the details view
571 seems what we want for the details view anyway, so the side-effect is
574 The ellipsis will only be displayed in Firefox >= 7.
578 https://bugzilla.gnome.org/show_bug.cgi?id=662930
580 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
581 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
582 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
584 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
585 Set the 'table-layout: fixed' CSS property to the related list table.
586 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
587 'white-space: nowrap;' CSS property on both the list view and the
590 2011-11-16 Ben Konrath <ben@bagu.org>
592 Rework the fix for empty notebook tab labels.
594 Setting the empty group titles with its name caused problems for the
595 details layout. Instead of using libglom's
596 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
597 to the client when the title is empty. This allows the Notebook to use
598 the name when the title is empty without affecting anything else.
600 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
601 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
603 2011-11-16 Ben Konrath <ben@bagu.org>
605 Set group titles with name when title is empty.
607 This fixes a problem with an empty notebook tab label in the Lesson
608 Planner document. The forth tab in the notebook should be "Internet":
610 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
612 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
613 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
616 2011-11-16 Ben Konrath <ben@bagu.org>
618 Remove whitespace from the configured username properties.
620 This assumes that usernames won't have whitespace at the beginning
621 or end. But I think this is a reasonable assumption.
623 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
624 String.trim() to remove the whitespace from the username properties.
626 2011-11-15 Ben Konrath <ben@bagu.org>
628 Add details view mockup with HTML tables and text entries.
630 This is from the attachment on this bug:
632 https://bugzilla.gnome.org/show_bug.cgi?id=663109
634 * mockups/details-view-html-tables-text-entries.html:
636 2011-11-15 Ben Konrath <ben@bagu.org>
638 Add space between the columns of the flow table.
642 https://bugzilla.gnome.org/show_bug.cgi?id=662918
644 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
645 space between columns in the flow table.
647 2011-11-15 Ben Konrath <ben@bagu.org>
649 Add backup files to the .gitignore.
651 * .gitignore: Ignore files that end with ~.
653 2011-11-09 Ben Konrath <ben@bagu.org>
655 Use latest release of gwt-log.
657 Gwt-log releases are now being submitted to the maven central
658 repository so manual installation of the jar is no longer required.
660 * pom.xml: Update version and groupId of gwt-log dependency.
662 2011-10-31 Ben Konrath <ben@bagu.org>
664 Don't use GWT numeric formatting to override the glom currency formatting.
666 Currencies are now displayed like they are in Glom. See this bug:
668 https://bugzilla.gnome.org/show_bug.cgi?id=646216
670 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
672 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
673 currency code to constructor and set it when the cell is rendered.
674 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
675 currency code to the constructor of the NumericCell.
677 2011-10-27 Ben Konrath <ben@bagu.org>
679 Require the latest release of java-libglom (1.17.4).
683 2011-10-26 Ben Konrath <ben@bagu.org>
685 Add style to Notebook that matches current theme.
687 It's not the best style in the world but it's better than the default.
689 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
690 padding at the bottom of the child widgets.
691 * src/main/webapp/style.css: Add style for the Notebook.
693 2011-10-26 Ben Konrath <ben@bagu.org>
695 Move servlet initialization code to overridden init method.
697 This is half of the solution to getting proper error messages
698 displayed when configuration errors occur. Here's the relevant bug:
700 https://bugzilla.gnome.org/show_bug.cgi?id=662792
702 The rest of the solution involves surrounding the init method with a
703 try/catch block and setting a global variable with the error /
704 exception. A new async method should be created to retrieve and display
705 the error message / exception.
707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
708 code from constructor to init method adding exceptions as needed.
710 2011-10-26 Ben Konrath <ben@bagu.org>
712 Add script to monitor and restart tomcat if required.
714 * utils/check-and-recover-tomcat.py: New file.
716 2011-10-26 Ben Konrath <ben@bagu.org>
718 Display the correct number of data items in the pager.
722 https://bugzilla.gnome.org/show_bug.cgi?id=661441
724 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
725 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
726 The implementation is the same for both tables: Keep track of the
727 number of non-empty rows and fire and RowCountChangeEvent after the data has
729 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
730 custom Pager class that subclasses SimplePager to handle displaying
731 the correct number when empty rows have been added.
733 2011-10-26 Ben Konrath <ben@bagu.org>
735 Correct error in previous commit.
737 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
738 eventBus parameter from listView.setCellTable().
740 2011-10-26 Ben Konrath <ben@bagu.org>
742 Fix error in TODO comment.
744 * src/main/java/org/glom/web/client/activity/ListActivity.java:
746 2011-10-24 Ben Konrath <ben@bagu.org>
748 Create Notebook widgets to the details view.
750 This isn't finished just yet - I still need to create a reasonable
751 style to match the current theme.
753 * src/main/java/org/glom/web/client/Utils.java: Add method for
754 calculating the height of a widget. This is used in the Notebook class.
755 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
756 new constructor method in Group.
757 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
758 method for creating child widget that can be used by subclasses
759 like Notebook. New constructor that allows disabling the group
760 titles - Notebooks don't set a group title for their child groups.
761 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
762 to make Notebooks using GWT's TabLayoutPanel.
763 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
764 constructor that allows disabling the group titles.
765 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
766 LayoutItemNotebook DTO.
767 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
768 DTO for Notebooks. It's just an empty class for now but we might need
769 it to transfer some specific information in the future.
771 2011-10-21 Ben Konrath <ben@bagu.org>
773 Add navigation buttons to related list tables.
775 * src/main/java/org/glom/web/client/OnlineGlomService.java:
776 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
777 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
778 method getSuitableRecordToViewDetails() for getting the table name
779 and primary key value for related list navigation buttons.
780 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
781 private cell renderer class to get the navigation information for
782 related list tables from the server. Extract the navigation
783 processing code from the details cell navigation and use it for the
784 related list navigation as well.
785 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
786 cell renderer class for the details open buttons. This was needed
787 because the related list navigation buttons and the list view
788 navigation buttons need to react differently when clicked.
789 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
790 the onEnterKeyDown() method because it's now overriden in the
791 subclasses that are specific to the related list tables and the list
793 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
794 the vertical size a little because the buttons add a bit of vertical
795 space to table. This is not a perfect solution because the vertical
796 size of with table fewer than 5 rows will be a little smaller.
797 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
798 changes in how navigation buttons are handled.
799 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
800 getSuitableRecordToViewDetails() using the new RelatedListNavigation
801 database access object.
802 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
803 to find the portal for a given relationship name from
804 RelatedListDBAccess. Add method to find a primary key field for a
806 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
807 Move code to find the portal for a given relationship name to
809 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
810 New file: database access object for getting the related list
811 navigation information (the table name and the primary key value).
812 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
813 DTO for transferring a table name to navigate to and a primary key
815 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
816 boolean and getter/setter to specifies if the related list should add
819 2011-10-24 Murray Cumming <murrayc@murrayc.com>
821 Use the master branch of java-libglom
823 * pom.xml: Depend on java-libglom 1.19 instead.
825 This is the master branch. See also the libglom-1-18 branch.
827 2011-10-11 Ben Konrath <ben@bagu.org>
829 Enable the open navigation button when the data has been set.
831 This avoids having active buttons that don't do anything when the data
834 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
836 2011-10-11 Ben Konrath <ben@bagu.org>
838 Use IsWidget interface for FlowTableItem.
840 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
841 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
843 2011-10-11 Ben Konrath <ben@bagu.org>
845 Remove GWT styling from open button in details view.
847 There are still some issues with how the details cell is arranged but
848 this should be made to match Glom 1.20. I'm going to leave fixing this
849 until I have Glom 1.20 up and running.
851 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
852 style name on open button.
853 * src/main/webapp/style.css: Move and edit details-navigation class.
854 Re-arrange some classes to make them appear in the same order as the
857 2011-10-07 Ben Konrath <ben@bagu.org>
861 * .gitignore: Ignore new cache directory.
862 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
863 * pom.xml: Change GWT and maven plugin to 2.4.0.
864 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
866 * src/main/java/org/glom/web/client/ClientFactory.java:
867 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
868 * src/main/java/org/glom/web/client/OnlineGlom.java:
869 Update source for API changes.
870 * utils/build-onlineglom-war.sh: Remove cache directory before the
873 2011-10-07 Ben Konrath <ben@bagu.org>
875 Add navigation buttons in the details view.
877 This isn't finished but I thought I'd commit what I have as it's a
878 pretty good start. I still need to:
880 1. Change the style so that it fits better into the current theme
881 2. Adjust the details cell to expand as much as possible.
883 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
884 click handlers to navigation buttons in the DetailsCells. Create a
885 refreshData() method to get just the data from the server without the
887 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
888 Update the tableSelector and browser title when the table name
889 changes without using the tableSelector.
890 * src/main/java/org/glom/web/client/ui/DetailsView.java:
891 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
892 getDetailsCells() to getCells(). Update variable names.
893 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
894 method to set click handler on navigation button. Rename a few
895 variables. Add navigation buttons where needed.
896 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
897 variables and methods.
898 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
899 navigation boolean and navigation table as required in the
901 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
902 variables for navigation along with getter/setter methods.
904 2011-10-07 Ben Konrath <ben@bagu.org>
906 Rename Field to DetailsCell.
908 This is a refactor-only commit. No functionality has been added or
911 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
912 Update variable and method names.
913 * src/main/java/org/glom/web/client/ui/DetailsView.java:
914 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
915 variable and method names.
916 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
918 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
919 variable and method names.
921 2011-10-07 Ben Konrath <ben@bagu.org>
923 Create separate methods for layout and data the details view.
925 This is a refactor-only commit. No functionality has been added or
928 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
929 private methods: setData(), createLayout().
931 2011-10-07 Ben Konrath <ben@bagu.org>
933 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
935 This is part of a change to get navigation buttons in the details view
936 but it should have been done this way from the start.
938 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
939 for method name change in TableSelectionView.
940 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
941 Create TableChangeEvent and set the browser title using the
942 TableSelectionView API.
943 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
944 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
945 Change getSelectedTable() to getSelectedTableName(). Add
946 getSelectedTableTitle().
948 2011-10-07 Ben Konrath <ben@bagu.org>
950 Use primaryKeyValue naming convention in constructor of DetailsPlace.
952 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
954 2011-10-07 Ben Konrath <ben@bagu.org>
956 Update TableChangeEvent to use newTableName naming convention.
958 This makes the class more consistent with GWT naming conventions.
960 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
961 Update for method name change in TableChangeEvent.
962 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
963 for method name change in TableChangeEvent.
964 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
965 newTableName variable and getter method. Make toDebugString()
968 2011-09-30 Ben Konrath <ben@bagu.org>
970 Disable the pager in the list tables when the data row count is less than the minimum.
972 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
973 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
975 2011-09-30 Ben Konrath <ben@bagu.org>
977 Add empty rows to the end of related list and list view tables.
979 I also extracted the cell rendering classes from the ListTable because
980 the code was becoming a little crazy with all the anonymous inner
981 classes. My plan is to use these cell rendering classes in the details
982 view as well so this refactor will be needed for that change.
984 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
985 set the row count in related list tables if the data has more rows
986 than the minimum number of rows visible.
987 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
988 row count in list view tables if the data has more rows than the
989 minimum number of rows visible.
990 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
991 for rendering TYPE_BOOLEAN cells. The code was extracted from the
993 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
994 for rendering TYPE_NUMERIC cells. The code was extracted from the
996 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
997 class for rendering cells with buttons in list views. The code was
998 extracted from the ListTable class.
999 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
1000 for rendering TYPE_TEXT cells. The code was extracted from the
1002 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1003 Add empty rows to the end of the data if required. Implement
1004 ListTable.getMinNumVisibleRows().
1005 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
1006 cell renderer code to public classes. Return null in
1007 Column.getValue() for empty rows. Add new abstract method:
1008 getMinNumVisibleRows(). Move code to set the row count of the list view
1009 table to ListViewImpl.
1010 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
1011 empty rows to the end of the data if required. Implement
1012 ListTable.getMinNumVisibleRows().
1015 2011-09-27 Ben Konrath <ben@bagu.org>
1017 Use GWT.log for client-side debugging statements.
1019 These are optimized out when deployed so I should have used this method
1020 in the first place. These statements will eventually be replaced with some sort
1021 of notification in the browser.
1023 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1024 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1025 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1026 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1027 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1029 2011-09-27 Ben Konrath <ben@bagu.org>
1031 Put tableselector on the right, back to list link on right.
1033 The idea is that the table selector is acting like a label for the
1034 currently displayed table so it should be placed below the document title. This
1035 puts the table title in a similar position to where it is in Glom.
1037 * mockups/details-contacts.html:
1038 * mockups/details-projects.html:
1039 * mockups/listview-contacts.html:
1040 * mockups/listview-projects.html:
1041 * mockups/style.css:
1042 Update mockups to match how the interfaces currently look.
1043 * src/main/webapp/style.css: Swap positions of backlink with the table
1044 selector. Add some space on the left side of the table selector to
1045 line things up with the document title.
1047 2011-09-27 Ben Konrath <ben@bagu.org>
1049 Add field colouring to details view.
1051 This change re-works how field colouring works. The colour formatting
1052 information is now set to the client with the layout information instead of
1053 with the data. This eliminates the need to send the same colour strings for
1054 data in list view column when colour information is set.
1056 In order to set an alternate colour for negative numeric values, the
1057 number is now sent to client and formatted with the GWT NumberFormat class.
1059 This change also fixes:
1061 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1063 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1064 internationalization framework which is needed for client side numeric
1066 * src/main/java/org/glom/web/client/Utils.java: New file for some
1067 client static utility methods.
1068 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1069 the DataItem object to the Field class. Use a utility method to
1070 create the foreignKeyValue string.
1071 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1072 alignment and text colours in the constructor. Add setData(DataItem)
1073 method. Remove setText(String) method.
1074 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1075 colour information to GlomTextCell. Create and use GlomNumberCell for
1076 rendering numbers. Use utility method to get the string for the
1077 primary key of the key provider. Re-work how the horizontal alignment
1079 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1080 formatting to layout information. Methods for converting the libglom
1081 formatting information were moved from DBAccess.
1082 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1083 numeric formatting (it's now done on the client side). Don't set text
1084 colours in DataItem. Move libglom formatting conversion methods to
1086 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1087 getters/setters for text colour information.
1088 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1089 for transferring the libglom NumericFormat information to the client.
1090 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1091 and getters/setters for: GlomNumericFormat, background colour and
1092 foreground colour strings.
1094 2011-09-26 Ben Konrath <ben@bagu.org>
1096 Simplify code that iterates through the LayoutGroup.
1098 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1100 2011-09-26 Ben Konrath <ben@bagu.org>
1102 Accept Eclipse formatting for OnlineGlomServiceAsync.
1104 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1106 2011-09-26 Ben Konrath <ben@bagu.org>
1108 Don't use the ListDBAccess classes to get the primary key layout information.
1110 This was causing a bug where the wrong index for the hidden primary key
1111 was being sent to the client.
1113 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1114 primary key while creating the LayoutGroup DTO. Create a
1115 LayoutItemField DTO for hidden primary keys. Don't use the
1116 RelatedListDBAccess because it was only used for getting the primary
1118 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1119 access modifier from public to protected for getPrimaryKeyField() and
1120 getPrimaryKeyLayoutItemField().
1121 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1122 abstract method getExpectedResultSize() because RelatedListDBAccess
1123 doesn't have enough info to implement it.
1124 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1125 Remove @Override for getExpectedResultSize().
1126 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1127 Remove method getExpectedResultSize().
1129 2011-09-23 Ben Konrath <ben@bagu.org>
1131 Log which layout (list or details) the ignored item is from.
1133 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1135 2011-09-23 Ben Konrath <ben@bagu.org>
1137 Remove annotations that turn off code formatting in DataItem.
1139 * src/main/java/org/glom/web/shared/DataItem.java:
1141 2011-09-23 Ben Konrath <ben@bagu.org>
1143 Rename GlomField to DataItem and update associated methods.
1145 This is a rename-only refactor. No functionality has been added or
1148 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1149 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1150 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1151 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1152 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1153 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1154 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1155 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1157 * src/main/java/org/glom/web/server/database/DBAccess.java:
1158 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1159 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1160 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1161 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1162 * src/main/java/org/glom/web/shared/DataItem.java:
1163 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1164 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1166 2011-09-23 Ben Konrath <ben@bagu.org>
1168 Rename GlomDocument to DocumentInfo and update associated methods.
1170 This is a rename-only refactor. No functionality has been added or
1173 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1174 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1175 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1176 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1177 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1178 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1179 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1181 2011-09-20 Ben Konrath <ben@bagu.org>
1183 Require java-libglom 1.17.3.
1185 This picks up the fix for the seg fault problem with the Scenes table
1186 in the Openismus Film Manager example.
1190 2011-09-20 Ben Konrath <ben@bagu.org>
1192 Change the way sort clause is added for primary key when no sort clause is requested.
1194 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1195 before the sort clause is created. When a sort clause is not requested, the
1196 sort clause is created by finding the primary key in the LayoutFieldVector
1199 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1201 2011-09-20 Ben Konrath <ben@bagu.org>
1203 Log error message if no documents are found in the configured directory.
1205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1206 Extract the glom file extension string to a private static final class
1207 variable (mostly as syntactic sugar). Accept a minor formatting change.
1208 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1209 the example glom.document.directory configuration property to make it
1210 more clear that it can any directory, not just the home directory.
1212 2011-09-18 Ben Konrath <ben@bagu.org>
1214 Add related lists to details view.
1216 The related list table has support for paging and sorting just like the
1217 table in the list view.
1219 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1220 SQL queries for the related list tables.
1221 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1222 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1223 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1224 Rename getList methods to getListView and add comments. Remove
1225 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1226 it being unused. Add methods: getDetailsLayoutAndData(),
1227 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1228 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1229 Create the layout and set the data for the fields in one async call
1230 instead of two. Create related lists where appropriate.
1231 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1232 for method name changes in OnlineGlomService.
1233 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1234 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1235 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1237 * src/main/java/org/glom/web/client/ui/ListView.java:
1238 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1239 tableName from setCellTable(). Create a ListViewTable instead of
1241 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1242 represent a data field in the details view.
1243 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1244 from addDetailsCell() to Field class. Keep track of the Fields and
1245 Portals in the details view.
1246 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1247 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1248 and add a method to get it. Add method to set the contents of the
1250 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1251 New class for related list tables. This class has the data provider
1252 for the related list table.
1253 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1254 abstract class which is the base class for the ListViewTable and the
1256 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1257 New class for list view tables. This class has the data provider for
1258 the list view table.
1259 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1260 methods for related list tables. Add more information to the
1261 LayoutItemField and LayoutItemPortal DTOs.
1262 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1263 Remove debugging print statement.
1264 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1265 Remove debugging print statements. Add primary key field to SQL count
1267 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1268 Remove unnecessary LayoutFieldVector parameter from
1269 getResultSizeOfSQLQuery() method.
1270 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1271 New class for related list table database access.
1272 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1273 class that is a wrapper DTO for details view layout and data.
1274 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1275 new 'fromField' string to this DTO.
1276 * src/main/webapp/style.css: Remove bottom margin and override top
1279 2011-09-15 Ben Konrath <ben@bagu.org>
1281 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1283 This sets things up to make it easier to add the data retrieval for
1284 related lists (portals). No user noticeable changes were made with
1287 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1288 class has the code to retrieve the layouts and access the
1289 database using the new database helper classes.
1290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1291 Most of the functionality has been removed from this class. This
1292 class now represents the public interface for the client side
1293 code. It also deals with configuring the servlet and cleaning
1294 things up when the servlet is stopped.
1295 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1296 of static methods into this utility class.
1297 * src/main/java/org/glom/web/server/database/DBAccess.java:
1298 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1299 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1300 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1301 These classes have the database retrieval code. The class hierarchy
1302 has been setup to make it easy to reuse code for similar
1305 2011-09-06 Ben Konrath <ben@bagu.org>
1307 Create separate classes for list table code and the data provider.
1309 As part of this refactor, I also split up the code a bit to make it
1312 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1313 table code to two new classes (below).
1314 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1315 with code from ListViewImpl.
1316 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1317 New file with code from ListViewImpl.
1319 2011-09-06 Ben Konrath <ben@bagu.org>
1321 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1323 This fixes the LayoutItemPortal DTO to match the libglom layout object
1326 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1328 2011-09-01 Ben Konrath <ben@bagu.org>
1330 Set title of Portals in the Details View.
1332 * pom.xml: Bump required version of java-libglom to 1.17.1.
1333 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1334 widget creation to its own class. Add comments to constructor.
1335 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1336 The code is mostly from the Group class with the title now set.
1337 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1338 title of Portal. Update some comments. Fix some code formatting.
1340 2011-09-01 Ben Konrath <ben@bagu.org>
1342 Remove TODO comment for the flow table column width.
1344 The flow table column width is working correctly and doesn't need to be
1345 changed. See this mailing list post for more info:
1347 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1349 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1351 2011-08-27 Ben Konrath <ben@bagu.org>
1353 Add document title (database name) to top of the browser page.
1355 I added the document title to the TableSelecitonView but that will
1356 change if / when we add a view that doesn't require table selection.
1358 * mockups/details-contacts.html:
1359 * mockups/details-projects.html:
1360 * mockups/listview-contacts.html:
1361 * mockups/listview-projects.html:
1362 * mockups/style.css: Add document title to mockups to keep things
1364 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1365 sizes to account for the document title.
1366 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1367 Set the document title when it has been retrieved from the server.
1368 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1369 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1370 and implement setDocumentTitle(String) method.
1371 * src/main/webapp/style.css: Add ID for document title style.
1373 2011-08-25 Ben Konrath <ben@bagu.org>
1375 Add NavigationType enum to LayoutItemPortal DTO.
1377 This is the start of adding support for Portals to the Details View.
1379 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1380 LayoutItem_Portal.navigation_type enum from libglom to
1381 LayoutItemPortal.NavigationType enum.
1382 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1383 NavigationType enum, field for storing the NavigationType and getter
1386 2011-08-25 Ben Konrath <ben@bagu.org>
1388 Implement the flow table layout in the Details View.
1390 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1391 FlowTable to Group to account for the renamed class.
1392 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1393 File. This is a container widget that implements the Glom details view
1394 flow table behaviour.
1395 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1396 org/glom/web/client/ui/FlowTable.java.
1397 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1398 so that the size of the subgroups are a closer match to the size of
1399 the Glom subgroups. This makes the flowtable layout match the layout
1400 in Glom for the Music Collection example file.
1402 2011-08-16 Ben Konrath <ben@bagu.org>
1404 Create container element for LayoutItemPortal in Details View.
1406 This will help me develop the layout for the FlowTable.
1408 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1409 fieldPanel variable to detailsCell.
1411 2011-08-15 Ben Konrath <ben@bagu.org>
1413 Set the height of the data element in the Details View.
1415 I changed the InlineLabels (text in a span element) to Labels (text in
1416 a div element) so that I could set the height of the details-data
1417 elements instead of the details-cell parent elements. This allows the
1418 the details-data element to display the correct height if style is
1419 applied that shows the height.
1421 This change has the added benefit of allowing the order of the labels
1422 and data elements to be changed for right-to-left languages.
1424 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1425 InlineLabels to Labels.
1426 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1427 InlineLabels to Labels. Set the height of the data element.
1428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1429 multiline text height in the Formatting DTO.
1430 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1431 for multiline height along with getter and setter methods.
1432 * src/main/webapp/style.css: Adjust style to account for the change
1433 from span elements to div elements in the details cell.
1435 2011-08-15 Ben Konrath <ben@bagu.org>
1437 Make the List View appearance match the mockups.
1439 It doesn't match exactly but it's much better than it was.
1441 * mockups/listview-contacts.html: Remove unused css classes.
1442 * mockups/listview-projects.html: Remove unused css classes.
1443 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1444 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1445 for mainPanel instead of VerticalPanel (table). Set style name on
1446 CellTable. Set style name on Details column. Right-align Details
1448 * src/main/webapp/style.css: Adjust properties to match the mockups.
1450 2011-08-12 Ben Konrath <ben@bagu.org>
1452 Add better support for subgroups in the details view.
1454 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1455 changed FlowTable constructor.
1456 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1457 support for subgroups and subgroup-titles.
1458 * src/main/webapp/style.css: Add CSS class for subgroups and
1461 2011-08-12 Ben Konrath <ben@bagu.org>
1463 Return the top level LayoutGroup title.
1465 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1467 2011-08-11 Ben Konrath <ben@bagu.org>
1469 Make the TableSelector header match the mockup.
1471 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1472 the layout panel. Properly lineup the table selection header with
1473 the list and details view.
1474 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1475 margin around the details view.
1476 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1477 Rename listBox variable to tableSelector. Set id for the style sheet.
1478 Use a FlowPanel instead of a HorizontalPanel.
1479 * src/main/webapp/style.css: Add properties to make the TableSelector
1480 box match the mockups.
1482 2011-07-13 Ben Konrath <ben@bagu.org>
1484 Update install script for java-libglom version change.
1486 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1489 2011-07-13 Ben Konrath <ben@bagu.org>
1491 Add support sub-group in the details view.
1493 I also removed the code that special-cased the default details view
1496 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1498 I still have to make a proper flowtable.
1500 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1501 Don't special-case default details view layout.
1502 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1503 addLayoutField() as I'm going to use it.
1504 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1505 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1507 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1508 extracted from DetailsViewImpl.GroupPanel. Add support for
1510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1511 column count when getting the details layout.
1513 2011-07-12 Ben Konrath <ben@bagu.org>
1515 Set browser title with database and table titles.
1517 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1518 Set the browser title when the table changes and when the activity
1520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1521 title when retrieving document info (the GlomDocument object).
1522 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1523 with getter and setter methods. Remove unused convenience constructor.
1524 Use default code formatting.
1526 2011-07-12 Ben Konrath <ben@bagu.org>
1528 Ignore LayoutItemPortals in the details view.
1530 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1533 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1534 LayoutItemPortal layout objects.
1535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1536 LayoutItemPortal objects when retrieving the details layout.
1537 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1538 file. This is an empty class and just used to get type information for
1541 2011-07-12 Ben Konrath <ben@bagu.org>
1543 Use java-libglom 1.17.0.
1547 2011-07-11 Ben Konrath <ben@bagu.org>
1549 Remove "Table:" label from table selector.
1551 This matches a recent change in the Glom UI.
1553 * mockups/details-contacts.html:
1554 * mockups/details-projects.html:
1555 * mockups/listview-contacts.html:
1556 * mockups/listview-projects.html: Remove the "Table:" label from the
1558 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1560 2011-07-11 Ben Konrath <ben@bagu.org>
1562 Add main groups to the details view.
1564 This makes things look a little nicer in the details view. The next step
1565 is to implement the flowtable.
1567 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1568 resources from the standard gwt css theme. Standard.css is now
1569 included in OnlineGlom.html so that the online glom css rules have
1570 precedence over the gwt theme.
1571 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1572 the whole LayoutGroup to the DetailsView instead of just the titles.
1573 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1574 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1575 details layout with a helper class (GroupPanel). I might extract this
1576 class when I make the full flowtable.
1577 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1578 string as default so I don't have to worry about NPEs when processing
1580 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1581 note beside OnlineGlom.gwt.xml above).
1582 * src/main/webapp/style.css: Add default font-size to body to override
1583 the font-size set by the standard theme. Don't use h2 tags for
1584 group-title. Create new details-cell class.
1586 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1588 ConfiguredDocument: Set the port number too.
1590 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1591 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1592 Glom document. Presumably this worked sometimes so far because there is a
1593 default port number.
1595 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1597 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1599 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1600 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1601 correct, though we should throw an exception too.
1603 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1605 Fix a addDocuemnt typo.
1607 * src/main/java/org/glom/web/shared/Documents.java
1608 (Documents.addDocuemnt): Rename to addDocument().
1609 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1610 (OnlineGlomServiceImpl.getDocuments): Adapt.
1612 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1614 Slightly improved log output when connection fails.
1616 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1617 (ConfiguredDocument.setUsernameAndPassword):
1618 We don't know for sure if it' the username/password that's wrong, so
1619 rephrase the message.
1620 Also ouput the exception message, though it's generic in this case.
1622 2011-07-08 Ben Konrath <ben@bagu.org>
1626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1627 added braces to a one line if statement because the Eclipse formatter
1628 was getting confused.
1630 2011-07-07 Ben Konrath <ben@bagu.org>
1632 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1634 These should really be two separate tasks but I counldn't get things to
1635 work with GWT 2.2.0 and Eclipse 3.7.
1639 * .settings/org.eclipse.jdt.core.prefs:
1640 * .settings/org.eclipse.jdt.ui.prefs:
1641 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1642 * .settings/org.eclipse.m2e.core.prefs:
1643 Add new config files. Update current files. Remove references to the
1644 webtools plugins as we're not using any of the webtools features.
1645 * .gitignore: Add logs directory which is created when running with
1647 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1648 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1649 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1651 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1653 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1655 onlineglom.properties: Add explanatory comments.
1657 * src/main/resources/onlineglom.properties: Also change the default user
1658 from ben to someuser, to avoid the risk of people thinking we just
1659 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1661 2011-06-28 Ben Konrath <ben@bagu.org>
1663 Use filename in Log for incorrect passwords.
1665 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1666 getFileName(String) method to get the filename from the URI.
1668 2011-06-28 Ben Konrath <ben@bagu.org>
1670 Add the table name to the URL token for the ListPlace.
1672 This makes things consistent between the DetailsPlace and the
1673 ListPlace. It also allows the the ListPlace to be bookmarked.
1675 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1676 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1677 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1678 Remove getDefaultListLayout(). The default layout is now returned
1679 by the getListLayout() method when the table name is an empty string.
1680 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1681 Add table name field. Change to a new ListPlace when the table
1682 has been changed. Use getListLayout() for getting the default
1684 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1685 Add table name field. Set the correct table name in the list box
1686 when loading from bookmark. This corrects a problem for the
1688 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1689 Move table name to super-class (HasSelectableTable). Move document
1690 and table URL keys to super-class in HasSelectableTable.
1691 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1692 Add table name field. Add Tokenizer class with URL key common to
1693 the subclasses (DetailsPlace and ListPlace).
1694 * src/main/java/org/glom/web/client/place/ListPlace.java:
1695 Add table name. Add code to parse the URL token.
1696 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1697 Update ListPlace construction with empty table name string.
1698 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1699 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1700 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1701 Update ListPlace construction with table name string.
1702 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1703 Change defaultTableName field to tableName to reflect how it's now
1704 used. Update the getter and setter methods.
1706 2011-06-28 Ben Konrath <ben@bagu.org>
1708 Enable the table selector in the DetailsView.
1710 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1711 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1712 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1713 Remove getDefaultDetailsLayout(). The default layout is now returned
1714 by the getDetailsLayout() method when the table name is an empty
1716 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1717 event handler for table change event. Change to using
1718 getDetailsLayout() for the default details layout.
1719 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1721 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1722 when navigating to the details place.
1724 2011-06-27 Ben Konrath <ben@bagu.org>
1726 Use filename based unique document ID in URL and for RPC.
1728 The document ID is the glom document name with spaces (' ') replaced
1729 with pluses ('+') and without the .glom extension.
1731 This change is mostly a string substitution of 'documentTitle' for
1732 'documentID'. The only code change is the addition of a Documents DTO to get the
1733 filename to document title mappings as indicated below.
1735 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1736 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1737 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1738 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1739 Use Documents DTO to create the document links in the document
1741 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1742 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1743 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1744 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1745 * src/main/java/org/glom/web/client/place/ListPlace.java:
1746 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1747 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1748 * src/main/java/org/glom/web/client/ui/ListView.java:
1749 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1750 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1751 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1752 * src/main/java/org/glom/web/server/Log.java:
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1754 getDocumentTitles() to getDocuments() and return the Documents DTO.
1755 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1756 transferring the filename to document title mappings.
1758 2011-06-25 Ben Konrath <ben@bagu.org>
1760 Make the authentication popup work again.
1762 This bug was introduced when I extracted ConfiguredDocument to its own class.
1764 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1765 correct success / fail status in setUsernameAndPassword().
1767 2011-06-25 Ben Konrath <ben@bagu.org>
1769 Use filename as unique key for configuring database usernames and passwords.
1771 This replaces the use of the Glom document title which could change
1772 depending on the locale. Thanks to Murray Cumming for pointing out this
1775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1776 * src/main/resources/onlineglom.properties:
1778 2011-06-24 Ben Konrath <ben@bagu.org>
1780 Pass primary key value to DetailsView.
1782 This enables the DetailsView to load the correct data.
1784 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1785 primary key value field and set in constructor. Pass primary key
1786 value to getDetailsData().
1787 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1788 variables for document title and primary key value.
1789 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1790 key value to the DetailsPlace.
1792 2011-06-24 Ben Konrath <ben@bagu.org>
1794 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1796 This allows the primary key to be retrieved by the Details button. This
1797 functionality has not been implemented yet but it's in the works.
1799 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1800 the LayoutGroup result to ListView.setCellTable instead of all of its
1801 fields individually.
1802 * src/main/java/org/glom/web/client/ui/ListView.java:
1803 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1804 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1805 get the primary key for the table.
1806 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1807 index of the primary key in the LayoutGroup accounting for hidden
1808 primary keys. Rename getJavaNumberFormat() to
1809 convertToJavaNumberFormat() for consistency. Cleanup / add some
1811 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1812 field for primary key index and a field to indicate whether the
1813 primary key is hidden or not.
1815 2011-06-23 Ben Konrath <ben@bagu.org>
1817 Rename getTableData methods to getListData.
1819 This is a rename refactor for consistency with other methods.
1821 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1822 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1823 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1826 2011-06-23 Ben Konrath <ben@bagu.org>
1828 Extract the ConfiguredDocument innerclass into its own class.
1830 This makes the servlet code more object oriented.
1832 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1833 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1834 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1835 new ConfiguredDocument class.
1837 2011-06-21 Ben Konrath <ben@bagu.org>
1839 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1841 This makes things more inline with how libglom works and reduces code
1842 duplication. This refactor lays the groundwork for adding the primary key to
1843 the LayoutGroup object.
1845 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1846 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1847 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1848 Change method names to getListLayout and getDefaultListLayout for
1849 consistency. Use LayoutGroup as the DTO for the list layout instead of
1850 ColumnInfo and LayoutListTable.
1851 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1852 new method names along with the LayoutGroup object for transferring the
1854 * src/main/java/org/glom/web/client/ui/ListView.java:
1855 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1856 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1857 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1859 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1860 Replaced with LayoutGroup.
1861 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1862 expectedResultSize and defaultTableName fields which are needed for
1864 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1865 type field which is needed for the list layout but will also be
1866 useful for the details layout as things progress.
1867 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1868 Make class abstract. Remove the unnecessary
1869 getFormattingHorizontalAlignment method. Add setFormatting method.
1871 2011-06-16 Ben Konrath <ben@bagu.org>
1873 Add scripts for building and installing war.
1875 These will help when updating OnlineGlom but they're also good
1876 supplemental documentation of the build and deployment proceeding.
1878 * utils/build-onlineglom-war.sh: New file.
1879 * utils/install-onlineglom-war.sh: New file.
1881 2011-06-16 Ben Konrath <ben@bagu.org>
1883 Create wrapper class to create consistent log messages.
1885 I wrapped methods in the Log class of gwt-log to add the method names
1886 from the servlet and create consistent formatting of the document title
1887 and table names in the log messages.
1889 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1890 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1891 log methods to use methods from wrapped Log class.
1893 2011-06-16 Ben Konrath <ben@bagu.org>
1895 Remove superfluous conditional return.
1897 Thanks to Murray Cumming for pointing this out!
1899 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1901 2011-06-15 Ben Konrath <ben@bagu.org>
1903 Return an ArrayList of LayoutGroups for the Details layout.
1905 This corrects a problem with the details layout as it can have more
1906 than one top level LayoutGroup.
1908 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1909 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1910 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1911 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1912 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1913 with ArrayList of LayoutGroups for the details view layout.
1914 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1915 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1916 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1917 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1918 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1919 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1921 2011-06-14 Ben Konrath <ben@bagu.org>
1923 Use cast_dynamic method to determine the libglom LayoutItem type.
1925 This is better than finding the LayoutItem type by using the string
1926 returned from the get_part_type_name() method.
1928 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1930 2011-06-14 Ben Konrath <ben@bagu.org>
1932 Add method names to log entries in the servlet.
1934 This helps when tracking down deployment problems.
1936 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1938 2011-06-14 Ben Konrath <ben@bagu.org>
1940 Add data to the DetailsView using a hard-coded primary key value.
1942 The layout and functionality of the DetailsView is not complete. This
1943 is just a checkpoint so the patch doesn't get too big.
1945 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1946 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1947 Add getDetailsData() servlet method.
1948 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1949 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1950 LayoutFields are added to the DetailsView.
1951 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1952 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1953 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1954 take the string for the title instead of the object.
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1956 Add implementation getDetailsData() along with some private helper
1958 * src/main/webapp/style.css: Add padding to details-data class. Add a
1959 details-label class with the same padding as the details-data class.
1961 2011-06-03 Ben Konrath <ben@bagu.org>
1963 Use presenter.goTo() to change to the DetailsPlace.
1965 This will make things easier when we need to open the DetailsView with
1966 data specific to the row that was clicked.
1968 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1970 2011-06-02 Ben Konrath <ben@bagu.org>
1972 Add CSS file from mockups.
1974 I'm adding this now because it's going to be useful to have when
1975 developing the DetailsView. The TableSelectionView and ListView aren't
1978 * src/main/webapp/OnlineGlom.html:
1979 * src/main/webapp/style.css:
1981 2011-06-02 Ben Konrath <ben@bagu.org>
1983 Use String.isEmpty() to check for empty string.
1985 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1987 2011-06-02 Ben Konrath <ben@bagu.org>
1989 Display main layout group titles in the DetailsView.
1991 This is the start of the DetailsActivity/DetailsView implementation.
1993 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1994 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1995 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1996 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1997 Get the layout information for the details view from the server and set
1998 the main layout group titles.
1999 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2000 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2001 Add addLayoutGroup() and addLayoutField() methods. This are just
2002 temporary methods for creating the the details view that will change
2004 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2005 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
2007 * src/main/java/org/glom/web/shared/layout/Formatting.java:
2008 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
2009 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
2010 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
2011 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
2012 Data Transfer Objects that mimic the libglom object structure. These are
2013 used for transferring the details layout but could also be used for
2014 transferring the list layout.
2016 2011-05-27 Ben Konrath <ben@bagu.org>
2018 Reset the AuthenticationPopup when clearing the ListView.
2020 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2022 2011-05-27 Ben Konrath <ben@bagu.org>
2024 Fix problem with onlineglom.properties file loading.
2026 The old way worked in Eclipse but not on the server. Loading the
2027 onlineglom.properties file now works in Eclipse and on the server.
2029 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2031 2011-05-24 Ben Konrath <ben@bagu.org>
2033 Update gwt-log from 3.1.0 to 3.1.2.
2035 Gwt-log 3.1.0 has been marked as depreciated.
2039 2011-05-24 Ben Konrath <ben@bagu.org>
2041 Add comment to ListActivity.goTo() method.
2043 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2045 2011-05-24 Ben Konrath <ben@bagu.org>
2047 Remove FIXME in convertGdkColorToHtmlColour()
2049 The Gdk::Color value returned by libglom is 16-bits per channel on both
2050 64 and 32-bit platforms.
2052 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2054 2011-05-19 Ben Konrath <ben@bagu.org>
2056 Improve performance of initial ListView load.
2058 I removed a round trip to the server for getting the default table name
2059 and then requesting information about that table. This also removes a potential
2060 problem with the table change handler not being setup in time to receive the
2061 table change event from the ListActivity.
2063 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2064 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2065 getDefaultLayoutListTable() method. Improve comments.
2066 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2067 getDefaultLayoutListTable() method instead of firing a table change
2068 event to get the table to load.
2069 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2070 implementation of getDefaultLayoutListTable() method.
2071 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2074 2011-05-19 Ben Konrath <ben@bagu.org>
2076 Override toDebugString() in TableChangeEvent.
2078 This is useful to have for debugging.
2080 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2082 2011-05-19 Ben Konrath <ben@bagu.org>
2084 Add a "Back to List" link when at the DetailsPlace.
2086 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2087 Populate the CellTable based on the selected table of the ListBox if
2088 it's set otherwise use the default table. This allows the "Back to
2090 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2091 Remove Place from constructors. Add a setPlace() method. Add
2092 goToPlace() method. Set class as presenter for TableSelectionView.
2093 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2094 Use the same TableSelectionActivity when switching between the List and
2096 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2097 Subclass the new HasSelectableTablePlace. This removes some duplicate
2099 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2100 New class to represent Places that display the TableSelectionView.
2101 * src/main/java/org/glom/web/client/place/ListPlace.java:
2102 Subclass the new HasSelectableTablePlace. This removes some duplicate
2104 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2105 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2106 Add Presenter interface. Add setBackLinkVisible() method. Add
2107 setBackLink() method.
2109 2011-05-18 Ben Konrath <ben@bagu.org>
2111 Enable the "Details" buttons.
2113 Right now only an empty details view is displayed.
2115 * src/main/java/org/glom/web/client/ClientFactory.java:
2116 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2117 Add DetailsView to ClientFactory.
2118 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2119 A basic activity for the details view.
2120 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2121 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2123 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2124 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2126 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2127 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2128 unnecessary super() in constructor.
2129 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2130 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2131 really shouldn't create a new TableSelectionActivity for both the ListPlace
2132 and the DetailsPlace so this should be considered a temporary solution.
2133 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2134 New file. Represents a URL for the details view.
2135 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2136 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2137 A basic details view interface and implementation.
2138 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2139 Enable the "Details" buttons.
2141 2011-05-12 Ben Konrath <ben@bagu.org>
2143 Use a LayoutPanel with multiple display areas for main layout.
2145 This is mostly a refactor in that there are no changes from the user
2146 point of view. These changes are required so that we can swap out the list view
2147 with the details view when the user clicks the "Details" button.
2149 * src/main/java/org/glom/web/client/ClientFactory.java:
2150 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2151 OnlineGlomView. Add TableSelectionView, ListView and
2152 AuthenticationPopup.
2153 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2154 for main layout. Add display regions for main activities. Add
2155 activity manager for for main activities.
2156 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2157 file from parts of the deleted OnlineGlomActivity.
2158 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2159 New file from parts of the deleted OnlineGlomActivity.
2160 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2161 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2162 New files for app wide table change event.
2163 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2164 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2165 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2166 Activity mappers for the main activities replace the deleted app-wide
2168 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2169 Fix a spelling error in he comment.
2170 * src/main/java/org/glom/web/client/ui/ListView.java:
2171 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2172 Renamed from LayoutListView and modified for MVP. This still not a
2173 proper dumb view as prescribed by the MVP pattern but it works for now.
2174 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2175 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2176 New widget stripped out of the deleted OnlineGlomView.
2177 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2178 Remove hack that is fixed by this patch.
2180 2011-05-06 Ben Konrath <ben@bagu.org>
2182 Rename OnlineGlomPlace to ListPlace.
2184 The only change besides the rename is that url will now display #list
2185 instead of #Document.
2187 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2188 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2189 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2190 * src/main/java/org/glom/web/client/place/ListPlace.java:
2191 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2193 2011-05-06 Ben Konrath <ben@bagu.org>
2195 Use Presenter for app navigation.
2197 This is the proper way to deal with Place (URL) changes with the MVP
2200 * src/main/java/org/glom/web/client/ClientFactory.java:
2201 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2202 PlaceHistoryMapper and PlaceHistoryHandler.
2203 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2204 PlaceHistoryMapper and PlaceHistoryHandler.
2205 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2206 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2207 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2208 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2209 Add Presenter interface and setPresenter methods. Rename addHyperLink
2210 to addDocumentLink taking only the document title as a parameter.
2212 2011-04-14 Ben Konrath <ben@bagu.org>
2214 Prompt for db username/password if they haven't been set.
2216 This is implemented with a popup widget that is contained within the
2217 OnlineGlomView and managed by the OnlineGlomActivity.
2219 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2220 methods for checking and setting the database username and password.
2221 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2222 new methods for checking and setting the database username and
2224 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2225 Display authentication popup if the JDBC connection to the database
2226 has not been authenticated.
2227 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2229 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2230 for dealing with the authentication popup.
2231 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2232 Implement the methods for dealing with the authentication popup.
2233 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2234 try to executed queries if the database connection hasn't been
2235 authenticated. Implement methods for checking and setting the
2236 database username and password.
2238 2011-04-12 Ben Konrath <ben@bagu.org>
2240 Make log messages a little clearer.
2242 Add a dash betweeen the document title and the table name.
2244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2246 2011-04-12 Ben Konrath <ben@bagu.org>
2248 Protect against NPEs when cleaning up database resources.
2250 While this isn't strictly necessary because the exception is caught,
2251 not protecting against the NPEs makes it harder to find the real error
2254 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2256 2011-04-12 Ben Konrath <ben@bagu.org>
2258 Move configuration of the servlet to the constructor.
2260 The servlet will be initialized even if the database authentication
2261 information is not set or correct. I still need to add the UI for prompting
2262 the user for the authentication information when it's required.
2264 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2265 javadocs for getDocumentTitles() method.
2266 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2267 Set error message when RPC fails.
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2269 glom files directory from the configuration file. Try to set the
2270 database authentication information for the specific document if it's
2271 set and works otherwise try to use the global authentication
2272 information set for the directory.
2273 * src/main/resources/onlineglom.properties: Moved from
2274 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2275 Added detailed comments for the new keys.
2277 2011-04-11 Ben Konrath <ben@bagu.org>
2279 Remove unnecessary @Override in DocumentSelectionViewImpl.
2281 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2283 2011-04-11 Ben Konrath <ben@bagu.org>
2285 Remove center alignment in DocumentSelectionView.
2287 The title element is still centred but the document titles and bottom
2288 sentence are both left-aligned.
2290 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2292 2011-04-11 Ben Konrath <ben@bagu.org>
2294 Change 'Demo' naming convention to 'Document'.
2296 This is just a rename refactor with no functional changes to the code.
2298 * src/main/java/org/glom/web/client/ClientFactory.java:
2299 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2300 * src/main/java/org/glom/web/client/OnlineGlom.java:
2301 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2302 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2303 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2304 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2305 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2306 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2307 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2308 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2309 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2310 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2312 2011-04-08 Ben Konrath <ben@bagu.org>
2314 Remove FIXME from safeLongToInt() method.
2316 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2319 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2321 2011-04-08 Ben Konrath <ben@bagu.org>
2323 Display an error if no glom documents are found in the specified directory.
2325 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.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/server/OnlineGlomServiceImpl.java:
2330 2011-04-08 Ben Konrath <ben@bagu.org>
2332 Add copyright header to one more file ... oops.
2334 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2336 2011-04-08 Ben Konrath <ben@bagu.org>
2338 Add copyright header to files without it.
2340 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2341 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2342 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2343 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2344 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2345 * src/main/java/org/glom/web/shared/GlomField.java:
2347 2011-04-08 Ben Konrath <ben@bagu.org>
2349 Add support for accessing multiple glom documents in the servlet.
2351 This completes the demo selection functionality.
2353 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2354 document title to methods.
2355 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2356 document title to methods.
2357 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2358 Set browser window title when the activity starts. Correct name of
2359 document title variable.
2360 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2361 Set browser window title when the activity starts. Set the table
2362 selector change handler after table selector has been set. Clear the
2363 OnlineGlomView when the activity has been stopped.
2364 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2365 document title as the place token. Use "#Document:" instead of
2366 "#OnlineGlomPlace:" in the URL.
2367 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2368 Change heading to "Online Glom"
2369 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2370 document title in RPC methods.
2371 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2372 setDocumentTitle() method. Add clear() method.
2373 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2374 setDocumentTitle() method. Implement clear() method which removes the
2375 change handler on the ListBox, clears the ListBox and clears the
2377 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2378 Implement methods with document title. Keep track for the configured
2379 glom documents and their corresponding JDBC configurations in a hash
2380 table. This information is retrieved using the document title as the
2381 key in the hash table.
2382 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2383 document title field as it's no longer needed.
2385 2011-04-08 Ben Konrath <ben@bagu.org>
2387 Update the Eclipse JDT configuration.
2389 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2390 methods. Automatically add the copyright header to new files.
2392 2011-04-05 Ben Konrath <ben@bagu.org>
2394 Add new page for demo selection.
2396 This patch adds all the components required to view and start an
2397 OnlineGlom demo by clicking on the desired hyperlink. The user is
2398 able to return to the demo selection page with the browser's back
2399 button. I still need to modify the servlet to work with multiple
2400 documents so all demo links will load the file defined in the
2401 OnlineGlom.properties.
2403 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2404 This is only useful during development so we don't need to save it.
2405 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2406 get a reference to the DemoSelectionView.
2407 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2408 method to get a reference to the DemoSelectionView.
2409 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2410 default view to DemoSelectionView.
2411 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2412 to get glom document titles for glom files in a hard-coded directory.
2413 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2414 method to get glom document titles for glom files in a hard-coded
2416 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2417 Presenter for DemoSelectionView.
2418 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2419 for DemoSelectionView.
2420 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2421 Update for DemoSelectionView.
2422 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2423 Basic 'Place' implementation for the DemoSelectionView.
2424 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2425 The interface for the DemoSelectionView.
2426 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2427 The implementation of the DemoSelectionView.
2428 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2429 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2430 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2431 implementation of method to get glom document titles for glom files
2432 in a hard-coded directory.
2433 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2434 on longer being used.
2435 * src/main/webapp/glom.png: Glom logo.
2437 2011-04-05 Ben Konrath <ben@bagu.org>
2439 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2441 This is the forth and final commit of a refactor that will allow
2442 OnlineGlom to be used with multiple documents.
2444 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2445 Move RPC code from OnlineGlomViewImpl to this class.
2446 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2448 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2449 RPC code to the presenter class (the P in MVP).
2451 2011-04-04 Ben Konrath <ben@bagu.org>
2453 Start moving the existing OnlineGlom code to MVP.
2455 This work is based on the GWT MVP framework that is documented here:
2457 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2459 This is the third commit of a refactor that will allow OnlineGlom to
2460 be used with multiple documents.
2462 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2463 Interface for client factory which is used to get instances of various
2464 classes throughout the app.
2465 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2466 Implementation of client factory.
2467 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2468 initialize the MVP framework.
2469 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2470 New file. Activity manager for the main container widget. This is the
2472 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2473 Maps place (URL) to its corresponding activity.
2474 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2475 New file. This is just a place holder for a generated file.
2476 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2477 New file. Represents the URL for the main Online Glom app.
2478 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2479 for changes in LayoutListViewImpl.
2480 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2481 interface for View. Move code to OnlineGlomViewImpl class.
2482 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2483 file. Implementation of OnlineGlomView.
2484 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2485 Place resources. Use ClientFactoryImpl by default.
2487 2011-04-04 Ben Konrath <ben@bagu.org>
2489 Move View classes to their own package.
2491 This is the second commit of a refactor that will allow OnlineGlom to
2492 be used with multiple documents.
2494 * src/main/java/org/glom/web/client/OnlineGlom.java:
2495 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2496 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2498 2011-04-02 Ben Konrath <ben@bagu.org>
2500 Move UI code from the main module to its own class.
2502 This is the first commit of a refactor that will allow OnlineGlom to be
2503 used with multiple documents.
2505 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2506 references to OnlineGlom to OnlineGlomView.
2507 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2508 OnlineGlomView and instantiate it here.
2509 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2510 represents the main OnlineGlomView with one document.
2512 2011-04-01 Ben Konrath <ben@bagu.org>
2514 Fix formatting of gwt.xml and add DTD.
2516 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2518 2011-03-30 Ben Konrath <ben@bagu.org>
2520 Propperly convert gdkColor string to html colour string.
2522 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2524 2011-03-28 Ben Konrath <ben@bagu.org>
2526 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2528 This implementation matches
2529 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2530 readable and is not tied to Swig.
2532 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2534 2011-03-28 Ben Konrath <ben@bagu.org>
2536 Use read-only checkboxes for boolean field types.
2538 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2539 in the CellTable based on the field type. It currently only
2540 distinguishes between boolean and text columns but I'll need to add
2541 support for more types.
2542 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2543 column type in the ColumnInfo object. Add method to convert between the
2544 glom field type enum in ColumnInfo and the glom field type in libglom.
2545 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2547 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2548 getting and setting booleans.
2550 2011-03-25 Ben Konrath <ben@bagu.org>
2552 Don't get the Date twice from the ResultSet.
2554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2556 2011-03-25 Ben Konrath <ben@bagu.org>
2558 Cleanup code in the servlet.
2560 * TODO: Remove item about row count. Add item about testing row count
2561 query with large number of rows.
2562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2563 spelling mistakes, change method parameter to be consistent with
2566 2011-03-25 Ben Konrath <ben@bagu.org>
2568 Add server side logging with the gwt-log library.
2570 * .gitignore: Ignore the log file we're now producing.
2571 * TODO: Add a couple TODO item for logging.
2572 * pom.xml: Add gwt-log and log4j as a dependency.
2573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2574 logging of errors, warnings and some important info.
2575 * src/main/resources/log4j.properties: New file to configure log4j.
2577 2011-03-24 Ben Konrath <ben@bagu.org>
2579 Add a disable button for the Details view.
2581 * src/main/java/org/glom/web/client/LayoutListView.java:
2583 2011-03-22 Ben Konrath <ben@bagu.org>
2585 Use a count query to get the number of rows for the list view pager.
2587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2589 2011-03-22 Ben Konrath <ben@bagu.org>
2591 Add more TODO information about CellTable pager positioning.
2595 2011-03-19 Ben Konrath <ben@bagu.org>
2597 Add TODO item about CellTable pager positioning.
2601 2011-03-18 Ben Konrath <ben@bagu.org>
2603 Remove unneeded GlomFieldColumn class.
2605 This is just a small code cleanup.
2607 * src/main/java/org/glom/web/client/LayoutListView.java:
2609 2011-03-18 Ben Konrath <ben@bagu.org>
2611 Use cursor mode in the query that gets data for the list view.
2613 I still need to fix the potential memory problem when getting the row
2614 count for the list view.
2616 * TODO: Add note about testing memory usage with large data sets. Add
2617 item about fixing row counting with large data sets.
2618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2619 PostgreSQL JDBC driver into cursor mode when getting data for the
2622 2011-03-15 Ben Konrath <ben@bagu.org>
2624 Remove the GWT Container from the Eclipse build classpath.
2626 The GWT dependencies are set by Maven so this isn't needed.
2630 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2632 Added some earlier mockups to git, but not to the tarball dist.
2634 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2635 Openismus. These hopefully show how we might structure the HTML so that
2636 it can be styled easily with CSS. However, we probably need to adapt them
2637 for the CSS structure that GWT dictates for common widgets.
2639 2011-03-14 Ben Konrath <ben@bagu.org>
2641 Locate OnlineGlom.properties using the ServletContext.
2643 This is required to be able to locate the file in the deployed servlet.
2645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2646 Configure the database and glom document in in a helper method so
2647 that the ServletContext can be used to locate OnlineGlom.properties.
2648 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2649 src/main/webapp. This is the proper location for .properites files.
2651 2011-03-12 Ben Konrath <ben@bagu.org>
2653 Add note to README about why we're compiling down to obfuscated JavaScript.
2657 2011-03-11 Ben Konrath <ben@bagu.org>
2659 Use properties file to configure servlet.
2661 This allows people to change the glom file path, db username and db
2662 password without recompiling the code.
2664 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2665 * src/main/webapp/OnlineGlom.properties:
2667 2011-03-11 Ben Konrath <ben@bagu.org>
2669 Use table fields in layout list view if the layout list is not defined.
2671 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2672 Manually create a LayoutFieldVector for the query builder using the
2673 table fields when a layout list is not defined in the glom file.
2675 2011-03-11 Ben Konrath <ben@bagu.org>
2677 Only show FIXME string for images when there's an image.
2679 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2680 in this change are some small code cleanups.
2682 2011-03-11 Ben Konrath <ben@bagu.org>
2684 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2686 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2688 2011-03-11 Ben Konrath <ben@bagu.org>
2690 Correctly set the index of the default table.
2692 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2693 Correctly set the index of the default table. Add commented out example
2696 2011-03-10 Ben Konrath <ben@bagu.org>
2698 Add comment to pom.xml about the previous change.
2700 * pom.xml: Add comment about the deployment issue so that it's obvious
2701 why java-libglom is set to the provided scope.
2703 2011-03-10 Ben Konrath <ben@bagu.org>
2705 Change java-libglom dependency from compile to provided in pom.xml.
2707 Since java-libglom uses jni it can only be loaded once and therefore
2708 must be placed in $CATALINA_HOME/lib and not included in each war.
2709 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2710 More information about this issue can be found in the Tomcat 6 release
2711 notes in the "JNI Based Applications" section:
2713 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2715 * README: Remove note about this issue. Deployment info should really
2716 be on the wiki anyway so I'll add it right now.
2717 * pom.xml: Change java-libglom dependency from compile to provided so
2718 that it's copied in to the packaged war.
2720 2011-03-09 Ben Konrath <ben@bagu.org>
2722 Change to using a neutral locale for currency, date and time formatting.
2724 This solves the problem of currency values being represented without a
2725 space between the currency code and the number (e.g. "EUR5.89" is now
2726 represented as "EUR 5.89"). More work is required when we implement
2727 a locale preference setting.
2729 * TODO: Add note about currency formatting issues with different
2731 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2732 to using the neutral ROOT locale.
2734 2011-03-09 Ben Konrath <ben@bagu.org>
2736 Add support for currency codes that are not ISO 4217 codes.
2738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2739 the currency code defined in the glom file when it's not 3 characters
2740 long or when Java doesn't recognize the string as an ISO 4217 code.
2742 2011-03-08 Ben Konrath <ben@bagu.org>
2744 Remove test classes, launch configurations and configuration.
2746 The test stuff was getting in the way when creating the war. To make
2747 the war file you can now do 'mvn clean package'. The packaged war file
2748 will be in the target directory.
2750 * .classpath: Remove unused classpathentry for tests and i18n.
2751 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2752 property. Don't run test or i18n goals when packaging the war.
2753 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2758 * OnlineGlomTest-dev.launch:
2759 * OnlineGlomTest-prod.launch:
2760 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2761 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2763 2011-03-07 Ben Konrath <ben@bagu.org>
2765 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2767 These fixes allow me to use 'mvn deploy' to create the war file.
2769 * .classpath: This generated config has been updated by Eclipse. This
2770 change was probably triggered by me updating from Eclipse 3.6.1 to
2772 * .gitignore: Add entry to ignore the directory
2773 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2774 * .project: The generated config has been updated by Eclipse. This
2775 change was probably triggered by me updating from Eclipse 3.6.1 to
2777 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2778 so that Eclipse doesn't complain
2779 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2780 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2781 'tests' directory to 'client' directory. This is the new
2782 gwt-maven-plugin convension.
2783 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2784 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2786 2011-03-07 Ben Konrath <ben@bagu.org>
2788 Add support for horizontal alignment in the LayoutList columns.
2790 * TODO: Remove item about horizontal alignment. Add item about
2791 improvements to ColumnInfo.
2792 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2793 alignment on the columns. Use ColumnInfo RPC object get the column
2794 title and horizontal alignment.
2795 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2796 LayoutListView creation with ColumnInfo RPC object.
2797 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2798 a ColumnInfo object for every LayoutList columnn. Convert the
2799 FieldFormatting.HorizontalAlignment to the correct
2800 ColumnnInfo.HorizontatlAlignment with the new
2801 getColumnInfoHorizontalAlignment helper method.
2802 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2803 to encapsulate column information like alignment and title. This
2804 could be used to set the colour instead of on a per cell field basis.
2805 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2806 column title storage and retrieval with ColumnInfo.
2808 2011-03-04 Ben Konrath <ben@bagu.org>
2810 Add support for column sorting.
2812 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2813 AsynDataProvider to be an anonymous inner class. Use new
2814 getSortedTableData RPC method when column sort is requested. Set all
2815 columns sortable and add an AsyncHandler to activate sorting in the
2817 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2818 method getSortedTableData(). Cleanup other method signatures.
2819 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2820 new method getSortedTableData(). Cleanup other method signatures.
2821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2822 Implement getSortedTableData() and getTableData() methods by using a
2823 private helper method with the appropriate parameters filled in. Use
2824 user supplied sort clause when supplied, otherwise fall back to
2825 sorting by the primary key. Move destroy() method to be underneath
2826 constructor for readability. Cleanup comments.
2828 2011-03-03 Ben Konrath <ben@bagu.org>
2830 Add support for colour text and colour backgrounds to the layout list cells.
2832 Only the cell backgrounds are coloured which leaves a gap between the
2833 cells that isn't coloured. I need to figure out a way to set
2834 'style=background-colour:' on the whole column rather than just the
2837 * TODO: Add a note about colouring the background of the whole column.
2838 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2839 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2840 render the coloured text and backgrounds. Use GlomField[] for the row type.
2841 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2843 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2844 GlomField[] for the row type.
2845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2846 GlomField[] for the row type. Set the text, text colour and background
2847 colour in the GlomField objects as specified in the glom document. Add
2848 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2849 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2850 the glom field text, foreground colour and background colour.
2852 2011-03-02 Ben Konrath <ben@bagu.org>
2854 Don't display hidden tables in the combo box.
2856 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2858 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2859 code to ignore hidden tables using ArrayLists for the table names and
2861 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2862 tableNames to use ArrayLists instead of String[]. Update getter and setter
2865 2011-03-01 Ben Konrath <ben@bagu.org>
2867 Add support for Date and Time number types.
2869 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2870 Implement formatting for Date and Time values. Change the default glom
2871 file to small business example.
2873 2011-03-01 Ben Konrath <ben@bagu.org>
2875 Add support for formatting glom types as specified in the glom file.
2877 Formatting isn't finished yet - I still need to add support for Date
2880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2881 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2882 checks for null values in JDBC cleanup code and catch all exceptions
2883 instead of just SQLExceptions.
2884 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2887 2011-03-01 Ben Konrath <ben@bagu.org>
2889 Use GWT 2.2.0 instead of 2.1.1.
2891 * pom.xml: Change GWT version numbers.
2893 2011-03-01 Ben Konrath <ben@bagu.org>
2895 A few small code cleanups.
2897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2899 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2900 unnecessary object creation in constructor.
2901 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2902 unnecessary object creation in constructor.
2904 2011-02-28 Ben Konrath <ben@bagu.org>
2906 Add file for TODO list.
2910 2011-02-18 Ben Konrath <ben@bagu.org>
2912 Enable the CellTable Pager when more than 20 rows need to be viewed.
2914 The Pager will automatically become active when the results are larger
2915 than the CellTable size which is currently set to 20 lines.
2917 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2918 name on debug statment in RPC call in LayoutListDataProvider, add
2919 numRows parameter to LayoutListView constructor, propperly set rowCount
2921 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2922 name on debug statment in RPC call, use LayoutListTable object in RPC
2923 calls, pass rowCount to LayoutListView.
2924 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2925 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2927 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2928 interface for changes in OnlineGlomService.
2929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2930 getLayoutListHeaders() to getLayoutListTable() and return
2931 LayoutListTable. Using this object allows me to pass other information
2932 about the LayoutList like the expected number of rows in the result set.
2933 The Connection object from the connection pool is now propperly closed.
2934 Only the requested number of lines are returned to the client in
2936 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2937 GlomTable and add columnTitles and numRows.
2939 2011-02-18 Ben Konrath <ben@bagu.org>
2941 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2943 This is a small performance boost. I'll use GlomTable to get the required
2944 layoutlist information.
2946 * src/main/java/org/glom/web/client/OnlineGlom.java:
2947 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2948 * src/main/java/org/glom/web/shared/GlomDocument.java:
2950 2011-02-18 Ben Konrath <ben@bagu.org>
2952 Add option to turn off formatting in JDT formatter preferences.
2954 * .settings/org.eclipse.jdt.core.prefs:
2956 2011-02-18 Ben Konrath <ben@bagu.org>
2958 Rename LayoutList to LayoutListView.
2960 I'm working towards setting things up to easily use MVP when the time
2963 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2965 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2968 2011-02-17 Ben Konrath <ben@bagu.org>
2970 Move LayoutListDataProvider class into LayoutList.java.
2972 * src/main/java/org/glom/web/client/LayoutList.java:
2974 2011-02-17 Ben Konrath <ben@bagu.org>
2976 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2978 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2980 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2981 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2982 from LibGlomServer.java.
2983 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2984 Rename from LibGlomServiceAsync.java.
2985 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2986 Rename from LibGlomServiceImpl.java.
2987 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2989 2011-02-17 Ben Konrath <ben@bagu.org>
2991 Update JDT settings.
2993 * .settings/org.eclipse.jdt.core.prefs:
2995 2011-02-17 Ben Konrath <ben@bagu.org>
2997 Move GWT-RPC objects to shared package (where they should be).
2999 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
3000 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
3001 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
3002 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
3003 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
3004 org.glom.web.shared package.
3005 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
3006 org.glom.web.shared package.
3007 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
3008 directory in compilation to javascript.
3010 2011-02-16 Ben Konrath <ben@bagu.org>
3012 Add sort clause to the sql query that grabs table information.
3014 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
3015 if one of the columns is a primary key.
3017 2011-02-16 Ben Konrath <ben@bagu.org>
3019 Disable generateAsync feature of gwt-maven.
3021 The generated interface does not correctly match the methods in LibGlomService
3022 and the generated singleton Util inner-class doesn't respect the servlet
3025 * pom.xml: Turn off generateAsync feature.
3026 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
3027 with singleton Util inner-class.
3029 2011-02-14 Ben Konrath <ben@bagu.org>
3031 Add LGPL v3 licence notices.
3033 Followed directions listed here:
3034 http://www.gnu.org/licenses/gpl-howto.html
3036 * COPYING: This file is a copy of the GPL v3.
3037 * COPYING.LESSER: This file is a copy of the LGPL v3.
3038 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
3040 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
3042 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
3044 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
3046 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
3048 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
3050 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3053 2011-02-14 Ben Konrath <ben@bagu.org>
3055 Use ArrayList instead of Array in GWT-RPC calls.
3057 Apparently this gives a slight performance boost to the compiled
3060 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3062 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3065 2011-02-14 Ben Konrath <ben@bagu.org>
3067 Access data from a postgres db rather than the example glom file.
3069 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3070 compile down to obfuscated javascript.
3071 * pom.xml: Add c3p0 and postgres JDBC libraries.
3072 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3073 using a postgres db accessed through the c3p0 connection pooling library.
3075 2011-02-14 Ben Konrath <ben@bagu.org>
3077 Update Java formatter settings.
3079 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3081 2011-02-02 Ben Konrath <ben@bagu.org>
3083 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3085 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3087 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3088 the compiled webapp directory that Eclipse uses as we're using Maven now.
3089 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3090 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3092 * pom.xml: Format file, change target Java version to 1.6.
3094 2011-02-02 Ben Konrath <ben@bagu.org>
3096 Add information about a deployment related issue.
3098 * README: Add Notes section with the problem outlined.
3100 2011-02-02 Ben Konrath <ben@bagu.org>
3102 Call Glom.libglom_deinit() when the servlet is shutdown.
3104 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3105 Glom.libglom_deinit() to destroy() method.
3107 2011-01-28 Ben Konrath <ben@bagu.org>
3109 Use generated Util class to get the RPC Async interface.
3111 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3113 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3114 getInstance() method to get a reference to the RPC Async interface.
3115 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3116 getInstance() method to get a reference to the RPC Async interface, remove
3117 the now unused getLibGlomServiceProxy() method.
3119 2011-01-27 Ben Konrath <ben@bagu.org>
3121 Cleanup ChangeLog entry from previous commit.
3123 * ChangeLog: Group logical changes together and add comments.
3125 2011-01-25 Ben Konrath <ben@bagu.org>
3127 Convert to gwt-maven project.
3129 * .gitignore: Update for new project structure.
3130 * README: New file with a link to the online documentation.
3131 * pom.xml: The generated maven configuration file with some tweaks.
3133 Add / update Eclipse settings. These files are a merge of the files that
3134 were generated with the gwt-maven plugin and the files we were previously
3138 * .settings/.jsdtscope:
3139 * .settings/com.google.gdt.eclipse.core.prefs:
3140 * .settings/com.google.gwt.eclipse.core.prefs:
3141 * .settings/org.eclipse.jdt.core.prefs:
3142 * .settings/org.eclipse.wst.common.component:
3143 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3144 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3145 * .settings/org.maven.ide.eclipse.prefs:
3146 * OnlineGlomTest-dev.launch:
3147 * OnlineGlomTest-prod.launch:
3149 Java source files moved from the 'src' directory to the directory structure
3151 * src/main/java/org/glom/web/client/GlomDocument.java:
3152 * src/main/java/org/glom/web/client/GlomTable.java:
3153 * src/main/java/org/glom/web/client/LayoutList.java:
3154 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3155 * src/main/java/org/glom/web/client/LibGlomService.java:
3156 * src/main/java/org/glom/web/client/OnlineGlom.java:
3157 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3159 Non-functional property file used for translations. I included this as
3160 reminder that it's something I need to sort out.
3161 * src/main/resources/org/glom/web/client/Messages.properties:
3163 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3164 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3166 The servlet configuration files moved from the 'war' directory.
3167 * src/main/webapp/OnlineGlom.css:
3168 * src/main/webapp/OnlineGlom.html:
3169 * src/main/webapp/WEB-INF/web.xml:
3171 Generated test files with most of the code commented out. I included these
3172 so that it's easy to add tests when we're ready for them.
3173 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3174 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3176 2011-01-25 Ben Konrath <ben@bagu.org>
3178 Remove unused println.
3180 * src/org/glom/web/server/LibGlomServiceImpl.java:
3182 2011-01-25 Ben Konrath <ben@bagu.org>
3184 Add project specific JDT settings.
3186 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3187 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3189 2011-01-25 Ben Konrath <ben@bagu.org>
3191 Populate celltable with example data.
3193 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3194 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3195 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3196 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3197 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3198 asynchronously gets the example data.
3199 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3200 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3201 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3202 curently selected table to be retrieved by other widgets.
3203 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3204 implement getTableData() in a hacky way. This method needs to be updated
3205 to grab information from the database when database creating is
3208 2011-01-20 Ben Konrath <ben@bagu.org>
3210 Set table headers when table dropBox changes.
3212 * src/org/glom/web/client/GlomDocument.java: Correct some method
3214 * src/org/glom/web/client/LibGlomService.java: Add method
3215 to get list layout field names.
3216 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3217 to get list layout field names.
3218 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3219 widget for list layout table.
3220 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3221 the table drop box and add new updateTable() method to asynchronously
3222 get the layout list field names for the currently selected table.
3223 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3224 implementation of getLayoutListHeaders() method.
3225 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3227 2011-01-18 Ben Konrath <ben@bagu.org>
3229 Make a listBox with table titles instead of the flexTable demo.
3231 This is the start of something more useful.