1 2011-12-02 Ben Konrath <ben@bagu.org>
3 Enable navigation to details view with string primary key from related list.
5 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
6 Create a text primary key value when return type of result is
7 java.sql.Types.VARCHAR.
9 2011-12-02 Ben Konrath <ben@bagu.org>
11 Use checkboxes for booleans in the details view.
13 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
15 2011-12-01 Ben Konrath <ben@bagu.org>
17 Improve performance of related list height calculation.
19 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
20 Put code to calculate the expected height in a static initializer so
21 that that it's only called once.
23 2011-12-01 Ben Konrath <ben@bagu.org>
25 Show related list tables in notebooks (again).
27 Calculate the height of the related list tables so the Notebook can be
28 set the correct height. The height of the related list table is also needed by
29 FlowTable to be able decide how to create the layout.
31 * src/main/java/org/glom/web/client/ui/details/Portal.java: Calculate
32 and set the Portal height based on the height of the related list
33 table and the Portal container.
34 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
35 Add method to calculate the height of the related list tables.
36 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
37 * src/main/webapp/style.css: Add css class for Pager. This is needed to
38 calculate the height of the Pager widget.
40 2011-12-01 Ben Konrath <ben@bagu.org>
42 Use CellTable API for table property instead of setting style on Element.
44 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
46 2011-12-01 Ben Konrath <ben@bagu.org>
48 Make ListViewTable and RelatedListTable a consistent height.
50 The tables are now a consistent height regardless of the contents of
51 the table. A hidden button is added to empty rows to ensure that the
52 height of these rows will match the height of rows with data.
54 A navigation button column is now added to every table. The width of
55 the navigation column is set to 0px when a RelatedListTable shouldn't
56 have navigation buttons. This maintains the a consistent row height in
57 tables that don't show the navigation buttons.
59 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Hide
60 navigation column when not needed.
61 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move method
62 arguments for navigation button to constructor of ListViewTable.
63 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Render
64 hidden button for empty data rows.
65 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java: Add method
66 arguments for navigation button to constructor.
67 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Always
68 create navigation buttons. Add hideNavigationButtons() method.
69 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add method
70 arguments for navigation button to constructor.
72 2011-12-01 Ben Konrath <ben@bagu.org>
74 Use 'visibility: hidden' in Utils.getWidgetHeight().
76 This is better choice because hidden elements are invisible, don't
77 respond to events and are not part of the tab order. They will,
78 however, take up space which is required to be able to calculate the
81 * src/main/java/org/glom/web/client/Utils.java:
83 2011-12-01 Ben Konrath <ben@bagu.org>
85 Use Utils.getWidgetHeight() in FlowTable.
87 * src/main/java/org/glom/web/client/Utils.java: Remove TODO item about
89 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
91 2011-12-01 Ben Konrath <ben@bagu.org>
93 Put the details css class name on the correct table column.
95 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
97 2011-11-30 Ben Konrath <ben@bagu.org>
99 Update for java-libglom API change.
101 The getters and setters on FieldFormatting and NumericFormat were
102 changed to remove the 'M'.
104 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
106 2011-11-29 Ben Konrath <ben@bagu.org>
108 Only allow RelatedListTables in Portals.
110 * src/main/java/org/glom/web/client/ui/details/Portal.java:
112 2011-11-29 Ben Konrath <ben@bagu.org>
114 Only create a contents panel for Portals when title is being set.
116 * src/main/java/org/glom/web/client/ui/details/Portal.java:
118 2011-11-29 Ben Konrath <ben@bagu.org>
120 Set TabLayoutPanel height based on calculated height its widgets.
122 This is a potential fix for this bug:
124 https://bugzilla.gnome.org/show_bug.cgi?id=665133
126 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
128 2011-11-29 Ben Konrath <ben@bagu.org>
130 Align details field labels and data with the Open buttons.
132 * src/main/webapp/style.css:
134 2011-11-29 Ben Konrath <ben@bagu.org>
136 Remove unnecessary <div> in the Notebook widget.
138 * src/main/java/org/glom/web/client/ui/details/Group.java: Remove
139 method to get container FlowPanel (<div>).
140 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Run the
141 initWidget() method directly on the TabLayoutPanel widget instead of
142 Group's container widget.
144 2011-11-29 Ben Konrath <ben@bagu.org>
146 Don't add group titles for Portals in Notebooks.
148 This reverts the previous patch and fixes a bug I introduced with
149 commit b1753fd27bd2c4ea189c4c353e0ece92dcc66c2c .
151 * src/main/java/org/glom/web/client/ui/details/Group.java:
152 * src/main/java/org/glom/web/client/ui/details/Portal.java:
154 2011-11-28 Ben Konrath <ben@bagu.org>
156 Remove unused boolean argument in Portal constructor.
160 * src/main/java/org/glom/web/client/ui/details/Group.java:
161 * src/main/java/org/glom/web/client/ui/details/Portal.java:
163 2011-11-28 Ben Konrath <ben@bagu.org>
165 Remove hack for glom 1.18 style glom files.
167 * src/main/java/org/glom/web/client/ui/details/Group.java:
168 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
169 * src/main/java/org/glom/web/client/ui/details/Portal.java:
171 2011-11-28 Ben Konrath <ben@bagu.org>
173 Use Gda Value version of primary key to log result too large error.
175 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
177 2011-11-28 Ben Konrath <ben@bagu.org>
179 Don't use TypedDataItem.getText() for Unknown types from the URL.
181 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
182 * src/main/java/org/glom/web/server/Utils.java: Use getUnknown()
183 instead of getText().
184 * src/main/java/org/glom/web/shared/TypedDataItem.java: Add unknown
185 String field and getUnknown() method.
187 2011-11-28 Ben Konrath <ben@bagu.org>
189 Log an error message when the java-libglom .so is not present.
191 The error message was being set in the exception but not logged.
193 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
195 2011-11-28 Ben Konrath <ben@bagu.org>
197 Ignore LayoutItem_CalendarPortals.
199 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Don't
200 create the LayoutItemPortal DTO for LayoutItem_CanendarPortals.
202 2011-11-28 Ben Konrath <ben@bagu.org>
204 Extract method for creating the LayoutItemPortal DTO.
206 Just breaking the code up into smaller chunks.
208 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
210 2011-11-28 Ben Konrath <ben@bagu.org>
214 This should have been added with the refactor. Oops!
216 * src/main/java/org/glom/web/shared/TypedDataItem.java:
218 2011-11-28 Ben Konrath <ben@bagu.org>
220 Create primary key value from URL string using type from Glom document.
222 See this bug, comments 19 - 25:
224 https://bugzilla.gnome.org/show_bug.cgi?id=662376#c19
226 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Don't
227 create a TypeDataItem for the primary key here when loading from a
228 URL. Show the same string for the primary key value as was received
229 from the URL string (when loading from a URL).
230 * src/main/java/org/glom/web/server/Utils.java: Update method for
231 creating the Gda Value from the TypeDataItem to properly deal with
232 creating a Gda Value based on the Glom document type for the primary
233 key value string when loading from a URL.
234 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
235 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
236 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
237 Update for changed method name.
239 2011-11-27 Ben Konrath <ben@bagu.org>
241 Rename PrimaryKeyItem to TypedDataItem.
243 The name PrimaryKeyItem suggests what the class should be used for.
244 TypedDataItem is a neutral name that describes the class better.
246 This is a rename-only refactor.
248 * src/main/java/org/glom/web/client/OnlineGlomService.java:
249 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
250 * src/main/java/org/glom/web/client/Utils.java:
251 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
252 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
253 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
254 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
255 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
256 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
258 * src/main/java/org/glom/web/server/Utils.java:
259 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
260 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
261 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
262 * src/main/java/org/glom/web/shared/NavigationRecord.java:
264 2011-11-25 Ben Konrath <ben@bagu.org>
266 Improve Gda Value conversion from PrimaryKeyItem.
268 The value from the PrimaryKeyItem is only used if its type match the
269 type from the glom document.
271 * src/main/java/org/glom/web/server/Utils.java:
273 2011-11-25 Ben Konrath <ben@bagu.org>
275 Manually check if the java-liblgom .so is visible to the JVM.
277 It seems that Tomcat has problems when a static initializer throws an
278 exception. This check is done before the first method call into
279 java-libglom so that execution doesn't continue if the .so is not
282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
284 2011-11-25 Ben Konrath <ben@bagu.org>
286 Improve browser configuration error messages.
290 https://bugzilla.gnome.org/show_bug.cgi?id=662792
292 * src/main/java/org/glom/web/client/OnlineGlomService.java:
293 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
294 getConfigurationErrorMessage() method.
295 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
296 Get and display a specific configuration error message when no Glom
298 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
299 Implement getConfigurationErrorMessage() method. Surround configuration
300 code in the init() method with a try/catch block. This allows the
301 errors to be caught while keeping the servlet available to retrieve the
302 configuration error message.
304 2011-11-25 Ben Konrath <ben@bagu.org>
306 Don't use Strings to hold primary key values.
308 The primary key values are now held in a new data object
309 (PrimaryKeyItem) that holds type information and the primary key value
310 using the correct type.
312 * src/main/java/org/glom/web/client/OnlineGlomService.java:
313 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
315 PrimaryKeyItem instead of String to hold the primary key value.
316 * src/main/java/org/glom/web/client/Utils.java: Remove
317 getKeyValueStringForQuery(). Add getPrimaryKeyItem() which creates a
318 PrimaryKeyItem based on the GlomFieldType and the DataItem.
319 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Use
320 PrimaryKeyItem instead of String to hold the primary key value. Load
321 document selection page when the documentID has not been set correctly.
322 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Re-work
323 DetailsPlace -> URL and URL -> DetailsPlace conversion with
325 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
326 Return empty string for URL instead of "null".
327 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
328 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
329 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
330 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
331 PrimaryKeyItem instead of String to hold primary key values.
332 * src/main/java/org/glom/web/server/Utils.java: New method to convert a
333 PrimaryKeyValue to a Gda Value.
334 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
335 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
336 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
337 Replace temporary database access code that uses the PrimaryKeyValue to
338 Gda Value conversion.
339 * src/main/java/org/glom/web/shared/DataItem.java: Add comment.
340 * src/main/java/org/glom/web/shared/NavigationRecord.java: Use
341 PrimaryKeyItem instead of String.
342 * src/main/java/org/glom/web/shared/PrimaryKeyItem.java: New class to
343 hold primary key values.
345 2011-11-24 Ben Konrath <ben@bagu.org>
347 Use newly added java-libglom API to create queries.
349 This isn't finished. I still need to stop using Strings for primary key
350 values in the client code.
352 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Tell
353 libglom to use fake connections so that retrieving the query string will
355 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
356 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
357 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
358 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
359 Use the newly added libglom sql methods and classes to create the
360 query. Add temporary hack to convert primary value strings to Gda
363 2011-11-23 Ben Konrath <ben@bagu.org>
365 Don't explicitly set the height of Portals.
367 See comments 6 - 10 of this bug for details:
369 https://bugzilla.gnome.org/show_bug.cgi?id=662930#c6
371 * src/main/java/org/glom/web/client/ui/details/Portal.java:
373 2011-11-23 Ben Konrath <ben@bagu.org>
375 Use an HTML table instead of CSS for the FlowTable layout.
377 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Use
378 GWT's FlexTable to implement the FlowTable.
379 * src/main/webapp/style.css: Adjust CSS for the change to FlexTable.
381 2011-11-18 Ben Konrath <ben@bagu.org>
383 Add boolean example to HTML table mockup.
385 * mockups/details-view-html-tables-text-entries.html:
387 2011-11-17 Ben Konrath <ben@bagu.org>
389 Ensure the pager buttons are always visible for related lists.
391 To accomplish this, I've turned off text wrapping in the list view and
392 related list tables for both the header and data text. The related list
393 table now has a fixed layout so the it doesn't overflow its container.
394 This is required to ensure that the cell text is clipped when it
395 overflows the cell and an ellipsis is added to the right side of the
396 cell when text is clipped.
398 A fixed table layout for the related list table in the details view
399 seems what we want for the details view anyway, so the side-effect is
402 The ellipsis will only be displayed in Firefox >= 7.
406 https://bugzilla.gnome.org/show_bug.cgi?id=662930
408 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java:
409 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: Add
410 'overflow: hidden; text-overflow: ellipsis;' CSS properties to the table
412 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
413 Set the 'table-layout: fixed' CSS property to the related list table.
414 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Set the
415 'white-space: nowrap;' CSS property on both the list view and the
418 2011-11-16 Ben Konrath <ben@bagu.org>
420 Rework the fix for empty notebook tab labels.
422 Setting the empty group titles with its name caused problems for the
423 details layout. Instead of using libglom's
424 LayoutItem.get_title_or_name(), the LayoutItem name is explicitly sent
425 to the client when the title is empty. This allows the Notebook to use
426 the name when the title is empty without affecting anything else.
428 * src/main/java/org/glom/web/client/ui/details/Notebook.java:
429 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
431 2011-11-16 Ben Konrath <ben@bagu.org>
433 Set group titles with name when title is empty.
435 This fixes a problem with an empty notebook tab label in the Lesson
436 Planner document. The forth tab in the notebook should be "Internet":
438 http://bagu.org:8080/OnlineGlom/#details:document=lesson-planner&table=teachers&value=0
440 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Use
441 libglom's LayoutItem.get_title_or_name() to fill in the LayoutGroup
444 2011-11-16 Ben Konrath <ben@bagu.org>
446 Remove whitespace from the configured username properties.
448 This assumes that usernames won't have whitespace at the beginning
449 or end. But I think this is a reasonable assumption.
451 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
452 String.trim() to remove the whitespace from the username properties.
454 2011-11-15 Ben Konrath <ben@bagu.org>
456 Add details view mockup with HTML tables and text entries.
458 This is from the attachment on this bug:
460 https://bugzilla.gnome.org/show_bug.cgi?id=663109
462 * mockups/details-view-html-tables-text-entries.html:
464 2011-11-15 Ben Konrath <ben@bagu.org>
466 Add space between the columns of the flow table.
470 https://bugzilla.gnome.org/show_bug.cgi?id=662918
472 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Add a 1%
473 space between columns in the flow table.
475 2011-11-15 Ben Konrath <ben@bagu.org>
477 Add backup files to the .gitignore.
479 * .gitignore: Ignore files that end with ~.
481 2011-11-09 Ben Konrath <ben@bagu.org>
483 Use latest release of gwt-log.
485 Gwt-log releases are now being submitted to the maven central
486 repository so manual installation of the jar is no longer required.
488 * pom.xml: Update version and groupId of gwt-log dependency.
490 2011-10-31 Ben Konrath <ben@bagu.org>
492 Don't use GWT numeric formatting to override the glom currency formatting.
494 Currencies are now displayed like they are in Glom. See this bug:
496 https://bugzilla.gnome.org/show_bug.cgi?id=646216
498 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
500 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
501 currency code to constructor and set it when the cell is rendered.
502 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
503 currency code to the constructor of the NumericCell.
505 2011-10-27 Ben Konrath <ben@bagu.org>
507 Require the latest release of java-libglom (1.17.4).
511 2011-10-26 Ben Konrath <ben@bagu.org>
513 Add style to Notebook that matches current theme.
515 It's not the best style in the world but it's better than the default.
517 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
518 padding at the bottom of the child widgets.
519 * src/main/webapp/style.css: Add style for the Notebook.
521 2011-10-26 Ben Konrath <ben@bagu.org>
523 Move servlet initialization code to overridden init method.
525 This is half of the solution to getting proper error messages
526 displayed when configuration errors occur. Here's the relevant bug:
528 https://bugzilla.gnome.org/show_bug.cgi?id=662792
530 The rest of the solution involves surrounding the init method with a
531 try/catch block and setting a global variable with the error /
532 exception. A new async method should be created to retrieve and display
533 the error message / exception.
535 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
536 code from constructor to init method adding exceptions as needed.
538 2011-10-26 Ben Konrath <ben@bagu.org>
540 Add script to monitor and restart tomcat if required.
542 * utils/check-and-recover-tomcat.py: New file.
544 2011-10-26 Ben Konrath <ben@bagu.org>
546 Display the correct number of data items in the pager.
550 https://bugzilla.gnome.org/show_bug.cgi?id=661441
552 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
553 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
554 The implementation is the same for both tables: Keep track of the
555 number of non-empty rows and fire and RowCountChangeEvent after the data has
557 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
558 custom Pager class that subclasses SimplePager to handle displaying
559 the correct number when empty rows have been added.
561 2011-10-26 Ben Konrath <ben@bagu.org>
563 Correct error in previous commit.
565 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
566 eventBus parameter from listView.setCellTable().
568 2011-10-26 Ben Konrath <ben@bagu.org>
570 Fix error in TODO comment.
572 * src/main/java/org/glom/web/client/activity/ListActivity.java:
574 2011-10-24 Ben Konrath <ben@bagu.org>
576 Create Notebook widgets to the details view.
578 This isn't finished just yet - I still need to create a reasonable
579 style to match the current theme.
581 * src/main/java/org/glom/web/client/Utils.java: Add method for
582 calculating the height of a widget. This is used in the Notebook class.
583 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
584 new constructor method in Group.
585 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
586 method for creating child widget that can be used by subclasses
587 like Notebook. New constructor that allows disabling the group
588 titles - Notebooks don't set a group title for their child groups.
589 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
590 to make Notebooks using GWT's TabLayoutPanel.
591 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
592 constructor that allows disabling the group titles.
593 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
594 LayoutItemNotebook DTO.
595 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
596 DTO for Notebooks. It's just an empty class for now but we might need
597 it to transfer some specific information in the future.
599 2011-10-21 Ben Konrath <ben@bagu.org>
601 Add navigation buttons to related list tables.
603 * src/main/java/org/glom/web/client/OnlineGlomService.java:
604 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
605 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
606 method getSuitableRecordToViewDetails() for getting the table name
607 and primary key value for related list navigation buttons.
608 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
609 private cell renderer class to get the navigation information for
610 related list tables from the server. Extract the navigation
611 processing code from the details cell navigation and use it for the
612 related list navigation as well.
613 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
614 cell renderer class for the details open buttons. This was needed
615 because the related list navigation buttons and the list view
616 navigation buttons need to react differently when clicked.
617 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
618 the onEnterKeyDown() method because it's now overriden in the
619 subclasses that are specific to the related list tables and the list
621 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
622 the vertical size a little because the buttons add a bit of vertical
623 space to table. This is not a perfect solution because the vertical
624 size of with table fewer than 5 rows will be a little smaller.
625 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
626 changes in how navigation buttons are handled.
627 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
628 getSuitableRecordToViewDetails() using the new RelatedListNavigation
629 database access object.
630 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
631 to find the portal for a given relationship name from
632 RelatedListDBAccess. Add method to find a primary key field for a
634 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
635 Move code to find the portal for a given relationship name to
637 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
638 New file: database access object for getting the related list
639 navigation information (the table name and the primary key value).
640 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
641 DTO for transferring a table name to navigate to and a primary key
643 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
644 boolean and getter/setter to specifies if the related list should add
647 2011-10-24 Murray Cumming <murrayc@murrayc.com>
649 Use the master branch of java-libglom
651 * pom.xml: Depend on java-libglom 1.19 instead.
653 This is the master branch. See also the libglom-1-18 branch.
655 2011-10-11 Ben Konrath <ben@bagu.org>
657 Enable the open navigation button when the data has been set.
659 This avoids having active buttons that don't do anything when the data
662 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
664 2011-10-11 Ben Konrath <ben@bagu.org>
666 Use IsWidget interface for FlowTableItem.
668 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
669 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
671 2011-10-11 Ben Konrath <ben@bagu.org>
673 Remove GWT styling from open button in details view.
675 There are still some issues with how the details cell is arranged but
676 this should be made to match Glom 1.20. I'm going to leave fixing this
677 until I have Glom 1.20 up and running.
679 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
680 style name on open button.
681 * src/main/webapp/style.css: Move and edit details-navigation class.
682 Re-arrange some classes to make them appear in the same order as the
685 2011-10-07 Ben Konrath <ben@bagu.org>
689 * .gitignore: Ignore new cache directory.
690 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
691 * pom.xml: Change GWT and maven plugin to 2.4.0.
692 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
694 * src/main/java/org/glom/web/client/ClientFactory.java:
695 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
696 * src/main/java/org/glom/web/client/OnlineGlom.java:
697 Update source for API changes.
698 * utils/build-onlineglom-war.sh: Remove cache directory before the
701 2011-10-07 Ben Konrath <ben@bagu.org>
703 Add navigation buttons in the details view.
705 This isn't finished but I thought I'd commit what I have as it's a
706 pretty good start. I still need to:
708 1. Change the style so that it fits better into the current theme
709 2. Adjust the details cell to expand as much as possible.
711 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
712 click handlers to navigation buttons in the DetailsCells. Create a
713 refreshData() method to get just the data from the server without the
715 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
716 Update the tableSelector and browser title when the table name
717 changes without using the tableSelector.
718 * src/main/java/org/glom/web/client/ui/DetailsView.java:
719 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
720 getDetailsCells() to getCells(). Update variable names.
721 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
722 method to set click handler on navigation button. Rename a few
723 variables. Add navigation buttons where needed.
724 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
725 variables and methods.
726 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
727 navigation boolean and navigation table as required in the
729 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
730 variables for navigation along with getter/setter methods.
732 2011-10-07 Ben Konrath <ben@bagu.org>
734 Rename Field to DetailsCell.
736 This is a refactor-only commit. No functionality has been added or
739 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
740 Update variable and method names.
741 * src/main/java/org/glom/web/client/ui/DetailsView.java:
742 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
743 variable and method names.
744 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
746 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
747 variable and method names.
749 2011-10-07 Ben Konrath <ben@bagu.org>
751 Create separate methods for layout and data the details view.
753 This is a refactor-only commit. No functionality has been added or
756 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
757 private methods: setData(), createLayout().
759 2011-10-07 Ben Konrath <ben@bagu.org>
761 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
763 This is part of a change to get navigation buttons in the details view
764 but it should have been done this way from the start.
766 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
767 for method name change in TableSelectionView.
768 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
769 Create TableChangeEvent and set the browser title using the
770 TableSelectionView API.
771 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
772 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
773 Change getSelectedTable() to getSelectedTableName(). Add
774 getSelectedTableTitle().
776 2011-10-07 Ben Konrath <ben@bagu.org>
778 Use primaryKeyValue naming convention in constructor of DetailsPlace.
780 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
782 2011-10-07 Ben Konrath <ben@bagu.org>
784 Update TableChangeEvent to use newTableName naming convention.
786 This makes the class more consistent with GWT naming conventions.
788 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
789 Update for method name change in TableChangeEvent.
790 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
791 for method name change in TableChangeEvent.
792 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
793 newTableName variable and getter method. Make toDebugString()
796 2011-09-30 Ben Konrath <ben@bagu.org>
798 Disable the pager in the list tables when the data row count is less than the minimum.
800 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
801 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
803 2011-09-30 Ben Konrath <ben@bagu.org>
805 Add empty rows to the end of related list and list view tables.
807 I also extracted the cell rendering classes from the ListTable because
808 the code was becoming a little crazy with all the anonymous inner
809 classes. My plan is to use these cell rendering classes in the details
810 view as well so this refactor will be needed for that change.
812 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
813 set the row count in related list tables if the data has more rows
814 than the minimum number of rows visible.
815 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
816 row count in list view tables if the data has more rows than the
817 minimum number of rows visible.
818 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
819 for rendering TYPE_BOOLEAN cells. The code was extracted from the
821 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
822 for rendering TYPE_NUMERIC cells. The code was extracted from the
824 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
825 class for rendering cells with buttons in list views. The code was
826 extracted from the ListTable class.
827 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
828 for rendering TYPE_TEXT cells. The code was extracted from the
830 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
831 Add empty rows to the end of the data if required. Implement
832 ListTable.getMinNumVisibleRows().
833 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
834 cell renderer code to public classes. Return null in
835 Column.getValue() for empty rows. Add new abstract method:
836 getMinNumVisibleRows(). Move code to set the row count of the list view
837 table to ListViewImpl.
838 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
839 empty rows to the end of the data if required. Implement
840 ListTable.getMinNumVisibleRows().
843 2011-09-27 Ben Konrath <ben@bagu.org>
845 Use GWT.log for client-side debugging statements.
847 These are optimized out when deployed so I should have used this method
848 in the first place. These statements will eventually be replaced with some sort
849 of notification in the browser.
851 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
852 * src/main/java/org/glom/web/client/activity/ListActivity.java:
853 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
854 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
855 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
857 2011-09-27 Ben Konrath <ben@bagu.org>
859 Put tableselector on the right, back to list link on right.
861 The idea is that the table selector is acting like a label for the
862 currently displayed table so it should be placed below the document title. This
863 puts the table title in a similar position to where it is in Glom.
865 * mockups/details-contacts.html:
866 * mockups/details-projects.html:
867 * mockups/listview-contacts.html:
868 * mockups/listview-projects.html:
870 Update mockups to match how the interfaces currently look.
871 * src/main/webapp/style.css: Swap positions of backlink with the table
872 selector. Add some space on the left side of the table selector to
873 line things up with the document title.
875 2011-09-27 Ben Konrath <ben@bagu.org>
877 Add field colouring to details view.
879 This change re-works how field colouring works. The colour formatting
880 information is now set to the client with the layout information instead of
881 with the data. This eliminates the need to send the same colour strings for
882 data in list view column when colour information is set.
884 In order to set an alternate colour for negative numeric values, the
885 number is now sent to client and formatted with the GWT NumberFormat class.
887 This change also fixes:
889 https://bugzilla.gnome.org/show_bug.cgi?id=659752
891 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
892 internationalization framework which is needed for client side numeric
894 * src/main/java/org/glom/web/client/Utils.java: New file for some
895 client static utility methods.
896 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
897 the DataItem object to the Field class. Use a utility method to
898 create the foreignKeyValue string.
899 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
900 alignment and text colours in the constructor. Add setData(DataItem)
901 method. Remove setText(String) method.
902 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
903 colour information to GlomTextCell. Create and use GlomNumberCell for
904 rendering numbers. Use utility method to get the string for the
905 primary key of the key provider. Re-work how the horizontal alignment
907 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
908 formatting to layout information. Methods for converting the libglom
909 formatting information were moved from DBAccess.
910 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
911 numeric formatting (it's now done on the client side). Don't set text
912 colours in DataItem. Move libglom formatting conversion methods to
914 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
915 getters/setters for text colour information.
916 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
917 for transferring the libglom NumericFormat information to the client.
918 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
919 and getters/setters for: GlomNumericFormat, background colour and
920 foreground colour strings.
922 2011-09-26 Ben Konrath <ben@bagu.org>
924 Simplify code that iterates through the LayoutGroup.
926 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
928 2011-09-26 Ben Konrath <ben@bagu.org>
930 Accept Eclipse formatting for OnlineGlomServiceAsync.
932 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
934 2011-09-26 Ben Konrath <ben@bagu.org>
936 Don't use the ListDBAccess classes to get the primary key layout information.
938 This was causing a bug where the wrong index for the hidden primary key
939 was being sent to the client.
941 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
942 primary key while creating the LayoutGroup DTO. Create a
943 LayoutItemField DTO for hidden primary keys. Don't use the
944 RelatedListDBAccess because it was only used for getting the primary
946 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
947 access modifier from public to protected for getPrimaryKeyField() and
948 getPrimaryKeyLayoutItemField().
949 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
950 abstract method getExpectedResultSize() because RelatedListDBAccess
951 doesn't have enough info to implement it.
952 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
953 Remove @Override for getExpectedResultSize().
954 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
955 Remove method getExpectedResultSize().
957 2011-09-23 Ben Konrath <ben@bagu.org>
959 Log which layout (list or details) the ignored item is from.
961 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
963 2011-09-23 Ben Konrath <ben@bagu.org>
965 Remove annotations that turn off code formatting in DataItem.
967 * src/main/java/org/glom/web/shared/DataItem.java:
969 2011-09-23 Ben Konrath <ben@bagu.org>
971 Rename GlomField to DataItem and update associated methods.
973 This is a rename-only refactor. No functionality has been added or
976 * src/main/java/org/glom/web/client/OnlineGlomService.java:
977 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
978 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
979 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
980 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
981 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
982 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
983 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
985 * src/main/java/org/glom/web/server/database/DBAccess.java:
986 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
987 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
988 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
989 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
990 * src/main/java/org/glom/web/shared/DataItem.java:
991 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
992 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
994 2011-09-23 Ben Konrath <ben@bagu.org>
996 Rename GlomDocument to DocumentInfo and update associated methods.
998 This is a rename-only refactor. No functionality has been added or
1001 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1002 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1003 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1004 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1005 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1006 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1007 * src/main/java/org/glom/web/shared/DocumentInfo.java:
1009 2011-09-20 Ben Konrath <ben@bagu.org>
1011 Require java-libglom 1.17.3.
1013 This picks up the fix for the seg fault problem with the Scenes table
1014 in the Openismus Film Manager example.
1018 2011-09-20 Ben Konrath <ben@bagu.org>
1020 Change the way sort clause is added for primary key when no sort clause is requested.
1022 The primary key is now added to the LayoutFieldVector (fieldsToGet)
1023 before the sort clause is created. When a sort clause is not requested, the
1024 sort clause is created by finding the primary key in the LayoutFieldVector
1027 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1029 2011-09-20 Ben Konrath <ben@bagu.org>
1031 Log error message if no documents are found in the configured directory.
1033 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
1034 Extract the glom file extension string to a private static final class
1035 variable (mostly as syntactic sugar). Accept a minor formatting change.
1036 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
1037 the example glom.document.directory configuration property to make it
1038 more clear that it can any directory, not just the home directory.
1040 2011-09-18 Ben Konrath <ben@bagu.org>
1042 Add related lists to details view.
1044 The related list table has support for paging and sorting just like the
1045 table in the list view.
1047 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
1048 SQL queries for the related list tables.
1049 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1050 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1051 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1052 Rename getList methods to getListView and add comments. Remove
1053 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
1054 it being unused. Add methods: getDetailsLayoutAndData(),
1055 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
1056 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1057 Create the layout and set the data for the fields in one async call
1058 instead of two. Create related lists where appropriate.
1059 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
1060 for method name changes in OnlineGlomService.
1061 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1062 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
1063 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
1065 * src/main/java/org/glom/web/client/ui/ListView.java:
1066 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
1067 tableName from setCellTable(). Create a ListViewTable instead of
1069 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
1070 represent a data field in the details view.
1071 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
1072 from addDetailsCell() to Field class. Keep track of the Fields and
1073 Portals in the details view.
1074 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
1075 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
1076 and add a method to get it. Add method to set the contents of the
1078 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1079 New class for related list tables. This class has the data provider
1080 for the related list table.
1081 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
1082 abstract class which is the base class for the ListViewTable and the
1084 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1085 New class for list view tables. This class has the data provider for
1086 the list view table.
1087 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1088 methods for related list tables. Add more information to the
1089 LayoutItemField and LayoutItemPortal DTOs.
1090 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1091 Remove debugging print statement.
1092 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1093 Remove debugging print statements. Add primary key field to SQL count
1095 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1096 Remove unnecessary LayoutFieldVector parameter from
1097 getResultSizeOfSQLQuery() method.
1098 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1099 New class for related list table database access.
1100 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
1101 class that is a wrapper DTO for details view layout and data.
1102 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1103 new 'fromField' string to this DTO.
1104 * src/main/webapp/style.css: Remove bottom margin and override top
1107 2011-09-15 Ben Konrath <ben@bagu.org>
1109 Breakup the OnlineGlomServiceImpl class to make it more manageable.
1111 This sets things up to make it easier to add the data retrieval for
1112 related lists (portals). No user noticeable changes were made with
1115 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
1116 class has the code to retrieve the layouts and access the
1117 database using the new database helper classes.
1118 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1119 Most of the functionality has been removed from this class. This
1120 class now represents the public interface for the client side
1121 code. It also deals with configuring the servlet and cleaning
1122 things up when the servlet is stopped.
1123 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
1124 of static methods into this utility class.
1125 * src/main/java/org/glom/web/server/database/DBAccess.java:
1126 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1127 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1128 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1129 These classes have the database retrieval code. The class hierarchy
1130 has been setup to make it easy to reuse code for similar
1133 2011-09-06 Ben Konrath <ben@bagu.org>
1135 Create separate classes for list table code and the data provider.
1137 As part of this refactor, I also split up the code a bit to make it
1140 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
1141 table code to two new classes (below).
1142 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
1143 with code from ListViewImpl.
1144 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
1145 New file with code from ListViewImpl.
1147 2011-09-06 Ben Konrath <ben@bagu.org>
1149 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
1151 This fixes the LayoutItemPortal DTO to match the libglom layout object
1154 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
1156 2011-09-01 Ben Konrath <ben@bagu.org>
1158 Set title of Portals in the Details View.
1160 * pom.xml: Bump required version of java-libglom to 1.17.1.
1161 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
1162 widget creation to its own class. Add comments to constructor.
1163 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
1164 The code is mostly from the Group class with the title now set.
1165 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1166 title of Portal. Update some comments. Fix some code formatting.
1168 2011-09-01 Ben Konrath <ben@bagu.org>
1170 Remove TODO comment for the flow table column width.
1172 The flow table column width is working correctly and doesn't need to be
1173 changed. See this mailing list post for more info:
1175 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
1177 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
1179 2011-08-27 Ben Konrath <ben@bagu.org>
1181 Add document title (database name) to top of the browser page.
1183 I added the document title to the TableSelecitonView but that will
1184 change if / when we add a view that doesn't require table selection.
1186 * mockups/details-contacts.html:
1187 * mockups/details-projects.html:
1188 * mockups/listview-contacts.html:
1189 * mockups/listview-projects.html:
1190 * mockups/style.css: Add document title to mockups to keep things
1192 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
1193 sizes to account for the document title.
1194 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1195 Set the document title when it has been retrieved from the server.
1196 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1197 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
1198 and implement setDocumentTitle(String) method.
1199 * src/main/webapp/style.css: Add ID for document title style.
1201 2011-08-25 Ben Konrath <ben@bagu.org>
1203 Add NavigationType enum to LayoutItemPortal DTO.
1205 This is the start of adding support for Portals to the Details View.
1207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
1208 LayoutItem_Portal.navigation_type enum from libglom to
1209 LayoutItemPortal.NavigationType enum.
1210 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
1211 NavigationType enum, field for storing the NavigationType and getter
1214 2011-08-25 Ben Konrath <ben@bagu.org>
1216 Implement the flow table layout in the Details View.
1218 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1219 FlowTable to Group to account for the renamed class.
1220 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
1221 File. This is a container widget that implements the Glom details view
1222 flow table behaviour.
1223 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
1224 org/glom/web/client/ui/FlowTable.java.
1225 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
1226 so that the size of the subgroups are a closer match to the size of
1227 the Glom subgroups. This makes the flowtable layout match the layout
1228 in Glom for the Music Collection example file.
1230 2011-08-16 Ben Konrath <ben@bagu.org>
1232 Create container element for LayoutItemPortal in Details View.
1234 This will help me develop the layout for the FlowTable.
1236 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
1237 fieldPanel variable to detailsCell.
1239 2011-08-15 Ben Konrath <ben@bagu.org>
1241 Set the height of the data element in the Details View.
1243 I changed the InlineLabels (text in a span element) to Labels (text in
1244 a div element) so that I could set the height of the details-data
1245 elements instead of the details-cell parent elements. This allows the
1246 the details-data element to display the correct height if style is
1247 applied that shows the height.
1249 This change has the added benefit of allowing the order of the labels
1250 and data elements to be changed for right-to-left languages.
1252 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
1253 InlineLabels to Labels.
1254 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
1255 InlineLabels to Labels. Set the height of the data element.
1256 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1257 multiline text height in the Formatting DTO.
1258 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
1259 for multiline height along with getter and setter methods.
1260 * src/main/webapp/style.css: Adjust style to account for the change
1261 from span elements to div elements in the details cell.
1263 2011-08-15 Ben Konrath <ben@bagu.org>
1265 Make the List View appearance match the mockups.
1267 It doesn't match exactly but it's much better than it was.
1269 * mockups/listview-contacts.html: Remove unused css classes.
1270 * mockups/listview-projects.html: Remove unused css classes.
1271 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
1272 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
1273 for mainPanel instead of VerticalPanel (table). Set style name on
1274 CellTable. Set style name on Details column. Right-align Details
1276 * src/main/webapp/style.css: Adjust properties to match the mockups.
1278 2011-08-12 Ben Konrath <ben@bagu.org>
1280 Add better support for subgroups in the details view.
1282 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
1283 changed FlowTable constructor.
1284 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
1285 support for subgroups and subgroup-titles.
1286 * src/main/webapp/style.css: Add CSS class for subgroups and
1289 2011-08-12 Ben Konrath <ben@bagu.org>
1291 Return the top level LayoutGroup title.
1293 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1295 2011-08-11 Ben Konrath <ben@bagu.org>
1297 Make the TableSelector header match the mockup.
1299 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
1300 the layout panel. Properly lineup the table selection header with
1301 the list and details view.
1302 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
1303 margin around the details view.
1304 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1305 Rename listBox variable to tableSelector. Set id for the style sheet.
1306 Use a FlowPanel instead of a HorizontalPanel.
1307 * src/main/webapp/style.css: Add properties to make the TableSelector
1308 box match the mockups.
1310 2011-07-13 Ben Konrath <ben@bagu.org>
1312 Update install script for java-libglom version change.
1314 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
1317 2011-07-13 Ben Konrath <ben@bagu.org>
1319 Add support sub-group in the details view.
1321 I also removed the code that special-cased the default details view
1324 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
1326 I still have to make a proper flowtable.
1328 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1329 Don't special-case default details view layout.
1330 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
1331 addLayoutField() as I'm going to use it.
1332 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
1333 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
1335 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
1336 extracted from DetailsViewImpl.GroupPanel. Add support for
1338 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1339 column count when getting the details layout.
1341 2011-07-12 Ben Konrath <ben@bagu.org>
1343 Set browser title with database and table titles.
1345 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1346 Set the browser title when the table changes and when the activity
1348 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
1349 title when retrieving document info (the GlomDocument object).
1350 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
1351 with getter and setter methods. Remove unused convenience constructor.
1352 Use default code formatting.
1354 2011-07-12 Ben Konrath <ben@bagu.org>
1356 Ignore LayoutItemPortals in the details view.
1358 I added a new DTO for the LayoutItemPortal so that I can ignore it in
1361 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
1362 LayoutItemPortal layout objects.
1363 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1364 LayoutItemPortal objects when retrieving the details layout.
1365 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
1366 file. This is an empty class and just used to get type information for
1369 2011-07-12 Ben Konrath <ben@bagu.org>
1371 Use java-libglom 1.17.0.
1375 2011-07-11 Ben Konrath <ben@bagu.org>
1377 Remove "Table:" label from table selector.
1379 This matches a recent change in the Glom UI.
1381 * mockups/details-contacts.html:
1382 * mockups/details-projects.html:
1383 * mockups/listview-contacts.html:
1384 * mockups/listview-projects.html: Remove the "Table:" label from the
1386 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1388 2011-07-11 Ben Konrath <ben@bagu.org>
1390 Add main groups to the details view.
1392 This makes things look a little nicer in the details view. The next step
1393 is to implement the flowtable.
1395 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
1396 resources from the standard gwt css theme. Standard.css is now
1397 included in OnlineGlom.html so that the online glom css rules have
1398 precedence over the gwt theme.
1399 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
1400 the whole LayoutGroup to the DetailsView instead of just the titles.
1401 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1402 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
1403 details layout with a helper class (GroupPanel). I might extract this
1404 class when I make the full flowtable.
1405 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
1406 string as default so I don't have to worry about NPEs when processing
1408 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
1409 note beside OnlineGlom.gwt.xml above).
1410 * src/main/webapp/style.css: Add default font-size to body to override
1411 the font-size set by the standard theme. Don't use h2 tags for
1412 group-title. Create new details-cell class.
1414 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1416 ConfiguredDocument: Set the port number too.
1418 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1419 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
1420 Glom document. Presumably this worked sometimes so far because there is a
1421 default port number.
1423 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1425 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
1427 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1428 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
1429 correct, though we should throw an exception too.
1431 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1433 Fix a addDocuemnt typo.
1435 * src/main/java/org/glom/web/shared/Documents.java
1436 (Documents.addDocuemnt): Rename to addDocument().
1437 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1438 (OnlineGlomServiceImpl.getDocuments): Adapt.
1440 2011-07-08 Murray Cumming <murrayc@murrayc.com>
1442 Slightly improved log output when connection fails.
1444 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1445 (ConfiguredDocument.setUsernameAndPassword):
1446 We don't know for sure if it' the username/password that's wrong, so
1447 rephrase the message.
1448 Also ouput the exception message, though it's generic in this case.
1450 2011-07-08 Ben Konrath <ben@bagu.org>
1454 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
1455 added braces to a one line if statement because the Eclipse formatter
1456 was getting confused.
1458 2011-07-07 Ben Konrath <ben@bagu.org>
1460 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
1462 These should really be two separate tasks but I counldn't get things to
1463 work with GWT 2.2.0 and Eclipse 3.7.
1467 * .settings/org.eclipse.jdt.core.prefs:
1468 * .settings/org.eclipse.jdt.ui.prefs:
1469 * .settings/org.eclipse.ltk.core.refactoring.prefs:
1470 * .settings/org.eclipse.m2e.core.prefs:
1471 Add new config files. Update current files. Remove references to the
1472 webtools plugins as we're not using any of the webtools features.
1473 * .gitignore: Add logs directory which is created when running with
1475 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
1476 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
1477 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
1479 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
1481 2011-07-07 Murray Cumming <murrayc@murrayc.com>
1483 onlineglom.properties: Add explanatory comments.
1485 * src/main/resources/onlineglom.properties: Also change the default user
1486 from ben to someuser, to avoid the risk of people thinking we just
1487 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1489 2011-06-28 Ben Konrath <ben@bagu.org>
1491 Use filename in Log for incorrect passwords.
1493 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1494 getFileName(String) method to get the filename from the URI.
1496 2011-06-28 Ben Konrath <ben@bagu.org>
1498 Add the table name to the URL token for the ListPlace.
1500 This makes things consistent between the DetailsPlace and the
1501 ListPlace. It also allows the the ListPlace to be bookmarked.
1503 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1504 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1506 Remove getDefaultListLayout(). The default layout is now returned
1507 by the getListLayout() method when the table name is an empty string.
1508 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1509 Add table name field. Change to a new ListPlace when the table
1510 has been changed. Use getListLayout() for getting the default
1512 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1513 Add table name field. Set the correct table name in the list box
1514 when loading from bookmark. This corrects a problem for the
1516 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1517 Move table name to super-class (HasSelectableTable). Move document
1518 and table URL keys to super-class in HasSelectableTable.
1519 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1520 Add table name field. Add Tokenizer class with URL key common to
1521 the subclasses (DetailsPlace and ListPlace).
1522 * src/main/java/org/glom/web/client/place/ListPlace.java:
1523 Add table name. Add code to parse the URL token.
1524 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1525 Update ListPlace construction with empty table name string.
1526 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1527 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1528 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1529 Update ListPlace construction with table name string.
1530 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1531 Change defaultTableName field to tableName to reflect how it's now
1532 used. Update the getter and setter methods.
1534 2011-06-28 Ben Konrath <ben@bagu.org>
1536 Enable the table selector in the DetailsView.
1538 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1539 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1540 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1541 Remove getDefaultDetailsLayout(). The default layout is now returned
1542 by the getDetailsLayout() method when the table name is an empty
1544 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1545 event handler for table change event. Change to using
1546 getDetailsLayout() for the default details layout.
1547 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1549 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1550 when navigating to the details place.
1552 2011-06-27 Ben Konrath <ben@bagu.org>
1554 Use filename based unique document ID in URL and for RPC.
1556 The document ID is the glom document name with spaces (' ') replaced
1557 with pluses ('+') and without the .glom extension.
1559 This change is mostly a string substitution of 'documentTitle' for
1560 'documentID'. The only code change is the addition of a Documents DTO to get the
1561 filename to document title mappings as indicated below.
1563 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1564 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1565 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1566 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1567 Use Documents DTO to create the document links in the document
1569 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1570 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1571 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1572 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1573 * src/main/java/org/glom/web/client/place/ListPlace.java:
1574 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1575 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1576 * src/main/java/org/glom/web/client/ui/ListView.java:
1577 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1578 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1579 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1580 * src/main/java/org/glom/web/server/Log.java:
1581 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1582 getDocumentTitles() to getDocuments() and return the Documents DTO.
1583 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1584 transferring the filename to document title mappings.
1586 2011-06-25 Ben Konrath <ben@bagu.org>
1588 Make the authentication popup work again.
1590 This bug was introduced when I extracted ConfiguredDocument to its own class.
1592 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1593 correct success / fail status in setUsernameAndPassword().
1595 2011-06-25 Ben Konrath <ben@bagu.org>
1597 Use filename as unique key for configuring database usernames and passwords.
1599 This replaces the use of the Glom document title which could change
1600 depending on the locale. Thanks to Murray Cumming for pointing out this
1603 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1604 * src/main/resources/onlineglom.properties:
1606 2011-06-24 Ben Konrath <ben@bagu.org>
1608 Pass primary key value to DetailsView.
1610 This enables the DetailsView to load the correct data.
1612 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1613 primary key value field and set in constructor. Pass primary key
1614 value to getDetailsData().
1615 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1616 variables for document title and primary key value.
1617 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1618 key value to the DetailsPlace.
1620 2011-06-24 Ben Konrath <ben@bagu.org>
1622 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1624 This allows the primary key to be retrieved by the Details button. This
1625 functionality has not been implemented yet but it's in the works.
1627 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1628 the LayoutGroup result to ListView.setCellTable instead of all of its
1629 fields individually.
1630 * src/main/java/org/glom/web/client/ui/ListView.java:
1631 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1632 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1633 get the primary key for the table.
1634 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1635 index of the primary key in the LayoutGroup accounting for hidden
1636 primary keys. Rename getJavaNumberFormat() to
1637 convertToJavaNumberFormat() for consistency. Cleanup / add some
1639 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1640 field for primary key index and a field to indicate whether the
1641 primary key is hidden or not.
1643 2011-06-23 Ben Konrath <ben@bagu.org>
1645 Rename getTableData methods to getListData.
1647 This is a rename refactor for consistency with other methods.
1649 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1650 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1651 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1652 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1654 2011-06-23 Ben Konrath <ben@bagu.org>
1656 Extract the ConfiguredDocument innerclass into its own class.
1658 This makes the servlet code more object oriented.
1660 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1661 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1662 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1663 new ConfiguredDocument class.
1665 2011-06-21 Ben Konrath <ben@bagu.org>
1667 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1669 This makes things more inline with how libglom works and reduces code
1670 duplication. This refactor lays the groundwork for adding the primary key to
1671 the LayoutGroup object.
1673 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1674 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1676 Change method names to getListLayout and getDefaultListLayout for
1677 consistency. Use LayoutGroup as the DTO for the list layout instead of
1678 ColumnInfo and LayoutListTable.
1679 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1680 new method names along with the LayoutGroup object for transferring the
1682 * src/main/java/org/glom/web/client/ui/ListView.java:
1683 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1684 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1685 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1687 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1688 Replaced with LayoutGroup.
1689 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1690 expectedResultSize and defaultTableName fields which are needed for
1692 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1693 type field which is needed for the list layout but will also be
1694 useful for the details layout as things progress.
1695 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1696 Make class abstract. Remove the unnecessary
1697 getFormattingHorizontalAlignment method. Add setFormatting method.
1699 2011-06-16 Ben Konrath <ben@bagu.org>
1701 Add scripts for building and installing war.
1703 These will help when updating OnlineGlom but they're also good
1704 supplemental documentation of the build and deployment proceeding.
1706 * utils/build-onlineglom-war.sh: New file.
1707 * utils/install-onlineglom-war.sh: New file.
1709 2011-06-16 Ben Konrath <ben@bagu.org>
1711 Create wrapper class to create consistent log messages.
1713 I wrapped methods in the Log class of gwt-log to add the method names
1714 from the servlet and create consistent formatting of the document title
1715 and table names in the log messages.
1717 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1719 log methods to use methods from wrapped Log class.
1721 2011-06-16 Ben Konrath <ben@bagu.org>
1723 Remove superfluous conditional return.
1725 Thanks to Murray Cumming for pointing this out!
1727 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1729 2011-06-15 Ben Konrath <ben@bagu.org>
1731 Return an ArrayList of LayoutGroups for the Details layout.
1733 This corrects a problem with the details layout as it can have more
1734 than one top level LayoutGroup.
1736 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1737 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1738 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1739 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1740 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1741 with ArrayList of LayoutGroups for the details view layout.
1742 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1743 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1744 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1745 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1746 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1747 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1749 2011-06-14 Ben Konrath <ben@bagu.org>
1751 Use cast_dynamic method to determine the libglom LayoutItem type.
1753 This is better than finding the LayoutItem type by using the string
1754 returned from the get_part_type_name() method.
1756 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1758 2011-06-14 Ben Konrath <ben@bagu.org>
1760 Add method names to log entries in the servlet.
1762 This helps when tracking down deployment problems.
1764 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1766 2011-06-14 Ben Konrath <ben@bagu.org>
1768 Add data to the DetailsView using a hard-coded primary key value.
1770 The layout and functionality of the DetailsView is not complete. This
1771 is just a checkpoint so the patch doesn't get too big.
1773 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1774 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1775 Add getDetailsData() servlet method.
1776 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1777 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1778 LayoutFields are added to the DetailsView.
1779 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1780 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1781 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1782 take the string for the title instead of the object.
1783 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1784 Add implementation getDetailsData() along with some private helper
1786 * src/main/webapp/style.css: Add padding to details-data class. Add a
1787 details-label class with the same padding as the details-data class.
1789 2011-06-03 Ben Konrath <ben@bagu.org>
1791 Use presenter.goTo() to change to the DetailsPlace.
1793 This will make things easier when we need to open the DetailsView with
1794 data specific to the row that was clicked.
1796 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1798 2011-06-02 Ben Konrath <ben@bagu.org>
1800 Add CSS file from mockups.
1802 I'm adding this now because it's going to be useful to have when
1803 developing the DetailsView. The TableSelectionView and ListView aren't
1806 * src/main/webapp/OnlineGlom.html:
1807 * src/main/webapp/style.css:
1809 2011-06-02 Ben Konrath <ben@bagu.org>
1811 Use String.isEmpty() to check for empty string.
1813 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1815 2011-06-02 Ben Konrath <ben@bagu.org>
1817 Display main layout group titles in the DetailsView.
1819 This is the start of the DetailsActivity/DetailsView implementation.
1821 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1822 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1823 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1824 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1825 Get the layout information for the details view from the server and set
1826 the main layout group titles.
1827 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1828 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1829 Add addLayoutGroup() and addLayoutField() methods. This are just
1830 temporary methods for creating the the details view that will change
1832 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1833 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1835 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1836 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1837 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1838 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1839 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1840 Data Transfer Objects that mimic the libglom object structure. These are
1841 used for transferring the details layout but could also be used for
1842 transferring the list layout.
1844 2011-05-27 Ben Konrath <ben@bagu.org>
1846 Reset the AuthenticationPopup when clearing the ListView.
1848 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1850 2011-05-27 Ben Konrath <ben@bagu.org>
1852 Fix problem with onlineglom.properties file loading.
1854 The old way worked in Eclipse but not on the server. Loading the
1855 onlineglom.properties file now works in Eclipse and on the server.
1857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1859 2011-05-24 Ben Konrath <ben@bagu.org>
1861 Update gwt-log from 3.1.0 to 3.1.2.
1863 Gwt-log 3.1.0 has been marked as depreciated.
1867 2011-05-24 Ben Konrath <ben@bagu.org>
1869 Add comment to ListActivity.goTo() method.
1871 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1873 2011-05-24 Ben Konrath <ben@bagu.org>
1875 Remove FIXME in convertGdkColorToHtmlColour()
1877 The Gdk::Color value returned by libglom is 16-bits per channel on both
1878 64 and 32-bit platforms.
1880 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1882 2011-05-19 Ben Konrath <ben@bagu.org>
1884 Improve performance of initial ListView load.
1886 I removed a round trip to the server for getting the default table name
1887 and then requesting information about that table. This also removes a potential
1888 problem with the table change handler not being setup in time to receive the
1889 table change event from the ListActivity.
1891 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1892 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1893 getDefaultLayoutListTable() method. Improve comments.
1894 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1895 getDefaultLayoutListTable() method instead of firing a table change
1896 event to get the table to load.
1897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1898 implementation of getDefaultLayoutListTable() method.
1899 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1902 2011-05-19 Ben Konrath <ben@bagu.org>
1904 Override toDebugString() in TableChangeEvent.
1906 This is useful to have for debugging.
1908 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1910 2011-05-19 Ben Konrath <ben@bagu.org>
1912 Add a "Back to List" link when at the DetailsPlace.
1914 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1915 Populate the CellTable based on the selected table of the ListBox if
1916 it's set otherwise use the default table. This allows the "Back to
1918 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1919 Remove Place from constructors. Add a setPlace() method. Add
1920 goToPlace() method. Set class as presenter for TableSelectionView.
1921 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1922 Use the same TableSelectionActivity when switching between the List and
1924 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1925 Subclass the new HasSelectableTablePlace. This removes some duplicate
1927 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1928 New class to represent Places that display the TableSelectionView.
1929 * src/main/java/org/glom/web/client/place/ListPlace.java:
1930 Subclass the new HasSelectableTablePlace. This removes some duplicate
1932 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1933 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1934 Add Presenter interface. Add setBackLinkVisible() method. Add
1935 setBackLink() method.
1937 2011-05-18 Ben Konrath <ben@bagu.org>
1939 Enable the "Details" buttons.
1941 Right now only an empty details view is displayed.
1943 * src/main/java/org/glom/web/client/ClientFactory.java:
1944 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1945 Add DetailsView to ClientFactory.
1946 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1947 A basic activity for the details view.
1948 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1949 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1951 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1952 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1954 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1955 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1956 unnecessary super() in constructor.
1957 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1958 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1959 really shouldn't create a new TableSelectionActivity for both the ListPlace
1960 and the DetailsPlace so this should be considered a temporary solution.
1961 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1962 New file. Represents a URL for the details view.
1963 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1964 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1965 A basic details view interface and implementation.
1966 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1967 Enable the "Details" buttons.
1969 2011-05-12 Ben Konrath <ben@bagu.org>
1971 Use a LayoutPanel with multiple display areas for main layout.
1973 This is mostly a refactor in that there are no changes from the user
1974 point of view. These changes are required so that we can swap out the list view
1975 with the details view when the user clicks the "Details" button.
1977 * src/main/java/org/glom/web/client/ClientFactory.java:
1978 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1979 OnlineGlomView. Add TableSelectionView, ListView and
1980 AuthenticationPopup.
1981 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1982 for main layout. Add display regions for main activities. Add
1983 activity manager for for main activities.
1984 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1985 file from parts of the deleted OnlineGlomActivity.
1986 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1987 New file from parts of the deleted OnlineGlomActivity.
1988 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1989 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1990 New files for app wide table change event.
1991 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1992 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1993 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1994 Activity mappers for the main activities replace the deleted app-wide
1996 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1997 Fix a spelling error in he comment.
1998 * src/main/java/org/glom/web/client/ui/ListView.java:
1999 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2000 Renamed from LayoutListView and modified for MVP. This still not a
2001 proper dumb view as prescribed by the MVP pattern but it works for now.
2002 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2003 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2004 New widget stripped out of the deleted OnlineGlomView.
2005 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2006 Remove hack that is fixed by this patch.
2008 2011-05-06 Ben Konrath <ben@bagu.org>
2010 Rename OnlineGlomPlace to ListPlace.
2012 The only change besides the rename is that url will now display #list
2013 instead of #Document.
2015 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2016 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2017 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2018 * src/main/java/org/glom/web/client/place/ListPlace.java:
2019 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2021 2011-05-06 Ben Konrath <ben@bagu.org>
2023 Use Presenter for app navigation.
2025 This is the proper way to deal with Place (URL) changes with the MVP
2028 * src/main/java/org/glom/web/client/ClientFactory.java:
2029 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
2030 PlaceHistoryMapper and PlaceHistoryHandler.
2031 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
2032 PlaceHistoryMapper and PlaceHistoryHandler.
2033 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2034 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
2035 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2036 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2037 Add Presenter interface and setPresenter methods. Rename addHyperLink
2038 to addDocumentLink taking only the document title as a parameter.
2040 2011-04-14 Ben Konrath <ben@bagu.org>
2042 Prompt for db username/password if they haven't been set.
2044 This is implemented with a popup widget that is contained within the
2045 OnlineGlomView and managed by the OnlineGlomActivity.
2047 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
2048 methods for checking and setting the database username and password.
2049 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
2050 new methods for checking and setting the database username and
2052 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2053 Display authentication popup if the JDBC connection to the database
2054 has not been authenticated.
2055 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
2057 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2058 for dealing with the authentication popup.
2059 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
2060 Implement the methods for dealing with the authentication popup.
2061 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
2062 try to executed queries if the database connection hasn't been
2063 authenticated. Implement methods for checking and setting the
2064 database username and password.
2066 2011-04-12 Ben Konrath <ben@bagu.org>
2068 Make log messages a little clearer.
2070 Add a dash betweeen the document title and the table name.
2072 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2074 2011-04-12 Ben Konrath <ben@bagu.org>
2076 Protect against NPEs when cleaning up database resources.
2078 While this isn't strictly necessary because the exception is caught,
2079 not protecting against the NPEs makes it harder to find the real error
2082 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2084 2011-04-12 Ben Konrath <ben@bagu.org>
2086 Move configuration of the servlet to the constructor.
2088 The servlet will be initialized even if the database authentication
2089 information is not set or correct. I still need to add the UI for prompting
2090 the user for the authentication information when it's required.
2092 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2093 javadocs for getDocumentTitles() method.
2094 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2095 Set error message when RPC fails.
2096 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
2097 glom files directory from the configuration file. Try to set the
2098 database authentication information for the specific document if it's
2099 set and works otherwise try to use the global authentication
2100 information set for the directory.
2101 * src/main/resources/onlineglom.properties: Moved from
2102 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
2103 Added detailed comments for the new keys.
2105 2011-04-11 Ben Konrath <ben@bagu.org>
2107 Remove unnecessary @Override in DocumentSelectionViewImpl.
2109 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2111 2011-04-11 Ben Konrath <ben@bagu.org>
2113 Remove center alignment in DocumentSelectionView.
2115 The title element is still centred but the document titles and bottom
2116 sentence are both left-aligned.
2118 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2120 2011-04-11 Ben Konrath <ben@bagu.org>
2122 Change 'Demo' naming convention to 'Document'.
2124 This is just a rename refactor with no functional changes to the code.
2126 * src/main/java/org/glom/web/client/ClientFactory.java:
2127 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
2128 * src/main/java/org/glom/web/client/OnlineGlom.java:
2129 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2130 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2131 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2132 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
2133 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2134 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
2135 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2136 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2137 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2138 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2140 2011-04-08 Ben Konrath <ben@bagu.org>
2142 Remove FIXME from safeLongToInt() method.
2144 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
2147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2149 2011-04-08 Ben Konrath <ben@bagu.org>
2151 Display an error if no glom documents are found in the specified directory.
2153 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2154 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2155 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2158 2011-04-08 Ben Konrath <ben@bagu.org>
2160 Add copyright header to one more file ... oops.
2162 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2164 2011-04-08 Ben Konrath <ben@bagu.org>
2166 Add copyright header to files without it.
2168 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2169 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2170 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2171 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2172 * src/main/java/org/glom/web/shared/ColumnInfo.java:
2173 * src/main/java/org/glom/web/shared/GlomField.java:
2175 2011-04-08 Ben Konrath <ben@bagu.org>
2177 Add support for accessing multiple glom documents in the servlet.
2179 This completes the demo selection functionality.
2181 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
2182 document title to methods.
2183 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2184 document title to methods.
2185 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2186 Set browser window title when the activity starts. Correct name of
2187 document title variable.
2188 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2189 Set browser window title when the activity starts. Set the table
2190 selector change handler after table selector has been set. Clear the
2191 OnlineGlomView when the activity has been stopped.
2192 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
2193 document title as the place token. Use "#Document:" instead of
2194 "#OnlineGlomPlace:" in the URL.
2195 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2196 Change heading to "Online Glom"
2197 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
2198 document title in RPC methods.
2199 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
2200 setDocumentTitle() method. Add clear() method.
2201 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
2202 setDocumentTitle() method. Implement clear() method which removes the
2203 change handler on the ListBox, clears the ListBox and clears the
2205 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2206 Implement methods with document title. Keep track for the configured
2207 glom documents and their corresponding JDBC configurations in a hash
2208 table. This information is retrieved using the document title as the
2209 key in the hash table.
2210 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2211 document title field as it's no longer needed.
2213 2011-04-08 Ben Konrath <ben@bagu.org>
2215 Update the Eclipse JDT configuration.
2217 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
2218 methods. Automatically add the copyright header to new files.
2220 2011-04-05 Ben Konrath <ben@bagu.org>
2222 Add new page for demo selection.
2224 This patch adds all the components required to view and start an
2225 OnlineGlom demo by clicking on the desired hyperlink. The user is
2226 able to return to the demo selection page with the browser's back
2227 button. I still need to modify the servlet to work with multiple
2228 documents so all demo links will load the file defined in the
2229 OnlineGlom.properties.
2231 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
2232 This is only useful during development so we don't need to save it.
2233 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
2234 get a reference to the DemoSelectionView.
2235 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
2236 method to get a reference to the DemoSelectionView.
2237 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
2238 default view to DemoSelectionView.
2239 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
2240 to get glom document titles for glom files in a hard-coded directory.
2241 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2242 method to get glom document titles for glom files in a hard-coded
2244 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
2245 Presenter for DemoSelectionView.
2246 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
2247 for DemoSelectionView.
2248 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2249 Update for DemoSelectionView.
2250 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
2251 Basic 'Place' implementation for the DemoSelectionView.
2252 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
2253 The interface for the DemoSelectionView.
2254 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
2255 The implementation of the DemoSelectionView.
2256 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
2257 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
2258 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2259 implementation of method to get glom document titles for glom files
2260 in a hard-coded directory.
2261 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
2262 on longer being used.
2263 * src/main/webapp/glom.png: Glom logo.
2265 2011-04-05 Ben Konrath <ben@bagu.org>
2267 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
2269 This is the forth and final commit of a refactor that will allow
2270 OnlineGlom to be used with multiple documents.
2272 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2273 Move RPC code from OnlineGlomViewImpl to this class.
2274 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
2276 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
2277 RPC code to the presenter class (the P in MVP).
2279 2011-04-04 Ben Konrath <ben@bagu.org>
2281 Start moving the existing OnlineGlom code to MVP.
2283 This work is based on the GWT MVP framework that is documented here:
2285 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
2287 This is the third commit of a refactor that will allow OnlineGlom to
2288 be used with multiple documents.
2290 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
2291 Interface for client factory which is used to get instances of various
2292 classes throughout the app.
2293 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
2294 Implementation of client factory.
2295 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
2296 initialize the MVP framework.
2297 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
2298 New file. Activity manager for the main container widget. This is the
2300 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
2301 Maps place (URL) to its corresponding activity.
2302 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
2303 New file. This is just a place holder for a generated file.
2304 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
2305 New file. Represents the URL for the main Online Glom app.
2306 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
2307 for changes in LayoutListViewImpl.
2308 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
2309 interface for View. Move code to OnlineGlomViewImpl class.
2310 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
2311 file. Implementation of OnlineGlomView.
2312 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
2313 Place resources. Use ClientFactoryImpl by default.
2315 2011-04-04 Ben Konrath <ben@bagu.org>
2317 Move View classes to their own package.
2319 This is the second commit of a refactor that will allow OnlineGlom to
2320 be used with multiple documents.
2322 * src/main/java/org/glom/web/client/OnlineGlom.java:
2323 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
2324 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
2326 2011-04-02 Ben Konrath <ben@bagu.org>
2328 Move UI code from the main module to its own class.
2330 This is the first commit of a refactor that will allow OnlineGlom to be
2331 used with multiple documents.
2333 * src/main/java/org/glom/web/client/LayoutListView.java: Update
2334 references to OnlineGlom to OnlineGlomView.
2335 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
2336 OnlineGlomView and instantiate it here.
2337 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
2338 represents the main OnlineGlomView with one document.
2340 2011-04-01 Ben Konrath <ben@bagu.org>
2342 Fix formatting of gwt.xml and add DTD.
2344 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2346 2011-03-30 Ben Konrath <ben@bagu.org>
2348 Propperly convert gdkColor string to html colour string.
2350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2352 2011-03-28 Ben Konrath <ben@bagu.org>
2354 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
2356 This implementation matches
2357 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
2358 readable and is not tied to Swig.
2360 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2362 2011-03-28 Ben Konrath <ben@bagu.org>
2364 Use read-only checkboxes for boolean field types.
2366 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
2367 in the CellTable based on the field type. It currently only
2368 distinguishes between boolean and text columns but I'll need to add
2369 support for more types.
2370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
2371 column type in the ColumnInfo object. Add method to convert between the
2372 glom field type enum in ColumnInfo and the glom field type in libglom.
2373 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
2375 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
2376 getting and setting booleans.
2378 2011-03-25 Ben Konrath <ben@bagu.org>
2380 Don't get the Date twice from the ResultSet.
2382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2384 2011-03-25 Ben Konrath <ben@bagu.org>
2386 Cleanup code in the servlet.
2388 * TODO: Remove item about row count. Add item about testing row count
2389 query with large number of rows.
2390 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
2391 spelling mistakes, change method parameter to be consistent with
2394 2011-03-25 Ben Konrath <ben@bagu.org>
2396 Add server side logging with the gwt-log library.
2398 * .gitignore: Ignore the log file we're now producing.
2399 * TODO: Add a couple TODO item for logging.
2400 * pom.xml: Add gwt-log and log4j as a dependency.
2401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2402 logging of errors, warnings and some important info.
2403 * src/main/resources/log4j.properties: New file to configure log4j.
2405 2011-03-24 Ben Konrath <ben@bagu.org>
2407 Add a disable button for the Details view.
2409 * src/main/java/org/glom/web/client/LayoutListView.java:
2411 2011-03-22 Ben Konrath <ben@bagu.org>
2413 Use a count query to get the number of rows for the list view pager.
2415 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2417 2011-03-22 Ben Konrath <ben@bagu.org>
2419 Add more TODO information about CellTable pager positioning.
2423 2011-03-19 Ben Konrath <ben@bagu.org>
2425 Add TODO item about CellTable pager positioning.
2429 2011-03-18 Ben Konrath <ben@bagu.org>
2431 Remove unneeded GlomFieldColumn class.
2433 This is just a small code cleanup.
2435 * src/main/java/org/glom/web/client/LayoutListView.java:
2437 2011-03-18 Ben Konrath <ben@bagu.org>
2439 Use cursor mode in the query that gets data for the list view.
2441 I still need to fix the potential memory problem when getting the row
2442 count for the list view.
2444 * TODO: Add note about testing memory usage with large data sets. Add
2445 item about fixing row counting with large data sets.
2446 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
2447 PostgreSQL JDBC driver into cursor mode when getting data for the
2450 2011-03-15 Ben Konrath <ben@bagu.org>
2452 Remove the GWT Container from the Eclipse build classpath.
2454 The GWT dependencies are set by Maven so this isn't needed.
2458 2011-03-15 Murray Cumming <murrayc@murrayc.com>
2460 Added some earlier mockups to git, but not to the tarball dist.
2462 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
2463 Openismus. These hopefully show how we might structure the HTML so that
2464 it can be styled easily with CSS. However, we probably need to adapt them
2465 for the CSS structure that GWT dictates for common widgets.
2467 2011-03-14 Ben Konrath <ben@bagu.org>
2469 Locate OnlineGlom.properties using the ServletContext.
2471 This is required to be able to locate the file in the deployed servlet.
2473 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2474 Configure the database and glom document in in a helper method so
2475 that the ServletContext can be used to locate OnlineGlom.properties.
2476 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
2477 src/main/webapp. This is the proper location for .properites files.
2479 2011-03-12 Ben Konrath <ben@bagu.org>
2481 Add note to README about why we're compiling down to obfuscated JavaScript.
2485 2011-03-11 Ben Konrath <ben@bagu.org>
2487 Use properties file to configure servlet.
2489 This allows people to change the glom file path, db username and db
2490 password without recompiling the code.
2492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2493 * src/main/webapp/OnlineGlom.properties:
2495 2011-03-11 Ben Konrath <ben@bagu.org>
2497 Use table fields in layout list view if the layout list is not defined.
2499 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2500 Manually create a LayoutFieldVector for the query builder using the
2501 table fields when a layout list is not defined in the glom file.
2503 2011-03-11 Ben Konrath <ben@bagu.org>
2505 Only show FIXME string for images when there's an image.
2507 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2508 in this change are some small code cleanups.
2510 2011-03-11 Ben Konrath <ben@bagu.org>
2512 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2514 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2516 2011-03-11 Ben Konrath <ben@bagu.org>
2518 Correctly set the index of the default table.
2520 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2521 Correctly set the index of the default table. Add commented out example
2524 2011-03-10 Ben Konrath <ben@bagu.org>
2526 Add comment to pom.xml about the previous change.
2528 * pom.xml: Add comment about the deployment issue so that it's obvious
2529 why java-libglom is set to the provided scope.
2531 2011-03-10 Ben Konrath <ben@bagu.org>
2533 Change java-libglom dependency from compile to provided in pom.xml.
2535 Since java-libglom uses jni it can only be loaded once and therefore
2536 must be placed in $CATALINA_HOME/lib and not included in each war.
2537 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2538 More information about this issue can be found in the Tomcat 6 release
2539 notes in the "JNI Based Applications" section:
2541 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2543 * README: Remove note about this issue. Deployment info should really
2544 be on the wiki anyway so I'll add it right now.
2545 * pom.xml: Change java-libglom dependency from compile to provided so
2546 that it's copied in to the packaged war.
2548 2011-03-09 Ben Konrath <ben@bagu.org>
2550 Change to using a neutral locale for currency, date and time formatting.
2552 This solves the problem of currency values being represented without a
2553 space between the currency code and the number (e.g. "EUR5.89" is now
2554 represented as "EUR 5.89"). More work is required when we implement
2555 a locale preference setting.
2557 * TODO: Add note about currency formatting issues with different
2559 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2560 to using the neutral ROOT locale.
2562 2011-03-09 Ben Konrath <ben@bagu.org>
2564 Add support for currency codes that are not ISO 4217 codes.
2566 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2567 the currency code defined in the glom file when it's not 3 characters
2568 long or when Java doesn't recognize the string as an ISO 4217 code.
2570 2011-03-08 Ben Konrath <ben@bagu.org>
2572 Remove test classes, launch configurations and configuration.
2574 The test stuff was getting in the way when creating the war. To make
2575 the war file you can now do 'mvn clean package'. The packaged war file
2576 will be in the target directory.
2578 * .classpath: Remove unused classpathentry for tests and i18n.
2579 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2580 property. Don't run test or i18n goals when packaging the war.
2581 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2586 * OnlineGlomTest-dev.launch:
2587 * OnlineGlomTest-prod.launch:
2588 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2589 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2591 2011-03-07 Ben Konrath <ben@bagu.org>
2593 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2595 These fixes allow me to use 'mvn deploy' to create the war file.
2597 * .classpath: This generated config has been updated by Eclipse. This
2598 change was probably triggered by me updating from Eclipse 3.6.1 to
2600 * .gitignore: Add entry to ignore the directory
2601 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2602 * .project: The generated config has been updated by Eclipse. This
2603 change was probably triggered by me updating from Eclipse 3.6.1 to
2605 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2606 so that Eclipse doesn't complain
2607 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2608 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2609 'tests' directory to 'client' directory. This is the new
2610 gwt-maven-plugin convension.
2611 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2612 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2614 2011-03-07 Ben Konrath <ben@bagu.org>
2616 Add support for horizontal alignment in the LayoutList columns.
2618 * TODO: Remove item about horizontal alignment. Add item about
2619 improvements to ColumnInfo.
2620 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2621 alignment on the columns. Use ColumnInfo RPC object get the column
2622 title and horizontal alignment.
2623 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2624 LayoutListView creation with ColumnInfo RPC object.
2625 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2626 a ColumnInfo object for every LayoutList columnn. Convert the
2627 FieldFormatting.HorizontalAlignment to the correct
2628 ColumnnInfo.HorizontatlAlignment with the new
2629 getColumnInfoHorizontalAlignment helper method.
2630 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2631 to encapsulate column information like alignment and title. This
2632 could be used to set the colour instead of on a per cell field basis.
2633 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2634 column title storage and retrieval with ColumnInfo.
2636 2011-03-04 Ben Konrath <ben@bagu.org>
2638 Add support for column sorting.
2640 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2641 AsynDataProvider to be an anonymous inner class. Use new
2642 getSortedTableData RPC method when column sort is requested. Set all
2643 columns sortable and add an AsyncHandler to activate sorting in the
2645 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2646 method getSortedTableData(). Cleanup other method signatures.
2647 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2648 new method getSortedTableData(). Cleanup other method signatures.
2649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2650 Implement getSortedTableData() and getTableData() methods by using a
2651 private helper method with the appropriate parameters filled in. Use
2652 user supplied sort clause when supplied, otherwise fall back to
2653 sorting by the primary key. Move destroy() method to be underneath
2654 constructor for readability. Cleanup comments.
2656 2011-03-03 Ben Konrath <ben@bagu.org>
2658 Add support for colour text and colour backgrounds to the layout list cells.
2660 Only the cell backgrounds are coloured which leaves a gap between the
2661 cells that isn't coloured. I need to figure out a way to set
2662 'style=background-colour:' on the whole column rather than just the
2665 * TODO: Add a note about colouring the background of the whole column.
2666 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2667 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2668 render the coloured text and backgrounds. Use GlomField[] for the row type.
2669 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2671 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2672 GlomField[] for the row type.
2673 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2674 GlomField[] for the row type. Set the text, text colour and background
2675 colour in the GlomField objects as specified in the glom document. Add
2676 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2677 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2678 the glom field text, foreground colour and background colour.
2680 2011-03-02 Ben Konrath <ben@bagu.org>
2682 Don't display hidden tables in the combo box.
2684 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2686 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2687 code to ignore hidden tables using ArrayLists for the table names and
2689 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2690 tableNames to use ArrayLists instead of String[]. Update getter and setter
2693 2011-03-01 Ben Konrath <ben@bagu.org>
2695 Add support for Date and Time number types.
2697 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2698 Implement formatting for Date and Time values. Change the default glom
2699 file to small business example.
2701 2011-03-01 Ben Konrath <ben@bagu.org>
2703 Add support for formatting glom types as specified in the glom file.
2705 Formatting isn't finished yet - I still need to add support for Date
2708 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2709 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2710 checks for null values in JDBC cleanup code and catch all exceptions
2711 instead of just SQLExceptions.
2712 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2715 2011-03-01 Ben Konrath <ben@bagu.org>
2717 Use GWT 2.2.0 instead of 2.1.1.
2719 * pom.xml: Change GWT version numbers.
2721 2011-03-01 Ben Konrath <ben@bagu.org>
2723 A few small code cleanups.
2725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2727 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2728 unnecessary object creation in constructor.
2729 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2730 unnecessary object creation in constructor.
2732 2011-02-28 Ben Konrath <ben@bagu.org>
2734 Add file for TODO list.
2738 2011-02-18 Ben Konrath <ben@bagu.org>
2740 Enable the CellTable Pager when more than 20 rows need to be viewed.
2742 The Pager will automatically become active when the results are larger
2743 than the CellTable size which is currently set to 20 lines.
2745 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2746 name on debug statment in RPC call in LayoutListDataProvider, add
2747 numRows parameter to LayoutListView constructor, propperly set rowCount
2749 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2750 name on debug statment in RPC call, use LayoutListTable object in RPC
2751 calls, pass rowCount to LayoutListView.
2752 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2753 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2755 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2756 interface for changes in OnlineGlomService.
2757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2758 getLayoutListHeaders() to getLayoutListTable() and return
2759 LayoutListTable. Using this object allows me to pass other information
2760 about the LayoutList like the expected number of rows in the result set.
2761 The Connection object from the connection pool is now propperly closed.
2762 Only the requested number of lines are returned to the client in
2764 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2765 GlomTable and add columnTitles and numRows.
2767 2011-02-18 Ben Konrath <ben@bagu.org>
2769 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2771 This is a small performance boost. I'll use GlomTable to get the required
2772 layoutlist information.
2774 * src/main/java/org/glom/web/client/OnlineGlom.java:
2775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2776 * src/main/java/org/glom/web/shared/GlomDocument.java:
2778 2011-02-18 Ben Konrath <ben@bagu.org>
2780 Add option to turn off formatting in JDT formatter preferences.
2782 * .settings/org.eclipse.jdt.core.prefs:
2784 2011-02-18 Ben Konrath <ben@bagu.org>
2786 Rename LayoutList to LayoutListView.
2788 I'm working towards setting things up to easily use MVP when the time
2791 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2793 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2796 2011-02-17 Ben Konrath <ben@bagu.org>
2798 Move LayoutListDataProvider class into LayoutList.java.
2800 * src/main/java/org/glom/web/client/LayoutList.java:
2802 2011-02-17 Ben Konrath <ben@bagu.org>
2804 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2806 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2808 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2809 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2810 from LibGlomServer.java.
2811 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2812 Rename from LibGlomServiceAsync.java.
2813 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2814 Rename from LibGlomServiceImpl.java.
2815 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2817 2011-02-17 Ben Konrath <ben@bagu.org>
2819 Update JDT settings.
2821 * .settings/org.eclipse.jdt.core.prefs:
2823 2011-02-17 Ben Konrath <ben@bagu.org>
2825 Move GWT-RPC objects to shared package (where they should be).
2827 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2828 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2829 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2830 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2831 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2832 org.glom.web.shared package.
2833 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2834 org.glom.web.shared package.
2835 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2836 directory in compilation to javascript.
2838 2011-02-16 Ben Konrath <ben@bagu.org>
2840 Add sort clause to the sql query that grabs table information.
2842 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2843 if one of the columns is a primary key.
2845 2011-02-16 Ben Konrath <ben@bagu.org>
2847 Disable generateAsync feature of gwt-maven.
2849 The generated interface does not correctly match the methods in LibGlomService
2850 and the generated singleton Util inner-class doesn't respect the servlet
2853 * pom.xml: Turn off generateAsync feature.
2854 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2855 with singleton Util inner-class.
2857 2011-02-14 Ben Konrath <ben@bagu.org>
2859 Add LGPL v3 licence notices.
2861 Followed directions listed here:
2862 http://www.gnu.org/licenses/gpl-howto.html
2864 * COPYING: This file is a copy of the GPL v3.
2865 * COPYING.LESSER: This file is a copy of the LGPL v3.
2866 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2868 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2870 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2872 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2874 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2876 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2878 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2881 2011-02-14 Ben Konrath <ben@bagu.org>
2883 Use ArrayList instead of Array in GWT-RPC calls.
2885 Apparently this gives a slight performance boost to the compiled
2888 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2890 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2893 2011-02-14 Ben Konrath <ben@bagu.org>
2895 Access data from a postgres db rather than the example glom file.
2897 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2898 compile down to obfuscated javascript.
2899 * pom.xml: Add c3p0 and postgres JDBC libraries.
2900 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2901 using a postgres db accessed through the c3p0 connection pooling library.
2903 2011-02-14 Ben Konrath <ben@bagu.org>
2905 Update Java formatter settings.
2907 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2909 2011-02-02 Ben Konrath <ben@bagu.org>
2911 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2913 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2915 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2916 the compiled webapp directory that Eclipse uses as we're using Maven now.
2917 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2918 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2920 * pom.xml: Format file, change target Java version to 1.6.
2922 2011-02-02 Ben Konrath <ben@bagu.org>
2924 Add information about a deployment related issue.
2926 * README: Add Notes section with the problem outlined.
2928 2011-02-02 Ben Konrath <ben@bagu.org>
2930 Call Glom.libglom_deinit() when the servlet is shutdown.
2932 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2933 Glom.libglom_deinit() to destroy() method.
2935 2011-01-28 Ben Konrath <ben@bagu.org>
2937 Use generated Util class to get the RPC Async interface.
2939 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2941 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2942 getInstance() method to get a reference to the RPC Async interface.
2943 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2944 getInstance() method to get a reference to the RPC Async interface, remove
2945 the now unused getLibGlomServiceProxy() method.
2947 2011-01-27 Ben Konrath <ben@bagu.org>
2949 Cleanup ChangeLog entry from previous commit.
2951 * ChangeLog: Group logical changes together and add comments.
2953 2011-01-25 Ben Konrath <ben@bagu.org>
2955 Convert to gwt-maven project.
2957 * .gitignore: Update for new project structure.
2958 * README: New file with a link to the online documentation.
2959 * pom.xml: The generated maven configuration file with some tweaks.
2961 Add / update Eclipse settings. These files are a merge of the files that
2962 were generated with the gwt-maven plugin and the files we were previously
2966 * .settings/.jsdtscope:
2967 * .settings/com.google.gdt.eclipse.core.prefs:
2968 * .settings/com.google.gwt.eclipse.core.prefs:
2969 * .settings/org.eclipse.jdt.core.prefs:
2970 * .settings/org.eclipse.wst.common.component:
2971 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2972 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2973 * .settings/org.maven.ide.eclipse.prefs:
2974 * OnlineGlomTest-dev.launch:
2975 * OnlineGlomTest-prod.launch:
2977 Java source files moved from the 'src' directory to the directory structure
2979 * src/main/java/org/glom/web/client/GlomDocument.java:
2980 * src/main/java/org/glom/web/client/GlomTable.java:
2981 * src/main/java/org/glom/web/client/LayoutList.java:
2982 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2983 * src/main/java/org/glom/web/client/LibGlomService.java:
2984 * src/main/java/org/glom/web/client/OnlineGlom.java:
2985 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2987 Non-functional property file used for translations. I included this as
2988 reminder that it's something I need to sort out.
2989 * src/main/resources/org/glom/web/client/Messages.properties:
2991 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2992 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2994 The servlet configuration files moved from the 'war' directory.
2995 * src/main/webapp/OnlineGlom.css:
2996 * src/main/webapp/OnlineGlom.html:
2997 * src/main/webapp/WEB-INF/web.xml:
2999 Generated test files with most of the code commented out. I included these
3000 so that it's easy to add tests when we're ready for them.
3001 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
3002 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
3004 2011-01-25 Ben Konrath <ben@bagu.org>
3006 Remove unused println.
3008 * src/org/glom/web/server/LibGlomServiceImpl.java:
3010 2011-01-25 Ben Konrath <ben@bagu.org>
3012 Add project specific JDT settings.
3014 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
3015 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
3017 2011-01-25 Ben Konrath <ben@bagu.org>
3019 Populate celltable with example data.
3021 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
3022 * src/org/glom/web/client/GlomTable.java: Correct formatting.
3023 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
3024 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
3025 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
3026 asynchronously gets the example data.
3027 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
3028 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
3029 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
3030 curently selected table to be retrieved by other widgets.
3031 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
3032 implement getTableData() in a hacky way. This method needs to be updated
3033 to grab information from the database when database creating is
3036 2011-01-20 Ben Konrath <ben@bagu.org>
3038 Set table headers when table dropBox changes.
3040 * src/org/glom/web/client/GlomDocument.java: Correct some method
3042 * src/org/glom/web/client/LibGlomService.java: Add method
3043 to get list layout field names.
3044 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
3045 to get list layout field names.
3046 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
3047 widget for list layout table.
3048 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
3049 the table drop box and add new updateTable() method to asynchronously
3050 get the layout list field names for the currently selected table.
3051 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
3052 implementation of getLayoutListHeaders() method.
3053 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
3055 2011-01-18 Ben Konrath <ben@bagu.org>
3057 Make a listBox with table titles instead of the flexTable demo.
3059 This is the start of something more useful.
3061 * .classpath: Exclude a bunch of packages from the JVM that are
3062 getting in the way of the Eclipse content assist.
3063 * src/org/glom/web/client/GlomDocument.java:
3064 * src/org/glom/web/client/GlomTable.java:
3065 * src/org/glom/web/client/LibGlomService.java:
3066 * src/org/glom/web/client/LibGlomServiceAsync.java:
3067 * src/org/glom/web/client/OnlineGlom.java:
3068 * src/org/glom/web/server/LibGlomServiceImpl.java:
3069 * war/OnlineGlom.html:
3070 * war/WEB-INF/web.xml:
3072 211-01-13 Ben Konrath <ben@bagu.org>
3074 Update to new java-libglom API.
3076 * .gitignore: Ignore OnlineGlom.war.
3077 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
3079 2010-12-20 Ben Konrath <ben@bagu.org>
3081 Add some basic style to the table listing.
3083 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
3084 header, print useful error message on async callback failure.
3085 * war/OnlineGlom.css: Add style for table header, remove defaults
3086 provided by the Eclipse project wizard.
3088 2010-12-20 Ben Konrath <ben@bagu.org>
3090 Load example file from installed glom dir.
3092 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
3093 provided by java-libglom to find the example file.
3095 2010-12-20 Ben Konrath <ben@bagu.org>
3097 Update Eclipse settings.
3100 * .settings/com.google.gdt.eclipse.core.prefs:
3101 * .settings/com.google.gwt.eclipse.core.prefs:
3103 2010-12-17 Ben Konrath <ben@bagu.org>
3107 * .classpath: New file.
3108 * .gitignore: New file.
3109 * .project: New file.
3110 * .settings/com.google.gdt.eclipse.core.prefs: New file.
3111 * .settings/com.google.gwt.eclipse.core.prefs: New file.
3112 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
3113 * src/org/glom/web/client/GlomTable.java: New file.
3114 * src/org/glom/web/client/OnlineGlom.java: New file.
3115 * src/org/glom/web/client/TableNameService.java: New file.
3116 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
3117 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
3118 * war/OnlineGlom.css: New file.
3119 * war/OnlineGlom.html: New file.
3120 * war/WEB-INF/web.xml: New file.
3121 * war/images/glom.png: New file.