1 2011-12-05 Ben Konrath <ben@bagu.org>
3 Add string representation of TypedDataItem value to conversion error message.
5 * src/main/java/org/glom/web/server/Utils.java: Logging the error
6 message was extracted into its own method to avoid duplication.
8 2011-12-05 Ben Konrath <ben@bagu.org>
10 Add type checking to navigation primary key value creation.
12 Create navigation primary key only if the expected type from the Glom
13 document matches the type returned by the SQL query.
15 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
17 2011-12-05 Ben Konrath <ben@bagu.org>
19 Rename a couple of variables in RelatedListNavigation.
21 This is a rename-only refactor.
23 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
25 2011-12-05 Ben Konrath <ben@bagu.org>
27 Move getListLayoutGroup() into getListViewLayoutGroup().
29 This removes getListLayoutGroup(). It was only being called by
30 getListViewLayoutGroup().
32 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
34 2011-12-05 Ben Konrath <ben@bagu.org>
36 Remove check for LayoutItem_Portal in list table method.
38 This check is no longer necessary because the method isn't being used
39 to create the LayoutItemPortal DTO.
41 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
43 2011-12-05 Ben Konrath <ben@bagu.org>
45 Properly support related list navigation.
47 Navigation from the "Repository Analyzer -> Package Scans ->
48 Dependencies" related table wasn't working because the primary key for
49 related tables wasn't being set properly. This commit fixes the
52 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't use
53 getListLayoutGroup() to create the LayoutItemPortal DTO. This method
54 doesn't set the primary key properly for related list tables.
55 * src/main/java/org/glom/web/server/database/DBAccess.java: Add table
56 name parameter to getPrimaryKeyLayoutItemField(). This makes the method
57 useful for getting the primary key for list view tables and for related
59 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
60 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
61 Move code to set the primary key for the table from the abstract
62 ListDBAccess class to ListViewDBAccess as it's only correct for list
64 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
65 Properly add primary key to related list tables.
67 2011-12-02 Ben Konrath <ben@bagu.org>
69 Properly set the horizontal alignment of fields.
71 This fix is for both the list tables and the details view.
73 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
74 LayoutItem_WithFormatting.get_formatting_used_horizontal_alignment(boolean)
75 to set the horizontal alignment of fields.
77 2011-12-02 Ben Konrath <ben@bagu.org>
79 Display currency codes in the details view.
81 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
83 2011-12-02 Ben Konrath <ben@bagu.org>
85 Avoid duplicate JNI call.
87 JNI is not as efficient as pure Java and this is an easy (and small)
90 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
91 Use previously retrieved value for whereClauseToTableName instead of
94 2011-12-02 Ben Konrath <ben@bagu.org>
96 Rename a couple of variables in RelatedListNavigation.
98 This is a rename-only refactor.
100 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
102 2011-12-02 Ben Konrath <ben@bagu.org>
104 Indicate clearly that a mismatched primary key type is a bug.
106 * src/main/java/org/glom/web/server/Utils.java: Change log level from
107 warning to error. Add 'This is a bug.' to message.
109 2011-12-02 Ben Konrath <ben@bagu.org>
111 Update / fix some comments.
113 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
115 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
117 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
118 Fix comments. Add some TODOs.
120 2011-12-02 Ben Konrath <ben@bagu.org>
122 Enable navigation to details view with string primary key from related list.
124 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
125 Create a text primary key value when return type of result is
126 java.sql.Types.VARCHAR.
128 2011-12-02 Ben Konrath <ben@bagu.org>
130 Use checkboxes for booleans in the details view.
132 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
134 2011-12-01 Ben Konrath <ben@bagu.org>
136 Improve performance of related list height calculation.
138 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
139 Put code to calculate the expected height in a static initializer so
140 that that it's only called once.
142 2011-12-01 Ben Konrath <ben@bagu.org>
144 Show related list tables in notebooks (again).
146 Calculate the height of the related list tables so the Notebook can be
147 set the correct height. The height of the related list table is also needed by
148 FlowTable to be able decide how to create the layout.
150 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
151 and set the Portal height based on the height of the related list
152 table and the Portal container.
153 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
154 Add method to calculate the height of the related list tables.
155 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
156 * src/main/webapp/style.css: Add css class for Pager. This is needed to
157 calculate the height of the Pager widget.
159 2011-12-01 Ben Konrath <ben@bagu.org>
161 Use CellTable API for table property instead of setting style on Element.
163 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
165 2011-12-01 Ben Konrath <ben@bagu.org>
167 Make ListViewTable and RelatedListTable a consistent height.
169 The tables are now a consistent height regardless of the contents of
170 the table. A hidden button is added to empty rows to ensure that the
171 height of these rows will match the height of rows with data.
173 A navigation button column is now added to every table. The width of
174 the navigation column is set to 0px when a RelatedListTable shouldn't
175 have navigation buttons. This maintains the a consistent row height in
176 tables that don't show the navigation buttons.
178 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
179 navigation column when not needed.
180 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
181 arguments for navigation button to constructor of ListViewTable.
182 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
183 hidden button for empty data rows.
184 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
185 arguments for navigation button to constructor.
186 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
187 create navigation buttons. Add hideNavigationButtons() method.
188 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
189 arguments for navigation button to constructor.
191 2011-12-01 Ben Konrath <ben@bagu.org>
193 Use 'visibility: hidden' in Utils.getWidgetHeight().
195 This is better choice because hidden elements are invisible, don't
196 respond to events and are not part of the tab order. They will,
197 however, take up space which is required to be able to calculate the
198 height of the widget.
200 * src/main/java/org/glom/web/client/Utils.java:
202 2011-12-01 Ben Konrath <ben@bagu.org>
204 Use Utils.getWidgetHeight() in FlowTable.
206 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
208 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
210 2011-12-01 Ben Konrath <ben@bagu.org>
212 Put the details css class name on the correct table column.
214 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
216 2011-11-30 Ben Konrath <ben@bagu.org>
218 Update for java-libglom API change.
220 The getters and setters on FieldFormatting and NumericFormat were
221 changed to remove the 'M'.
223 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
225 2011-11-29 Ben Konrath <ben@bagu.org>
227 Only allow RelatedListTables in Portals.
229 * src/main/java/org/glom/web/client/ui/details/Portal.java:
231 2011-11-29 Ben Konrath <ben@bagu.org>
233 Only create a contents panel for Portals when title is being set.
235 * src/main/java/org/glom/web/client/ui/details/Portal.java:
237 2011-11-29 Ben Konrath <ben@bagu.org>
239 Set TabLayoutPanel height based on calculated height its widgets.
241 This is a potential fix for this bug:
243 https://bugzilla.gnome.org/show_bug.cgi?id=665133
245 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
247 2011-11-29 Ben Konrath <ben@bagu.org>
249 Align details field labels and data with the Open buttons.
251 * src/main/webapp/style.css:
253 2011-11-29 Ben Konrath <ben@bagu.org>
255 Remove unnecessary <div> in the Notebook widget.
257 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
258 method to get container FlowPanel (<div>).
259 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
260 initWidget() method directly on the TabLayoutPanel widget instead of
261 Group's container widget.
263 2011-11-29 Ben Konrath <ben@bagu.org>
265 Don't add group titles for Portals in Notebooks.
267 This reverts the previous patch and fixes a bug I introduced with
268 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
270 * src/main/java/org/glom/web/client/ui/details/Group.java:
271 * src/main/java/org/glom/web/client/ui/details/Portal.java:
273 2011-11-28 Ben Konrath <ben@bagu.org>
275 Remove unused boolean argument in Portal constructor.
279 * src/main/java/org/glom/web/client/ui/details/Group.java:
280 * src/main/java/org/glom/web/client/ui/details/Portal.java:
282 2011-11-28 Ben Konrath <ben@bagu.org>
284 Remove hack for glom 1.18 style glom files.
286 * src/main/java/org/glom/web/client/ui/details/Group.java:
287 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
288 * src/main/java/org/glom/web/client/ui/details/Portal.java:
290 2011-11-28 Ben Konrath <ben@bagu.org>
292 Use Gda Value version of primary key to log result too large error.
294 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
296 2011-11-28 Ben Konrath <ben@bagu.org>
298 Don't use TypedDataItem.getText() for Unknown types from the URL.
300 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
301 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
302 instead of getText().
303 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
304 String field and getUnknown() method.
306 2011-11-28 Ben Konrath <ben@bagu.org>
308 Log an error message when the java-libglom .so is not present.
310 The error message was being set in the exception but not logged.
312 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
314 2011-11-28 Ben Konrath <ben@bagu.org>
316 Ignore LayoutItem_CalendarPortals.
318 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
319 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
321 2011-11-28 Ben Konrath <ben@bagu.org>
323 Extract method for creating the LayoutItemPortal DTO.
325 Just breaking the code up into smaller chunks.
327 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
329 2011-11-28 Ben Konrath <ben@bagu.org>
333 This should have been added with the refactor. Oops!
335 * src/main/java/org/glom/web/shared/TypedDataItem.java:
337 2011-11-28 Ben Konrath <ben@bagu.org>
339 Create primary key value from URL string using type from Glom document.
341 See this bug, comments 19 - 25:
343 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
345 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
346 create a TypeDataItem for the primary key here when loading from a
347 URL. Show the same string for the primary key value as was received
348 from the URL string (when loading from a URL).
349 * src/main/java/org/glom/web/server/Utils.java: Update method for
350 creating the Gda Value from the TypeDataItem to properly deal with
351 creating a Gda Value based on the Glom document type for the primary
352 key value string when loading from a URL.
353 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
354 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
355 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
356 Update for changed method name.
358 2011-11-27 Ben Konrath <ben@bagu.org>
360 Rename PrimaryKeyItem to TypedDataItem.
362 The name PrimaryKeyItem suggests what the class should be used for.
363 TypedDataItem is a neutral name that describes the class better.
365 This is a rename-only refactor.
367 * src/main/java/org/glom/web/client/OnlineGlomService.java:
368 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
369 * src/main/java/org/glom/web/client/Utils.java:
370 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
371 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
372 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
373 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
374 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
375 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
376 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
377 * src/main/java/org/glom/web/server/Utils.java:
378 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
379 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
380 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
381 * src/main/java/org/glom/web/shared/NavigationRecord.java:
383 2011-11-25 Ben Konrath <ben@bagu.org>
385 Improve Gda Value conversion from PrimaryKeyItem.
387 The value from the PrimaryKeyItem is only used if its type match the
388 type from the glom document.
390 * src/main/java/org/glom/web/server/Utils.java:
392 2011-11-25 Ben Konrath <ben@bagu.org>
394 Manually check if the java-liblgom .so is visible to the JVM.
396 It seems that Tomcat has problems when a static initializer throws an
397 exception. This check is done before the first method call into
398 java-libglom so that execution doesn't continue if the .so is not
401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
403 2011-11-25 Ben Konrath <ben@bagu.org>
405 Improve browser configuration error messages.
409 https://bugzilla.gnome.org/show_bug.cgi?id=662792
411 * src/main/java/org/glom/web/client/OnlineGlomService.java:
412 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
413 getConfigurationErrorMessage() method.
414 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
415 Get and display a specific configuration error message when no Glom
417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
418 Implement getConfigurationErrorMessage() method. Surround configuration
419 code in the init() method with a try/catch block. This allows the
420 errors to be caught while keeping the servlet available to retrieve the
421 configuration error message.
423 2011-11-25 Ben Konrath <ben@bagu.org>
425 Don't use Strings to hold primary key values.
427 The primary key values are now held in a new data object
428 (PrimaryKeyItem) that holds type information and the primary key value
429 using the correct type.
431 * src/main/java/org/glom/web/client/OnlineGlomService.java:
432 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
434 PrimaryKeyItem instead of String to hold the primary key value.
435 * src/main/java/org/glom/web/client/Utils.java: Remove
436 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
437 PrimaryKeyItem based on the GlomFieldType and the DataItem.
438 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
439 PrimaryKeyItem instead of String to hold the primary key value. Load
440 document selection page when the documentID has not been set correctly.
441 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
442 DetailsPlace -> URL and URL -> DetailsPlace conversion with
444 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
445 Return empty string for URL instead of "null".
446 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
447 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
448 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
449 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
450 PrimaryKeyItem instead of String to hold primary key values.
451 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
452 PrimaryKeyValue to a Gda Value.
453 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
454 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
455 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
456 Replace temporary database access code that uses the PrimaryKeyValue to
457 Gda Value conversion.
458 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
459 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
460 PrimaryKeyItem instead of String.
461 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
462 hold primary key values.
464 2011-11-24 Ben Konrath <ben@bagu.org>
466 Use newly added java-libglom API to create queries.
468 This isn't finished. I still need to stop using Strings for primary key
469 values in the client code.
471 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
472 libglom to use fake connections so that retrieving the query string will
474 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
475 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
476 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
477 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
478 Use the newly added libglom sql methods and classes to create the
479 query. Add temporary hack to convert primary value strings to Gda
482 2011-11-23 Ben Konrath <ben@bagu.org>
484 Don't explicitly set the height of Portals.
486 See comments 6 - 10 of this bug for details:
488 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
490 * src/main/java/org/glom/web/client/ui/details/Portal.java:
492 2011-11-23 Ben Konrath <ben@bagu.org>
494 Use an HTML table instead of CSS for the FlowTable layout.
496 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
497 GWT's FlexTable to implement the FlowTable.
498 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
500 2011-11-18 Ben Konrath <ben@bagu.org>
502 Add boolean example to HTML table mockup.
504 * mockups/details-view-html-tables-text-entries.html:
506 2011-11-17 Ben Konrath <ben@bagu.org>
508 Ensure the pager buttons are always visible for related lists.
510 To accomplish this, I've turned off text wrapping in the list view and
511 related list tables for both the header and data text. The related list
512 table now has a fixed layout so the it doesn't overflow its container.
513 This is required to ensure that the cell text is clipped when it
514 overflows the cell and an ellipsis is added to the right side of the
515 cell when text is clipped.
517 A fixed table layout for the related list table in the details view
518 seems what we want for the details view anyway, so the side-effect is
521 The ellipsis will only be displayed in Firefox >= 7.
525 https://bugzilla.gnome.org/show_bug.cgi?id=662930
527 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
528 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
529 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
531 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
532 Set the 'table-layout: fixed' CSS property to the related list table.
533 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
534 'white-space: nowrap;' CSS property on both the list view and the
537 2011-11-16 Ben Konrath <ben@bagu.org>
539 Rework the fix for empty notebook tab labels.
541 Setting the empty group titles with its name caused problems for the
542 details layout. Instead of using libglom's
543 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
544 to the client when the title is empty. This allows the Notebook to use
545 the name when the title is empty without affecting anything else.
547 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
548 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
550 2011-11-16 Ben Konrath <ben@bagu.org>
552 Set group titles with name when title is empty.
554 This fixes a problem with an empty notebook tab label in the Lesson
555 Planner document. The forth tab in the notebook should be "Internet":
557 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
559 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
560 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
563 2011-11-16 Ben Konrath <ben@bagu.org>
565 Remove whitespace from the configured username properties.
567 This assumes that usernames won't have whitespace at the beginning
568 or end. But I think this is a reasonable assumption.
570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
571 String.trim() to remove the whitespace from the username properties.
573 2011-11-15 Ben Konrath <ben@bagu.org>
575 Add details view mockup with HTML tables and text entries.
577 This is from the attachment on this bug:
579 https://bugzilla.gnome.org/show_bug.cgi?id=663109
581 * mockups/details-view-html-tables-text-entries.html:
583 2011-11-15 Ben Konrath <ben@bagu.org>
585 Add space between the columns of the flow table.
589 https://bugzilla.gnome.org/show_bug.cgi?id=662918
591 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
592 space between columns in the flow table.
594 2011-11-15 Ben Konrath <ben@bagu.org>
596 Add backup files to the .gitignore.
598 * .gitignore: Ignore files that end with ~.
600 2011-11-09 Ben Konrath <ben@bagu.org>
602 Use latest release of gwt-log.
604 Gwt-log releases are now being submitted to the maven central
605 repository so manual installation of the jar is no longer required.
607 * pom.xml: Update version and groupId of gwt-log dependency.
609 2011-10-31 Ben Konrath <ben@bagu.org>
611 Don't use GWT numeric formatting to override the glom currency formatting.
613 Currencies are now displayed like they are in Glom. See this bug:
615 https://bugzilla.gnome.org/show_bug.cgi?id=646216
617 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
619 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
620 currency code to constructor and set it when the cell is rendered.
621 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
622 currency code to the constructor of the NumericCell.
624 2011-10-27 Ben Konrath <ben@bagu.org>
626 Require the latest release of java-libglom (1.17.4).
630 2011-10-26 Ben Konrath <ben@bagu.org>
632 Add style to Notebook that matches current theme.
634 It's not the best style in the world but it's better than the default.
636 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
637 padding at the bottom of the child widgets.
638 * src/main/webapp/style.css: Add style for the Notebook.
640 2011-10-26 Ben Konrath <ben@bagu.org>
642 Move servlet initialization code to overridden init method.
644 This is half of the solution to getting proper error messages
645 displayed when configuration errors occur. Here's the relevant bug:
647 https://bugzilla.gnome.org/show_bug.cgi?id=662792
649 The rest of the solution involves surrounding the init method with a
650 try/catch block and setting a global variable with the error /
651 exception. A new async method should be created to retrieve and display
652 the error message / exception.
654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
655 code from constructor to init method adding exceptions as needed.
657 2011-10-26 Ben Konrath <ben@bagu.org>
659 Add script to monitor and restart tomcat if required.
661 * utils/check-and-recover-tomcat.py: New file.
663 2011-10-26 Ben Konrath <ben@bagu.org>
665 Display the correct number of data items in the pager.
669 https://bugzilla.gnome.org/show_bug.cgi?id=661441
671 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
672 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
673 The implementation is the same for both tables: Keep track of the
674 number of non-empty rows and fire and RowCountChangeEvent after the data has
676 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
677 custom Pager class that subclasses SimplePager to handle displaying
678 the correct number when empty rows have been added.
680 2011-10-26 Ben Konrath <ben@bagu.org>
682 Correct error in previous commit.
684 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
685 eventBus parameter from listView.setCellTable().
687 2011-10-26 Ben Konrath <ben@bagu.org>
689 Fix error in TODO comment.
691 * src/main/java/org/glom/web/client/activity/ListActivity.java:
693 2011-10-24 Ben Konrath <ben@bagu.org>
695 Create Notebook widgets to the details view.
697 This isn't finished just yet - I still need to create a reasonable
698 style to match the current theme.
700 * src/main/java/org/glom/web/client/Utils.java: Add method for
701 calculating the height of a widget. This is used in the Notebook class.
702 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
703 new constructor method in Group.
704 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
705 method for creating child widget that can be used by subclasses
706 like Notebook. New constructor that allows disabling the group
707 titles - Notebooks don't set a group title for their child groups.
708 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
709 to make Notebooks using GWT's TabLayoutPanel.
710 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
711 constructor that allows disabling the group titles.
712 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
713 LayoutItemNotebook DTO.
714 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
715 DTO for Notebooks. It's just an empty class for now but we might need
716 it to transfer some specific information in the future.
718 2011-10-21 Ben Konrath <ben@bagu.org>
720 Add navigation buttons to related list tables.
722 * src/main/java/org/glom/web/client/OnlineGlomService.java:
723 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
724 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
725 method getSuitableRecordToViewDetails() for getting the table name
726 and primary key value for related list navigation buttons.
727 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
728 private cell renderer class to get the navigation information for
729 related list tables from the server. Extract the navigation
730 processing code from the details cell navigation and use it for the
731 related list navigation as well.
732 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
733 cell renderer class for the details open buttons. This was needed
734 because the related list navigation buttons and the list view
735 navigation buttons need to react differently when clicked.
736 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
737 the onEnterKeyDown() method because it's now overriden in the
738 subclasses that are specific to the related list tables and the list
740 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
741 the vertical size a little because the buttons add a bit of vertical
742 space to table. This is not a perfect solution because the vertical
743 size of with table fewer than 5 rows will be a little smaller.
744 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
745 changes in how navigation buttons are handled.
746 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
747 getSuitableRecordToViewDetails() using the new RelatedListNavigation
748 database access object.
749 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
750 to find the portal for a given relationship name from
751 RelatedListDBAccess. Add method to find a primary key field for a
753 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
754 Move code to find the portal for a given relationship name to
756 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
757 New file: database access object for getting the related list
758 navigation information (the table name and the primary key value).
759 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
760 DTO for transferring a table name to navigate to and a primary key
762 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
763 boolean and getter/setter to specifies if the related list should add
766 2011-10-24 Murray Cumming <murrayc@murrayc.com>
768 Use the master branch of java-libglom
770 * pom.xml: Depend on java-libglom 1.19 instead.
772 This is the master branch. See also the libglom-1-18 branch.
774 2011-10-11 Ben Konrath <ben@bagu.org>
776 Enable the open navigation button when the data has been set.
778 This avoids having active buttons that don't do anything when the data
781 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
783 2011-10-11 Ben Konrath <ben@bagu.org>
785 Use IsWidget interface for FlowTableItem.
787 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
788 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
790 2011-10-11 Ben Konrath <ben@bagu.org>
792 Remove GWT styling from open button in details view.
794 There are still some issues with how the details cell is arranged but
795 this should be made to match Glom 1.20. I'm going to leave fixing this
796 until I have Glom 1.20 up and running.
798 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
799 style name on open button.
800 * src/main/webapp/style.css: Move and edit details-navigation class.
801 Re-arrange some classes to make them appear in the same order as the
804 2011-10-07 Ben Konrath <ben@bagu.org>
808 * .gitignore: Ignore new cache directory.
809 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
810 * pom.xml: Change GWT and maven plugin to 2.4.0.
811 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
813 * src/main/java/org/glom/web/client/ClientFactory.java:
814 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
815 * src/main/java/org/glom/web/client/OnlineGlom.java:
816 Update source for API changes.
817 * utils/build-onlineglom-war.sh: Remove cache directory before the
820 2011-10-07 Ben Konrath <ben@bagu.org>
822 Add navigation buttons in the details view.
824 This isn't finished but I thought I'd commit what I have as it's a
825 pretty good start. I still need to:
827 1. Change the style so that it fits better into the current theme
828 2. Adjust the details cell to expand as much as possible.
830 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
831 click handlers to navigation buttons in the DetailsCells. Create a
832 refreshData() method to get just the data from the server without the
834 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
835 Update the tableSelector and browser title when the table name
836 changes without using the tableSelector.
837 * src/main/java/org/glom/web/client/ui/DetailsView.java:
838 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
839 getDetailsCells() to getCells(). Update variable names.
840 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
841 method to set click handler on navigation button. Rename a few
842 variables. Add navigation buttons where needed.
843 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
844 variables and methods.
845 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
846 navigation boolean and navigation table as required in the
848 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
849 variables for navigation along with getter/setter methods.
851 2011-10-07 Ben Konrath <ben@bagu.org>
853 Rename Field to DetailsCell.
855 This is a refactor-only commit. No functionality has been added or
858 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
859 Update variable and method names.
860 * src/main/java/org/glom/web/client/ui/DetailsView.java:
861 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
862 variable and method names.
863 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
865 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
866 variable and method names.
868 2011-10-07 Ben Konrath <ben@bagu.org>
870 Create separate methods for layout and data the details view.
872 This is a refactor-only commit. No functionality has been added or
875 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
876 private methods: setData(), createLayout().
878 2011-10-07 Ben Konrath <ben@bagu.org>
880 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
882 This is part of a change to get navigation buttons in the details view
883 but it should have been done this way from the start.
885 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
886 for method name change in TableSelectionView.
887 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
888 Create TableChangeEvent and set the browser title using the
889 TableSelectionView API.
890 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
891 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
892 Change getSelectedTable() to getSelectedTableName(). Add
893 getSelectedTableTitle().
895 2011-10-07 Ben Konrath <ben@bagu.org>
897 Use primaryKeyValue naming convention in constructor of DetailsPlace.
899 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
901 2011-10-07 Ben Konrath <ben@bagu.org>
903 Update TableChangeEvent to use newTableName naming convention.
905 This makes the class more consistent with GWT naming conventions.
907 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
908 Update for method name change in TableChangeEvent.
909 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
910 for method name change in TableChangeEvent.
911 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
912 newTableName variable and getter method. Make toDebugString()
915 2011-09-30 Ben Konrath <ben@bagu.org>
917 Disable the pager in the list tables when the data row count is less than the minimum.
919 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
920 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
922 2011-09-30 Ben Konrath <ben@bagu.org>
924 Add empty rows to the end of related list and list view tables.
926 I also extracted the cell rendering classes from the ListTable because
927 the code was becoming a little crazy with all the anonymous inner
928 classes. My plan is to use these cell rendering classes in the details
929 view as well so this refactor will be needed for that change.
931 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
932 set the row count in related list tables if the data has more rows
933 than the minimum number of rows visible.
934 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
935 row count in list view tables if the data has more rows than the
936 minimum number of rows visible.
937 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
938 for rendering TYPE_BOOLEAN cells. The code was extracted from the
940 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
941 for rendering TYPE_NUMERIC cells. The code was extracted from the
943 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
944 class for rendering cells with buttons in list views. The code was
945 extracted from the ListTable class.
946 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
947 for rendering TYPE_TEXT cells. The code was extracted from the
949 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
950 Add empty rows to the end of the data if required. Implement
951 ListTable.getMinNumVisibleRows().
952 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
953 cell renderer code to public classes. Return null in
954 Column.getValue() for empty rows. Add new abstract method:
955 getMinNumVisibleRows(). Move code to set the row count of the list view
956 table to ListViewImpl.
957 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
958 empty rows to the end of the data if required. Implement
959 ListTable.getMinNumVisibleRows().
962 2011-09-27 Ben Konrath <ben@bagu.org>
964 Use GWT.log for client-side debugging statements.
966 These are optimized out when deployed so I should have used this method
967 in the first place. These statements will eventually be replaced with some sort
968 of notification in the browser.
970 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
971 * src/main/java/org/glom/web/client/activity/ListActivity.java:
972 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
973 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
974 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
976 2011-09-27 Ben Konrath <ben@bagu.org>
978 Put tableselector on the right, back to list link on right.
980 The idea is that the table selector is acting like a label for the
981 currently displayed table so it should be placed below the document title. This
982 puts the table title in a similar position to where it is in Glom.
984 * mockups/details-contacts.html:
985 * mockups/details-projects.html:
986 * mockups/listview-contacts.html:
987 * mockups/listview-projects.html:
989 Update mockups to match how the interfaces currently look.
990 * src/main/webapp/style.css: Swap positions of backlink with the table
991 selector. Add some space on the left side of the table selector to
992 line things up with the document title.
994 2011-09-27 Ben Konrath <ben@bagu.org>
996 Add field colouring to details view.
998 This change re-works how field colouring works. The colour formatting
999 information is now set to the client with the layout information instead of
1000 with the data. This eliminates the need to send the same colour strings for
1001 data in list view column when colour information is set.
1003 In order to set an alternate colour for negative numeric values, the
1004 number is now sent to client and formatted with the GWT NumberFormat class.
1006 This change also fixes:
1008 https://bugzilla.gnome.org/show_bug.cgi?id=659752
1010 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
1011 internationalization framework which is needed for client side numeric
1013 * src/main/java/org/glom/web/client/Utils.java: New file for some
1014 client static utility methods.
1015 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1016 the DataItem object to the Field class. Use a utility method to
1017 create the foreignKeyValue string.
1018 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
1019 alignment and text colours in the constructor. Add setData(DataItem)
1020 method. Remove setText(String) method.
1021 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
1022 colour information to GlomTextCell. Create and use GlomNumberCell for
1023 rendering numbers. Use utility method to get the string for the
1024 primary key of the key provider. Re-work how the horizontal alignment
1026 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1027 formatting to layout information. Methods for converting the libglom
1028 formatting information were moved from DBAccess.
1029 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
1030 numeric formatting (it's now done on the client side). Don't set text
1031 colours in DataItem. Move libglom formatting conversion methods to
1033 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
1034 getters/setters for text colour information.
1035 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
1036 for transferring the libglom NumericFormat information to the client.
1037 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
1038 and getters/setters for: GlomNumericFormat, background colour and
1039 foreground colour strings.
1041 2011-09-26 Ben Konrath <ben@bagu.org>
1043 Simplify code that iterates through the LayoutGroup.
1045 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1047 2011-09-26 Ben Konrath <ben@bagu.org>
1049 Accept Eclipse formatting for OnlineGlomServiceAsync.
1051 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1053 2011-09-26 Ben Konrath <ben@bagu.org>
1055 Don't use the ListDBAccess classes to get the primary key layout information.
1057 This was causing a bug where the wrong index for the hidden primary key
1058 was being sent to the client.
1060 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
1061 primary key while creating the LayoutGroup DTO. Create a
1062 LayoutItemField DTO for hidden primary keys. Don't use the
1063 RelatedListDBAccess because it was only used for getting the primary
1065 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
1066 access modifier from public to protected for getPrimaryKeyField() and
1067 getPrimaryKeyLayoutItemField().
1068 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
1069 abstract method getExpectedResultSize() because RelatedListDBAccess
1070 doesn't have enough info to implement it.
1071 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1072 Remove @Override for getExpectedResultSize().
1073 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1074 Remove method getExpectedResultSize().
1076 2011-09-23 Ben Konrath <ben@bagu.org>
1078 Log which layout (list or details) the ignored item is from.
1080 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1082 2011-09-23 Ben Konrath <ben@bagu.org>
1084 Remove annotations that turn off code formatting in DataItem.
1086 * src/main/java/org/glom/web/shared/DataItem.java:
1088 2011-09-23 Ben Konrath <ben@bagu.org>
1090 Rename GlomField to DataItem and update associated methods.
1092 This is a rename-only refactor. No functionality has been added or
1095 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1096 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1097 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1098 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1099 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1100 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1101 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1102 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1103 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1104 * src/main/java/org/glom/web/server/database/DBAccess.java:
1105 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1106 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1107 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1108 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1109 * src/main/java/org/glom/web/shared/DataItem.java:
1110 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1111 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1113 2011-09-23 Ben Konrath <ben@bagu.org>
1115 Rename GlomDocument to DocumentInfo and update associated methods.
1117 This is a rename-only refactor. No functionality has been added or
1120 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1121 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1122 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1123 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1124 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1125 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1126 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1128 2011-09-20 Ben Konrath <ben@bagu.org>
1130 Require java-libglom 1.17.3.
1132 This picks up the fix for the seg fault problem with the Scenes table
1133 in the Openismus Film Manager example.
1137 2011-09-20 Ben Konrath <ben@bagu.org>
1139 Change the way sort clause is added for primary key when no sort clause is requested.
1141 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1142 before the sort clause is created. When a sort clause is not requested, the
1143 sort clause is created by finding the primary key in the LayoutFieldVector
1146 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1148 2011-09-20 Ben Konrath <ben@bagu.org>
1150 Log error message if no documents are found in the configured directory.
1152 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1153 Extract the glom file extension string to a private static final class
1154 variable (mostly as syntactic sugar). Accept a minor formatting change.
1155 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1156 the example glom.document.directory configuration property to make it
1157 more clear that it can any directory, not just the home directory.
1159 2011-09-18 Ben Konrath <ben@bagu.org>
1161 Add related lists to details view.
1163 The related list table has support for paging and sorting just like the
1164 table in the list view.
1166 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1167 SQL queries for the related list tables.
1168 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1169 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1171 Rename getList methods to getListView and add comments. Remove
1172 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1173 it being unused. Add methods: getDetailsLayoutAndData(),
1174 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1175 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1176 Create the layout and set the data for the fields in one async call
1177 instead of two. Create related lists where appropriate.
1178 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1179 for method name changes in OnlineGlomService.
1180 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1181 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1182 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1184 * src/main/java/org/glom/web/client/ui/ListView.java:
1185 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1186 tableName from setCellTable(). Create a ListViewTable instead of
1188 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1189 represent a data field in the details view.
1190 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1191 from addDetailsCell() to Field class. Keep track of the Fields and
1192 Portals in the details view.
1193 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1194 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1195 and add a method to get it. Add method to set the contents of the
1197 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1198 New class for related list tables. This class has the data provider
1199 for the related list table.
1200 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1201 abstract class which is the base class for the ListViewTable and the
1203 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1204 New class for list view tables. This class has the data provider for
1205 the list view table.
1206 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1207 methods for related list tables. Add more information to the
1208 LayoutItemField and LayoutItemPortal DTOs.
1209 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1210 Remove debugging print statement.
1211 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1212 Remove debugging print statements. Add primary key field to SQL count
1214 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1215 Remove unnecessary LayoutFieldVector parameter from
1216 getResultSizeOfSQLQuery() method.
1217 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1218 New class for related list table database access.
1219 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1220 class that is a wrapper DTO for details view layout and data.
1221 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1222 new 'fromField' string to this DTO.
1223 * src/main/webapp/style.css: Remove bottom margin and override top
1226 2011-09-15 Ben Konrath <ben@bagu.org>
1228 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1230 This sets things up to make it easier to add the data retrieval for
1231 related lists (portals). No user noticeable changes were made with
1234 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1235 class has the code to retrieve the layouts and access the
1236 database using the new database helper classes.
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1238 Most of the functionality has been removed from this class. This
1239 class now represents the public interface for the client side
1240 code. It also deals with configuring the servlet and cleaning
1241 things up when the servlet is stopped.
1242 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1243 of static methods into this utility class.
1244 * src/main/java/org/glom/web/server/database/DBAccess.java:
1245 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1246 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1247 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1248 These classes have the database retrieval code. The class hierarchy
1249 has been setup to make it easy to reuse code for similar
1252 2011-09-06 Ben Konrath <ben@bagu.org>
1254 Create separate classes for list table code and the data provider.
1256 As part of this refactor, I also split up the code a bit to make it
1259 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1260 table code to two new classes (below).
1261 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1262 with code from ListViewImpl.
1263 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1264 New file with code from ListViewImpl.
1266 2011-09-06 Ben Konrath <ben@bagu.org>
1268 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1270 This fixes the LayoutItemPortal DTO to match the libglom layout object
1273 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1275 2011-09-01 Ben Konrath <ben@bagu.org>
1277 Set title of Portals in the Details View.
1279 * pom.xml: Bump required version of java-libglom to 1.17.1.
1280 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1281 widget creation to its own class. Add comments to constructor.
1282 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1283 The code is mostly from the Group class with the title now set.
1284 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1285 title of Portal. Update some comments. Fix some code formatting.
1287 2011-09-01 Ben Konrath <ben@bagu.org>
1289 Remove TODO comment for the flow table column width.
1291 The flow table column width is working correctly and doesn't need to be
1292 changed. See this mailing list post for more info:
1294 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1296 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1298 2011-08-27 Ben Konrath <ben@bagu.org>
1300 Add document title (database name) to top of the browser page.
1302 I added the document title to the TableSelecitonView but that will
1303 change if / when we add a view that doesn't require table selection.
1305 * mockups/details-contacts.html:
1306 * mockups/details-projects.html:
1307 * mockups/listview-contacts.html:
1308 * mockups/listview-projects.html:
1309 * mockups/style.css: Add document title to mockups to keep things
1311 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1312 sizes to account for the document title.
1313 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1314 Set the document title when it has been retrieved from the server.
1315 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1316 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1317 and implement setDocumentTitle(String) method.
1318 * src/main/webapp/style.css: Add ID for document title style.
1320 2011-08-25 Ben Konrath <ben@bagu.org>
1322 Add NavigationType enum to LayoutItemPortal DTO.
1324 This is the start of adding support for Portals to the Details View.
1326 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1327 LayoutItem_Portal.navigation_type enum from libglom to
1328 LayoutItemPortal.NavigationType enum.
1329 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1330 NavigationType enum, field for storing the NavigationType and getter
1333 2011-08-25 Ben Konrath <ben@bagu.org>
1335 Implement the flow table layout in the Details View.
1337 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1338 FlowTable to Group to account for the renamed class.
1339 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1340 File. This is a container widget that implements the Glom details view
1341 flow table behaviour.
1342 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1343 org/glom/web/client/ui/FlowTable.java.
1344 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1345 so that the size of the subgroups are a closer match to the size of
1346 the Glom subgroups. This makes the flowtable layout match the layout
1347 in Glom for the Music Collection example file.
1349 2011-08-16 Ben Konrath <ben@bagu.org>
1351 Create container element for LayoutItemPortal in Details View.
1353 This will help me develop the layout for the FlowTable.
1355 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1356 fieldPanel variable to detailsCell.
1358 2011-08-15 Ben Konrath <ben@bagu.org>
1360 Set the height of the data element in the Details View.
1362 I changed the InlineLabels (text in a span element) to Labels (text in
1363 a div element) so that I could set the height of the details-data
1364 elements instead of the details-cell parent elements. This allows the
1365 the details-data element to display the correct height if style is
1366 applied that shows the height.
1368 This change has the added benefit of allowing the order of the labels
1369 and data elements to be changed for right-to-left languages.
1371 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1372 InlineLabels to Labels.
1373 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1374 InlineLabels to Labels. Set the height of the data element.
1375 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1376 multiline text height in the Formatting DTO.
1377 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1378 for multiline height along with getter and setter methods.
1379 * src/main/webapp/style.css: Adjust style to account for the change
1380 from span elements to div elements in the details cell.
1382 2011-08-15 Ben Konrath <ben@bagu.org>
1384 Make the List View appearance match the mockups.
1386 It doesn't match exactly but it's much better than it was.
1388 * mockups/listview-contacts.html: Remove unused css classes.
1389 * mockups/listview-projects.html: Remove unused css classes.
1390 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1391 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1392 for mainPanel instead of VerticalPanel (table). Set style name on
1393 CellTable. Set style name on Details column. Right-align Details
1395 * src/main/webapp/style.css: Adjust properties to match the mockups.
1397 2011-08-12 Ben Konrath <ben@bagu.org>
1399 Add better support for subgroups in the details view.
1401 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1402 changed FlowTable constructor.
1403 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1404 support for subgroups and subgroup-titles.
1405 * src/main/webapp/style.css: Add CSS class for subgroups and
1408 2011-08-12 Ben Konrath <ben@bagu.org>
1410 Return the top level LayoutGroup title.
1412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1414 2011-08-11 Ben Konrath <ben@bagu.org>
1416 Make the TableSelector header match the mockup.
1418 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1419 the layout panel. Properly lineup the table selection header with
1420 the list and details view.
1421 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1422 margin around the details view.
1423 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1424 Rename listBox variable to tableSelector. Set id for the style sheet.
1425 Use a FlowPanel instead of a HorizontalPanel.
1426 * src/main/webapp/style.css: Add properties to make the TableSelector
1427 box match the mockups.
1429 2011-07-13 Ben Konrath <ben@bagu.org>
1431 Update install script for java-libglom version change.
1433 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1436 2011-07-13 Ben Konrath <ben@bagu.org>
1438 Add support sub-group in the details view.
1440 I also removed the code that special-cased the default details view
1443 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1445 I still have to make a proper flowtable.
1447 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1448 Don't special-case default details view layout.
1449 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1450 addLayoutField() as I'm going to use it.
1451 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1452 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1454 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1455 extracted from DetailsViewImpl.GroupPanel. Add support for
1457 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1458 column count when getting the details layout.
1460 2011-07-12 Ben Konrath <ben@bagu.org>
1462 Set browser title with database and table titles.
1464 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1465 Set the browser title when the table changes and when the activity
1467 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1468 title when retrieving document info (the GlomDocument object).
1469 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1470 with getter and setter methods. Remove unused convenience constructor.
1471 Use default code formatting.
1473 2011-07-12 Ben Konrath <ben@bagu.org>
1475 Ignore LayoutItemPortals in the details view.
1477 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1480 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1481 LayoutItemPortal layout objects.
1482 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1483 LayoutItemPortal objects when retrieving the details layout.
1484 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1485 file. This is an empty class and just used to get type information for
1488 2011-07-12 Ben Konrath <ben@bagu.org>
1490 Use java-libglom 1.17.0.
1494 2011-07-11 Ben Konrath <ben@bagu.org>
1496 Remove "Table:" label from table selector.
1498 This matches a recent change in the Glom UI.
1500 * mockups/details-contacts.html:
1501 * mockups/details-projects.html:
1502 * mockups/listview-contacts.html:
1503 * mockups/listview-projects.html: Remove the "Table:" label from the
1505 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1507 2011-07-11 Ben Konrath <ben@bagu.org>
1509 Add main groups to the details view.
1511 This makes things look a little nicer in the details view. The next step
1512 is to implement the flowtable.
1514 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1515 resources from the standard gwt css theme. Standard.css is now
1516 included in OnlineGlom.html so that the online glom css rules have
1517 precedence over the gwt theme.
1518 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1519 the whole LayoutGroup to the DetailsView instead of just the titles.
1520 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1521 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1522 details layout with a helper class (GroupPanel). I might extract this
1523 class when I make the full flowtable.
1524 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1525 string as default so I don't have to worry about NPEs when processing
1527 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1528 note beside OnlineGlom.gwt.xml above).
1529 * src/main/webapp/style.css: Add default font-size to body to override
1530 the font-size set by the standard theme. Don't use h2 tags for
1531 group-title. Create new details-cell class.
1533 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1535 ConfiguredDocument: Set the port number too.
1537 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1538 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1539 Glom document. Presumably this worked sometimes so far because there is a
1540 default port number.
1542 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1544 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1546 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1547 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1548 correct, though we should throw an exception too.
1550 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1552 Fix a addDocuemnt typo.
1554 * src/main/java/org/glom/web/shared/Documents.java
1555 (Documents.addDocuemnt): Rename to addDocument().
1556 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1557 (OnlineGlomServiceImpl.getDocuments): Adapt.
1559 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1561 Slightly improved log output when connection fails.
1563 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1564 (ConfiguredDocument.setUsernameAndPassword):
1565 We don't know for sure if it' the username/password that's wrong, so
1566 rephrase the message.
1567 Also ouput the exception message, though it's generic in this case.
1569 2011-07-08 Ben Konrath <ben@bagu.org>
1573 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1574 added braces to a one line if statement because the Eclipse formatter
1575 was getting confused.
1577 2011-07-07 Ben Konrath <ben@bagu.org>
1579 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1581 These should really be two separate tasks but I counldn't get things to
1582 work with GWT 2.2.0 and Eclipse 3.7.
1586 * .settings/org.eclipse.jdt.core.prefs:
1587 * .settings/org.eclipse.jdt.ui.prefs:
1588 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1589 * .settings/org.eclipse.m2e.core.prefs:
1590 Add new config files. Update current files. Remove references to the
1591 webtools plugins as we're not using any of the webtools features.
1592 * .gitignore: Add logs directory which is created when running with
1594 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1595 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1596 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1598 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1600 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1602 onlineglom.properties: Add explanatory comments.
1604 * src/main/resources/onlineglom.properties: Also change the default user
1605 from ben to someuser, to avoid the risk of people thinking we just
1606 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1608 2011-06-28 Ben Konrath <ben@bagu.org>
1610 Use filename in Log for incorrect passwords.
1612 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1613 getFileName(String) method to get the filename from the URI.
1615 2011-06-28 Ben Konrath <ben@bagu.org>
1617 Add the table name to the URL token for the ListPlace.
1619 This makes things consistent between the DetailsPlace and the
1620 ListPlace. It also allows the the ListPlace to be bookmarked.
1622 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1623 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1624 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1625 Remove getDefaultListLayout(). The default layout is now returned
1626 by the getListLayout() method when the table name is an empty string.
1627 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1628 Add table name field. Change to a new ListPlace when the table
1629 has been changed. Use getListLayout() for getting the default
1631 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1632 Add table name field. Set the correct table name in the list box
1633 when loading from bookmark. This corrects a problem for the
1635 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1636 Move table name to super-class (HasSelectableTable). Move document
1637 and table URL keys to super-class in HasSelectableTable.
1638 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1639 Add table name field. Add Tokenizer class with URL key common to
1640 the subclasses (DetailsPlace and ListPlace).
1641 * src/main/java/org/glom/web/client/place/ListPlace.java:
1642 Add table name. Add code to parse the URL token.
1643 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1644 Update ListPlace construction with empty table name string.
1645 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1646 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1647 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1648 Update ListPlace construction with table name string.
1649 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1650 Change defaultTableName field to tableName to reflect how it's now
1651 used. Update the getter and setter methods.
1653 2011-06-28 Ben Konrath <ben@bagu.org>
1655 Enable the table selector in the DetailsView.
1657 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1659 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1660 Remove getDefaultDetailsLayout(). The default layout is now returned
1661 by the getDetailsLayout() method when the table name is an empty
1663 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1664 event handler for table change event. Change to using
1665 getDetailsLayout() for the default details layout.
1666 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1668 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1669 when navigating to the details place.
1671 2011-06-27 Ben Konrath <ben@bagu.org>
1673 Use filename based unique document ID in URL and for RPC.
1675 The document ID is the glom document name with spaces (' ') replaced
1676 with pluses ('+') and without the .glom extension.
1678 This change is mostly a string substitution of 'documentTitle' for
1679 'documentID'. The only code change is the addition of a Documents DTO to get the
1680 filename to document title mappings as indicated below.
1682 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1683 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1684 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1685 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1686 Use Documents DTO to create the document links in the document
1688 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1689 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1690 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1691 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1692 * src/main/java/org/glom/web/client/place/ListPlace.java:
1693 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1694 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1695 * src/main/java/org/glom/web/client/ui/ListView.java:
1696 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1697 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1698 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1699 * src/main/java/org/glom/web/server/Log.java:
1700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1701 getDocumentTitles() to getDocuments() and return the Documents DTO.
1702 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1703 transferring the filename to document title mappings.
1705 2011-06-25 Ben Konrath <ben@bagu.org>
1707 Make the authentication popup work again.
1709 This bug was introduced when I extracted ConfiguredDocument to its own class.
1711 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1712 correct success / fail status in setUsernameAndPassword().
1714 2011-06-25 Ben Konrath <ben@bagu.org>
1716 Use filename as unique key for configuring database usernames and passwords.
1718 This replaces the use of the Glom document title which could change
1719 depending on the locale. Thanks to Murray Cumming for pointing out this
1722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1723 * src/main/resources/onlineglom.properties:
1725 2011-06-24 Ben Konrath <ben@bagu.org>
1727 Pass primary key value to DetailsView.
1729 This enables the DetailsView to load the correct data.
1731 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1732 primary key value field and set in constructor. Pass primary key
1733 value to getDetailsData().
1734 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1735 variables for document title and primary key value.
1736 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1737 key value to the DetailsPlace.
1739 2011-06-24 Ben Konrath <ben@bagu.org>
1741 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1743 This allows the primary key to be retrieved by the Details button. This
1744 functionality has not been implemented yet but it's in the works.
1746 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1747 the LayoutGroup result to ListView.setCellTable instead of all of its
1748 fields individually.
1749 * src/main/java/org/glom/web/client/ui/ListView.java:
1750 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1751 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1752 get the primary key for the table.
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1754 index of the primary key in the LayoutGroup accounting for hidden
1755 primary keys. Rename getJavaNumberFormat() to
1756 convertToJavaNumberFormat() for consistency. Cleanup / add some
1758 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1759 field for primary key index and a field to indicate whether the
1760 primary key is hidden or not.
1762 2011-06-23 Ben Konrath <ben@bagu.org>
1764 Rename getTableData methods to getListData.
1766 This is a rename refactor for consistency with other methods.
1768 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1769 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1770 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1771 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1773 2011-06-23 Ben Konrath <ben@bagu.org>
1775 Extract the ConfiguredDocument innerclass into its own class.
1777 This makes the servlet code more object oriented.
1779 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1780 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1781 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1782 new ConfiguredDocument class.
1784 2011-06-21 Ben Konrath <ben@bagu.org>
1786 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1788 This makes things more inline with how libglom works and reduces code
1789 duplication. This refactor lays the groundwork for adding the primary key to
1790 the LayoutGroup object.
1792 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1793 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1795 Change method names to getListLayout and getDefaultListLayout for
1796 consistency. Use LayoutGroup as the DTO for the list layout instead of
1797 ColumnInfo and LayoutListTable.
1798 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1799 new method names along with the LayoutGroup object for transferring the
1801 * src/main/java/org/glom/web/client/ui/ListView.java:
1802 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1803 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1804 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1806 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1807 Replaced with LayoutGroup.
1808 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1809 expectedResultSize and defaultTableName fields which are needed for
1811 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1812 type field which is needed for the list layout but will also be
1813 useful for the details layout as things progress.
1814 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1815 Make class abstract. Remove the unnecessary
1816 getFormattingHorizontalAlignment method. Add setFormatting method.
1818 2011-06-16 Ben Konrath <ben@bagu.org>
1820 Add scripts for building and installing war.
1822 These will help when updating OnlineGlom but they're also good
1823 supplemental documentation of the build and deployment proceeding.
1825 * utils/build-onlineglom-war.sh: New file.
1826 * utils/install-onlineglom-war.sh: New file.
1828 2011-06-16 Ben Konrath <ben@bagu.org>
1830 Create wrapper class to create consistent log messages.
1832 I wrapped methods in the Log class of gwt-log to add the method names
1833 from the servlet and create consistent formatting of the document title
1834 and table names in the log messages.
1836 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1838 log methods to use methods from wrapped Log class.
1840 2011-06-16 Ben Konrath <ben@bagu.org>
1842 Remove superfluous conditional return.
1844 Thanks to Murray Cumming for pointing this out!
1846 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1848 2011-06-15 Ben Konrath <ben@bagu.org>
1850 Return an ArrayList of LayoutGroups for the Details layout.
1852 This corrects a problem with the details layout as it can have more
1853 than one top level LayoutGroup.
1855 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1856 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1857 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1858 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1859 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1860 with ArrayList of LayoutGroups for the details view layout.
1861 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1862 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1863 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1864 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1865 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1866 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1868 2011-06-14 Ben Konrath <ben@bagu.org>
1870 Use cast_dynamic method to determine the libglom LayoutItem type.
1872 This is better than finding the LayoutItem type by using the string
1873 returned from the get_part_type_name() method.
1875 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1877 2011-06-14 Ben Konrath <ben@bagu.org>
1879 Add method names to log entries in the servlet.
1881 This helps when tracking down deployment problems.
1883 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1885 2011-06-14 Ben Konrath <ben@bagu.org>
1887 Add data to the DetailsView using a hard-coded primary key value.
1889 The layout and functionality of the DetailsView is not complete. This
1890 is just a checkpoint so the patch doesn't get too big.
1892 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1893 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1894 Add getDetailsData() servlet method.
1895 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1896 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1897 LayoutFields are added to the DetailsView.
1898 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1899 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1900 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1901 take the string for the title instead of the object.
1902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1903 Add implementation getDetailsData() along with some private helper
1905 * src/main/webapp/style.css: Add padding to details-data class. Add a
1906 details-label class with the same padding as the details-data class.
1908 2011-06-03 Ben Konrath <ben@bagu.org>
1910 Use presenter.goTo() to change to the DetailsPlace.
1912 This will make things easier when we need to open the DetailsView with
1913 data specific to the row that was clicked.
1915 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1917 2011-06-02 Ben Konrath <ben@bagu.org>
1919 Add CSS file from mockups.
1921 I'm adding this now because it's going to be useful to have when
1922 developing the DetailsView. The TableSelectionView and ListView aren't
1925 * src/main/webapp/OnlineGlom.html:
1926 * src/main/webapp/style.css:
1928 2011-06-02 Ben Konrath <ben@bagu.org>
1930 Use String.isEmpty() to check for empty string.
1932 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1934 2011-06-02 Ben Konrath <ben@bagu.org>
1936 Display main layout group titles in the DetailsView.
1938 This is the start of the DetailsActivity/DetailsView implementation.
1940 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1941 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1942 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1943 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1944 Get the layout information for the details view from the server and set
1945 the main layout group titles.
1946 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1947 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1948 Add addLayoutGroup() and addLayoutField() methods. This are just
1949 temporary methods for creating the the details view that will change
1951 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1952 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1954 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1955 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1956 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1957 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1958 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1959 Data Transfer Objects that mimic the libglom object structure. These are
1960 used for transferring the details layout but could also be used for
1961 transferring the list layout.
1963 2011-05-27 Ben Konrath <ben@bagu.org>
1965 Reset the AuthenticationPopup when clearing the ListView.
1967 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1969 2011-05-27 Ben Konrath <ben@bagu.org>
1971 Fix problem with onlineglom.properties file loading.
1973 The old way worked in Eclipse but not on the server. Loading the
1974 onlineglom.properties file now works in Eclipse and on the server.
1976 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1978 2011-05-24 Ben Konrath <ben@bagu.org>
1980 Update gwt-log from 3.1.0 to 3.1.2.
1982 Gwt-log 3.1.0 has been marked as depreciated.
1986 2011-05-24 Ben Konrath <ben@bagu.org>
1988 Add comment to ListActivity.goTo() method.
1990 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1992 2011-05-24 Ben Konrath <ben@bagu.org>
1994 Remove FIXME in convertGdkColorToHtmlColour()
1996 The Gdk::Color value returned by libglom is 16-bits per channel on both
1997 64 and 32-bit platforms.
1999 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2001 2011-05-19 Ben Konrath <ben@bagu.org>
2003 Improve performance of initial ListView load.
2005 I removed a round trip to the server for getting the default table name
2006 and then requesting information about that table. This also removes a potential
2007 problem with the table change handler not being setup in time to receive the
2008 table change event from the ListActivity.
2010 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2011 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2012 getDefaultLayoutListTable() method. Improve comments.
2013 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
2014 getDefaultLayoutListTable() method instead of firing a table change
2015 event to get the table to load.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2017 implementation of getDefaultLayoutListTable() method.
2018 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
2021 2011-05-19 Ben Konrath <ben@bagu.org>
2023 Override toDebugString() in TableChangeEvent.
2025 This is useful to have for debugging.
2027 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2029 2011-05-19 Ben Konrath <ben@bagu.org>
2031 Add a "Back to List" link when at the DetailsPlace.
2033 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2034 Populate the CellTable based on the selected table of the ListBox if
2035 it's set otherwise use the default table. This allows the "Back to
2037 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2038 Remove Place from constructors. Add a setPlace() method. Add
2039 goToPlace() method. Set class as presenter for TableSelectionView.
2040 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2041 Use the same TableSelectionActivity when switching between the List and
2043 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2044 Subclass the new HasSelectableTablePlace. This removes some duplicate
2046 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2047 New class to represent Places that display the TableSelectionView.
2048 * src/main/java/org/glom/web/client/place/ListPlace.java:
2049 Subclass the new HasSelectableTablePlace. This removes some duplicate
2051 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2052 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2053 Add Presenter interface. Add setBackLinkVisible() method. Add
2054 setBackLink() method.
2056 2011-05-18 Ben Konrath <ben@bagu.org>
2058 Enable the "Details" buttons.
2060 Right now only an empty details view is displayed.
2062 * src/main/java/org/glom/web/client/ClientFactory.java:
2063 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2064 Add DetailsView to ClientFactory.
2065 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2066 A basic activity for the details view.
2067 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2068 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
2070 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2071 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
2073 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2074 Create a new DetailsActivity when a DetailsPlace is requested. Remove
2075 unnecessary super() in constructor.
2076 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2077 Create a new TableSelectionActivity when a DetailsPlace is requested. We
2078 really shouldn't create a new TableSelectionActivity for both the ListPlace
2079 and the DetailsPlace so this should be considered a temporary solution.
2080 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2081 New file. Represents a URL for the details view.
2082 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2083 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2084 A basic details view interface and implementation.
2085 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2086 Enable the "Details" buttons.
2088 2011-05-12 Ben Konrath <ben@bagu.org>
2090 Use a LayoutPanel with multiple display areas for main layout.
2092 This is mostly a refactor in that there are no changes from the user
2093 point of view. These changes are required so that we can swap out the list view
2094 with the details view when the user clicks the "Details" button.
2096 * src/main/java/org/glom/web/client/ClientFactory.java:
2097 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2098 OnlineGlomView. Add TableSelectionView, ListView and
2099 AuthenticationPopup.
2100 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
2101 for main layout. Add display regions for main activities. Add
2102 activity manager for for main activities.
2103 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
2104 file from parts of the deleted OnlineGlomActivity.
2105 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2106 New file from parts of the deleted OnlineGlomActivity.
2107 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2108 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2109 New files for app wide table change event.
2110 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2111 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2112 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2113 Activity mappers for the main activities replace the deleted app-wide
2115 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2116 Fix a spelling error in he comment.
2117 * src/main/java/org/glom/web/client/ui/ListView.java:
2118 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2119 Renamed from LayoutListView and modified for MVP. This still not a
2120 proper dumb view as prescribed by the MVP pattern but it works for now.
2121 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2122 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2123 New widget stripped out of the deleted OnlineGlomView.
2124 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2125 Remove hack that is fixed by this patch.
2127 2011-05-06 Ben Konrath <ben@bagu.org>
2129 Rename OnlineGlomPlace to ListPlace.
2131 The only change besides the rename is that url will now display #list
2132 instead of #Document.
2134 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2135 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2136 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2137 * src/main/java/org/glom/web/client/place/ListPlace.java:
2138 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2140 2011-05-06 Ben Konrath <ben@bagu.org>
2142 Use Presenter for app navigation.
2144 This is the proper way to deal with Place (URL) changes with the MVP
2147 * src/main/java/org/glom/web/client/ClientFactory.java:
2148 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2149 PlaceHistoryMapper and PlaceHistoryHandler.
2150 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2151 PlaceHistoryMapper and PlaceHistoryHandler.
2152 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2153 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2154 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2155 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2156 Add Presenter interface and setPresenter methods. Rename addHyperLink
2157 to addDocumentLink taking only the document title as a parameter.
2159 2011-04-14 Ben Konrath <ben@bagu.org>
2161 Prompt for db username/password if they haven't been set.
2163 This is implemented with a popup widget that is contained within the
2164 OnlineGlomView and managed by the OnlineGlomActivity.
2166 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2167 methods for checking and setting the database username and password.
2168 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2169 new methods for checking and setting the database username and
2171 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2172 Display authentication popup if the JDBC connection to the database
2173 has not been authenticated.
2174 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2176 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2177 for dealing with the authentication popup.
2178 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2179 Implement the methods for dealing with the authentication popup.
2180 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2181 try to executed queries if the database connection hasn't been
2182 authenticated. Implement methods for checking and setting the
2183 database username and password.
2185 2011-04-12 Ben Konrath <ben@bagu.org>
2187 Make log messages a little clearer.
2189 Add a dash betweeen the document title and the table name.
2191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2193 2011-04-12 Ben Konrath <ben@bagu.org>
2195 Protect against NPEs when cleaning up database resources.
2197 While this isn't strictly necessary because the exception is caught,
2198 not protecting against the NPEs makes it harder to find the real error
2201 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2203 2011-04-12 Ben Konrath <ben@bagu.org>
2205 Move configuration of the servlet to the constructor.
2207 The servlet will be initialized even if the database authentication
2208 information is not set or correct. I still need to add the UI for prompting
2209 the user for the authentication information when it's required.
2211 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2212 javadocs for getDocumentTitles() method.
2213 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2214 Set error message when RPC fails.
2215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2216 glom files directory from the configuration file. Try to set the
2217 database authentication information for the specific document if it's
2218 set and works otherwise try to use the global authentication
2219 information set for the directory.
2220 * src/main/resources/onlineglom.properties: Moved from
2221 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2222 Added detailed comments for the new keys.
2224 2011-04-11 Ben Konrath <ben@bagu.org>
2226 Remove unnecessary @Override in DocumentSelectionViewImpl.
2228 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2230 2011-04-11 Ben Konrath <ben@bagu.org>
2232 Remove center alignment in DocumentSelectionView.
2234 The title element is still centred but the document titles and bottom
2235 sentence are both left-aligned.
2237 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2239 2011-04-11 Ben Konrath <ben@bagu.org>
2241 Change 'Demo' naming convention to 'Document'.
2243 This is just a rename refactor with no functional changes to the code.
2245 * src/main/java/org/glom/web/client/ClientFactory.java:
2246 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2247 * src/main/java/org/glom/web/client/OnlineGlom.java:
2248 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2249 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2250 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2251 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2252 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2253 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2254 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2255 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2256 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2259 2011-04-08 Ben Konrath <ben@bagu.org>
2261 Remove FIXME from safeLongToInt() method.
2263 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2266 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2268 2011-04-08 Ben Konrath <ben@bagu.org>
2270 Display an error if no glom documents are found in the specified directory.
2272 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2273 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2274 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2277 2011-04-08 Ben Konrath <ben@bagu.org>
2279 Add copyright header to one more file ... oops.
2281 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2283 2011-04-08 Ben Konrath <ben@bagu.org>
2285 Add copyright header to files without it.
2287 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2288 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2289 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2290 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2291 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2292 * src/main/java/org/glom/web/shared/GlomField.java:
2294 2011-04-08 Ben Konrath <ben@bagu.org>
2296 Add support for accessing multiple glom documents in the servlet.
2298 This completes the demo selection functionality.
2300 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2301 document title to methods.
2302 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2303 document title to methods.
2304 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2305 Set browser window title when the activity starts. Correct name of
2306 document title variable.
2307 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2308 Set browser window title when the activity starts. Set the table
2309 selector change handler after table selector has been set. Clear the
2310 OnlineGlomView when the activity has been stopped.
2311 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2312 document title as the place token. Use "#Document:" instead of
2313 "#OnlineGlomPlace:" in the URL.
2314 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2315 Change heading to "Online Glom"
2316 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2317 document title in RPC methods.
2318 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2319 setDocumentTitle() method. Add clear() method.
2320 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2321 setDocumentTitle() method. Implement clear() method which removes the
2322 change handler on the ListBox, clears the ListBox and clears the
2324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2325 Implement methods with document title. Keep track for the configured
2326 glom documents and their corresponding JDBC configurations in a hash
2327 table. This information is retrieved using the document title as the
2328 key in the hash table.
2329 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2330 document title field as it's no longer needed.
2332 2011-04-08 Ben Konrath <ben@bagu.org>
2334 Update the Eclipse JDT configuration.
2336 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2337 methods. Automatically add the copyright header to new files.
2339 2011-04-05 Ben Konrath <ben@bagu.org>
2341 Add new page for demo selection.
2343 This patch adds all the components required to view and start an
2344 OnlineGlom demo by clicking on the desired hyperlink. The user is
2345 able to return to the demo selection page with the browser's back
2346 button. I still need to modify the servlet to work with multiple
2347 documents so all demo links will load the file defined in the
2348 OnlineGlom.properties.
2350 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2351 This is only useful during development so we don't need to save it.
2352 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2353 get a reference to the DemoSelectionView.
2354 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2355 method to get a reference to the DemoSelectionView.
2356 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2357 default view to DemoSelectionView.
2358 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2359 to get glom document titles for glom files in a hard-coded directory.
2360 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2361 method to get glom document titles for glom files in a hard-coded
2363 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2364 Presenter for DemoSelectionView.
2365 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2366 for DemoSelectionView.
2367 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2368 Update for DemoSelectionView.
2369 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2370 Basic 'Place' implementation for the DemoSelectionView.
2371 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2372 The interface for the DemoSelectionView.
2373 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2374 The implementation of the DemoSelectionView.
2375 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2376 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2377 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2378 implementation of method to get glom document titles for glom files
2379 in a hard-coded directory.
2380 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2381 on longer being used.
2382 * src/main/webapp/glom.png: Glom logo.
2384 2011-04-05 Ben Konrath <ben@bagu.org>
2386 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2388 This is the forth and final commit of a refactor that will allow
2389 OnlineGlom to be used with multiple documents.
2391 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2392 Move RPC code from OnlineGlomViewImpl to this class.
2393 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2395 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2396 RPC code to the presenter class (the P in MVP).
2398 2011-04-04 Ben Konrath <ben@bagu.org>
2400 Start moving the existing OnlineGlom code to MVP.
2402 This work is based on the GWT MVP framework that is documented here:
2404 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2406 This is the third commit of a refactor that will allow OnlineGlom to
2407 be used with multiple documents.
2409 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2410 Interface for client factory which is used to get instances of various
2411 classes throughout the app.
2412 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2413 Implementation of client factory.
2414 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2415 initialize the MVP framework.
2416 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2417 New file. Activity manager for the main container widget. This is the
2419 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2420 Maps place (URL) to its corresponding activity.
2421 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2422 New file. This is just a place holder for a generated file.
2423 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2424 New file. Represents the URL for the main Online Glom app.
2425 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2426 for changes in LayoutListViewImpl.
2427 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2428 interface for View. Move code to OnlineGlomViewImpl class.
2429 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2430 file. Implementation of OnlineGlomView.
2431 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2432 Place resources. Use ClientFactoryImpl by default.
2434 2011-04-04 Ben Konrath <ben@bagu.org>
2436 Move View classes to their own package.
2438 This is the second commit of a refactor that will allow OnlineGlom to
2439 be used with multiple documents.
2441 * src/main/java/org/glom/web/client/OnlineGlom.java:
2442 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2443 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2445 2011-04-02 Ben Konrath <ben@bagu.org>
2447 Move UI code from the main module to its own class.
2449 This is the first commit of a refactor that will allow OnlineGlom to be
2450 used with multiple documents.
2452 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2453 references to OnlineGlom to OnlineGlomView.
2454 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2455 OnlineGlomView and instantiate it here.
2456 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2457 represents the main OnlineGlomView with one document.
2459 2011-04-01 Ben Konrath <ben@bagu.org>
2461 Fix formatting of gwt.xml and add DTD.
2463 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2465 2011-03-30 Ben Konrath <ben@bagu.org>
2467 Propperly convert gdkColor string to html colour string.
2469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2471 2011-03-28 Ben Konrath <ben@bagu.org>
2473 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2475 This implementation matches
2476 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2477 readable and is not tied to Swig.
2479 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2481 2011-03-28 Ben Konrath <ben@bagu.org>
2483 Use read-only checkboxes for boolean field types.
2485 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2486 in the CellTable based on the field type. It currently only
2487 distinguishes between boolean and text columns but I'll need to add
2488 support for more types.
2489 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2490 column type in the ColumnInfo object. Add method to convert between the
2491 glom field type enum in ColumnInfo and the glom field type in libglom.
2492 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2494 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2495 getting and setting booleans.
2497 2011-03-25 Ben Konrath <ben@bagu.org>
2499 Don't get the Date twice from the ResultSet.
2501 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2503 2011-03-25 Ben Konrath <ben@bagu.org>
2505 Cleanup code in the servlet.
2507 * TODO: Remove item about row count. Add item about testing row count
2508 query with large number of rows.
2509 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2510 spelling mistakes, change method parameter to be consistent with
2513 2011-03-25 Ben Konrath <ben@bagu.org>
2515 Add server side logging with the gwt-log library.
2517 * .gitignore: Ignore the log file we're now producing.
2518 * TODO: Add a couple TODO item for logging.
2519 * pom.xml: Add gwt-log and log4j as a dependency.
2520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2521 logging of errors, warnings and some important info.
2522 * src/main/resources/log4j.properties: New file to configure log4j.
2524 2011-03-24 Ben Konrath <ben@bagu.org>
2526 Add a disable button for the Details view.
2528 * src/main/java/org/glom/web/client/LayoutListView.java:
2530 2011-03-22 Ben Konrath <ben@bagu.org>
2532 Use a count query to get the number of rows for the list view pager.
2534 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2536 2011-03-22 Ben Konrath <ben@bagu.org>
2538 Add more TODO information about CellTable pager positioning.
2542 2011-03-19 Ben Konrath <ben@bagu.org>
2544 Add TODO item about CellTable pager positioning.
2548 2011-03-18 Ben Konrath <ben@bagu.org>
2550 Remove unneeded GlomFieldColumn class.
2552 This is just a small code cleanup.
2554 * src/main/java/org/glom/web/client/LayoutListView.java:
2556 2011-03-18 Ben Konrath <ben@bagu.org>
2558 Use cursor mode in the query that gets data for the list view.
2560 I still need to fix the potential memory problem when getting the row
2561 count for the list view.
2563 * TODO: Add note about testing memory usage with large data sets. Add
2564 item about fixing row counting with large data sets.
2565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2566 PostgreSQL JDBC driver into cursor mode when getting data for the
2569 2011-03-15 Ben Konrath <ben@bagu.org>
2571 Remove the GWT Container from the Eclipse build classpath.
2573 The GWT dependencies are set by Maven so this isn't needed.
2577 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2579 Added some earlier mockups to git, but not to the tarball dist.
2581 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2582 Openismus. These hopefully show how we might structure the HTML so that
2583 it can be styled easily with CSS. However, we probably need to adapt them
2584 for the CSS structure that GWT dictates for common widgets.
2586 2011-03-14 Ben Konrath <ben@bagu.org>
2588 Locate OnlineGlom.properties using the ServletContext.
2590 This is required to be able to locate the file in the deployed servlet.
2592 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2593 Configure the database and glom document in in a helper method so
2594 that the ServletContext can be used to locate OnlineGlom.properties.
2595 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2596 src/main/webapp. This is the proper location for .properites files.
2598 2011-03-12 Ben Konrath <ben@bagu.org>
2600 Add note to README about why we're compiling down to obfuscated JavaScript.
2604 2011-03-11 Ben Konrath <ben@bagu.org>
2606 Use properties file to configure servlet.
2608 This allows people to change the glom file path, db username and db
2609 password without recompiling the code.
2611 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2612 * src/main/webapp/OnlineGlom.properties:
2614 2011-03-11 Ben Konrath <ben@bagu.org>
2616 Use table fields in layout list view if the layout list is not defined.
2618 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2619 Manually create a LayoutFieldVector for the query builder using the
2620 table fields when a layout list is not defined in the glom file.
2622 2011-03-11 Ben Konrath <ben@bagu.org>
2624 Only show FIXME string for images when there's an image.
2626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2627 in this change are some small code cleanups.
2629 2011-03-11 Ben Konrath <ben@bagu.org>
2631 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2633 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2635 2011-03-11 Ben Konrath <ben@bagu.org>
2637 Correctly set the index of the default table.
2639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2640 Correctly set the index of the default table. Add commented out example
2643 2011-03-10 Ben Konrath <ben@bagu.org>
2645 Add comment to pom.xml about the previous change.
2647 * pom.xml: Add comment about the deployment issue so that it's obvious
2648 why java-libglom is set to the provided scope.
2650 2011-03-10 Ben Konrath <ben@bagu.org>
2652 Change java-libglom dependency from compile to provided in pom.xml.
2654 Since java-libglom uses jni it can only be loaded once and therefore
2655 must be placed in $CATALINA_HOME/lib and not included in each war.
2656 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2657 More information about this issue can be found in the Tomcat 6 release
2658 notes in the "JNI Based Applications" section:
2660 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2662 * README: Remove note about this issue. Deployment info should really
2663 be on the wiki anyway so I'll add it right now.
2664 * pom.xml: Change java-libglom dependency from compile to provided so
2665 that it's copied in to the packaged war.
2667 2011-03-09 Ben Konrath <ben@bagu.org>
2669 Change to using a neutral locale for currency, date and time formatting.
2671 This solves the problem of currency values being represented without a
2672 space between the currency code and the number (e.g. "EUR5.89" is now
2673 represented as "EUR 5.89"). More work is required when we implement
2674 a locale preference setting.
2676 * TODO: Add note about currency formatting issues with different
2678 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2679 to using the neutral ROOT locale.
2681 2011-03-09 Ben Konrath <ben@bagu.org>
2683 Add support for currency codes that are not ISO 4217 codes.
2685 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2686 the currency code defined in the glom file when it's not 3 characters
2687 long or when Java doesn't recognize the string as an ISO 4217 code.
2689 2011-03-08 Ben Konrath <ben@bagu.org>
2691 Remove test classes, launch configurations and configuration.
2693 The test stuff was getting in the way when creating the war. To make
2694 the war file you can now do 'mvn clean package'. The packaged war file
2695 will be in the target directory.
2697 * .classpath: Remove unused classpathentry for tests and i18n.
2698 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2699 property. Don't run test or i18n goals when packaging the war.
2700 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2705 * OnlineGlomTest-dev.launch:
2706 * OnlineGlomTest-prod.launch:
2707 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2708 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2710 2011-03-07 Ben Konrath <ben@bagu.org>
2712 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2714 These fixes allow me to use 'mvn deploy' to create the war file.
2716 * .classpath: This generated config has been updated by Eclipse. This
2717 change was probably triggered by me updating from Eclipse 3.6.1 to
2719 * .gitignore: Add entry to ignore the directory
2720 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2721 * .project: The generated config has been updated by Eclipse. This
2722 change was probably triggered by me updating from Eclipse 3.6.1 to
2724 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2725 so that Eclipse doesn't complain
2726 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2727 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2728 'tests' directory to 'client' directory. This is the new
2729 gwt-maven-plugin convension.
2730 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2731 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2733 2011-03-07 Ben Konrath <ben@bagu.org>
2735 Add support for horizontal alignment in the LayoutList columns.
2737 * TODO: Remove item about horizontal alignment. Add item about
2738 improvements to ColumnInfo.
2739 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2740 alignment on the columns. Use ColumnInfo RPC object get the column
2741 title and horizontal alignment.
2742 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2743 LayoutListView creation with ColumnInfo RPC object.
2744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2745 a ColumnInfo object for every LayoutList columnn. Convert the
2746 FieldFormatting.HorizontalAlignment to the correct
2747 ColumnnInfo.HorizontatlAlignment with the new
2748 getColumnInfoHorizontalAlignment helper method.
2749 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2750 to encapsulate column information like alignment and title. This
2751 could be used to set the colour instead of on a per cell field basis.
2752 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2753 column title storage and retrieval with ColumnInfo.
2755 2011-03-04 Ben Konrath <ben@bagu.org>
2757 Add support for column sorting.
2759 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2760 AsynDataProvider to be an anonymous inner class. Use new
2761 getSortedTableData RPC method when column sort is requested. Set all
2762 columns sortable and add an AsyncHandler to activate sorting in the
2764 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2765 method getSortedTableData(). Cleanup other method signatures.
2766 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2767 new method getSortedTableData(). Cleanup other method signatures.
2768 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2769 Implement getSortedTableData() and getTableData() methods by using a
2770 private helper method with the appropriate parameters filled in. Use
2771 user supplied sort clause when supplied, otherwise fall back to
2772 sorting by the primary key. Move destroy() method to be underneath
2773 constructor for readability. Cleanup comments.
2775 2011-03-03 Ben Konrath <ben@bagu.org>
2777 Add support for colour text and colour backgrounds to the layout list cells.
2779 Only the cell backgrounds are coloured which leaves a gap between the
2780 cells that isn't coloured. I need to figure out a way to set
2781 'style=background-colour:' on the whole column rather than just the
2784 * TODO: Add a note about colouring the background of the whole column.
2785 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2786 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2787 render the coloured text and backgrounds. Use GlomField[] for the row type.
2788 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2790 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2791 GlomField[] for the row type.
2792 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2793 GlomField[] for the row type. Set the text, text colour and background
2794 colour in the GlomField objects as specified in the glom document. Add
2795 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2796 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2797 the glom field text, foreground colour and background colour.
2799 2011-03-02 Ben Konrath <ben@bagu.org>
2801 Don't display hidden tables in the combo box.
2803 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2805 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2806 code to ignore hidden tables using ArrayLists for the table names and
2808 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2809 tableNames to use ArrayLists instead of String[]. Update getter and setter
2812 2011-03-01 Ben Konrath <ben@bagu.org>
2814 Add support for Date and Time number types.
2816 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2817 Implement formatting for Date and Time values. Change the default glom
2818 file to small business example.
2820 2011-03-01 Ben Konrath <ben@bagu.org>
2822 Add support for formatting glom types as specified in the glom file.
2824 Formatting isn't finished yet - I still need to add support for Date
2827 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2828 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2829 checks for null values in JDBC cleanup code and catch all exceptions
2830 instead of just SQLExceptions.
2831 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2834 2011-03-01 Ben Konrath <ben@bagu.org>
2836 Use GWT 2.2.0 instead of 2.1.1.
2838 * pom.xml: Change GWT version numbers.
2840 2011-03-01 Ben Konrath <ben@bagu.org>
2842 A few small code cleanups.
2844 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2846 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2847 unnecessary object creation in constructor.
2848 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2849 unnecessary object creation in constructor.
2851 2011-02-28 Ben Konrath <ben@bagu.org>
2853 Add file for TODO list.
2857 2011-02-18 Ben Konrath <ben@bagu.org>
2859 Enable the CellTable Pager when more than 20 rows need to be viewed.
2861 The Pager will automatically become active when the results are larger
2862 than the CellTable size which is currently set to 20 lines.
2864 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2865 name on debug statment in RPC call in LayoutListDataProvider, add
2866 numRows parameter to LayoutListView constructor, propperly set rowCount
2868 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2869 name on debug statment in RPC call, use LayoutListTable object in RPC
2870 calls, pass rowCount to LayoutListView.
2871 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2872 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2874 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2875 interface for changes in OnlineGlomService.
2876 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2877 getLayoutListHeaders() to getLayoutListTable() and return
2878 LayoutListTable. Using this object allows me to pass other information
2879 about the LayoutList like the expected number of rows in the result set.
2880 The Connection object from the connection pool is now propperly closed.
2881 Only the requested number of lines are returned to the client in
2883 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2884 GlomTable and add columnTitles and numRows.
2886 2011-02-18 Ben Konrath <ben@bagu.org>
2888 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2890 This is a small performance boost. I'll use GlomTable to get the required
2891 layoutlist information.
2893 * src/main/java/org/glom/web/client/OnlineGlom.java:
2894 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2895 * src/main/java/org/glom/web/shared/GlomDocument.java:
2897 2011-02-18 Ben Konrath <ben@bagu.org>
2899 Add option to turn off formatting in JDT formatter preferences.
2901 * .settings/org.eclipse.jdt.core.prefs:
2903 2011-02-18 Ben Konrath <ben@bagu.org>
2905 Rename LayoutList to LayoutListView.
2907 I'm working towards setting things up to easily use MVP when the time
2910 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2912 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2915 2011-02-17 Ben Konrath <ben@bagu.org>
2917 Move LayoutListDataProvider class into LayoutList.java.
2919 * src/main/java/org/glom/web/client/LayoutList.java:
2921 2011-02-17 Ben Konrath <ben@bagu.org>
2923 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2925 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2927 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2928 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2929 from LibGlomServer.java.
2930 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2931 Rename from LibGlomServiceAsync.java.
2932 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2933 Rename from LibGlomServiceImpl.java.
2934 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2936 2011-02-17 Ben Konrath <ben@bagu.org>
2938 Update JDT settings.
2940 * .settings/org.eclipse.jdt.core.prefs:
2942 2011-02-17 Ben Konrath <ben@bagu.org>
2944 Move GWT-RPC objects to shared package (where they should be).
2946 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2947 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2948 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2949 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2950 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2951 org.glom.web.shared package.
2952 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2953 org.glom.web.shared package.
2954 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2955 directory in compilation to javascript.
2957 2011-02-16 Ben Konrath <ben@bagu.org>
2959 Add sort clause to the sql query that grabs table information.
2961 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2962 if one of the columns is a primary key.
2964 2011-02-16 Ben Konrath <ben@bagu.org>
2966 Disable generateAsync feature of gwt-maven.
2968 The generated interface does not correctly match the methods in LibGlomService
2969 and the generated singleton Util inner-class doesn't respect the servlet
2972 * pom.xml: Turn off generateAsync feature.
2973 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2974 with singleton Util inner-class.
2976 2011-02-14 Ben Konrath <ben@bagu.org>
2978 Add LGPL v3 licence notices.
2980 Followed directions listed here:
2981 http://www.gnu.org/licenses/gpl-howto.html
2983 * COPYING: This file is a copy of the GPL v3.
2984 * COPYING.LESSER: This file is a copy of the LGPL v3.
2985 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2987 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2989 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2991 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2993 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2995 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2997 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3000 2011-02-14 Ben Konrath <ben@bagu.org>
3002 Use ArrayList instead of Array in GWT-RPC calls.
3004 Apparently this gives a slight performance boost to the compiled
3007 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
3009 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
3012 2011-02-14 Ben Konrath <ben@bagu.org>
3014 Access data from a postgres db rather than the example glom file.
3016 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
3017 compile down to obfuscated javascript.
3018 * pom.xml: Add c3p0 and postgres JDBC libraries.
3019 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
3020 using a postgres db accessed through the c3p0 connection pooling library.
3022 2011-02-14 Ben Konrath <ben@bagu.org>
3024 Update Java formatter settings.
3026 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
3028 2011-02-02 Ben Konrath <ben@bagu.org>
3030 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
3032 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
3034 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
3035 the compiled webapp directory that Eclipse uses as we're using Maven now.
3036 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
3037 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
3039 * pom.xml: Format file, change target Java version to 1.6.
3041 2011-02-02 Ben Konrath <ben@bagu.org>
3043 Add information about a deployment related issue.
3045 * README: Add Notes section with the problem outlined.
3047 2011-02-02 Ben Konrath <ben@bagu.org>
3049 Call Glom.libglom_deinit() when the servlet is shutdown.
3051 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
3052 Glom.libglom_deinit() to destroy() method.
3054 2011-01-28 Ben Konrath <ben@bagu.org>
3056 Use generated Util class to get the RPC Async interface.
3058 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
3060 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
3061 getInstance() method to get a reference to the RPC Async interface.
3062 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
3063 getInstance() method to get a reference to the RPC Async interface, remove
3064 the now unused getLibGlomServiceProxy() method.
3066 2011-01-27 Ben Konrath <ben@bagu.org>
3068 Cleanup ChangeLog entry from previous commit.
3070 * ChangeLog: Group logical changes together and add comments.
3072 2011-01-25 Ben Konrath <ben@bagu.org>
3074 Convert to gwt-maven project.
3076 * .gitignore: Update for new project structure.
3077 * README: New file with a link to the online documentation.
3078 * pom.xml: The generated maven configuration file with some tweaks.
3080 Add / update Eclipse settings. These files are a merge of the files that
3081 were generated with the gwt-maven plugin and the files we were previously
3085 * .settings/.jsdtscope:
3086 * .settings/com.google.gdt.eclipse.core.prefs:
3087 * .settings/com.google.gwt.eclipse.core.prefs:
3088 * .settings/org.eclipse.jdt.core.prefs:
3089 * .settings/org.eclipse.wst.common.component:
3090 * .settings/org.eclipse.wst.common.project.facet.core.xml:
3091 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
3092 * .settings/org.maven.ide.eclipse.prefs:
3093 * OnlineGlomTest-dev.launch:
3094 * OnlineGlomTest-prod.launch:
3096 Java source files moved from the 'src' directory to the directory structure
3098 * src/main/java/org/glom/web/client/GlomDocument.java:
3099 * src/main/java/org/glom/web/client/GlomTable.java:
3100 * src/main/java/org/glom/web/client/LayoutList.java:
3101 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
3102 * src/main/java/org/glom/web/client/LibGlomService.java:
3103 * src/main/java/org/glom/web/client/OnlineGlom.java:
3104 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
3106 Non-functional property file used for translations. I included this as
3107 reminder that it's something I need to sort out.
3108 * src/main/resources/org/glom/web/client/Messages.properties:
3110 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3111 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3113 The servlet configuration files moved from the 'war' directory.
3114 * src/main/webapp/OnlineGlom.css:
3115 * src/main/webapp/OnlineGlom.html:
3116 * src/main/webapp/WEB-INF/web.xml:
3118 Generated test files with most of the code commented out. I included these
3119 so that it's easy to add tests when we're ready for them.
3120 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3121 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3123 2011-01-25 Ben Konrath <ben@bagu.org>
3125 Remove unused println.
3127 * src/org/glom/web/server/LibGlomServiceImpl.java:
3129 2011-01-25 Ben Konrath <ben@bagu.org>
3131 Add project specific JDT settings.
3133 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3134 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3136 2011-01-25 Ben Konrath <ben@bagu.org>
3138 Populate celltable with example data.
3140 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3141 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3142 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3143 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3144 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3145 asynchronously gets the example data.
3146 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3147 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3148 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3149 curently selected table to be retrieved by other widgets.
3150 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3151 implement getTableData() in a hacky way. This method needs to be updated
3152 to grab information from the database when database creating is
3155 2011-01-20 Ben Konrath <ben@bagu.org>
3157 Set table headers when table dropBox changes.
3159 * src/org/glom/web/client/GlomDocument.java: Correct some method
3161 * src/org/glom/web/client/LibGlomService.java: Add method
3162 to get list layout field names.
3163 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3164 to get list layout field names.
3165 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3166 widget for list layout table.
3167 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3168 the table drop box and add new updateTable() method to asynchronously
3169 get the layout list field names for the currently selected table.
3170 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3171 implementation of getLayoutListHeaders() method.
3172 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3174 2011-01-18 Ben Konrath <ben@bagu.org>
3176 Make a listBox with table titles instead of the flexTable demo.
3178 This is the start of something more useful.
3180 * .classpath: Exclude a bunch of packages from the JVM that are
3181 getting in the way of the Eclipse content assist.
3182 * src/org/glom/web/client/GlomDocument.java:
3183 * src/org/glom/web/client/GlomTable.java:
3184 * src/org/glom/web/client/LibGlomService.java:
3185 * src/org/glom/web/client/LibGlomServiceAsync.java:
3186 * src/org/glom/web/client/OnlineGlom.java:
3187 * src/org/glom/web/server/LibGlomServiceImpl.java:
3188 * war/OnlineGlom.html:
3189 * war/WEB-INF/web.xml:
3191 211-01-13 Ben Konrath <ben@bagu.org>
3193 Update to new java-libglom API.
3195 * .gitignore: Ignore OnlineGlom.war.
3196 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3198 2010-12-20 Ben Konrath <ben@bagu.org>
3200 Add some basic style to the table listing.
3202 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3203 header, print useful error message on async callback failure.
3204 * war/OnlineGlom.css: Add style for table header, remove defaults
3205 provided by the Eclipse project wizard.
3207 2010-12-20 Ben Konrath <ben@bagu.org>
3209 Load example file from installed glom dir.
3211 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3212 provided by java-libglom to find the example file.
3214 2010-12-20 Ben Konrath <ben@bagu.org>
3216 Update Eclipse settings.
3219 * .settings/com.google.gdt.eclipse.core.prefs:
3220 * .settings/com.google.gwt.eclipse.core.prefs:
3222 2010-12-17 Ben Konrath <ben@bagu.org>
3226 * .classpath: New file.
3227 * .gitignore: New file.
3228 * .project: New file.
3229 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3230 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3231 * src/org/glom/web/OnlineGlom.gwt.xml: New file.