1 2011-12-02 Ben Konrath <ben@bagu.org>
3 Update / fix some comments.
5 * src/main/java/org/glom/web/client/OnlineGlomService.java: Remove old
7 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Fix
9 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
10 Fix comments. Add some TODOs.
12 2011-12-02 Ben Konrath <ben@bagu.org>
14 Enable navigation to details view with string primary key from related list.
16 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
17 Create a text primary key value when return type of result is
18 java.sql.Types.VARCHAR.
20 2011-12-02 Ben Konrath <ben@bagu.org>
22 Use checkboxes for booleans in the details view.
24 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
26 2011-12-01 Ben Konrath <ben@bagu.org>
28 Improve performance of related list height calculation.
30 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
31 Put code to calculate the expected height in a static initializer so
32 that that it's only called once.
34 2011-12-01 Ben Konrath <ben@bagu.org>
36 Show related list tables in notebooks (again).
38 Calculate the height of the related list tables so the Notebook can be
39 set the correct height. The height of the related list table is also needed by
40 FlowTable to be able decide how to create the layout.
42 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
43 and set the Portal height based on the height of the related list
44 table and the Portal container.
45 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
46 Add method to calculate the height of the related list tables.
47 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
48 * src/main/webapp/style.css: Add css class for Pager. This is needed to
49 calculate the height of the Pager widget.
51 2011-12-01 Ben Konrath <ben@bagu.org>
53 Use CellTable API for table property instead of setting style on Element.
55 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
57 2011-12-01 Ben Konrath <ben@bagu.org>
59 Make ListViewTable and RelatedListTable a consistent height.
61 The tables are now a consistent height regardless of the contents of
62 the table. A hidden button is added to empty rows to ensure that the
63 height of these rows will match the height of rows with data.
65 A navigation button column is now added to every table. The width of
66 the navigation column is set to 0px when a RelatedListTable shouldn't
67 have navigation buttons. This maintains the a consistent row height in
68 tables that don't show the navigation buttons.
70 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
71 navigation column when not needed.
72 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
73 arguments for navigation button to constructor of ListViewTable.
74 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
75 hidden button for empty data rows.
76 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
77 arguments for navigation button to constructor.
78 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
79 create navigation buttons. Add hideNavigationButtons() method.
80 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
81 arguments for navigation button to constructor.
83 2011-12-01 Ben Konrath <ben@bagu.org>
85 Use 'visibility: hidden' in Utils.getWidgetHeight().
87 This is better choice because hidden elements are invisible, don't
88 respond to events and are not part of the tab order. They will,
89 however, take up space which is required to be able to calculate the
92 * src/main/java/org/glom/web/client/Utils.java:
94 2011-12-01 Ben Konrath <ben@bagu.org>
96 Use Utils.getWidgetHeight() in FlowTable.
98 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
100 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
102 2011-12-01 Ben Konrath <ben@bagu.org>
104 Put the details css class name on the correct table column.
106 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
108 2011-11-30 Ben Konrath <ben@bagu.org>
110 Update for java-libglom API change.
112 The getters and setters on FieldFormatting and NumericFormat were
113 changed to remove the 'M'.
115 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
117 2011-11-29 Ben Konrath <ben@bagu.org>
119 Only allow RelatedListTables in Portals.
121 * src/main/java/org/glom/web/client/ui/details/Portal.java:
123 2011-11-29 Ben Konrath <ben@bagu.org>
125 Only create a contents panel for Portals when title is being set.
127 * src/main/java/org/glom/web/client/ui/details/Portal.java:
129 2011-11-29 Ben Konrath <ben@bagu.org>
131 Set TabLayoutPanel height based on calculated height its widgets.
133 This is a potential fix for this bug:
135 https://bugzilla.gnome.org/show_bug.cgi?id=665133
137 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
139 2011-11-29 Ben Konrath <ben@bagu.org>
141 Align details field labels and data with the Open buttons.
143 * src/main/webapp/style.css:
145 2011-11-29 Ben Konrath <ben@bagu.org>
147 Remove unnecessary <div> in the Notebook widget.
149 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
150 method to get container FlowPanel (<div>).
151 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
152 initWidget() method directly on the TabLayoutPanel widget instead of
153 Group's container widget.
155 2011-11-29 Ben Konrath <ben@bagu.org>
157 Don't add group titles for Portals in Notebooks.
159 This reverts the previous patch and fixes a bug I introduced with
160 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
162 * src/main/java/org/glom/web/client/ui/details/Group.java:
163 * src/main/java/org/glom/web/client/ui/details/Portal.java:
165 2011-11-28 Ben Konrath <ben@bagu.org>
167 Remove unused boolean argument in Portal constructor.
171 * src/main/java/org/glom/web/client/ui/details/Group.java:
172 * src/main/java/org/glom/web/client/ui/details/Portal.java:
174 2011-11-28 Ben Konrath <ben@bagu.org>
176 Remove hack for glom 1.18 style glom files.
178 * src/main/java/org/glom/web/client/ui/details/Group.java:
179 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
180 * src/main/java/org/glom/web/client/ui/details/Portal.java:
182 2011-11-28 Ben Konrath <ben@bagu.org>
184 Use Gda Value version of primary key to log result too large error.
186 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
188 2011-11-28 Ben Konrath <ben@bagu.org>
190 Don't use TypedDataItem.getText() for Unknown types from the URL.
192 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
193 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
194 instead of getText().
195 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
196 String field and getUnknown() method.
198 2011-11-28 Ben Konrath <ben@bagu.org>
200 Log an error message when the java-libglom .so is not present.
202 The error message was being set in the exception but not logged.
204 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
206 2011-11-28 Ben Konrath <ben@bagu.org>
208 Ignore LayoutItem_CalendarPortals.
210 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
211 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
213 2011-11-28 Ben Konrath <ben@bagu.org>
215 Extract method for creating the LayoutItemPortal DTO.
217 Just breaking the code up into smaller chunks.
219 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
221 2011-11-28 Ben Konrath <ben@bagu.org>
225 This should have been added with the refactor. Oops!
227 * src/main/java/org/glom/web/shared/TypedDataItem.java:
229 2011-11-28 Ben Konrath <ben@bagu.org>
231 Create primary key value from URL string using type from Glom document.
233 See this bug, comments 19 - 25:
235 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
237 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
238 create a TypeDataItem for the primary key here when loading from a
239 URL. Show the same string for the primary key value as was received
240 from the URL string (when loading from a URL).
241 * src/main/java/org/glom/web/server/Utils.java: Update method for
242 creating the Gda Value from the TypeDataItem to properly deal with
243 creating a Gda Value based on the Glom document type for the primary
244 key value string when loading from a URL.
245 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
246 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
247 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
248 Update for changed method name.
250 2011-11-27 Ben Konrath <ben@bagu.org>
252 Rename PrimaryKeyItem to TypedDataItem.
254 The name PrimaryKeyItem suggests what the class should be used for.
255 TypedDataItem is a neutral name that describes the class better.
257 This is a rename-only refactor.
259 * src/main/java/org/glom/web/client/OnlineGlomService.java:
260 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
261 * src/main/java/org/glom/web/client/Utils.java:
262 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
263 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
264 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
265 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
266 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
267 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
269 * src/main/java/org/glom/web/server/Utils.java:
270 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
271 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
272 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
273 * src/main/java/org/glom/web/shared/NavigationRecord.java:
275 2011-11-25 Ben Konrath <ben@bagu.org>
277 Improve Gda Value conversion from PrimaryKeyItem.
279 The value from the PrimaryKeyItem is only used if its type match the
280 type from the glom document.
282 * src/main/java/org/glom/web/server/Utils.java:
284 2011-11-25 Ben Konrath <ben@bagu.org>
286 Manually check if the java-liblgom .so is visible to the JVM.
288 It seems that Tomcat has problems when a static initializer throws an
289 exception. This check is done before the first method call into
290 java-libglom so that execution doesn't continue if the .so is not
293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
295 2011-11-25 Ben Konrath <ben@bagu.org>
297 Improve browser configuration error messages.
301 https://bugzilla.gnome.org/show_bug.cgi?id=662792
303 * src/main/java/org/glom/web/client/OnlineGlomService.java:
304 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
305 getConfigurationErrorMessage() method.
306 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
307 Get and display a specific configuration error message when no Glom
309 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
310 Implement getConfigurationErrorMessage() method. Surround configuration
311 code in the init() method with a try/catch block. This allows the
312 errors to be caught while keeping the servlet available to retrieve the
313 configuration error message.
315 2011-11-25 Ben Konrath <ben@bagu.org>
317 Don't use Strings to hold primary key values.
319 The primary key values are now held in a new data object
320 (PrimaryKeyItem) that holds type information and the primary key value
321 using the correct type.
323 * src/main/java/org/glom/web/client/OnlineGlomService.java:
324 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
326 PrimaryKeyItem instead of String to hold the primary key value.
327 * src/main/java/org/glom/web/client/Utils.java: Remove
328 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
329 PrimaryKeyItem based on the GlomFieldType and the DataItem.
330 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
331 PrimaryKeyItem instead of String to hold the primary key value. Load
332 document selection page when the documentID has not been set correctly.
333 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
334 DetailsPlace -> URL and URL -> DetailsPlace conversion with
336 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
337 Return empty string for URL instead of "null".
338 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
339 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
340 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
341 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
342 PrimaryKeyItem instead of String to hold primary key values.
343 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
344 PrimaryKeyValue to a Gda Value.
345 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
346 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
347 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
348 Replace temporary database access code that uses the PrimaryKeyValue to
349 Gda Value conversion.
350 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
351 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
352 PrimaryKeyItem instead of String.
353 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
354 hold primary key values.
356 2011-11-24 Ben Konrath <ben@bagu.org>
358 Use newly added java-libglom API to create queries.
360 This isn't finished. I still need to stop using Strings for primary key
361 values in the client code.
363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
364 libglom to use fake connections so that retrieving the query string will
366 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
367 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
368 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
369 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
370 Use the newly added libglom sql methods and classes to create the
371 query. Add temporary hack to convert primary value strings to Gda
374 2011-11-23 Ben Konrath <ben@bagu.org>
376 Don't explicitly set the height of Portals.
378 See comments 6 - 10 of this bug for details:
380 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
382 * src/main/java/org/glom/web/client/ui/details/Portal.java:
384 2011-11-23 Ben Konrath <ben@bagu.org>
386 Use an HTML table instead of CSS for the FlowTable layout.
388 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
389 GWT's FlexTable to implement the FlowTable.
390 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
392 2011-11-18 Ben Konrath <ben@bagu.org>
394 Add boolean example to HTML table mockup.
396 * mockups/details-view-html-tables-text-entries.html:
398 2011-11-17 Ben Konrath <ben@bagu.org>
400 Ensure the pager buttons are always visible for related lists.
402 To accomplish this, I've turned off text wrapping in the list view and
403 related list tables for both the header and data text. The related list
404 table now has a fixed layout so the it doesn't overflow its container.
405 This is required to ensure that the cell text is clipped when it
406 overflows the cell and an ellipsis is added to the right side of the
407 cell when text is clipped.
409 A fixed table layout for the related list table in the details view
410 seems what we want for the details view anyway, so the side-effect is
413 The ellipsis will only be displayed in Firefox >= 7.
417 https://bugzilla.gnome.org/show_bug.cgi?id=662930
419 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
420 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
421 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
423 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
424 Set the 'table-layout: fixed' CSS property to the related list table.
425 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
426 'white-space: nowrap;' CSS property on both the list view and the
429 2011-11-16 Ben Konrath <ben@bagu.org>
431 Rework the fix for empty notebook tab labels.
433 Setting the empty group titles with its name caused problems for the
434 details layout. Instead of using libglom's
435 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
436 to the client when the title is empty. This allows the Notebook to use
437 the name when the title is empty without affecting anything else.
439 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
440 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
442 2011-11-16 Ben Konrath <ben@bagu.org>
444 Set group titles with name when title is empty.
446 This fixes a problem with an empty notebook tab label in the Lesson
447 Planner document. The forth tab in the notebook should be "Internet":
449 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
451 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
452 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
455 2011-11-16 Ben Konrath <ben@bagu.org>
457 Remove whitespace from the configured username properties.
459 This assumes that usernames won't have whitespace at the beginning
460 or end. But I think this is a reasonable assumption.
462 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
463 String.trim() to remove the whitespace from the username properties.
465 2011-11-15 Ben Konrath <ben@bagu.org>
467 Add details view mockup with HTML tables and text entries.
469 This is from the attachment on this bug:
471 https://bugzilla.gnome.org/show_bug.cgi?id=663109
473 * mockups/details-view-html-tables-text-entries.html:
475 2011-11-15 Ben Konrath <ben@bagu.org>
477 Add space between the columns of the flow table.
481 https://bugzilla.gnome.org/show_bug.cgi?id=662918
483 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
484 space between columns in the flow table.
486 2011-11-15 Ben Konrath <ben@bagu.org>
488 Add backup files to the .gitignore.
490 * .gitignore: Ignore files that end with ~.
492 2011-11-09 Ben Konrath <ben@bagu.org>
494 Use latest release of gwt-log.
496 Gwt-log releases are now being submitted to the maven central
497 repository so manual installation of the jar is no longer required.
499 * pom.xml: Update version and groupId of gwt-log dependency.
501 2011-10-31 Ben Konrath <ben@bagu.org>
503 Don't use GWT numeric formatting to override the glom currency formatting.
505 Currencies are now displayed like they are in Glom. See this bug:
507 https://bugzilla.gnome.org/show_bug.cgi?id=646216
509 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
511 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
512 currency code to constructor and set it when the cell is rendered.
513 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
514 currency code to the constructor of the NumericCell.
516 2011-10-27 Ben Konrath <ben@bagu.org>
518 Require the latest release of java-libglom (1.17.4).
522 2011-10-26 Ben Konrath <ben@bagu.org>
524 Add style to Notebook that matches current theme.
526 It's not the best style in the world but it's better than the default.
528 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
529 padding at the bottom of the child widgets.
530 * src/main/webapp/style.css: Add style for the Notebook.
532 2011-10-26 Ben Konrath <ben@bagu.org>
534 Move servlet initialization code to overridden init method.
536 This is half of the solution to getting proper error messages
537 displayed when configuration errors occur. Here's the relevant bug:
539 https://bugzilla.gnome.org/show_bug.cgi?id=662792
541 The rest of the solution involves surrounding the init method with a
542 try/catch block and setting a global variable with the error /
543 exception. A new async method should be created to retrieve and display
544 the error message / exception.
546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
547 code from constructor to init method adding exceptions as needed.
549 2011-10-26 Ben Konrath <ben@bagu.org>
551 Add script to monitor and restart tomcat if required.
553 * utils/check-and-recover-tomcat.py: New file.
555 2011-10-26 Ben Konrath <ben@bagu.org>
557 Display the correct number of data items in the pager.
561 https://bugzilla.gnome.org/show_bug.cgi?id=661441
563 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
564 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
565 The implementation is the same for both tables: Keep track of the
566 number of non-empty rows and fire and RowCountChangeEvent after the data has
568 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
569 custom Pager class that subclasses SimplePager to handle displaying
570 the correct number when empty rows have been added.
572 2011-10-26 Ben Konrath <ben@bagu.org>
574 Correct error in previous commit.
576 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
577 eventBus parameter from listView.setCellTable().
579 2011-10-26 Ben Konrath <ben@bagu.org>
581 Fix error in TODO comment.
583 * src/main/java/org/glom/web/client/activity/ListActivity.java:
585 2011-10-24 Ben Konrath <ben@bagu.org>
587 Create Notebook widgets to the details view.
589 This isn't finished just yet - I still need to create a reasonable
590 style to match the current theme.
592 * src/main/java/org/glom/web/client/Utils.java: Add method for
593 calculating the height of a widget. This is used in the Notebook class.
594 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
595 new constructor method in Group.
596 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
597 method for creating child widget that can be used by subclasses
598 like Notebook. New constructor that allows disabling the group
599 titles - Notebooks don't set a group title for their child groups.
600 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
601 to make Notebooks using GWT's TabLayoutPanel.
602 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
603 constructor that allows disabling the group titles.
604 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
605 LayoutItemNotebook DTO.
606 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
607 DTO for Notebooks. It's just an empty class for now but we might need
608 it to transfer some specific information in the future.
610 2011-10-21 Ben Konrath <ben@bagu.org>
612 Add navigation buttons to related list tables.
614 * src/main/java/org/glom/web/client/OnlineGlomService.java:
615 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
616 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
617 method getSuitableRecordToViewDetails() for getting the table name
618 and primary key value for related list navigation buttons.
619 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
620 private cell renderer class to get the navigation information for
621 related list tables from the server. Extract the navigation
622 processing code from the details cell navigation and use it for the
623 related list navigation as well.
624 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
625 cell renderer class for the details open buttons. This was needed
626 because the related list navigation buttons and the list view
627 navigation buttons need to react differently when clicked.
628 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
629 the onEnterKeyDown() method because it's now overriden in the
630 subclasses that are specific to the related list tables and the list
632 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
633 the vertical size a little because the buttons add a bit of vertical
634 space to table. This is not a perfect solution because the vertical
635 size of with table fewer than 5 rows will be a little smaller.
636 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
637 changes in how navigation buttons are handled.
638 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
639 getSuitableRecordToViewDetails() using the new RelatedListNavigation
640 database access object.
641 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
642 to find the portal for a given relationship name from
643 RelatedListDBAccess. Add method to find a primary key field for a
645 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
646 Move code to find the portal for a given relationship name to
648 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
649 New file: database access object for getting the related list
650 navigation information (the table name and the primary key value).
651 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
652 DTO for transferring a table name to navigate to and a primary key
654 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
655 boolean and getter/setter to specifies if the related list should add
658 2011-10-24 Murray Cumming <murrayc@murrayc.com>
660 Use the master branch of java-libglom
662 * pom.xml: Depend on java-libglom 1.19 instead.
664 This is the master branch. See also the libglom-1-18 branch.
666 2011-10-11 Ben Konrath <ben@bagu.org>
668 Enable the open navigation button when the data has been set.
670 This avoids having active buttons that don't do anything when the data
673 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
675 2011-10-11 Ben Konrath <ben@bagu.org>
677 Use IsWidget interface for FlowTableItem.
679 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
680 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
682 2011-10-11 Ben Konrath <ben@bagu.org>
684 Remove GWT styling from open button in details view.
686 There are still some issues with how the details cell is arranged but
687 this should be made to match Glom 1.20. I'm going to leave fixing this
688 until I have Glom 1.20 up and running.
690 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
691 style name on open button.
692 * src/main/webapp/style.css: Move and edit details-navigation class.
693 Re-arrange some classes to make them appear in the same order as the
696 2011-10-07 Ben Konrath <ben@bagu.org>
700 * .gitignore: Ignore new cache directory.
701 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
702 * pom.xml: Change GWT and maven plugin to 2.4.0.
703 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
705 * src/main/java/org/glom/web/client/ClientFactory.java:
706 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
707 * src/main/java/org/glom/web/client/OnlineGlom.java:
708 Update source for API changes.
709 * utils/build-onlineglom-war.sh: Remove cache directory before the
712 2011-10-07 Ben Konrath <ben@bagu.org>
714 Add navigation buttons in the details view.
716 This isn't finished but I thought I'd commit what I have as it's a
717 pretty good start. I still need to:
719 1. Change the style so that it fits better into the current theme
720 2. Adjust the details cell to expand as much as possible.
722 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
723 click handlers to navigation buttons in the DetailsCells. Create a
724 refreshData() method to get just the data from the server without the
726 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
727 Update the tableSelector and browser title when the table name
728 changes without using the tableSelector.
729 * src/main/java/org/glom/web/client/ui/DetailsView.java:
730 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
731 getDetailsCells() to getCells(). Update variable names.
732 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
733 method to set click handler on navigation button. Rename a few
734 variables. Add navigation buttons where needed.
735 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
736 variables and methods.
737 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
738 navigation boolean and navigation table as required in the
740 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
741 variables for navigation along with getter/setter methods.
743 2011-10-07 Ben Konrath <ben@bagu.org>
745 Rename Field to DetailsCell.
747 This is a refactor-only commit. No functionality has been added or
750 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
751 Update variable and method names.
752 * src/main/java/org/glom/web/client/ui/DetailsView.java:
753 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
754 variable and method names.
755 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
757 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
758 variable and method names.
760 2011-10-07 Ben Konrath <ben@bagu.org>
762 Create separate methods for layout and data the details view.
764 This is a refactor-only commit. No functionality has been added or
767 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
768 private methods: setData(), createLayout().
770 2011-10-07 Ben Konrath <ben@bagu.org>
772 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
774 This is part of a change to get navigation buttons in the details view
775 but it should have been done this way from the start.
777 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
778 for method name change in TableSelectionView.
779 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
780 Create TableChangeEvent and set the browser title using the
781 TableSelectionView API.
782 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
783 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
784 Change getSelectedTable() to getSelectedTableName(). Add
785 getSelectedTableTitle().
787 2011-10-07 Ben Konrath <ben@bagu.org>
789 Use primaryKeyValue naming convention in constructor of DetailsPlace.
791 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
793 2011-10-07 Ben Konrath <ben@bagu.org>
795 Update TableChangeEvent to use newTableName naming convention.
797 This makes the class more consistent with GWT naming conventions.
799 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
800 Update for method name change in TableChangeEvent.
801 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
802 for method name change in TableChangeEvent.
803 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
804 newTableName variable and getter method. Make toDebugString()
807 2011-09-30 Ben Konrath <ben@bagu.org>
809 Disable the pager in the list tables when the data row count is less than the minimum.
811 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
812 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
814 2011-09-30 Ben Konrath <ben@bagu.org>
816 Add empty rows to the end of related list and list view tables.
818 I also extracted the cell rendering classes from the ListTable because
819 the code was becoming a little crazy with all the anonymous inner
820 classes. My plan is to use these cell rendering classes in the details
821 view as well so this refactor will be needed for that change.
823 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
824 set the row count in related list tables if the data has more rows
825 than the minimum number of rows visible.
826 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
827 row count in list view tables if the data has more rows than the
828 minimum number of rows visible.
829 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
830 for rendering TYPE_BOOLEAN cells. The code was extracted from the
832 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
833 for rendering TYPE_NUMERIC cells. The code was extracted from the
835 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
836 class for rendering cells with buttons in list views. The code was
837 extracted from the ListTable class.
838 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
839 for rendering TYPE_TEXT cells. The code was extracted from the
841 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
842 Add empty rows to the end of the data if required. Implement
843 ListTable.getMinNumVisibleRows().
844 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
845 cell renderer code to public classes. Return null in
846 Column.getValue() for empty rows. Add new abstract method:
847 getMinNumVisibleRows(). Move code to set the row count of the list view
848 table to ListViewImpl.
849 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
850 empty rows to the end of the data if required. Implement
851 ListTable.getMinNumVisibleRows().
854 2011-09-27 Ben Konrath <ben@bagu.org>
856 Use GWT.log for client-side debugging statements.
858 These are optimized out when deployed so I should have used this method
859 in the first place. These statements will eventually be replaced with some sort
860 of notification in the browser.
862 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
863 * src/main/java/org/glom/web/client/activity/ListActivity.java:
864 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
865 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
866 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
868 2011-09-27 Ben Konrath <ben@bagu.org>
870 Put tableselector on the right, back to list link on right.
872 The idea is that the table selector is acting like a label for the
873 currently displayed table so it should be placed below the document title. This
874 puts the table title in a similar position to where it is in Glom.
876 * mockups/details-contacts.html:
877 * mockups/details-projects.html:
878 * mockups/listview-contacts.html:
879 * mockups/listview-projects.html:
881 Update mockups to match how the interfaces currently look.
882 * src/main/webapp/style.css: Swap positions of backlink with the table
883 selector. Add some space on the left side of the table selector to
884 line things up with the document title.
886 2011-09-27 Ben Konrath <ben@bagu.org>
888 Add field colouring to details view.
890 This change re-works how field colouring works. The colour formatting
891 information is now set to the client with the layout information instead of
892 with the data. This eliminates the need to send the same colour strings for
893 data in list view column when colour information is set.
895 In order to set an alternate colour for negative numeric values, the
896 number is now sent to client and formatted with the GWT NumberFormat class.
898 This change also fixes:
900 https://bugzilla.gnome.org/show_bug.cgi?id=659752
902 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
903 internationalization framework which is needed for client side numeric
905 * src/main/java/org/glom/web/client/Utils.java: New file for some
906 client static utility methods.
907 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
908 the DataItem object to the Field class. Use a utility method to
909 create the foreignKeyValue string.
910 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
911 alignment and text colours in the constructor. Add setData(DataItem)
912 method. Remove setText(String) method.
913 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
914 colour information to GlomTextCell. Create and use GlomNumberCell for
915 rendering numbers. Use utility method to get the string for the
916 primary key of the key provider. Re-work how the horizontal alignment
918 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
919 formatting to layout information. Methods for converting the libglom
920 formatting information were moved from DBAccess.
921 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
922 numeric formatting (it's now done on the client side). Don't set text
923 colours in DataItem. Move libglom formatting conversion methods to
925 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
926 getters/setters for text colour information.
927 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
928 for transferring the libglom NumericFormat information to the client.
929 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
930 and getters/setters for: GlomNumericFormat, background colour and
931 foreground colour strings.
933 2011-09-26 Ben Konrath <ben@bagu.org>
935 Simplify code that iterates through the LayoutGroup.
937 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
939 2011-09-26 Ben Konrath <ben@bagu.org>
941 Accept Eclipse formatting for OnlineGlomServiceAsync.
943 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
945 2011-09-26 Ben Konrath <ben@bagu.org>
947 Don't use the ListDBAccess classes to get the primary key layout information.
949 This was causing a bug where the wrong index for the hidden primary key
950 was being sent to the client.
952 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
953 primary key while creating the LayoutGroup DTO. Create a
954 LayoutItemField DTO for hidden primary keys. Don't use the
955 RelatedListDBAccess because it was only used for getting the primary
957 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
958 access modifier from public to protected for getPrimaryKeyField() and
959 getPrimaryKeyLayoutItemField().
960 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
961 abstract method getExpectedResultSize() because RelatedListDBAccess
962 doesn't have enough info to implement it.
963 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
964 Remove @Override for getExpectedResultSize().
965 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
966 Remove method getExpectedResultSize().
968 2011-09-23 Ben Konrath <ben@bagu.org>
970 Log which layout (list or details) the ignored item is from.
972 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
974 2011-09-23 Ben Konrath <ben@bagu.org>
976 Remove annotations that turn off code formatting in DataItem.
978 * src/main/java/org/glom/web/shared/DataItem.java:
980 2011-09-23 Ben Konrath <ben@bagu.org>
982 Rename GlomField to DataItem and update associated methods.
984 This is a rename-only refactor. No functionality has been added or
987 * src/main/java/org/glom/web/client/OnlineGlomService.java:
988 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
989 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
990 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
991 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
992 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
993 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
994 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
996 * src/main/java/org/glom/web/server/database/DBAccess.java:
997 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
998 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
999 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1000 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1001 * src/main/java/org/glom/web/shared/DataItem.java:
1002 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
1003 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1005 2011-09-23 Ben Konrath <ben@bagu.org>
1007 Rename GlomDocument to DocumentInfo and update associated methods.
1009 This is a rename-only refactor. No functionality has been added or
1012 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1013 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1014 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1015 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1016 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1017 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1018 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1020 2011-09-20 Ben Konrath <ben@bagu.org>
1022 Require java-libglom 1.17.3.
1024 This picks up the fix for the seg fault problem with the Scenes table
1025 in the Openismus Film Manager example.
1029 2011-09-20 Ben Konrath <ben@bagu.org>
1031 Change the way sort clause is added for primary key when no sort clause is requested.
1033 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1034 before the sort clause is created. When a sort clause is not requested, the
1035 sort clause is created by finding the primary key in the LayoutFieldVector
1038 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1040 2011-09-20 Ben Konrath <ben@bagu.org>
1042 Log error message if no documents are found in the configured directory.
1044 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1045 Extract the glom file extension string to a private static final class
1046 variable (mostly as syntactic sugar). Accept a minor formatting change.
1047 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1048 the example glom.document.directory configuration property to make it
1049 more clear that it can any directory, not just the home directory.
1051 2011-09-18 Ben Konrath <ben@bagu.org>
1053 Add related lists to details view.
1055 The related list table has support for paging and sorting just like the
1056 table in the list view.
1058 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1059 SQL queries for the related list tables.
1060 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1061 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1062 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1063 Rename getList methods to getListView and add comments. Remove
1064 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1065 it being unused. Add methods: getDetailsLayoutAndData(),
1066 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1067 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1068 Create the layout and set the data for the fields in one async call
1069 instead of two. Create related lists where appropriate.
1070 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1071 for method name changes in OnlineGlomService.
1072 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1073 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1074 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1076 * src/main/java/org/glom/web/client/ui/ListView.java:
1077 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1078 tableName from setCellTable(). Create a ListViewTable instead of
1080 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1081 represent a data field in the details view.
1082 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1083 from addDetailsCell() to Field class. Keep track of the Fields and
1084 Portals in the details view.
1085 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1086 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1087 and add a method to get it. Add method to set the contents of the
1089 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1090 New class for related list tables. This class has the data provider
1091 for the related list table.
1092 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1093 abstract class which is the base class for the ListViewTable and the
1095 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1096 New class for list view tables. This class has the data provider for
1097 the list view table.
1098 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1099 methods for related list tables. Add more information to the
1100 LayoutItemField and LayoutItemPortal DTOs.
1101 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1102 Remove debugging print statement.
1103 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1104 Remove debugging print statements. Add primary key field to SQL count
1106 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1107 Remove unnecessary LayoutFieldVector parameter from
1108 getResultSizeOfSQLQuery() method.
1109 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1110 New class for related list table database access.
1111 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1112 class that is a wrapper DTO for details view layout and data.
1113 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1114 new 'fromField' string to this DTO.
1115 * src/main/webapp/style.css: Remove bottom margin and override top
1118 2011-09-15 Ben Konrath <ben@bagu.org>
1120 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1122 This sets things up to make it easier to add the data retrieval for
1123 related lists (portals). No user noticeable changes were made with
1126 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1127 class has the code to retrieve the layouts and access the
1128 database using the new database helper classes.
1129 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1130 Most of the functionality has been removed from this class. This
1131 class now represents the public interface for the client side
1132 code. It also deals with configuring the servlet and cleaning
1133 things up when the servlet is stopped.
1134 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1135 of static methods into this utility class.
1136 * src/main/java/org/glom/web/server/database/DBAccess.java:
1137 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1138 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1139 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1140 These classes have the database retrieval code. The class hierarchy
1141 has been setup to make it easy to reuse code for similar
1144 2011-09-06 Ben Konrath <ben@bagu.org>
1146 Create separate classes for list table code and the data provider.
1148 As part of this refactor, I also split up the code a bit to make it
1151 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1152 table code to two new classes (below).
1153 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1154 with code from ListViewImpl.
1155 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1156 New file with code from ListViewImpl.
1158 2011-09-06 Ben Konrath <ben@bagu.org>
1160 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1162 This fixes the LayoutItemPortal DTO to match the libglom layout object
1165 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1167 2011-09-01 Ben Konrath <ben@bagu.org>
1169 Set title of Portals in the Details View.
1171 * pom.xml: Bump required version of java-libglom to 1.17.1.
1172 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1173 widget creation to its own class. Add comments to constructor.
1174 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1175 The code is mostly from the Group class with the title now set.
1176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1177 title of Portal. Update some comments. Fix some code formatting.
1179 2011-09-01 Ben Konrath <ben@bagu.org>
1181 Remove TODO comment for the flow table column width.
1183 The flow table column width is working correctly and doesn't need to be
1184 changed. See this mailing list post for more info:
1186 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1188 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1190 2011-08-27 Ben Konrath <ben@bagu.org>
1192 Add document title (database name) to top of the browser page.
1194 I added the document title to the TableSelecitonView but that will
1195 change if / when we add a view that doesn't require table selection.
1197 * mockups/details-contacts.html:
1198 * mockups/details-projects.html:
1199 * mockups/listview-contacts.html:
1200 * mockups/listview-projects.html:
1201 * mockups/style.css: Add document title to mockups to keep things
1203 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1204 sizes to account for the document title.
1205 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1206 Set the document title when it has been retrieved from the server.
1207 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1208 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1209 and implement setDocumentTitle(String) method.
1210 * src/main/webapp/style.css: Add ID for document title style.
1212 2011-08-25 Ben Konrath <ben@bagu.org>
1214 Add NavigationType enum to LayoutItemPortal DTO.
1216 This is the start of adding support for Portals to the Details View.
1218 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1219 LayoutItem_Portal.navigation_type enum from libglom to
1220 LayoutItemPortal.NavigationType enum.
1221 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1222 NavigationType enum, field for storing the NavigationType and getter
1225 2011-08-25 Ben Konrath <ben@bagu.org>
1227 Implement the flow table layout in the Details View.
1229 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1230 FlowTable to Group to account for the renamed class.
1231 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1232 File. This is a container widget that implements the Glom details view
1233 flow table behaviour.
1234 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1235 org/glom/web/client/ui/FlowTable.java.
1236 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1237 so that the size of the subgroups are a closer match to the size of
1238 the Glom subgroups. This makes the flowtable layout match the layout
1239 in Glom for the Music Collection example file.
1241 2011-08-16 Ben Konrath <ben@bagu.org>
1243 Create container element for LayoutItemPortal in Details View.
1245 This will help me develop the layout for the FlowTable.
1247 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1248 fieldPanel variable to detailsCell.
1250 2011-08-15 Ben Konrath <ben@bagu.org>
1252 Set the height of the data element in the Details View.
1254 I changed the InlineLabels (text in a span element) to Labels (text in
1255 a div element) so that I could set the height of the details-data
1256 elements instead of the details-cell parent elements. This allows the
1257 the details-data element to display the correct height if style is
1258 applied that shows the height.
1260 This change has the added benefit of allowing the order of the labels
1261 and data elements to be changed for right-to-left languages.
1263 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1264 InlineLabels to Labels.
1265 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1266 InlineLabels to Labels. Set the height of the data element.
1267 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1268 multiline text height in the Formatting DTO.
1269 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1270 for multiline height along with getter and setter methods.
1271 * src/main/webapp/style.css: Adjust style to account for the change
1272 from span elements to div elements in the details cell.
1274 2011-08-15 Ben Konrath <ben@bagu.org>
1276 Make the List View appearance match the mockups.
1278 It doesn't match exactly but it's much better than it was.
1280 * mockups/listview-contacts.html: Remove unused css classes.
1281 * mockups/listview-projects.html: Remove unused css classes.
1282 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1283 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1284 for mainPanel instead of VerticalPanel (table). Set style name on
1285 CellTable. Set style name on Details column. Right-align Details
1287 * src/main/webapp/style.css: Adjust properties to match the mockups.
1289 2011-08-12 Ben Konrath <ben@bagu.org>
1291 Add better support for subgroups in the details view.
1293 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1294 changed FlowTable constructor.
1295 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1296 support for subgroups and subgroup-titles.
1297 * src/main/webapp/style.css: Add CSS class for subgroups and
1300 2011-08-12 Ben Konrath <ben@bagu.org>
1302 Return the top level LayoutGroup title.
1304 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1306 2011-08-11 Ben Konrath <ben@bagu.org>
1308 Make the TableSelector header match the mockup.
1310 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1311 the layout panel. Properly lineup the table selection header with
1312 the list and details view.
1313 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1314 margin around the details view.
1315 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1316 Rename listBox variable to tableSelector. Set id for the style sheet.
1317 Use a FlowPanel instead of a HorizontalPanel.
1318 * src/main/webapp/style.css: Add properties to make the TableSelector
1319 box match the mockups.
1321 2011-07-13 Ben Konrath <ben@bagu.org>
1323 Update install script for java-libglom version change.
1325 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1328 2011-07-13 Ben Konrath <ben@bagu.org>
1330 Add support sub-group in the details view.
1332 I also removed the code that special-cased the default details view
1335 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1337 I still have to make a proper flowtable.
1339 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1340 Don't special-case default details view layout.
1341 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1342 addLayoutField() as I'm going to use it.
1343 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1344 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1346 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1347 extracted from DetailsViewImpl.GroupPanel. Add support for
1349 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1350 column count when getting the details layout.
1352 2011-07-12 Ben Konrath <ben@bagu.org>
1354 Set browser title with database and table titles.
1356 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1357 Set the browser title when the table changes and when the activity
1359 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1360 title when retrieving document info (the GlomDocument object).
1361 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1362 with getter and setter methods. Remove unused convenience constructor.
1363 Use default code formatting.
1365 2011-07-12 Ben Konrath <ben@bagu.org>
1367 Ignore LayoutItemPortals in the details view.
1369 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1372 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1373 LayoutItemPortal layout objects.
1374 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1375 LayoutItemPortal objects when retrieving the details layout.
1376 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1377 file. This is an empty class and just used to get type information for
1380 2011-07-12 Ben Konrath <ben@bagu.org>
1382 Use java-libglom 1.17.0.
1386 2011-07-11 Ben Konrath <ben@bagu.org>
1388 Remove "Table:" label from table selector.
1390 This matches a recent change in the Glom UI.
1392 * mockups/details-contacts.html:
1393 * mockups/details-projects.html:
1394 * mockups/listview-contacts.html:
1395 * mockups/listview-projects.html: Remove the "Table:" label from the
1397 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1399 2011-07-11 Ben Konrath <ben@bagu.org>
1401 Add main groups to the details view.
1403 This makes things look a little nicer in the details view. The next step
1404 is to implement the flowtable.
1406 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1407 resources from the standard gwt css theme. Standard.css is now
1408 included in OnlineGlom.html so that the online glom css rules have
1409 precedence over the gwt theme.
1410 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1411 the whole LayoutGroup to the DetailsView instead of just the titles.
1412 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1413 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1414 details layout with a helper class (GroupPanel). I might extract this
1415 class when I make the full flowtable.
1416 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1417 string as default so I don't have to worry about NPEs when processing
1419 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1420 note beside OnlineGlom.gwt.xml above).
1421 * src/main/webapp/style.css: Add default font-size to body to override
1422 the font-size set by the standard theme. Don't use h2 tags for
1423 group-title. Create new details-cell class.
1425 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1427 ConfiguredDocument: Set the port number too.
1429 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1430 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1431 Glom document. Presumably this worked sometimes so far because there is a
1432 default port number.
1434 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1436 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1438 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1439 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1440 correct, though we should throw an exception too.
1442 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1444 Fix a addDocuemnt typo.
1446 * src/main/java/org/glom/web/shared/Documents.java
1447 (Documents.addDocuemnt): Rename to addDocument().
1448 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1449 (OnlineGlomServiceImpl.getDocuments): Adapt.
1451 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1453 Slightly improved log output when connection fails.
1455 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1456 (ConfiguredDocument.setUsernameAndPassword):
1457 We don't know for sure if it' the username/password that's wrong, so
1458 rephrase the message.
1459 Also ouput the exception message, though it's generic in this case.
1461 2011-07-08 Ben Konrath <ben@bagu.org>
1465 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1466 added braces to a one line if statement because the Eclipse formatter
1467 was getting confused.
1469 2011-07-07 Ben Konrath <ben@bagu.org>
1471 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1473 These should really be two separate tasks but I counldn't get things to
1474 work with GWT 2.2.0 and Eclipse 3.7.
1478 * .settings/org.eclipse.jdt.core.prefs:
1479 * .settings/org.eclipse.jdt.ui.prefs:
1480 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1481 * .settings/org.eclipse.m2e.core.prefs:
1482 Add new config files. Update current files. Remove references to the
1483 webtools plugins as we're not using any of the webtools features.
1484 * .gitignore: Add logs directory which is created when running with
1486 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1487 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1488 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1490 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1492 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1494 onlineglom.properties: Add explanatory comments.
1496 * src/main/resources/onlineglom.properties: Also change the default user
1497 from ben to someuser, to avoid the risk of people thinking we just
1498 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1500 2011-06-28 Ben Konrath <ben@bagu.org>
1502 Use filename in Log for incorrect passwords.
1504 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1505 getFileName(String) method to get the filename from the URI.
1507 2011-06-28 Ben Konrath <ben@bagu.org>
1509 Add the table name to the URL token for the ListPlace.
1511 This makes things consistent between the DetailsPlace and the
1512 ListPlace. It also allows the the ListPlace to be bookmarked.
1514 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1515 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1517 Remove getDefaultListLayout(). The default layout is now returned
1518 by the getListLayout() method when the table name is an empty string.
1519 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1520 Add table name field. Change to a new ListPlace when the table
1521 has been changed. Use getListLayout() for getting the default
1523 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1524 Add table name field. Set the correct table name in the list box
1525 when loading from bookmark. This corrects a problem for the
1527 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1528 Move table name to super-class (HasSelectableTable). Move document
1529 and table URL keys to super-class in HasSelectableTable.
1530 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1531 Add table name field. Add Tokenizer class with URL key common to
1532 the subclasses (DetailsPlace and ListPlace).
1533 * src/main/java/org/glom/web/client/place/ListPlace.java:
1534 Add table name. Add code to parse the URL token.
1535 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1536 Update ListPlace construction with empty table name string.
1537 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1538 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1539 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1540 Update ListPlace construction with table name string.
1541 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1542 Change defaultTableName field to tableName to reflect how it's now
1543 used. Update the getter and setter methods.
1545 2011-06-28 Ben Konrath <ben@bagu.org>
1547 Enable the table selector in the DetailsView.
1549 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1550 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1551 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1552 Remove getDefaultDetailsLayout(). The default layout is now returned
1553 by the getDetailsLayout() method when the table name is an empty
1555 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1556 event handler for table change event. Change to using
1557 getDetailsLayout() for the default details layout.
1558 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1560 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1561 when navigating to the details place.
1563 2011-06-27 Ben Konrath <ben@bagu.org>
1565 Use filename based unique document ID in URL and for RPC.
1567 The document ID is the glom document name with spaces (' ') replaced
1568 with pluses ('+') and without the .glom extension.
1570 This change is mostly a string substitution of 'documentTitle' for
1571 'documentID'. The only code change is the addition of a Documents DTO to get the
1572 filename to document title mappings as indicated below.
1574 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1575 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1576 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1577 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1578 Use Documents DTO to create the document links in the document
1580 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1581 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1582 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1583 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1584 * src/main/java/org/glom/web/client/place/ListPlace.java:
1585 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1586 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1587 * src/main/java/org/glom/web/client/ui/ListView.java:
1588 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1589 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1590 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1591 * src/main/java/org/glom/web/server/Log.java:
1592 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1593 getDocumentTitles() to getDocuments() and return the Documents DTO.
1594 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1595 transferring the filename to document title mappings.
1597 2011-06-25 Ben Konrath <ben@bagu.org>
1599 Make the authentication popup work again.
1601 This bug was introduced when I extracted ConfiguredDocument to its own class.
1603 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1604 correct success / fail status in setUsernameAndPassword().
1606 2011-06-25 Ben Konrath <ben@bagu.org>
1608 Use filename as unique key for configuring database usernames and passwords.
1610 This replaces the use of the Glom document title which could change
1611 depending on the locale. Thanks to Murray Cumming for pointing out this
1614 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1615 * src/main/resources/onlineglom.properties:
1617 2011-06-24 Ben Konrath <ben@bagu.org>
1619 Pass primary key value to DetailsView.
1621 This enables the DetailsView to load the correct data.
1623 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1624 primary key value field and set in constructor. Pass primary key
1625 value to getDetailsData().
1626 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1627 variables for document title and primary key value.
1628 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1629 key value to the DetailsPlace.
1631 2011-06-24 Ben Konrath <ben@bagu.org>
1633 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1635 This allows the primary key to be retrieved by the Details button. This
1636 functionality has not been implemented yet but it's in the works.
1638 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1639 the LayoutGroup result to ListView.setCellTable instead of all of its
1640 fields individually.
1641 * src/main/java/org/glom/web/client/ui/ListView.java:
1642 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1643 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1644 get the primary key for the table.
1645 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1646 index of the primary key in the LayoutGroup accounting for hidden
1647 primary keys. Rename getJavaNumberFormat() to
1648 convertToJavaNumberFormat() for consistency. Cleanup / add some
1650 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1651 field for primary key index and a field to indicate whether the
1652 primary key is hidden or not.
1654 2011-06-23 Ben Konrath <ben@bagu.org>
1656 Rename getTableData methods to getListData.
1658 This is a rename refactor for consistency with other methods.
1660 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1661 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1662 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1665 2011-06-23 Ben Konrath <ben@bagu.org>
1667 Extract the ConfiguredDocument innerclass into its own class.
1669 This makes the servlet code more object oriented.
1671 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1672 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1673 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1674 new ConfiguredDocument class.
1676 2011-06-21 Ben Konrath <ben@bagu.org>
1678 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1680 This makes things more inline with how libglom works and reduces code
1681 duplication. This refactor lays the groundwork for adding the primary key to
1682 the LayoutGroup object.
1684 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1685 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1686 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1687 Change method names to getListLayout and getDefaultListLayout for
1688 consistency. Use LayoutGroup as the DTO for the list layout instead of
1689 ColumnInfo and LayoutListTable.
1690 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1691 new method names along with the LayoutGroup object for transferring the
1693 * src/main/java/org/glom/web/client/ui/ListView.java:
1694 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1695 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1696 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1698 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1699 Replaced with LayoutGroup.
1700 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1701 expectedResultSize and defaultTableName fields which are needed for
1703 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1704 type field which is needed for the list layout but will also be
1705 useful for the details layout as things progress.
1706 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1707 Make class abstract. Remove the unnecessary
1708 getFormattingHorizontalAlignment method. Add setFormatting method.
1710 2011-06-16 Ben Konrath <ben@bagu.org>
1712 Add scripts for building and installing war.
1714 These will help when updating OnlineGlom but they're also good
1715 supplemental documentation of the build and deployment proceeding.
1717 * utils/build-onlineglom-war.sh: New file.
1718 * utils/install-onlineglom-war.sh: New file.
1720 2011-06-16 Ben Konrath <ben@bagu.org>
1722 Create wrapper class to create consistent log messages.
1724 I wrapped methods in the Log class of gwt-log to add the method names
1725 from the servlet and create consistent formatting of the document title
1726 and table names in the log messages.
1728 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1730 log methods to use methods from wrapped Log class.
1732 2011-06-16 Ben Konrath <ben@bagu.org>
1734 Remove superfluous conditional return.
1736 Thanks to Murray Cumming for pointing this out!
1738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1740 2011-06-15 Ben Konrath <ben@bagu.org>
1742 Return an ArrayList of LayoutGroups for the Details layout.
1744 This corrects a problem with the details layout as it can have more
1745 than one top level LayoutGroup.
1747 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1748 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1749 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1750 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1751 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1752 with ArrayList of LayoutGroups for the details view layout.
1753 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1754 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1755 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1756 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1757 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1758 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1760 2011-06-14 Ben Konrath <ben@bagu.org>
1762 Use cast_dynamic method to determine the libglom LayoutItem type.
1764 This is better than finding the LayoutItem type by using the string
1765 returned from the get_part_type_name() method.
1767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1769 2011-06-14 Ben Konrath <ben@bagu.org>
1771 Add method names to log entries in the servlet.
1773 This helps when tracking down deployment problems.
1775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1777 2011-06-14 Ben Konrath <ben@bagu.org>
1779 Add data to the DetailsView using a hard-coded primary key value.
1781 The layout and functionality of the DetailsView is not complete. This
1782 is just a checkpoint so the patch doesn't get too big.
1784 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1785 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1786 Add getDetailsData() servlet method.
1787 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1788 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1789 LayoutFields are added to the DetailsView.
1790 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1791 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1792 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1793 take the string for the title instead of the object.
1794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1795 Add implementation getDetailsData() along with some private helper
1797 * src/main/webapp/style.css: Add padding to details-data class. Add a
1798 details-label class with the same padding as the details-data class.
1800 2011-06-03 Ben Konrath <ben@bagu.org>
1802 Use presenter.goTo() to change to the DetailsPlace.
1804 This will make things easier when we need to open the DetailsView with
1805 data specific to the row that was clicked.
1807 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1809 2011-06-02 Ben Konrath <ben@bagu.org>
1811 Add CSS file from mockups.
1813 I'm adding this now because it's going to be useful to have when
1814 developing the DetailsView. The TableSelectionView and ListView aren't
1817 * src/main/webapp/OnlineGlom.html:
1818 * src/main/webapp/style.css:
1820 2011-06-02 Ben Konrath <ben@bagu.org>
1822 Use String.isEmpty() to check for empty string.
1824 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1826 2011-06-02 Ben Konrath <ben@bagu.org>
1828 Display main layout group titles in the DetailsView.
1830 This is the start of the DetailsActivity/DetailsView implementation.
1832 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1833 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1834 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1835 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1836 Get the layout information for the details view from the server and set
1837 the main layout group titles.
1838 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1839 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1840 Add addLayoutGroup() and addLayoutField() methods. This are just
1841 temporary methods for creating the the details view that will change
1843 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1844 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1846 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1847 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1848 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1849 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1850 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1851 Data Transfer Objects that mimic the libglom object structure. These are
1852 used for transferring the details layout but could also be used for
1853 transferring the list layout.
1855 2011-05-27 Ben Konrath <ben@bagu.org>
1857 Reset the AuthenticationPopup when clearing the ListView.
1859 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1861 2011-05-27 Ben Konrath <ben@bagu.org>
1863 Fix problem with onlineglom.properties file loading.
1865 The old way worked in Eclipse but not on the server. Loading the
1866 onlineglom.properties file now works in Eclipse and on the server.
1868 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1870 2011-05-24 Ben Konrath <ben@bagu.org>
1872 Update gwt-log from 3.1.0 to 3.1.2.
1874 Gwt-log 3.1.0 has been marked as depreciated.
1878 2011-05-24 Ben Konrath <ben@bagu.org>
1880 Add comment to ListActivity.goTo() method.
1882 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1884 2011-05-24 Ben Konrath <ben@bagu.org>
1886 Remove FIXME in convertGdkColorToHtmlColour()
1888 The Gdk::Color value returned by libglom is 16-bits per channel on both
1889 64 and 32-bit platforms.
1891 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1893 2011-05-19 Ben Konrath <ben@bagu.org>
1895 Improve performance of initial ListView load.
1897 I removed a round trip to the server for getting the default table name
1898 and then requesting information about that table. This also removes a potential
1899 problem with the table change handler not being setup in time to receive the
1900 table change event from the ListActivity.
1902 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1903 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1904 getDefaultLayoutListTable() method. Improve comments.
1905 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1906 getDefaultLayoutListTable() method instead of firing a table change
1907 event to get the table to load.
1908 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1909 implementation of getDefaultLayoutListTable() method.
1910 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1913 2011-05-19 Ben Konrath <ben@bagu.org>
1915 Override toDebugString() in TableChangeEvent.
1917 This is useful to have for debugging.
1919 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1921 2011-05-19 Ben Konrath <ben@bagu.org>
1923 Add a "Back to List" link when at the DetailsPlace.
1925 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1926 Populate the CellTable based on the selected table of the ListBox if
1927 it's set otherwise use the default table. This allows the "Back to
1929 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1930 Remove Place from constructors. Add a setPlace() method. Add
1931 goToPlace() method. Set class as presenter for TableSelectionView.
1932 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1933 Use the same TableSelectionActivity when switching between the List and
1935 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1936 Subclass the new HasSelectableTablePlace. This removes some duplicate
1938 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1939 New class to represent Places that display the TableSelectionView.
1940 * src/main/java/org/glom/web/client/place/ListPlace.java:
1941 Subclass the new HasSelectableTablePlace. This removes some duplicate
1943 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1944 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1945 Add Presenter interface. Add setBackLinkVisible() method. Add
1946 setBackLink() method.
1948 2011-05-18 Ben Konrath <ben@bagu.org>
1950 Enable the "Details" buttons.
1952 Right now only an empty details view is displayed.
1954 * src/main/java/org/glom/web/client/ClientFactory.java:
1955 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1956 Add DetailsView to ClientFactory.
1957 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1958 A basic activity for the details view.
1959 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1960 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1962 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1963 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1965 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1966 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1967 unnecessary super() in constructor.
1968 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1969 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1970 really shouldn't create a new TableSelectionActivity for both the ListPlace
1971 and the DetailsPlace so this should be considered a temporary solution.
1972 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1973 New file. Represents a URL for the details view.
1974 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1975 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1976 A basic details view interface and implementation.
1977 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1978 Enable the "Details" buttons.
1980 2011-05-12 Ben Konrath <ben@bagu.org>
1982 Use a LayoutPanel with multiple display areas for main layout.
1984 This is mostly a refactor in that there are no changes from the user
1985 point of view. These changes are required so that we can swap out the list view
1986 with the details view when the user clicks the "Details" button.
1988 * src/main/java/org/glom/web/client/ClientFactory.java:
1989 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1990 OnlineGlomView. Add TableSelectionView, ListView and
1991 AuthenticationPopup.
1992 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1993 for main layout. Add display regions for main activities. Add
1994 activity manager for for main activities.
1995 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1996 file from parts of the deleted OnlineGlomActivity.
1997 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1998 New file from parts of the deleted OnlineGlomActivity.
1999 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
2000 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
2001 New files for app wide table change event.
2002 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
2003 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
2004 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
2005 Activity mappers for the main activities replace the deleted app-wide
2007 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
2008 Fix a spelling error in he comment.
2009 * src/main/java/org/glom/web/client/ui/ListView.java:
2010 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2011 Renamed from LayoutListView and modified for MVP. This still not a
2012 proper dumb view as prescribed by the MVP pattern but it works for now.
2013 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2014 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2015 New widget stripped out of the deleted OnlineGlomView.
2016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2017 Remove hack that is fixed by this patch.
2019 2011-05-06 Ben Konrath <ben@bagu.org>
2021 Rename OnlineGlomPlace to ListPlace.
2023 The only change besides the rename is that url will now display #list
2024 instead of #Document.
2026 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2027 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2028 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2029 * src/main/java/org/glom/web/client/place/ListPlace.java:
2030 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2032 2011-05-06 Ben Konrath <ben@bagu.org>
2034 Use Presenter for app navigation.
2036 This is the proper way to deal with Place (URL) changes with the MVP
2039 * src/main/java/org/glom/web/client/ClientFactory.java:
2040 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2041 PlaceHistoryMapper and PlaceHistoryHandler.
2042 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2043 PlaceHistoryMapper and PlaceHistoryHandler.
2044 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2045 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2046 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2047 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2048 Add Presenter interface and setPresenter methods. Rename addHyperLink
2049 to addDocumentLink taking only the document title as a parameter.
2051 2011-04-14 Ben Konrath <ben@bagu.org>
2053 Prompt for db username/password if they haven't been set.
2055 This is implemented with a popup widget that is contained within the
2056 OnlineGlomView and managed by the OnlineGlomActivity.
2058 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2059 methods for checking and setting the database username and password.
2060 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2061 new methods for checking and setting the database username and
2063 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2064 Display authentication popup if the JDBC connection to the database
2065 has not been authenticated.
2066 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2068 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2069 for dealing with the authentication popup.
2070 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2071 Implement the methods for dealing with the authentication popup.
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2073 try to executed queries if the database connection hasn't been
2074 authenticated. Implement methods for checking and setting the
2075 database username and password.
2077 2011-04-12 Ben Konrath <ben@bagu.org>
2079 Make log messages a little clearer.
2081 Add a dash betweeen the document title and the table name.
2083 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2085 2011-04-12 Ben Konrath <ben@bagu.org>
2087 Protect against NPEs when cleaning up database resources.
2089 While this isn't strictly necessary because the exception is caught,
2090 not protecting against the NPEs makes it harder to find the real error
2093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2095 2011-04-12 Ben Konrath <ben@bagu.org>
2097 Move configuration of the servlet to the constructor.
2099 The servlet will be initialized even if the database authentication
2100 information is not set or correct. I still need to add the UI for prompting
2101 the user for the authentication information when it's required.
2103 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2104 javadocs for getDocumentTitles() method.
2105 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2106 Set error message when RPC fails.
2107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2108 glom files directory from the configuration file. Try to set the
2109 database authentication information for the specific document if it's
2110 set and works otherwise try to use the global authentication
2111 information set for the directory.
2112 * src/main/resources/onlineglom.properties: Moved from
2113 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2114 Added detailed comments for the new keys.
2116 2011-04-11 Ben Konrath <ben@bagu.org>
2118 Remove unnecessary @Override in DocumentSelectionViewImpl.
2120 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2122 2011-04-11 Ben Konrath <ben@bagu.org>
2124 Remove center alignment in DocumentSelectionView.
2126 The title element is still centred but the document titles and bottom
2127 sentence are both left-aligned.
2129 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2131 2011-04-11 Ben Konrath <ben@bagu.org>
2133 Change 'Demo' naming convention to 'Document'.
2135 This is just a rename refactor with no functional changes to the code.
2137 * src/main/java/org/glom/web/client/ClientFactory.java:
2138 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2139 * src/main/java/org/glom/web/client/OnlineGlom.java:
2140 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2141 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2142 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2143 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2144 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2145 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2146 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2147 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2148 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2149 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2151 2011-04-08 Ben Konrath <ben@bagu.org>
2153 Remove FIXME from safeLongToInt() method.
2155 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2158 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2160 2011-04-08 Ben Konrath <ben@bagu.org>
2162 Display an error if no glom documents are found in the specified directory.
2164 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2165 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2166 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2167 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2169 2011-04-08 Ben Konrath <ben@bagu.org>
2171 Add copyright header to one more file ... oops.
2173 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2175 2011-04-08 Ben Konrath <ben@bagu.org>
2177 Add copyright header to files without it.
2179 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2180 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2181 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2182 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2183 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2184 * src/main/java/org/glom/web/shared/GlomField.java:
2186 2011-04-08 Ben Konrath <ben@bagu.org>
2188 Add support for accessing multiple glom documents in the servlet.
2190 This completes the demo selection functionality.
2192 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2193 document title to methods.
2194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2195 document title to methods.
2196 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2197 Set browser window title when the activity starts. Correct name of
2198 document title variable.
2199 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2200 Set browser window title when the activity starts. Set the table
2201 selector change handler after table selector has been set. Clear the
2202 OnlineGlomView when the activity has been stopped.
2203 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2204 document title as the place token. Use "#Document:" instead of
2205 "#OnlineGlomPlace:" in the URL.
2206 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2207 Change heading to "Online Glom"
2208 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2209 document title in RPC methods.
2210 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2211 setDocumentTitle() method. Add clear() method.
2212 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2213 setDocumentTitle() method. Implement clear() method which removes the
2214 change handler on the ListBox, clears the ListBox and clears the
2216 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2217 Implement methods with document title. Keep track for the configured
2218 glom documents and their corresponding JDBC configurations in a hash
2219 table. This information is retrieved using the document title as the
2220 key in the hash table.
2221 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2222 document title field as it's no longer needed.
2224 2011-04-08 Ben Konrath <ben@bagu.org>
2226 Update the Eclipse JDT configuration.
2228 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2229 methods. Automatically add the copyright header to new files.
2231 2011-04-05 Ben Konrath <ben@bagu.org>
2233 Add new page for demo selection.
2235 This patch adds all the components required to view and start an
2236 OnlineGlom demo by clicking on the desired hyperlink. The user is
2237 able to return to the demo selection page with the browser's back
2238 button. I still need to modify the servlet to work with multiple
2239 documents so all demo links will load the file defined in the
2240 OnlineGlom.properties.
2242 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2243 This is only useful during development so we don't need to save it.
2244 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2245 get a reference to the DemoSelectionView.
2246 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2247 method to get a reference to the DemoSelectionView.
2248 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2249 default view to DemoSelectionView.
2250 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2251 to get glom document titles for glom files in a hard-coded directory.
2252 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2253 method to get glom document titles for glom files in a hard-coded
2255 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2256 Presenter for DemoSelectionView.
2257 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2258 for DemoSelectionView.
2259 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2260 Update for DemoSelectionView.
2261 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2262 Basic 'Place' implementation for the DemoSelectionView.
2263 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2264 The interface for the DemoSelectionView.
2265 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2266 The implementation of the DemoSelectionView.
2267 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2268 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2269 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2270 implementation of method to get glom document titles for glom files
2271 in a hard-coded directory.
2272 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2273 on longer being used.
2274 * src/main/webapp/glom.png: Glom logo.
2276 2011-04-05 Ben Konrath <ben@bagu.org>
2278 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2280 This is the forth and final commit of a refactor that will allow
2281 OnlineGlom to be used with multiple documents.
2283 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2284 Move RPC code from OnlineGlomViewImpl to this class.
2285 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2287 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2288 RPC code to the presenter class (the P in MVP).
2290 2011-04-04 Ben Konrath <ben@bagu.org>
2292 Start moving the existing OnlineGlom code to MVP.
2294 This work is based on the GWT MVP framework that is documented here:
2296 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2298 This is the third commit of a refactor that will allow OnlineGlom to
2299 be used with multiple documents.
2301 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2302 Interface for client factory which is used to get instances of various
2303 classes throughout the app.
2304 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2305 Implementation of client factory.
2306 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2307 initialize the MVP framework.
2308 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2309 New file. Activity manager for the main container widget. This is the
2311 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2312 Maps place (URL) to its corresponding activity.
2313 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2314 New file. This is just a place holder for a generated file.
2315 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2316 New file. Represents the URL for the main Online Glom app.
2317 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2318 for changes in LayoutListViewImpl.
2319 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2320 interface for View. Move code to OnlineGlomViewImpl class.
2321 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2322 file. Implementation of OnlineGlomView.
2323 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2324 Place resources. Use ClientFactoryImpl by default.
2326 2011-04-04 Ben Konrath <ben@bagu.org>
2328 Move View classes to their own package.
2330 This is the second commit of a refactor that will allow OnlineGlom to
2331 be used with multiple documents.
2333 * src/main/java/org/glom/web/client/OnlineGlom.java:
2334 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2335 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2337 2011-04-02 Ben Konrath <ben@bagu.org>
2339 Move UI code from the main module to its own class.
2341 This is the first commit of a refactor that will allow OnlineGlom to be
2342 used with multiple documents.
2344 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2345 references to OnlineGlom to OnlineGlomView.
2346 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2347 OnlineGlomView and instantiate it here.
2348 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2349 represents the main OnlineGlomView with one document.
2351 2011-04-01 Ben Konrath <ben@bagu.org>
2353 Fix formatting of gwt.xml and add DTD.
2355 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2357 2011-03-30 Ben Konrath <ben@bagu.org>
2359 Propperly convert gdkColor string to html colour string.
2361 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2363 2011-03-28 Ben Konrath <ben@bagu.org>
2365 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2367 This implementation matches
2368 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2369 readable and is not tied to Swig.
2371 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2373 2011-03-28 Ben Konrath <ben@bagu.org>
2375 Use read-only checkboxes for boolean field types.
2377 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2378 in the CellTable based on the field type. It currently only
2379 distinguishes between boolean and text columns but I'll need to add
2380 support for more types.
2381 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2382 column type in the ColumnInfo object. Add method to convert between the
2383 glom field type enum in ColumnInfo and the glom field type in libglom.
2384 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2386 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2387 getting and setting booleans.
2389 2011-03-25 Ben Konrath <ben@bagu.org>
2391 Don't get the Date twice from the ResultSet.
2393 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2395 2011-03-25 Ben Konrath <ben@bagu.org>
2397 Cleanup code in the servlet.
2399 * TODO: Remove item about row count. Add item about testing row count
2400 query with large number of rows.
2401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2402 spelling mistakes, change method parameter to be consistent with
2405 2011-03-25 Ben Konrath <ben@bagu.org>
2407 Add server side logging with the gwt-log library.
2409 * .gitignore: Ignore the log file we're now producing.
2410 * TODO: Add a couple TODO item for logging.
2411 * pom.xml: Add gwt-log and log4j as a dependency.
2412 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2413 logging of errors, warnings and some important info.
2414 * src/main/resources/log4j.properties: New file to configure log4j.
2416 2011-03-24 Ben Konrath <ben@bagu.org>
2418 Add a disable button for the Details view.
2420 * src/main/java/org/glom/web/client/LayoutListView.java:
2422 2011-03-22 Ben Konrath <ben@bagu.org>
2424 Use a count query to get the number of rows for the list view pager.
2426 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2428 2011-03-22 Ben Konrath <ben@bagu.org>
2430 Add more TODO information about CellTable pager positioning.
2434 2011-03-19 Ben Konrath <ben@bagu.org>
2436 Add TODO item about CellTable pager positioning.
2440 2011-03-18 Ben Konrath <ben@bagu.org>
2442 Remove unneeded GlomFieldColumn class.
2444 This is just a small code cleanup.
2446 * src/main/java/org/glom/web/client/LayoutListView.java:
2448 2011-03-18 Ben Konrath <ben@bagu.org>
2450 Use cursor mode in the query that gets data for the list view.
2452 I still need to fix the potential memory problem when getting the row
2453 count for the list view.
2455 * TODO: Add note about testing memory usage with large data sets. Add
2456 item about fixing row counting with large data sets.
2457 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2458 PostgreSQL JDBC driver into cursor mode when getting data for the
2461 2011-03-15 Ben Konrath <ben@bagu.org>
2463 Remove the GWT Container from the Eclipse build classpath.
2465 The GWT dependencies are set by Maven so this isn't needed.
2469 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2471 Added some earlier mockups to git, but not to the tarball dist.
2473 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2474 Openismus. These hopefully show how we might structure the HTML so that
2475 it can be styled easily with CSS. However, we probably need to adapt them
2476 for the CSS structure that GWT dictates for common widgets.
2478 2011-03-14 Ben Konrath <ben@bagu.org>
2480 Locate OnlineGlom.properties using the ServletContext.
2482 This is required to be able to locate the file in the deployed servlet.
2484 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2485 Configure the database and glom document in in a helper method so
2486 that the ServletContext can be used to locate OnlineGlom.properties.
2487 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2488 src/main/webapp. This is the proper location for .properites files.
2490 2011-03-12 Ben Konrath <ben@bagu.org>
2492 Add note to README about why we're compiling down to obfuscated JavaScript.
2496 2011-03-11 Ben Konrath <ben@bagu.org>
2498 Use properties file to configure servlet.
2500 This allows people to change the glom file path, db username and db
2501 password without recompiling the code.
2503 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2504 * src/main/webapp/OnlineGlom.properties:
2506 2011-03-11 Ben Konrath <ben@bagu.org>
2508 Use table fields in layout list view if the layout list is not defined.
2510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2511 Manually create a LayoutFieldVector for the query builder using the
2512 table fields when a layout list is not defined in the glom file.
2514 2011-03-11 Ben Konrath <ben@bagu.org>
2516 Only show FIXME string for images when there's an image.
2518 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2519 in this change are some small code cleanups.
2521 2011-03-11 Ben Konrath <ben@bagu.org>
2523 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2525 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2527 2011-03-11 Ben Konrath <ben@bagu.org>
2529 Correctly set the index of the default table.
2531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2532 Correctly set the index of the default table. Add commented out example
2535 2011-03-10 Ben Konrath <ben@bagu.org>
2537 Add comment to pom.xml about the previous change.
2539 * pom.xml: Add comment about the deployment issue so that it's obvious
2540 why java-libglom is set to the provided scope.
2542 2011-03-10 Ben Konrath <ben@bagu.org>
2544 Change java-libglom dependency from compile to provided in pom.xml.
2546 Since java-libglom uses jni it can only be loaded once and therefore
2547 must be placed in $CATALINA_HOME/lib and not included in each war.
2548 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2549 More information about this issue can be found in the Tomcat 6 release
2550 notes in the "JNI Based Applications" section:
2552 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2554 * README: Remove note about this issue. Deployment info should really
2555 be on the wiki anyway so I'll add it right now.
2556 * pom.xml: Change java-libglom dependency from compile to provided so
2557 that it's copied in to the packaged war.
2559 2011-03-09 Ben Konrath <ben@bagu.org>
2561 Change to using a neutral locale for currency, date and time formatting.
2563 This solves the problem of currency values being represented without a
2564 space between the currency code and the number (e.g. "EUR5.89" is now
2565 represented as "EUR 5.89"). More work is required when we implement
2566 a locale preference setting.
2568 * TODO: Add note about currency formatting issues with different
2570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2571 to using the neutral ROOT locale.
2573 2011-03-09 Ben Konrath <ben@bagu.org>
2575 Add support for currency codes that are not ISO 4217 codes.
2577 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2578 the currency code defined in the glom file when it's not 3 characters
2579 long or when Java doesn't recognize the string as an ISO 4217 code.
2581 2011-03-08 Ben Konrath <ben@bagu.org>
2583 Remove test classes, launch configurations and configuration.
2585 The test stuff was getting in the way when creating the war. To make
2586 the war file you can now do 'mvn clean package'. The packaged war file
2587 will be in the target directory.
2589 * .classpath: Remove unused classpathentry for tests and i18n.
2590 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2591 property. Don't run test or i18n goals when packaging the war.
2592 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2597 * OnlineGlomTest-dev.launch:
2598 * OnlineGlomTest-prod.launch:
2599 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2600 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2602 2011-03-07 Ben Konrath <ben@bagu.org>
2604 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2606 These fixes allow me to use 'mvn deploy' to create the war file.
2608 * .classpath: This generated config has been updated by Eclipse. This
2609 change was probably triggered by me updating from Eclipse 3.6.1 to
2611 * .gitignore: Add entry to ignore the directory
2612 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2613 * .project: The generated config has been updated by Eclipse. This
2614 change was probably triggered by me updating from Eclipse 3.6.1 to
2616 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2617 so that Eclipse doesn't complain
2618 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2619 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2620 'tests' directory to 'client' directory. This is the new
2621 gwt-maven-plugin convension.
2622 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2623 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2625 2011-03-07 Ben Konrath <ben@bagu.org>
2627 Add support for horizontal alignment in the LayoutList columns.
2629 * TODO: Remove item about horizontal alignment. Add item about
2630 improvements to ColumnInfo.
2631 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2632 alignment on the columns. Use ColumnInfo RPC object get the column
2633 title and horizontal alignment.
2634 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2635 LayoutListView creation with ColumnInfo RPC object.
2636 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2637 a ColumnInfo object for every LayoutList columnn. Convert the
2638 FieldFormatting.HorizontalAlignment to the correct
2639 ColumnnInfo.HorizontatlAlignment with the new
2640 getColumnInfoHorizontalAlignment helper method.
2641 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2642 to encapsulate column information like alignment and title. This
2643 could be used to set the colour instead of on a per cell field basis.
2644 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2645 column title storage and retrieval with ColumnInfo.
2647 2011-03-04 Ben Konrath <ben@bagu.org>
2649 Add support for column sorting.
2651 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2652 AsynDataProvider to be an anonymous inner class. Use new
2653 getSortedTableData RPC method when column sort is requested. Set all
2654 columns sortable and add an AsyncHandler to activate sorting in the
2656 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2657 method getSortedTableData(). Cleanup other method signatures.
2658 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2659 new method getSortedTableData(). Cleanup other method signatures.
2660 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2661 Implement getSortedTableData() and getTableData() methods by using a
2662 private helper method with the appropriate parameters filled in. Use
2663 user supplied sort clause when supplied, otherwise fall back to
2664 sorting by the primary key. Move destroy() method to be underneath
2665 constructor for readability. Cleanup comments.
2667 2011-03-03 Ben Konrath <ben@bagu.org>
2669 Add support for colour text and colour backgrounds to the layout list cells.
2671 Only the cell backgrounds are coloured which leaves a gap between the
2672 cells that isn't coloured. I need to figure out a way to set
2673 'style=background-colour:' on the whole column rather than just the
2676 * TODO: Add a note about colouring the background of the whole column.
2677 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2678 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2679 render the coloured text and backgrounds. Use GlomField[] for the row type.
2680 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2682 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2683 GlomField[] for the row type.
2684 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2685 GlomField[] for the row type. Set the text, text colour and background
2686 colour in the GlomField objects as specified in the glom document. Add
2687 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2688 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2689 the glom field text, foreground colour and background colour.
2691 2011-03-02 Ben Konrath <ben@bagu.org>
2693 Don't display hidden tables in the combo box.
2695 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2698 code to ignore hidden tables using ArrayLists for the table names and
2700 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2701 tableNames to use ArrayLists instead of String[]. Update getter and setter
2704 2011-03-01 Ben Konrath <ben@bagu.org>
2706 Add support for Date and Time number types.
2708 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2709 Implement formatting for Date and Time values. Change the default glom
2710 file to small business example.
2712 2011-03-01 Ben Konrath <ben@bagu.org>
2714 Add support for formatting glom types as specified in the glom file.
2716 Formatting isn't finished yet - I still need to add support for Date
2719 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2720 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2721 checks for null values in JDBC cleanup code and catch all exceptions
2722 instead of just SQLExceptions.
2723 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2726 2011-03-01 Ben Konrath <ben@bagu.org>
2728 Use GWT 2.2.0 instead of 2.1.1.
2730 * pom.xml: Change GWT version numbers.
2732 2011-03-01 Ben Konrath <ben@bagu.org>
2734 A few small code cleanups.
2736 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2738 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2739 unnecessary object creation in constructor.
2740 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2741 unnecessary object creation in constructor.
2743 2011-02-28 Ben Konrath <ben@bagu.org>
2745 Add file for TODO list.
2749 2011-02-18 Ben Konrath <ben@bagu.org>
2751 Enable the CellTable Pager when more than 20 rows need to be viewed.
2753 The Pager will automatically become active when the results are larger
2754 than the CellTable size which is currently set to 20 lines.
2756 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2757 name on debug statment in RPC call in LayoutListDataProvider, add
2758 numRows parameter to LayoutListView constructor, propperly set rowCount
2760 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2761 name on debug statment in RPC call, use LayoutListTable object in RPC
2762 calls, pass rowCount to LayoutListView.
2763 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2764 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2766 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2767 interface for changes in OnlineGlomService.
2768 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2769 getLayoutListHeaders() to getLayoutListTable() and return
2770 LayoutListTable. Using this object allows me to pass other information
2771 about the LayoutList like the expected number of rows in the result set.
2772 The Connection object from the connection pool is now propperly closed.
2773 Only the requested number of lines are returned to the client in
2775 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2776 GlomTable and add columnTitles and numRows.
2778 2011-02-18 Ben Konrath <ben@bagu.org>
2780 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2782 This is a small performance boost. I'll use GlomTable to get the required
2783 layoutlist information.
2785 * src/main/java/org/glom/web/client/OnlineGlom.java:
2786 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2787 * src/main/java/org/glom/web/shared/GlomDocument.java:
2789 2011-02-18 Ben Konrath <ben@bagu.org>
2791 Add option to turn off formatting in JDT formatter preferences.
2793 * .settings/org.eclipse.jdt.core.prefs:
2795 2011-02-18 Ben Konrath <ben@bagu.org>
2797 Rename LayoutList to LayoutListView.
2799 I'm working towards setting things up to easily use MVP when the time
2802 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2804 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2807 2011-02-17 Ben Konrath <ben@bagu.org>
2809 Move LayoutListDataProvider class into LayoutList.java.
2811 * src/main/java/org/glom/web/client/LayoutList.java:
2813 2011-02-17 Ben Konrath <ben@bagu.org>
2815 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2817 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2819 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2820 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2821 from LibGlomServer.java.
2822 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2823 Rename from LibGlomServiceAsync.java.
2824 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2825 Rename from LibGlomServiceImpl.java.
2826 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2828 2011-02-17 Ben Konrath <ben@bagu.org>
2830 Update JDT settings.
2832 * .settings/org.eclipse.jdt.core.prefs:
2834 2011-02-17 Ben Konrath <ben@bagu.org>
2836 Move GWT-RPC objects to shared package (where they should be).
2838 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2839 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2840 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2841 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2842 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2843 org.glom.web.shared package.
2844 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2845 org.glom.web.shared package.
2846 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2847 directory in compilation to javascript.
2849 2011-02-16 Ben Konrath <ben@bagu.org>
2851 Add sort clause to the sql query that grabs table information.
2853 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2854 if one of the columns is a primary key.
2856 2011-02-16 Ben Konrath <ben@bagu.org>
2858 Disable generateAsync feature of gwt-maven.
2860 The generated interface does not correctly match the methods in LibGlomService
2861 and the generated singleton Util inner-class doesn't respect the servlet
2864 * pom.xml: Turn off generateAsync feature.
2865 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2866 with singleton Util inner-class.
2868 2011-02-14 Ben Konrath <ben@bagu.org>
2870 Add LGPL v3 licence notices.
2872 Followed directions listed here:
2873 http://www.gnu.org/licenses/gpl-howto.html
2875 * COPYING: This file is a copy of the GPL v3.
2876 * COPYING.LESSER: This file is a copy of the LGPL v3.
2877 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2879 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2881 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2883 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2885 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2887 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2889 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2892 2011-02-14 Ben Konrath <ben@bagu.org>
2894 Use ArrayList instead of Array in GWT-RPC calls.
2896 Apparently this gives a slight performance boost to the compiled
2899 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2901 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2904 2011-02-14 Ben Konrath <ben@bagu.org>
2906 Access data from a postgres db rather than the example glom file.
2908 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2909 compile down to obfuscated javascript.
2910 * pom.xml: Add c3p0 and postgres JDBC libraries.
2911 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2912 using a postgres db accessed through the c3p0 connection pooling library.
2914 2011-02-14 Ben Konrath <ben@bagu.org>
2916 Update Java formatter settings.
2918 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2920 2011-02-02 Ben Konrath <ben@bagu.org>
2922 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2924 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2926 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2927 the compiled webapp directory that Eclipse uses as we're using Maven now.
2928 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2929 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2931 * pom.xml: Format file, change target Java version to 1.6.
2933 2011-02-02 Ben Konrath <ben@bagu.org>
2935 Add information about a deployment related issue.
2937 * README: Add Notes section with the problem outlined.
2939 2011-02-02 Ben Konrath <ben@bagu.org>
2941 Call Glom.libglom_deinit() when the servlet is shutdown.
2943 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2944 Glom.libglom_deinit() to destroy() method.
2946 2011-01-28 Ben Konrath <ben@bagu.org>
2948 Use generated Util class to get the RPC Async interface.
2950 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2952 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2953 getInstance() method to get a reference to the RPC Async interface.
2954 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2955 getInstance() method to get a reference to the RPC Async interface, remove
2956 the now unused getLibGlomServiceProxy() method.
2958 2011-01-27 Ben Konrath <ben@bagu.org>
2960 Cleanup ChangeLog entry from previous commit.
2962 * ChangeLog: Group logical changes together and add comments.
2964 2011-01-25 Ben Konrath <ben@bagu.org>
2966 Convert to gwt-maven project.
2968 * .gitignore: Update for new project structure.
2969 * README: New file with a link to the online documentation.
2970 * pom.xml: The generated maven configuration file with some tweaks.
2972 Add / update Eclipse settings. These files are a merge of the files that
2973 were generated with the gwt-maven plugin and the files we were previously
2977 * .settings/.jsdtscope:
2978 * .settings/com.google.gdt.eclipse.core.prefs:
2979 * .settings/com.google.gwt.eclipse.core.prefs:
2980 * .settings/org.eclipse.jdt.core.prefs:
2981 * .settings/org.eclipse.wst.common.component:
2982 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2983 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2984 * .settings/org.maven.ide.eclipse.prefs:
2985 * OnlineGlomTest-dev.launch:
2986 * OnlineGlomTest-prod.launch:
2988 Java source files moved from the 'src' directory to the directory structure
2990 * src/main/java/org/glom/web/client/GlomDocument.java:
2991 * src/main/java/org/glom/web/client/GlomTable.java:
2992 * src/main/java/org/glom/web/client/LayoutList.java:
2993 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2994 * src/main/java/org/glom/web/client/LibGlomService.java:
2995 * src/main/java/org/glom/web/client/OnlineGlom.java:
2996 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2998 Non-functional property file used for translations. I included this as
2999 reminder that it's something I need to sort out.
3000 * src/main/resources/org/glom/web/client/Messages.properties:
3002 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
3003 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
3005 The servlet configuration files moved from the 'war' directory.
3006 * src/main/webapp/OnlineGlom.css:
3007 * src/main/webapp/OnlineGlom.html:
3008 * src/main/webapp/WEB-INF/web.xml:
3010 Generated test files with most of the code commented out. I included these
3011 so that it's easy to add tests when we're ready for them.
3012 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3013 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3015 2011-01-25 Ben Konrath <ben@bagu.org>
3017 Remove unused println.
3019 * src/org/glom/web/server/LibGlomServiceImpl.java:
3021 2011-01-25 Ben Konrath <ben@bagu.org>
3023 Add project specific JDT settings.
3025 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3026 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3028 2011-01-25 Ben Konrath <ben@bagu.org>
3030 Populate celltable with example data.
3032 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3033 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3034 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3035 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3036 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3037 asynchronously gets the example data.
3038 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3039 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3040 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3041 curently selected table to be retrieved by other widgets.
3042 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3043 implement getTableData() in a hacky way. This method needs to be updated
3044 to grab information from the database when database creating is
3047 2011-01-20 Ben Konrath <ben@bagu.org>
3049 Set table headers when table dropBox changes.
3051 * src/org/glom/web/client/GlomDocument.java: Correct some method
3053 * src/org/glom/web/client/LibGlomService.java: Add method
3054 to get list layout field names.
3055 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3056 to get list layout field names.
3057 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3058 widget for list layout table.
3059 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3060 the table drop box and add new updateTable() method to asynchronously
3061 get the layout list field names for the currently selected table.
3062 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3063 implementation of getLayoutListHeaders() method.
3064 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3066 2011-01-18 Ben Konrath <ben@bagu.org>
3068 Make a listBox with table titles instead of the flexTable demo.
3070 This is the start of something more useful.
3072 * .classpath: Exclude a bunch of packages from the JVM that are
3073 getting in the way of the Eclipse content assist.
3074 * src/org/glom/web/client/GlomDocument.java:
3075 * src/org/glom/web/client/GlomTable.java:
3076 * src/org/glom/web/client/LibGlomService.java:
3077 * src/org/glom/web/client/LibGlomServiceAsync.java:
3078 * src/org/glom/web/client/OnlineGlom.java:
3079 * src/org/glom/web/server/LibGlomServiceImpl.java:
3080 * war/OnlineGlom.html:
3081 * war/WEB-INF/web.xml:
3083 211-01-13 Ben Konrath <ben@bagu.org>
3085 Update to new java-libglom API.
3087 * .gitignore: Ignore OnlineGlom.war.
3088 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3090 2010-12-20 Ben Konrath <ben@bagu.org>
3092 Add some basic style to the table listing.
3094 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3095 header, print useful error message on async callback failure.
3096 * war/OnlineGlom.css: Add style for table header, remove defaults
3097 provided by the Eclipse project wizard.
3099 2010-12-20 Ben Konrath <ben@bagu.org>
3101 Load example file from installed glom dir.
3103 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3104 provided by java-libglom to find the example file.
3106 2010-12-20 Ben Konrath <ben@bagu.org>
3108 Update Eclipse settings.
3111 * .settings/com.google.gdt.eclipse.core.prefs:
3112 * .settings/com.google.gwt.eclipse.core.prefs:
3114 2010-12-17 Ben Konrath <ben@bagu.org>
3118 * .classpath: New file.
3119 * .gitignore: New file.
3120 * .project: New file.
3121 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3122 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3123 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3124 * src/org/glom/web/client/GlomTable.java: New file.
3125 * src/org/glom/web/client/OnlineGlom.java: New file.
3126 * src/org/glom/web/client/TableNameService.java: New file.
3127 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3128 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3129 * war/OnlineGlom.css: New file.
3130 * war/OnlineGlom.html: New file.
3131 * war/WEB-INF/web.xml: New file.
3132 * war/images/glom.png: New file.