1 2011-10-31 Ben Konrath <ben@bagu.org>
3 Don't use GWT numeric formatting to override the glom currency formatting.
5 Currencies are now displayed like they are in Glom. See this bug:
7 https://bugzilla.gnome.org/show_bug.cgi?id=646216
9 * src/main/java/org/glom/web/client/Utils.java: Remove GWT currency
11 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: Add
12 currency code to constructor and set it when the cell is rendered.
13 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
14 currency code to the constructor of the NumericCell.
16 2011-10-27 Ben Konrath <ben@bagu.org>
18 Require the latest release of java-libglom (1.17.4).
22 2011-10-26 Ben Konrath <ben@bagu.org>
24 Add style to Notebook that matches current theme.
26 It's not the best style in the world but it's better than the default.
28 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
29 padding at the bottom of the child widgets.
30 * src/main/webapp/style.css: Add style for the Notebook.
32 2011-10-26 Ben Konrath <ben@bagu.org>
34 Move servlet initialization code to overridden init method.
36 This is half of the solution to getting proper error messages
37 displayed when configuration errors occur. Here's the relevant bug:
39 https://bugzilla.gnome.org/show_bug.cgi?id=662792
41 The rest of the solution involves surrounding the init method with a
42 try/catch block and setting a global variable with the error /
43 exception. A new async method should be created to retrieve and display
44 the error message / exception.
46 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
47 code from constructor to init method adding exceptions as needed.
49 2011-10-26 Ben Konrath <ben@bagu.org>
51 Add script to monitor and restart tomcat if required.
53 * utils/check-and-recover-tomcat.py: New file.
55 2011-10-26 Ben Konrath <ben@bagu.org>
57 Display the correct number of data items in the pager.
61 https://bugzilla.gnome.org/show_bug.cgi?id=661441
63 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
64 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
65 The implementation is the same for both tables: Keep track of the
66 number of non-empty rows and fire and RowCountChangeEvent after the data has
68 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
69 custom Pager class that subclasses SimplePager to handle displaying
70 the correct number when empty rows have been added.
72 2011-10-26 Ben Konrath <ben@bagu.org>
74 Correct error in previous commit.
76 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
77 eventBus parameter from listView.setCellTable().
79 2011-10-26 Ben Konrath <ben@bagu.org>
81 Fix error in TODO comment.
83 * src/main/java/org/glom/web/client/activity/ListActivity.java:
85 2011-10-24 Ben Konrath <ben@bagu.org>
87 Create Notebook widgets to the details view.
89 This isn't finished just yet - I still need to create a reasonable
90 style to match the current theme.
92 * src/main/java/org/glom/web/client/Utils.java: Add method for
93 calculating the height of a widget. This is used in the Notebook class.
94 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
95 new constructor method in Group.
96 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
97 method for creating child widget that can be used by subclasses
98 like Notebook. New constructor that allows disabling the group
99 titles - Notebooks don't set a group title for their child groups.
100 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
101 to make Notebooks using GWT's TabLayoutPanel.
102 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
103 constructor that allows disabling the group titles.
104 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
105 LayoutItemNotebook DTO.
106 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
107 DTO for Notebooks. It's just an empty class for now but we might need
108 it to transfer some specific information in the future.
110 2011-10-21 Ben Konrath <ben@bagu.org>
112 Add navigation buttons to related list tables.
114 * src/main/java/org/glom/web/client/OnlineGlomService.java:
115 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
117 method getSuitableRecordToViewDetails() for getting the table name
118 and primary key value for related list navigation buttons.
119 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
120 private cell renderer class to get the navigation information for
121 related list tables from the server. Extract the navigation
122 processing code from the details cell navigation and use it for the
123 related list navigation as well.
124 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
125 cell renderer class for the details open buttons. This was needed
126 because the related list navigation buttons and the list view
127 navigation buttons need to react differently when clicked.
128 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
129 the onEnterKeyDown() method because it's now overriden in the
130 subclasses that are specific to the related list tables and the list
132 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
133 the vertical size a little because the buttons add a bit of vertical
134 space to table. This is not a perfect solution because the vertical
135 size of with table fewer than 5 rows will be a little smaller.
136 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
137 changes in how navigation buttons are handled.
138 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
139 getSuitableRecordToViewDetails() using the new RelatedListNavigation
140 database access object.
141 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
142 to find the portal for a given relationship name from
143 RelatedListDBAccess. Add method to find a primary key field for a
145 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
146 Move code to find the portal for a given relationship name to
148 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
149 New file: database access object for getting the related list
150 navigation information (the table name and the primary key value).
151 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
152 DTO for transferring a table name to navigate to and a primary key
154 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
155 boolean and getter/setter to specifies if the related list should add
158 2011-10-24 Murray Cumming <murrayc@murrayc.com>
160 Use the master branch of java-libglom
162 * pom.xml: Depend on java-libglom 1.19 instead.
164 This is the master branch. See also the libglom-1-18 branch.
166 2011-10-11 Ben Konrath <ben@bagu.org>
168 Enable the open navigation button when the data has been set.
170 This avoids having active buttons that don't do anything when the data
173 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
175 2011-10-11 Ben Konrath <ben@bagu.org>
177 Use IsWidget interface for FlowTableItem.
179 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
180 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
182 2011-10-11 Ben Konrath <ben@bagu.org>
184 Remove GWT styling from open button in details view.
186 There are still some issues with how the details cell is arranged but
187 this should be made to match Glom 1.20. I'm going to leave fixing this
188 until I have Glom 1.20 up and running.
190 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
191 style name on open button.
192 * src/main/webapp/style.css: Move and edit details-navigation class.
193 Re-arrange some classes to make them appear in the same order as the
196 2011-10-07 Ben Konrath <ben@bagu.org>
200 * .gitignore: Ignore new cache directory.
201 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
202 * pom.xml: Change GWT and maven plugin to 2.4.0.
203 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
205 * src/main/java/org/glom/web/client/ClientFactory.java:
206 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
207 * src/main/java/org/glom/web/client/OnlineGlom.java:
208 Update source for API changes.
209 * utils/build-onlineglom-war.sh: Remove cache directory before the
212 2011-10-07 Ben Konrath <ben@bagu.org>
214 Add navigation buttons in the details view.
216 This isn't finished but I thought I'd commit what I have as it's a
217 pretty good start. I still need to:
219 1. Change the style so that it fits better into the current theme
220 2. Adjust the details cell to expand as much as possible.
222 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
223 click handlers to navigation buttons in the DetailsCells. Create a
224 refreshData() method to get just the data from the server without the
226 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
227 Update the tableSelector and browser title when the table name
228 changes without using the tableSelector.
229 * src/main/java/org/glom/web/client/ui/DetailsView.java:
230 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
231 getDetailsCells() to getCells(). Update variable names.
232 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
233 method to set click handler on navigation button. Rename a few
234 variables. Add navigation buttons where needed.
235 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
236 variables and methods.
237 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
238 navigation boolean and navigation table as required in the
240 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
241 variables for navigation along with getter/setter methods.
243 2011-10-07 Ben Konrath <ben@bagu.org>
245 Rename Field to DetailsCell.
247 This is a refactor-only commit. No functionality has been added or
250 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
251 Update variable and method names.
252 * src/main/java/org/glom/web/client/ui/DetailsView.java:
253 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
254 variable and method names.
255 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
257 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
258 variable and method names.
260 2011-10-07 Ben Konrath <ben@bagu.org>
262 Create separate methods for layout and data the details view.
264 This is a refactor-only commit. No functionality has been added or
267 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
268 private methods: setData(), createLayout().
270 2011-10-07 Ben Konrath <ben@bagu.org>
272 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
274 This is part of a change to get navigation buttons in the details view
275 but it should have been done this way from the start.
277 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
278 for method name change in TableSelectionView.
279 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
280 Create TableChangeEvent and set the browser title using the
281 TableSelectionView API.
282 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
283 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
284 Change getSelectedTable() to getSelectedTableName(). Add
285 getSelectedTableTitle().
287 2011-10-07 Ben Konrath <ben@bagu.org>
289 Use primaryKeyValue naming convention in constructor of DetailsPlace.
291 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
293 2011-10-07 Ben Konrath <ben@bagu.org>
295 Update TableChangeEvent to use newTableName naming convention.
297 This makes the class more consistent with GWT naming conventions.
299 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
300 Update for method name change in TableChangeEvent.
301 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
302 for method name change in TableChangeEvent.
303 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
304 newTableName variable and getter method. Make toDebugString()
307 2011-09-30 Ben Konrath <ben@bagu.org>
309 Disable the pager in the list tables when the data row count is less than the minimum.
311 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
312 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
314 2011-09-30 Ben Konrath <ben@bagu.org>
316 Add empty rows to the end of related list and list view tables.
318 I also extracted the cell rendering classes from the ListTable because
319 the code was becoming a little crazy with all the anonymous inner
320 classes. My plan is to use these cell rendering classes in the details
321 view as well so this refactor will be needed for that change.
323 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
324 set the row count in related list tables if the data has more rows
325 than the minimum number of rows visible.
326 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
327 row count in list view tables if the data has more rows than the
328 minimum number of rows visible.
329 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
330 for rendering TYPE_BOOLEAN cells. The code was extracted from the
332 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
333 for rendering TYPE_NUMERIC cells. The code was extracted from the
335 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
336 class for rendering cells with buttons in list views. The code was
337 extracted from the ListTable class.
338 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
339 for rendering TYPE_TEXT cells. The code was extracted from the
341 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
342 Add empty rows to the end of the data if required. Implement
343 ListTable.getMinNumVisibleRows().
344 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
345 cell renderer code to public classes. Return null in
346 Column.getValue() for empty rows. Add new abstract method:
347 getMinNumVisibleRows(). Move code to set the row count of the list view
348 table to ListViewImpl.
349 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
350 empty rows to the end of the data if required. Implement
351 ListTable.getMinNumVisibleRows().
354 2011-09-27 Ben Konrath <ben@bagu.org>
356 Use GWT.log for client-side debugging statements.
358 These are optimized out when deployed so I should have used this method
359 in the first place. These statements will eventually be replaced with some sort
360 of notification in the browser.
362 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
363 * src/main/java/org/glom/web/client/activity/ListActivity.java:
364 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
365 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
366 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
368 2011-09-27 Ben Konrath <ben@bagu.org>
370 Put tableselector on the right, back to list link on right.
372 The idea is that the table selector is acting like a label for the
373 currently displayed table so it should be placed below the document title. This
374 puts the table title in a similar position to where it is in Glom.
376 * mockups/details-contacts.html:
377 * mockups/details-projects.html:
378 * mockups/listview-contacts.html:
379 * mockups/listview-projects.html:
381 Update mockups to match how the interfaces currently look.
382 * src/main/webapp/style.css: Swap positions of backlink with the table
383 selector. Add some space on the left side of the table selector to
384 line things up with the document title.
386 2011-09-27 Ben Konrath <ben@bagu.org>
388 Add field colouring to details view.
390 This change re-works how field colouring works. The colour formatting
391 information is now set to the client with the layout information instead of
392 with the data. This eliminates the need to send the same colour strings for
393 data in list view column when colour information is set.
395 In order to set an alternate colour for negative numeric values, the
396 number is now sent to client and formatted with the GWT NumberFormat class.
398 This change also fixes:
400 https://bugzilla.gnome.org/show_bug.cgi?id=659752
402 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
403 internationalization framework which is needed for client side numeric
405 * src/main/java/org/glom/web/client/Utils.java: New file for some
406 client static utility methods.
407 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
408 the DataItem object to the Field class. Use a utility method to
409 create the foreignKeyValue string.
410 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
411 alignment and text colours in the constructor. Add setData(DataItem)
412 method. Remove setText(String) method.
413 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
414 colour information to GlomTextCell. Create and use GlomNumberCell for
415 rendering numbers. Use utility method to get the string for the
416 primary key of the key provider. Re-work how the horizontal alignment
418 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
419 formatting to layout information. Methods for converting the libglom
420 formatting information were moved from DBAccess.
421 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
422 numeric formatting (it's now done on the client side). Don't set text
423 colours in DataItem. Move libglom formatting conversion methods to
425 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
426 getters/setters for text colour information.
427 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
428 for transferring the libglom NumericFormat information to the client.
429 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
430 and getters/setters for: GlomNumericFormat, background colour and
431 foreground colour strings.
433 2011-09-26 Ben Konrath <ben@bagu.org>
435 Simplify code that iterates through the LayoutGroup.
437 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
439 2011-09-26 Ben Konrath <ben@bagu.org>
441 Accept Eclipse formatting for OnlineGlomServiceAsync.
443 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
445 2011-09-26 Ben Konrath <ben@bagu.org>
447 Don't use the ListDBAccess classes to get the primary key layout information.
449 This was causing a bug where the wrong index for the hidden primary key
450 was being sent to the client.
452 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
453 primary key while creating the LayoutGroup DTO. Create a
454 LayoutItemField DTO for hidden primary keys. Don't use the
455 RelatedListDBAccess because it was only used for getting the primary
457 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
458 access modifier from public to protected for getPrimaryKeyField() and
459 getPrimaryKeyLayoutItemField().
460 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
461 abstract method getExpectedResultSize() because RelatedListDBAccess
462 doesn't have enough info to implement it.
463 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
464 Remove @Override for getExpectedResultSize().
465 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
466 Remove method getExpectedResultSize().
468 2011-09-23 Ben Konrath <ben@bagu.org>
470 Log which layout (list or details) the ignored item is from.
472 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
474 2011-09-23 Ben Konrath <ben@bagu.org>
476 Remove annotations that turn off code formatting in DataItem.
478 * src/main/java/org/glom/web/shared/DataItem.java:
480 2011-09-23 Ben Konrath <ben@bagu.org>
482 Rename GlomField to DataItem and update associated methods.
484 This is a rename-only refactor. No functionality has been added or
487 * src/main/java/org/glom/web/client/OnlineGlomService.java:
488 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
489 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
490 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
491 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
492 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
493 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
494 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
495 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
496 * src/main/java/org/glom/web/server/database/DBAccess.java:
497 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
498 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
499 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
500 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
501 * src/main/java/org/glom/web/shared/DataItem.java:
502 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
503 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
505 2011-09-23 Ben Konrath <ben@bagu.org>
507 Rename GlomDocument to DocumentInfo and update associated methods.
509 This is a rename-only refactor. No functionality has been added or
512 * src/main/java/org/glom/web/client/OnlineGlomService.java:
513 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
514 * src/main/java/org/glom/web/client/activity/ListActivity.java:
515 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
516 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
517 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
518 * src/main/java/org/glom/web/shared/DocumentInfo.java:
520 2011-09-20 Ben Konrath <ben@bagu.org>
522 Require java-libglom 1.17.3.
524 This picks up the fix for the seg fault problem with the Scenes table
525 in the Openismus Film Manager example.
529 2011-09-20 Ben Konrath <ben@bagu.org>
531 Change the way sort clause is added for primary key when no sort clause is requested.
533 The primary key is now added to the LayoutFieldVector (fieldsToGet)
534 before the sort clause is created. When a sort clause is not requested, the
535 sort clause is created by finding the primary key in the LayoutFieldVector
538 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
540 2011-09-20 Ben Konrath <ben@bagu.org>
542 Log error message if no documents are found in the configured directory.
544 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
545 Extract the glom file extension string to a private static final class
546 variable (mostly as syntactic sugar). Accept a minor formatting change.
547 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
548 the example glom.document.directory configuration property to make it
549 more clear that it can any directory, not just the home directory.
551 2011-09-18 Ben Konrath <ben@bagu.org>
553 Add related lists to details view.
555 The related list table has support for paging and sorting just like the
556 table in the list view.
558 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
559 SQL queries for the related list tables.
560 * src/main/java/org/glom/web/client/OnlineGlomService.java:
561 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
562 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
563 Rename getList methods to getListView and add comments. Remove
564 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
565 it being unused. Add methods: getDetailsLayoutAndData(),
566 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
567 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
568 Create the layout and set the data for the fields in one async call
569 instead of two. Create related lists where appropriate.
570 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
571 for method name changes in OnlineGlomService.
572 * src/main/java/org/glom/web/client/ui/DetailsView.java:
573 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
574 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
576 * src/main/java/org/glom/web/client/ui/ListView.java:
577 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
578 tableName from setCellTable(). Create a ListViewTable instead of
580 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
581 represent a data field in the details view.
582 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
583 from addDetailsCell() to Field class. Keep track of the Fields and
584 Portals in the details view.
585 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
586 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
587 and add a method to get it. Add method to set the contents of the
589 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
590 New class for related list tables. This class has the data provider
591 for the related list table.
592 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
593 abstract class which is the base class for the ListViewTable and the
595 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
596 New class for list view tables. This class has the data provider for
598 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
599 methods for related list tables. Add more information to the
600 LayoutItemField and LayoutItemPortal DTOs.
601 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
602 Remove debugging print statement.
603 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
604 Remove debugging print statements. Add primary key field to SQL count
606 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
607 Remove unnecessary LayoutFieldVector parameter from
608 getResultSizeOfSQLQuery() method.
609 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
610 New class for related list table database access.
611 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
612 class that is a wrapper DTO for details view layout and data.
613 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
614 new 'fromField' string to this DTO.
615 * src/main/webapp/style.css: Remove bottom margin and override top
618 2011-09-15 Ben Konrath <ben@bagu.org>
620 Breakup the OnlineGlomServiceImpl class to make it more manageable.
622 This sets things up to make it easier to add the data retrieval for
623 related lists (portals). No user noticeable changes were made with
626 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
627 class has the code to retrieve the layouts and access the
628 database using the new database helper classes.
629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
630 Most of the functionality has been removed from this class. This
631 class now represents the public interface for the client side
632 code. It also deals with configuring the servlet and cleaning
633 things up when the servlet is stopped.
634 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
635 of static methods into this utility class.
636 * src/main/java/org/glom/web/server/database/DBAccess.java:
637 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
638 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
639 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
640 These classes have the database retrieval code. The class hierarchy
641 has been setup to make it easy to reuse code for similar
644 2011-09-06 Ben Konrath <ben@bagu.org>
646 Create separate classes for list table code and the data provider.
648 As part of this refactor, I also split up the code a bit to make it
651 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
652 table code to two new classes (below).
653 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
654 with code from ListViewImpl.
655 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
656 New file with code from ListViewImpl.
658 2011-09-06 Ben Konrath <ben@bagu.org>
660 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
662 This fixes the LayoutItemPortal DTO to match the libglom layout object
665 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
667 2011-09-01 Ben Konrath <ben@bagu.org>
669 Set title of Portals in the Details View.
671 * pom.xml: Bump required version of java-libglom to 1.17.1.
672 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
673 widget creation to its own class. Add comments to constructor.
674 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
675 The code is mostly from the Group class with the title now set.
676 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
677 title of Portal. Update some comments. Fix some code formatting.
679 2011-09-01 Ben Konrath <ben@bagu.org>
681 Remove TODO comment for the flow table column width.
683 The flow table column width is working correctly and doesn't need to be
684 changed. See this mailing list post for more info:
686 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
688 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
690 2011-08-27 Ben Konrath <ben@bagu.org>
692 Add document title (database name) to top of the browser page.
694 I added the document title to the TableSelecitonView but that will
695 change if / when we add a view that doesn't require table selection.
697 * mockups/details-contacts.html:
698 * mockups/details-projects.html:
699 * mockups/listview-contacts.html:
700 * mockups/listview-projects.html:
701 * mockups/style.css: Add document title to mockups to keep things
703 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
704 sizes to account for the document title.
705 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
706 Set the document title when it has been retrieved from the server.
707 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
708 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
709 and implement setDocumentTitle(String) method.
710 * src/main/webapp/style.css: Add ID for document title style.
712 2011-08-25 Ben Konrath <ben@bagu.org>
714 Add NavigationType enum to LayoutItemPortal DTO.
716 This is the start of adding support for Portals to the Details View.
718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
719 LayoutItem_Portal.navigation_type enum from libglom to
720 LayoutItemPortal.NavigationType enum.
721 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
722 NavigationType enum, field for storing the NavigationType and getter
725 2011-08-25 Ben Konrath <ben@bagu.org>
727 Implement the flow table layout in the Details View.
729 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
730 FlowTable to Group to account for the renamed class.
731 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
732 File. This is a container widget that implements the Glom details view
733 flow table behaviour.
734 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
735 org/glom/web/client/ui/FlowTable.java.
736 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
737 so that the size of the subgroups are a closer match to the size of
738 the Glom subgroups. This makes the flowtable layout match the layout
739 in Glom for the Music Collection example file.
741 2011-08-16 Ben Konrath <ben@bagu.org>
743 Create container element for LayoutItemPortal in Details View.
745 This will help me develop the layout for the FlowTable.
747 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
748 fieldPanel variable to detailsCell.
750 2011-08-15 Ben Konrath <ben@bagu.org>
752 Set the height of the data element in the Details View.
754 I changed the InlineLabels (text in a span element) to Labels (text in
755 a div element) so that I could set the height of the details-data
756 elements instead of the details-cell parent elements. This allows the
757 the details-data element to display the correct height if style is
758 applied that shows the height.
760 This change has the added benefit of allowing the order of the labels
761 and data elements to be changed for right-to-left languages.
763 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
764 InlineLabels to Labels.
765 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
766 InlineLabels to Labels. Set the height of the data element.
767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
768 multiline text height in the Formatting DTO.
769 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
770 for multiline height along with getter and setter methods.
771 * src/main/webapp/style.css: Adjust style to account for the change
772 from span elements to div elements in the details cell.
774 2011-08-15 Ben Konrath <ben@bagu.org>
776 Make the List View appearance match the mockups.
778 It doesn't match exactly but it's much better than it was.
780 * mockups/listview-contacts.html: Remove unused css classes.
781 * mockups/listview-projects.html: Remove unused css classes.
782 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
783 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
784 for mainPanel instead of VerticalPanel (table). Set style name on
785 CellTable. Set style name on Details column. Right-align Details
787 * src/main/webapp/style.css: Adjust properties to match the mockups.
789 2011-08-12 Ben Konrath <ben@bagu.org>
791 Add better support for subgroups in the details view.
793 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
794 changed FlowTable constructor.
795 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
796 support for subgroups and subgroup-titles.
797 * src/main/webapp/style.css: Add CSS class for subgroups and
800 2011-08-12 Ben Konrath <ben@bagu.org>
802 Return the top level LayoutGroup title.
804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
806 2011-08-11 Ben Konrath <ben@bagu.org>
808 Make the TableSelector header match the mockup.
810 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
811 the layout panel. Properly lineup the table selection header with
812 the list and details view.
813 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
814 margin around the details view.
815 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
816 Rename listBox variable to tableSelector. Set id for the style sheet.
817 Use a FlowPanel instead of a HorizontalPanel.
818 * src/main/webapp/style.css: Add properties to make the TableSelector
819 box match the mockups.
821 2011-07-13 Ben Konrath <ben@bagu.org>
823 Update install script for java-libglom version change.
825 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
828 2011-07-13 Ben Konrath <ben@bagu.org>
830 Add support sub-group in the details view.
832 I also removed the code that special-cased the default details view
835 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
837 I still have to make a proper flowtable.
839 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
840 Don't special-case default details view layout.
841 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
842 addLayoutField() as I'm going to use it.
843 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
844 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
846 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
847 extracted from DetailsViewImpl.GroupPanel. Add support for
849 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
850 column count when getting the details layout.
852 2011-07-12 Ben Konrath <ben@bagu.org>
854 Set browser title with database and table titles.
856 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
857 Set the browser title when the table changes and when the activity
859 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
860 title when retrieving document info (the GlomDocument object).
861 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
862 with getter and setter methods. Remove unused convenience constructor.
863 Use default code formatting.
865 2011-07-12 Ben Konrath <ben@bagu.org>
867 Ignore LayoutItemPortals in the details view.
869 I added a new DTO for the LayoutItemPortal so that I can ignore it in
872 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
873 LayoutItemPortal layout objects.
874 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
875 LayoutItemPortal objects when retrieving the details layout.
876 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
877 file. This is an empty class and just used to get type information for
880 2011-07-12 Ben Konrath <ben@bagu.org>
882 Use java-libglom 1.17.0.
886 2011-07-11 Ben Konrath <ben@bagu.org>
888 Remove "Table:" label from table selector.
890 This matches a recent change in the Glom UI.
892 * mockups/details-contacts.html:
893 * mockups/details-projects.html:
894 * mockups/listview-contacts.html:
895 * mockups/listview-projects.html: Remove the "Table:" label from the
897 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
899 2011-07-11 Ben Konrath <ben@bagu.org>
901 Add main groups to the details view.
903 This makes things look a little nicer in the details view. The next step
904 is to implement the flowtable.
906 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
907 resources from the standard gwt css theme. Standard.css is now
908 included in OnlineGlom.html so that the online glom css rules have
909 precedence over the gwt theme.
910 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
911 the whole LayoutGroup to the DetailsView instead of just the titles.
912 * src/main/java/org/glom/web/client/ui/DetailsView.java:
913 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
914 details layout with a helper class (GroupPanel). I might extract this
915 class when I make the full flowtable.
916 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
917 string as default so I don't have to worry about NPEs when processing
919 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
920 note beside OnlineGlom.gwt.xml above).
921 * src/main/webapp/style.css: Add default font-size to body to override
922 the font-size set by the standard theme. Don't use h2 tags for
923 group-title. Create new details-cell class.
925 2011-07-08 Murray Cumming <murrayc@murrayc.com>
927 ConfiguredDocument: Set the port number too.
929 * src/main/java/org/glom/web/server/ConfiguredDocument.java
930 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
931 Glom document. Presumably this worked sometimes so far because there is a
934 2011-07-08 Murray Cumming <murrayc@murrayc.com>
936 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
938 * src/main/java/org/glom/web/server/ConfiguredDocument.java
939 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
940 correct, though we should throw an exception too.
942 2011-07-08 Murray Cumming <murrayc@murrayc.com>
944 Fix a addDocuemnt typo.
946 * src/main/java/org/glom/web/shared/Documents.java
947 (Documents.addDocuemnt): Rename to addDocument().
948 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
949 (OnlineGlomServiceImpl.getDocuments): Adapt.
951 2011-07-08 Murray Cumming <murrayc@murrayc.com>
953 Slightly improved log output when connection fails.
955 * src/main/java/org/glom/web/server/ConfiguredDocument.java
956 (ConfiguredDocument.setUsernameAndPassword):
957 We don't know for sure if it' the username/password that's wrong, so
958 rephrase the message.
959 Also ouput the exception message, though it's generic in this case.
961 2011-07-08 Ben Konrath <ben@bagu.org>
965 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
966 added braces to a one line if statement because the Eclipse formatter
967 was getting confused.
969 2011-07-07 Ben Konrath <ben@bagu.org>
971 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
973 These should really be two separate tasks but I counldn't get things to
974 work with GWT 2.2.0 and Eclipse 3.7.
978 * .settings/org.eclipse.jdt.core.prefs:
979 * .settings/org.eclipse.jdt.ui.prefs:
980 * .settings/org.eclipse.ltk.core.refactoring.prefs:
981 * .settings/org.eclipse.m2e.core.prefs:
982 Add new config files. Update current files. Remove references to the
983 webtools plugins as we're not using any of the webtools features.
984 * .gitignore: Add logs directory which is created when running with
986 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
987 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
988 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
990 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
992 2011-07-07 Murray Cumming <murrayc@murrayc.com>
994 onlineglom.properties: Add explanatory comments.
996 * src/main/resources/onlineglom.properties: Also change the default user
997 from ben to someuser, to avoid the risk of people thinking we just
998 stupidly hard-coded a locale path, when they see that on stderr or in a log.
1000 2011-06-28 Ben Konrath <ben@bagu.org>
1002 Use filename in Log for incorrect passwords.
1004 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
1005 getFileName(String) method to get the filename from the URI.
1007 2011-06-28 Ben Konrath <ben@bagu.org>
1009 Add the table name to the URL token for the ListPlace.
1011 This makes things consistent between the DetailsPlace and the
1012 ListPlace. It also allows the the ListPlace to be bookmarked.
1014 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1015 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1016 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1017 Remove getDefaultListLayout(). The default layout is now returned
1018 by the getListLayout() method when the table name is an empty string.
1019 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1020 Add table name field. Change to a new ListPlace when the table
1021 has been changed. Use getListLayout() for getting the default
1023 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1024 Add table name field. Set the correct table name in the list box
1025 when loading from bookmark. This corrects a problem for the
1027 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1028 Move table name to super-class (HasSelectableTable). Move document
1029 and table URL keys to super-class in HasSelectableTable.
1030 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1031 Add table name field. Add Tokenizer class with URL key common to
1032 the subclasses (DetailsPlace and ListPlace).
1033 * src/main/java/org/glom/web/client/place/ListPlace.java:
1034 Add table name. Add code to parse the URL token.
1035 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1036 Update ListPlace construction with empty table name string.
1037 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1038 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1039 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1040 Update ListPlace construction with table name string.
1041 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1042 Change defaultTableName field to tableName to reflect how it's now
1043 used. Update the getter and setter methods.
1045 2011-06-28 Ben Konrath <ben@bagu.org>
1047 Enable the table selector in the DetailsView.
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 Remove getDefaultDetailsLayout(). The default layout is now returned
1053 by the getDetailsLayout() method when the table name is an empty
1055 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1056 event handler for table change event. Change to using
1057 getDetailsLayout() for the default details layout.
1058 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1060 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1061 when navigating to the details place.
1063 2011-06-27 Ben Konrath <ben@bagu.org>
1065 Use filename based unique document ID in URL and for RPC.
1067 The document ID is the glom document name with spaces (' ') replaced
1068 with pluses ('+') and without the .glom extension.
1070 This change is mostly a string substitution of 'documentTitle' for
1071 'documentID'. The only code change is the addition of a Documents DTO to get the
1072 filename to document title mappings as indicated below.
1074 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1075 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1076 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1077 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1078 Use Documents DTO to create the document links in the document
1080 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1081 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1082 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1083 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1084 * src/main/java/org/glom/web/client/place/ListPlace.java:
1085 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1086 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1087 * src/main/java/org/glom/web/client/ui/ListView.java:
1088 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1089 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1090 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1091 * src/main/java/org/glom/web/server/Log.java:
1092 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1093 getDocumentTitles() to getDocuments() and return the Documents DTO.
1094 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1095 transferring the filename to document title mappings.
1097 2011-06-25 Ben Konrath <ben@bagu.org>
1099 Make the authentication popup work again.
1101 This bug was introduced when I extracted ConfiguredDocument to its own class.
1103 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1104 correct success / fail status in setUsernameAndPassword().
1106 2011-06-25 Ben Konrath <ben@bagu.org>
1108 Use filename as unique key for configuring database usernames and passwords.
1110 This replaces the use of the Glom document title which could change
1111 depending on the locale. Thanks to Murray Cumming for pointing out this
1114 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1115 * src/main/resources/onlineglom.properties:
1117 2011-06-24 Ben Konrath <ben@bagu.org>
1119 Pass primary key value to DetailsView.
1121 This enables the DetailsView to load the correct data.
1123 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1124 primary key value field and set in constructor. Pass primary key
1125 value to getDetailsData().
1126 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1127 variables for document title and primary key value.
1128 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1129 key value to the DetailsPlace.
1131 2011-06-24 Ben Konrath <ben@bagu.org>
1133 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1135 This allows the primary key to be retrieved by the Details button. This
1136 functionality has not been implemented yet but it's in the works.
1138 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1139 the LayoutGroup result to ListView.setCellTable instead of all of its
1140 fields individually.
1141 * src/main/java/org/glom/web/client/ui/ListView.java:
1142 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1143 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1144 get the primary key for the table.
1145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1146 index of the primary key in the LayoutGroup accounting for hidden
1147 primary keys. Rename getJavaNumberFormat() to
1148 convertToJavaNumberFormat() for consistency. Cleanup / add some
1150 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1151 field for primary key index and a field to indicate whether the
1152 primary key is hidden or not.
1154 2011-06-23 Ben Konrath <ben@bagu.org>
1156 Rename getTableData methods to getListData.
1158 This is a rename refactor for consistency with other methods.
1160 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1161 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1162 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1165 2011-06-23 Ben Konrath <ben@bagu.org>
1167 Extract the ConfiguredDocument innerclass into its own class.
1169 This makes the servlet code more object oriented.
1171 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1172 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1173 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1174 new ConfiguredDocument class.
1176 2011-06-21 Ben Konrath <ben@bagu.org>
1178 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1180 This makes things more inline with how libglom works and reduces code
1181 duplication. This refactor lays the groundwork for adding the primary key to
1182 the LayoutGroup object.
1184 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1185 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1186 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1187 Change method names to getListLayout and getDefaultListLayout for
1188 consistency. Use LayoutGroup as the DTO for the list layout instead of
1189 ColumnInfo and LayoutListTable.
1190 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1191 new method names along with the LayoutGroup object for transferring the
1193 * src/main/java/org/glom/web/client/ui/ListView.java:
1194 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1195 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1196 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1198 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1199 Replaced with LayoutGroup.
1200 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1201 expectedResultSize and defaultTableName fields which are needed for
1203 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1204 type field which is needed for the list layout but will also be
1205 useful for the details layout as things progress.
1206 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1207 Make class abstract. Remove the unnecessary
1208 getFormattingHorizontalAlignment method. Add setFormatting method.
1210 2011-06-16 Ben Konrath <ben@bagu.org>
1212 Add scripts for building and installing war.
1214 These will help when updating OnlineGlom but they're also good
1215 supplemental documentation of the build and deployment proceeding.
1217 * utils/build-onlineglom-war.sh: New file.
1218 * utils/install-onlineglom-war.sh: New file.
1220 2011-06-16 Ben Konrath <ben@bagu.org>
1222 Create wrapper class to create consistent log messages.
1224 I wrapped methods in the Log class of gwt-log to add the method names
1225 from the servlet and create consistent formatting of the document title
1226 and table names in the log messages.
1228 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1229 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1230 log methods to use methods from wrapped Log class.
1232 2011-06-16 Ben Konrath <ben@bagu.org>
1234 Remove superfluous conditional return.
1236 Thanks to Murray Cumming for pointing this out!
1238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1240 2011-06-15 Ben Konrath <ben@bagu.org>
1242 Return an ArrayList of LayoutGroups for the Details layout.
1244 This corrects a problem with the details layout as it can have more
1245 than one top level LayoutGroup.
1247 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1248 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1249 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1250 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1251 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1252 with ArrayList of LayoutGroups for the details view layout.
1253 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1254 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1255 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1256 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1257 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1258 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1260 2011-06-14 Ben Konrath <ben@bagu.org>
1262 Use cast_dynamic method to determine the libglom LayoutItem type.
1264 This is better than finding the LayoutItem type by using the string
1265 returned from the get_part_type_name() method.
1267 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1269 2011-06-14 Ben Konrath <ben@bagu.org>
1271 Add method names to log entries in the servlet.
1273 This helps when tracking down deployment problems.
1275 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1277 2011-06-14 Ben Konrath <ben@bagu.org>
1279 Add data to the DetailsView using a hard-coded primary key value.
1281 The layout and functionality of the DetailsView is not complete. This
1282 is just a checkpoint so the patch doesn't get too big.
1284 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1285 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1286 Add getDetailsData() servlet method.
1287 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1288 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1289 LayoutFields are added to the DetailsView.
1290 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1291 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1292 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1293 take the string for the title instead of the object.
1294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1295 Add implementation getDetailsData() along with some private helper
1297 * src/main/webapp/style.css: Add padding to details-data class. Add a
1298 details-label class with the same padding as the details-data class.
1300 2011-06-03 Ben Konrath <ben@bagu.org>
1302 Use presenter.goTo() to change to the DetailsPlace.
1304 This will make things easier when we need to open the DetailsView with
1305 data specific to the row that was clicked.
1307 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1309 2011-06-02 Ben Konrath <ben@bagu.org>
1311 Add CSS file from mockups.
1313 I'm adding this now because it's going to be useful to have when
1314 developing the DetailsView. The TableSelectionView and ListView aren't
1317 * src/main/webapp/OnlineGlom.html:
1318 * src/main/webapp/style.css:
1320 2011-06-02 Ben Konrath <ben@bagu.org>
1322 Use String.isEmpty() to check for empty string.
1324 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1326 2011-06-02 Ben Konrath <ben@bagu.org>
1328 Display main layout group titles in the DetailsView.
1330 This is the start of the DetailsActivity/DetailsView implementation.
1332 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1333 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1334 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1335 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1336 Get the layout information for the details view from the server and set
1337 the main layout group titles.
1338 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1339 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1340 Add addLayoutGroup() and addLayoutField() methods. This are just
1341 temporary methods for creating the the details view that will change
1343 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1344 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1346 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1347 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1348 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1349 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1350 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1351 Data Transfer Objects that mimic the libglom object structure. These are
1352 used for transferring the details layout but could also be used for
1353 transferring the list layout.
1355 2011-05-27 Ben Konrath <ben@bagu.org>
1357 Reset the AuthenticationPopup when clearing the ListView.
1359 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1361 2011-05-27 Ben Konrath <ben@bagu.org>
1363 Fix problem with onlineglom.properties file loading.
1365 The old way worked in Eclipse but not on the server. Loading the
1366 onlineglom.properties file now works in Eclipse and on the server.
1368 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1370 2011-05-24 Ben Konrath <ben@bagu.org>
1372 Update gwt-log from 3.1.0 to 3.1.2.
1374 Gwt-log 3.1.0 has been marked as depreciated.
1378 2011-05-24 Ben Konrath <ben@bagu.org>
1380 Add comment to ListActivity.goTo() method.
1382 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1384 2011-05-24 Ben Konrath <ben@bagu.org>
1386 Remove FIXME in convertGdkColorToHtmlColour()
1388 The Gdk::Color value returned by libglom is 16-bits per channel on both
1389 64 and 32-bit platforms.
1391 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1393 2011-05-19 Ben Konrath <ben@bagu.org>
1395 Improve performance of initial ListView load.
1397 I removed a round trip to the server for getting the default table name
1398 and then requesting information about that table. This also removes a potential
1399 problem with the table change handler not being setup in time to receive the
1400 table change event from the ListActivity.
1402 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1403 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1404 getDefaultLayoutListTable() method. Improve comments.
1405 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1406 getDefaultLayoutListTable() method instead of firing a table change
1407 event to get the table to load.
1408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1409 implementation of getDefaultLayoutListTable() method.
1410 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1413 2011-05-19 Ben Konrath <ben@bagu.org>
1415 Override toDebugString() in TableChangeEvent.
1417 This is useful to have for debugging.
1419 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1421 2011-05-19 Ben Konrath <ben@bagu.org>
1423 Add a "Back to List" link when at the DetailsPlace.
1425 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1426 Populate the CellTable based on the selected table of the ListBox if
1427 it's set otherwise use the default table. This allows the "Back to
1429 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1430 Remove Place from constructors. Add a setPlace() method. Add
1431 goToPlace() method. Set class as presenter for TableSelectionView.
1432 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1433 Use the same TableSelectionActivity when switching between the List and
1435 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1436 Subclass the new HasSelectableTablePlace. This removes some duplicate
1438 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1439 New class to represent Places that display the TableSelectionView.
1440 * src/main/java/org/glom/web/client/place/ListPlace.java:
1441 Subclass the new HasSelectableTablePlace. This removes some duplicate
1443 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1444 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1445 Add Presenter interface. Add setBackLinkVisible() method. Add
1446 setBackLink() method.
1448 2011-05-18 Ben Konrath <ben@bagu.org>
1450 Enable the "Details" buttons.
1452 Right now only an empty details view is displayed.
1454 * src/main/java/org/glom/web/client/ClientFactory.java:
1455 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1456 Add DetailsView to ClientFactory.
1457 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1458 A basic activity for the details view.
1459 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1460 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1462 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1463 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1465 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1466 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1467 unnecessary super() in constructor.
1468 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1469 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1470 really shouldn't create a new TableSelectionActivity for both the ListPlace
1471 and the DetailsPlace so this should be considered a temporary solution.
1472 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1473 New file. Represents a URL for the details view.
1474 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1475 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1476 A basic details view interface and implementation.
1477 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1478 Enable the "Details" buttons.
1480 2011-05-12 Ben Konrath <ben@bagu.org>
1482 Use a LayoutPanel with multiple display areas for main layout.
1484 This is mostly a refactor in that there are no changes from the user
1485 point of view. These changes are required so that we can swap out the list view
1486 with the details view when the user clicks the "Details" button.
1488 * src/main/java/org/glom/web/client/ClientFactory.java:
1489 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1490 OnlineGlomView. Add TableSelectionView, ListView and
1491 AuthenticationPopup.
1492 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1493 for main layout. Add display regions for main activities. Add
1494 activity manager for for main activities.
1495 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1496 file from parts of the deleted OnlineGlomActivity.
1497 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1498 New file from parts of the deleted OnlineGlomActivity.
1499 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1500 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1501 New files for app wide table change event.
1502 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1503 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1504 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1505 Activity mappers for the main activities replace the deleted app-wide
1507 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1508 Fix a spelling error in he comment.
1509 * src/main/java/org/glom/web/client/ui/ListView.java:
1510 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1511 Renamed from LayoutListView and modified for MVP. This still not a
1512 proper dumb view as prescribed by the MVP pattern but it works for now.
1513 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1514 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1515 New widget stripped out of the deleted OnlineGlomView.
1516 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1517 Remove hack that is fixed by this patch.
1519 2011-05-06 Ben Konrath <ben@bagu.org>
1521 Rename OnlineGlomPlace to ListPlace.
1523 The only change besides the rename is that url will now display #list
1524 instead of #Document.
1526 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1527 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1528 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1529 * src/main/java/org/glom/web/client/place/ListPlace.java:
1530 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1532 2011-05-06 Ben Konrath <ben@bagu.org>
1534 Use Presenter for app navigation.
1536 This is the proper way to deal with Place (URL) changes with the MVP
1539 * src/main/java/org/glom/web/client/ClientFactory.java:
1540 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1541 PlaceHistoryMapper and PlaceHistoryHandler.
1542 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1543 PlaceHistoryMapper and PlaceHistoryHandler.
1544 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1545 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1546 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1547 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1548 Add Presenter interface and setPresenter methods. Rename addHyperLink
1549 to addDocumentLink taking only the document title as a parameter.
1551 2011-04-14 Ben Konrath <ben@bagu.org>
1553 Prompt for db username/password if they haven't been set.
1555 This is implemented with a popup widget that is contained within the
1556 OnlineGlomView and managed by the OnlineGlomActivity.
1558 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1559 methods for checking and setting the database username and password.
1560 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1561 new methods for checking and setting the database username and
1563 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1564 Display authentication popup if the JDBC connection to the database
1565 has not been authenticated.
1566 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1568 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1569 for dealing with the authentication popup.
1570 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1571 Implement the methods for dealing with the authentication popup.
1572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1573 try to executed queries if the database connection hasn't been
1574 authenticated. Implement methods for checking and setting the
1575 database username and password.
1577 2011-04-12 Ben Konrath <ben@bagu.org>
1579 Make log messages a little clearer.
1581 Add a dash betweeen the document title and the table name.
1583 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1585 2011-04-12 Ben Konrath <ben@bagu.org>
1587 Protect against NPEs when cleaning up database resources.
1589 While this isn't strictly necessary because the exception is caught,
1590 not protecting against the NPEs makes it harder to find the real error
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1595 2011-04-12 Ben Konrath <ben@bagu.org>
1597 Move configuration of the servlet to the constructor.
1599 The servlet will be initialized even if the database authentication
1600 information is not set or correct. I still need to add the UI for prompting
1601 the user for the authentication information when it's required.
1603 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1604 javadocs for getDocumentTitles() method.
1605 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1606 Set error message when RPC fails.
1607 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1608 glom files directory from the configuration file. Try to set the
1609 database authentication information for the specific document if it's
1610 set and works otherwise try to use the global authentication
1611 information set for the directory.
1612 * src/main/resources/onlineglom.properties: Moved from
1613 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1614 Added detailed comments for the new keys.
1616 2011-04-11 Ben Konrath <ben@bagu.org>
1618 Remove unnecessary @Override in DocumentSelectionViewImpl.
1620 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1622 2011-04-11 Ben Konrath <ben@bagu.org>
1624 Remove center alignment in DocumentSelectionView.
1626 The title element is still centred but the document titles and bottom
1627 sentence are both left-aligned.
1629 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1631 2011-04-11 Ben Konrath <ben@bagu.org>
1633 Change 'Demo' naming convention to 'Document'.
1635 This is just a rename refactor with no functional changes to the code.
1637 * src/main/java/org/glom/web/client/ClientFactory.java:
1638 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1639 * src/main/java/org/glom/web/client/OnlineGlom.java:
1640 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1641 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1642 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1643 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1644 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1645 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1646 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1647 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1648 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1649 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1651 2011-04-08 Ben Konrath <ben@bagu.org>
1653 Remove FIXME from safeLongToInt() method.
1655 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1658 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1660 2011-04-08 Ben Konrath <ben@bagu.org>
1662 Display an error if no glom documents are found in the specified directory.
1664 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1665 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1666 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1667 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1669 2011-04-08 Ben Konrath <ben@bagu.org>
1671 Add copyright header to one more file ... oops.
1673 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1675 2011-04-08 Ben Konrath <ben@bagu.org>
1677 Add copyright header to files without it.
1679 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1680 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1681 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1682 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1683 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1684 * src/main/java/org/glom/web/shared/GlomField.java:
1686 2011-04-08 Ben Konrath <ben@bagu.org>
1688 Add support for accessing multiple glom documents in the servlet.
1690 This completes the demo selection functionality.
1692 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1693 document title to methods.
1694 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1695 document title to methods.
1696 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1697 Set browser window title when the activity starts. Correct name of
1698 document title variable.
1699 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1700 Set browser window title when the activity starts. Set the table
1701 selector change handler after table selector has been set. Clear the
1702 OnlineGlomView when the activity has been stopped.
1703 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1704 document title as the place token. Use "#Document:" instead of
1705 "#OnlineGlomPlace:" in the URL.
1706 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1707 Change heading to "Online Glom"
1708 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1709 document title in RPC methods.
1710 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1711 setDocumentTitle() method. Add clear() method.
1712 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1713 setDocumentTitle() method. Implement clear() method which removes the
1714 change handler on the ListBox, clears the ListBox and clears the
1716 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1717 Implement methods with document title. Keep track for the configured
1718 glom documents and their corresponding JDBC configurations in a hash
1719 table. This information is retrieved using the document title as the
1720 key in the hash table.
1721 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1722 document title field as it's no longer needed.
1724 2011-04-08 Ben Konrath <ben@bagu.org>
1726 Update the Eclipse JDT configuration.
1728 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1729 methods. Automatically add the copyright header to new files.
1731 2011-04-05 Ben Konrath <ben@bagu.org>
1733 Add new page for demo selection.
1735 This patch adds all the components required to view and start an
1736 OnlineGlom demo by clicking on the desired hyperlink. The user is
1737 able to return to the demo selection page with the browser's back
1738 button. I still need to modify the servlet to work with multiple
1739 documents so all demo links will load the file defined in the
1740 OnlineGlom.properties.
1742 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1743 This is only useful during development so we don't need to save it.
1744 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1745 get a reference to the DemoSelectionView.
1746 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1747 method to get a reference to the DemoSelectionView.
1748 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1749 default view to DemoSelectionView.
1750 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1751 to get glom document titles for glom files in a hard-coded directory.
1752 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1753 method to get glom document titles for glom files in a hard-coded
1755 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1756 Presenter for DemoSelectionView.
1757 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1758 for DemoSelectionView.
1759 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1760 Update for DemoSelectionView.
1761 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1762 Basic 'Place' implementation for the DemoSelectionView.
1763 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1764 The interface for the DemoSelectionView.
1765 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1766 The implementation of the DemoSelectionView.
1767 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1768 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1769 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1770 implementation of method to get glom document titles for glom files
1771 in a hard-coded directory.
1772 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1773 on longer being used.
1774 * src/main/webapp/glom.png: Glom logo.
1776 2011-04-05 Ben Konrath <ben@bagu.org>
1778 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1780 This is the forth and final commit of a refactor that will allow
1781 OnlineGlom to be used with multiple documents.
1783 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1784 Move RPC code from OnlineGlomViewImpl to this class.
1785 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1787 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1788 RPC code to the presenter class (the P in MVP).
1790 2011-04-04 Ben Konrath <ben@bagu.org>
1792 Start moving the existing OnlineGlom code to MVP.
1794 This work is based on the GWT MVP framework that is documented here:
1796 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1798 This is the third commit of a refactor that will allow OnlineGlom to
1799 be used with multiple documents.
1801 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1802 Interface for client factory which is used to get instances of various
1803 classes throughout the app.
1804 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1805 Implementation of client factory.
1806 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1807 initialize the MVP framework.
1808 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1809 New file. Activity manager for the main container widget. This is the
1811 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1812 Maps place (URL) to its corresponding activity.
1813 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1814 New file. This is just a place holder for a generated file.
1815 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1816 New file. Represents the URL for the main Online Glom app.
1817 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1818 for changes in LayoutListViewImpl.
1819 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1820 interface for View. Move code to OnlineGlomViewImpl class.
1821 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1822 file. Implementation of OnlineGlomView.
1823 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1824 Place resources. Use ClientFactoryImpl by default.
1826 2011-04-04 Ben Konrath <ben@bagu.org>
1828 Move View classes to their own package.
1830 This is the second commit of a refactor that will allow OnlineGlom to
1831 be used with multiple documents.
1833 * src/main/java/org/glom/web/client/OnlineGlom.java:
1834 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1835 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1837 2011-04-02 Ben Konrath <ben@bagu.org>
1839 Move UI code from the main module to its own class.
1841 This is the first commit of a refactor that will allow OnlineGlom to be
1842 used with multiple documents.
1844 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1845 references to OnlineGlom to OnlineGlomView.
1846 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1847 OnlineGlomView and instantiate it here.
1848 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1849 represents the main OnlineGlomView with one document.
1851 2011-04-01 Ben Konrath <ben@bagu.org>
1853 Fix formatting of gwt.xml and add DTD.
1855 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1857 2011-03-30 Ben Konrath <ben@bagu.org>
1859 Propperly convert gdkColor string to html colour string.
1861 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1863 2011-03-28 Ben Konrath <ben@bagu.org>
1865 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1867 This implementation matches
1868 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1869 readable and is not tied to Swig.
1871 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1873 2011-03-28 Ben Konrath <ben@bagu.org>
1875 Use read-only checkboxes for boolean field types.
1877 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1878 in the CellTable based on the field type. It currently only
1879 distinguishes between boolean and text columns but I'll need to add
1880 support for more types.
1881 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1882 column type in the ColumnInfo object. Add method to convert between the
1883 glom field type enum in ColumnInfo and the glom field type in libglom.
1884 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1886 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1887 getting and setting booleans.
1889 2011-03-25 Ben Konrath <ben@bagu.org>
1891 Don't get the Date twice from the ResultSet.
1893 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1895 2011-03-25 Ben Konrath <ben@bagu.org>
1897 Cleanup code in the servlet.
1899 * TODO: Remove item about row count. Add item about testing row count
1900 query with large number of rows.
1901 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1902 spelling mistakes, change method parameter to be consistent with
1905 2011-03-25 Ben Konrath <ben@bagu.org>
1907 Add server side logging with the gwt-log library.
1909 * .gitignore: Ignore the log file we're now producing.
1910 * TODO: Add a couple TODO item for logging.
1911 * pom.xml: Add gwt-log and log4j as a dependency.
1912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1913 logging of errors, warnings and some important info.
1914 * src/main/resources/log4j.properties: New file to configure log4j.
1916 2011-03-24 Ben Konrath <ben@bagu.org>
1918 Add a disable button for the Details view.
1920 * src/main/java/org/glom/web/client/LayoutListView.java:
1922 2011-03-22 Ben Konrath <ben@bagu.org>
1924 Use a count query to get the number of rows for the list view pager.
1926 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1928 2011-03-22 Ben Konrath <ben@bagu.org>
1930 Add more TODO information about CellTable pager positioning.
1934 2011-03-19 Ben Konrath <ben@bagu.org>
1936 Add TODO item about CellTable pager positioning.
1940 2011-03-18 Ben Konrath <ben@bagu.org>
1942 Remove unneeded GlomFieldColumn class.
1944 This is just a small code cleanup.
1946 * src/main/java/org/glom/web/client/LayoutListView.java:
1948 2011-03-18 Ben Konrath <ben@bagu.org>
1950 Use cursor mode in the query that gets data for the list view.
1952 I still need to fix the potential memory problem when getting the row
1953 count for the list view.
1955 * TODO: Add note about testing memory usage with large data sets. Add
1956 item about fixing row counting with large data sets.
1957 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1958 PostgreSQL JDBC driver into cursor mode when getting data for the
1961 2011-03-15 Ben Konrath <ben@bagu.org>
1963 Remove the GWT Container from the Eclipse build classpath.
1965 The GWT dependencies are set by Maven so this isn't needed.
1969 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1971 Added some earlier mockups to git, but not to the tarball dist.
1973 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1974 Openismus. These hopefully show how we might structure the HTML so that
1975 it can be styled easily with CSS. However, we probably need to adapt them
1976 for the CSS structure that GWT dictates for common widgets.
1978 2011-03-14 Ben Konrath <ben@bagu.org>
1980 Locate OnlineGlom.properties using the ServletContext.
1982 This is required to be able to locate the file in the deployed servlet.
1984 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1985 Configure the database and glom document in in a helper method so
1986 that the ServletContext can be used to locate OnlineGlom.properties.
1987 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1988 src/main/webapp. This is the proper location for .properites files.
1990 2011-03-12 Ben Konrath <ben@bagu.org>
1992 Add note to README about why we're compiling down to obfuscated JavaScript.
1996 2011-03-11 Ben Konrath <ben@bagu.org>
1998 Use properties file to configure servlet.
2000 This allows people to change the glom file path, db username and db
2001 password without recompiling the code.
2003 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2004 * src/main/webapp/OnlineGlom.properties:
2006 2011-03-11 Ben Konrath <ben@bagu.org>
2008 Use table fields in layout list view if the layout list is not defined.
2010 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2011 Manually create a LayoutFieldVector for the query builder using the
2012 table fields when a layout list is not defined in the glom file.
2014 2011-03-11 Ben Konrath <ben@bagu.org>
2016 Only show FIXME string for images when there's an image.
2018 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
2019 in this change are some small code cleanups.
2021 2011-03-11 Ben Konrath <ben@bagu.org>
2023 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2025 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2027 2011-03-11 Ben Konrath <ben@bagu.org>
2029 Correctly set the index of the default table.
2031 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2032 Correctly set the index of the default table. Add commented out example
2035 2011-03-10 Ben Konrath <ben@bagu.org>
2037 Add comment to pom.xml about the previous change.
2039 * pom.xml: Add comment about the deployment issue so that it's obvious
2040 why java-libglom is set to the provided scope.
2042 2011-03-10 Ben Konrath <ben@bagu.org>
2044 Change java-libglom dependency from compile to provided in pom.xml.
2046 Since java-libglom uses jni it can only be loaded once and therefore
2047 must be placed in $CATALINA_HOME/lib and not included in each war.
2048 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2049 More information about this issue can be found in the Tomcat 6 release
2050 notes in the "JNI Based Applications" section:
2052 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2054 * README: Remove note about this issue. Deployment info should really
2055 be on the wiki anyway so I'll add it right now.
2056 * pom.xml: Change java-libglom dependency from compile to provided so
2057 that it's copied in to the packaged war.
2059 2011-03-09 Ben Konrath <ben@bagu.org>
2061 Change to using a neutral locale for currency, date and time formatting.
2063 This solves the problem of currency values being represented without a
2064 space between the currency code and the number (e.g. "EUR5.89" is now
2065 represented as "EUR 5.89"). More work is required when we implement
2066 a locale preference setting.
2068 * TODO: Add note about currency formatting issues with different
2070 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2071 to using the neutral ROOT locale.
2073 2011-03-09 Ben Konrath <ben@bagu.org>
2075 Add support for currency codes that are not ISO 4217 codes.
2077 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2078 the currency code defined in the glom file when it's not 3 characters
2079 long or when Java doesn't recognize the string as an ISO 4217 code.
2081 2011-03-08 Ben Konrath <ben@bagu.org>
2083 Remove test classes, launch configurations and configuration.
2085 The test stuff was getting in the way when creating the war. To make
2086 the war file you can now do 'mvn clean package'. The packaged war file
2087 will be in the target directory.
2089 * .classpath: Remove unused classpathentry for tests and i18n.
2090 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2091 property. Don't run test or i18n goals when packaging the war.
2092 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2097 * OnlineGlomTest-dev.launch:
2098 * OnlineGlomTest-prod.launch:
2099 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2100 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2102 2011-03-07 Ben Konrath <ben@bagu.org>
2104 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2106 These fixes allow me to use 'mvn deploy' to create the war file.
2108 * .classpath: This generated config has been updated by Eclipse. This
2109 change was probably triggered by me updating from Eclipse 3.6.1 to
2111 * .gitignore: Add entry to ignore the directory
2112 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2113 * .project: The generated config has been updated by Eclipse. This
2114 change was probably triggered by me updating from Eclipse 3.6.1 to
2116 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2117 so that Eclipse doesn't complain
2118 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2119 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2120 'tests' directory to 'client' directory. This is the new
2121 gwt-maven-plugin convension.
2122 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2123 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2125 2011-03-07 Ben Konrath <ben@bagu.org>
2127 Add support for horizontal alignment in the LayoutList columns.
2129 * TODO: Remove item about horizontal alignment. Add item about
2130 improvements to ColumnInfo.
2131 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2132 alignment on the columns. Use ColumnInfo RPC object get the column
2133 title and horizontal alignment.
2134 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2135 LayoutListView creation with ColumnInfo RPC object.
2136 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2137 a ColumnInfo object for every LayoutList columnn. Convert the
2138 FieldFormatting.HorizontalAlignment to the correct
2139 ColumnnInfo.HorizontatlAlignment with the new
2140 getColumnInfoHorizontalAlignment helper method.
2141 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2142 to encapsulate column information like alignment and title. This
2143 could be used to set the colour instead of on a per cell field basis.
2144 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2145 column title storage and retrieval with ColumnInfo.
2147 2011-03-04 Ben Konrath <ben@bagu.org>
2149 Add support for column sorting.
2151 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2152 AsynDataProvider to be an anonymous inner class. Use new
2153 getSortedTableData RPC method when column sort is requested. Set all
2154 columns sortable and add an AsyncHandler to activate sorting in the
2156 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2157 method getSortedTableData(). Cleanup other method signatures.
2158 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2159 new method getSortedTableData(). Cleanup other method signatures.
2160 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2161 Implement getSortedTableData() and getTableData() methods by using a
2162 private helper method with the appropriate parameters filled in. Use
2163 user supplied sort clause when supplied, otherwise fall back to
2164 sorting by the primary key. Move destroy() method to be underneath
2165 constructor for readability. Cleanup comments.
2167 2011-03-03 Ben Konrath <ben@bagu.org>
2169 Add support for colour text and colour backgrounds to the layout list cells.
2171 Only the cell backgrounds are coloured which leaves a gap between the
2172 cells that isn't coloured. I need to figure out a way to set
2173 'style=background-colour:' on the whole column rather than just the
2176 * TODO: Add a note about colouring the background of the whole column.
2177 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2178 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2179 render the coloured text and backgrounds. Use GlomField[] for the row type.
2180 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2182 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2183 GlomField[] for the row type.
2184 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2185 GlomField[] for the row type. Set the text, text colour and background
2186 colour in the GlomField objects as specified in the glom document. Add
2187 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2188 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2189 the glom field text, foreground colour and background colour.
2191 2011-03-02 Ben Konrath <ben@bagu.org>
2193 Don't display hidden tables in the combo box.
2195 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2198 code to ignore hidden tables using ArrayLists for the table names and
2200 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2201 tableNames to use ArrayLists instead of String[]. Update getter and setter
2204 2011-03-01 Ben Konrath <ben@bagu.org>
2206 Add support for Date and Time number types.
2208 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2209 Implement formatting for Date and Time values. Change the default glom
2210 file to small business example.
2212 2011-03-01 Ben Konrath <ben@bagu.org>
2214 Add support for formatting glom types as specified in the glom file.
2216 Formatting isn't finished yet - I still need to add support for Date
2219 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2220 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2221 checks for null values in JDBC cleanup code and catch all exceptions
2222 instead of just SQLExceptions.
2223 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2226 2011-03-01 Ben Konrath <ben@bagu.org>
2228 Use GWT 2.2.0 instead of 2.1.1.
2230 * pom.xml: Change GWT version numbers.
2232 2011-03-01 Ben Konrath <ben@bagu.org>
2234 A few small code cleanups.
2236 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2238 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2239 unnecessary object creation in constructor.
2240 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2241 unnecessary object creation in constructor.
2243 2011-02-28 Ben Konrath <ben@bagu.org>
2245 Add file for TODO list.
2249 2011-02-18 Ben Konrath <ben@bagu.org>
2251 Enable the CellTable Pager when more than 20 rows need to be viewed.
2253 The Pager will automatically become active when the results are larger
2254 than the CellTable size which is currently set to 20 lines.
2256 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2257 name on debug statment in RPC call in LayoutListDataProvider, add
2258 numRows parameter to LayoutListView constructor, propperly set rowCount
2260 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2261 name on debug statment in RPC call, use LayoutListTable object in RPC
2262 calls, pass rowCount to LayoutListView.
2263 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2264 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2266 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2267 interface for changes in OnlineGlomService.
2268 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2269 getLayoutListHeaders() to getLayoutListTable() and return
2270 LayoutListTable. Using this object allows me to pass other information
2271 about the LayoutList like the expected number of rows in the result set.
2272 The Connection object from the connection pool is now propperly closed.
2273 Only the requested number of lines are returned to the client in
2275 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2276 GlomTable and add columnTitles and numRows.
2278 2011-02-18 Ben Konrath <ben@bagu.org>
2280 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2282 This is a small performance boost. I'll use GlomTable to get the required
2283 layoutlist information.
2285 * src/main/java/org/glom/web/client/OnlineGlom.java:
2286 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2287 * src/main/java/org/glom/web/shared/GlomDocument.java:
2289 2011-02-18 Ben Konrath <ben@bagu.org>
2291 Add option to turn off formatting in JDT formatter preferences.
2293 * .settings/org.eclipse.jdt.core.prefs:
2295 2011-02-18 Ben Konrath <ben@bagu.org>
2297 Rename LayoutList to LayoutListView.
2299 I'm working towards setting things up to easily use MVP when the time
2302 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2304 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2307 2011-02-17 Ben Konrath <ben@bagu.org>
2309 Move LayoutListDataProvider class into LayoutList.java.
2311 * src/main/java/org/glom/web/client/LayoutList.java:
2313 2011-02-17 Ben Konrath <ben@bagu.org>
2315 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2317 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2319 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2320 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2321 from LibGlomServer.java.
2322 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2323 Rename from LibGlomServiceAsync.java.
2324 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2325 Rename from LibGlomServiceImpl.java.
2326 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2328 2011-02-17 Ben Konrath <ben@bagu.org>
2330 Update JDT settings.
2332 * .settings/org.eclipse.jdt.core.prefs:
2334 2011-02-17 Ben Konrath <ben@bagu.org>
2336 Move GWT-RPC objects to shared package (where they should be).
2338 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2339 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2340 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2341 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2342 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2343 org.glom.web.shared package.
2344 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2345 org.glom.web.shared package.
2346 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2347 directory in compilation to javascript.
2349 2011-02-16 Ben Konrath <ben@bagu.org>
2351 Add sort clause to the sql query that grabs table information.
2353 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2354 if one of the columns is a primary key.
2356 2011-02-16 Ben Konrath <ben@bagu.org>
2358 Disable generateAsync feature of gwt-maven.
2360 The generated interface does not correctly match the methods in LibGlomService
2361 and the generated singleton Util inner-class doesn't respect the servlet
2364 * pom.xml: Turn off generateAsync feature.
2365 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2366 with singleton Util inner-class.
2368 2011-02-14 Ben Konrath <ben@bagu.org>
2370 Add LGPL v3 licence notices.
2372 Followed directions listed here:
2373 http://www.gnu.org/licenses/gpl-howto.html
2375 * COPYING: This file is a copy of the GPL v3.
2376 * COPYING.LESSER: This file is a copy of the LGPL v3.
2377 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2379 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2381 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2383 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2385 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2387 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2389 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2392 2011-02-14 Ben Konrath <ben@bagu.org>
2394 Use ArrayList instead of Array in GWT-RPC calls.
2396 Apparently this gives a slight performance boost to the compiled
2399 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2401 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2404 2011-02-14 Ben Konrath <ben@bagu.org>
2406 Access data from a postgres db rather than the example glom file.
2408 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2409 compile down to obfuscated javascript.
2410 * pom.xml: Add c3p0 and postgres JDBC libraries.
2411 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2412 using a postgres db accessed through the c3p0 connection pooling library.
2414 2011-02-14 Ben Konrath <ben@bagu.org>
2416 Update Java formatter settings.
2418 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2420 2011-02-02 Ben Konrath <ben@bagu.org>
2422 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2424 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2426 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2427 the compiled webapp directory that Eclipse uses as we're using Maven now.
2428 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2429 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2431 * pom.xml: Format file, change target Java version to 1.6.
2433 2011-02-02 Ben Konrath <ben@bagu.org>
2435 Add information about a deployment related issue.
2437 * README: Add Notes section with the problem outlined.
2439 2011-02-02 Ben Konrath <ben@bagu.org>
2441 Call Glom.libglom_deinit() when the servlet is shutdown.
2443 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2444 Glom.libglom_deinit() to destroy() method.
2446 2011-01-28 Ben Konrath <ben@bagu.org>
2448 Use generated Util class to get the RPC Async interface.
2450 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2452 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2453 getInstance() method to get a reference to the RPC Async interface.
2454 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2455 getInstance() method to get a reference to the RPC Async interface, remove
2456 the now unused getLibGlomServiceProxy() method.
2458 2011-01-27 Ben Konrath <ben@bagu.org>
2460 Cleanup ChangeLog entry from previous commit.
2462 * ChangeLog: Group logical changes together and add comments.
2464 2011-01-25 Ben Konrath <ben@bagu.org>
2466 Convert to gwt-maven project.
2468 * .gitignore: Update for new project structure.
2469 * README: New file with a link to the online documentation.
2470 * pom.xml: The generated maven configuration file with some tweaks.
2472 Add / update Eclipse settings. These files are a merge of the files that
2473 were generated with the gwt-maven plugin and the files we were previously
2477 * .settings/.jsdtscope:
2478 * .settings/com.google.gdt.eclipse.core.prefs:
2479 * .settings/com.google.gwt.eclipse.core.prefs:
2480 * .settings/org.eclipse.jdt.core.prefs:
2481 * .settings/org.eclipse.wst.common.component:
2482 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2483 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2484 * .settings/org.maven.ide.eclipse.prefs:
2485 * OnlineGlomTest-dev.launch:
2486 * OnlineGlomTest-prod.launch:
2488 Java source files moved from the 'src' directory to the directory structure
2490 * src/main/java/org/glom/web/client/GlomDocument.java:
2491 * src/main/java/org/glom/web/client/GlomTable.java:
2492 * src/main/java/org/glom/web/client/LayoutList.java:
2493 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2494 * src/main/java/org/glom/web/client/LibGlomService.java:
2495 * src/main/java/org/glom/web/client/OnlineGlom.java:
2496 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2498 Non-functional property file used for translations. I included this as
2499 reminder that it's something I need to sort out.
2500 * src/main/resources/org/glom/web/client/Messages.properties:
2502 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2503 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2505 The servlet configuration files moved from the 'war' directory.
2506 * src/main/webapp/OnlineGlom.css:
2507 * src/main/webapp/OnlineGlom.html:
2508 * src/main/webapp/WEB-INF/web.xml:
2510 Generated test files with most of the code commented out. I included these
2511 so that it's easy to add tests when we're ready for them.
2512 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2513 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2515 2011-01-25 Ben Konrath <ben@bagu.org>
2517 Remove unused println.
2519 * src/org/glom/web/server/LibGlomServiceImpl.java:
2521 2011-01-25 Ben Konrath <ben@bagu.org>
2523 Add project specific JDT settings.
2525 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2526 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2528 2011-01-25 Ben Konrath <ben@bagu.org>
2530 Populate celltable with example data.
2532 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2533 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2534 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2535 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2536 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2537 asynchronously gets the example data.
2538 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2539 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2540 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2541 curently selected table to be retrieved by other widgets.
2542 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2543 implement getTableData() in a hacky way. This method needs to be updated
2544 to grab information from the database when database creating is
2547 2011-01-20 Ben Konrath <ben@bagu.org>
2549 Set table headers when table dropBox changes.
2551 * src/org/glom/web/client/GlomDocument.java: Correct some method
2553 * src/org/glom/web/client/LibGlomService.java: Add method
2554 to get list layout field names.
2555 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2556 to get list layout field names.
2557 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2558 widget for list layout table.
2559 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2560 the table drop box and add new updateTable() method to asynchronously
2561 get the layout list field names for the currently selected table.
2562 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2563 implementation of getLayoutListHeaders() method.
2564 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2566 2011-01-18 Ben Konrath <ben@bagu.org>
2568 Make a listBox with table titles instead of the flexTable demo.
2570 This is the start of something more useful.
2572 * .classpath: Exclude a bunch of packages from the JVM that are
2573 getting in the way of the Eclipse content assist.
2574 * src/org/glom/web/client/GlomDocument.java:
2575 * src/org/glom/web/client/GlomTable.java:
2576 * src/org/glom/web/client/LibGlomService.java:
2577 * src/org/glom/web/client/LibGlomServiceAsync.java:
2578 * src/org/glom/web/client/OnlineGlom.java:
2579 * src/org/glom/web/server/LibGlomServiceImpl.java:
2580 * war/OnlineGlom.html:
2581 * war/WEB-INF/web.xml:
2583 211-01-13 Ben Konrath <ben@bagu.org>
2585 Update to new java-libglom API.
2587 * .gitignore: Ignore OnlineGlom.war.
2588 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2590 2010-12-20 Ben Konrath <ben@bagu.org>
2592 Add some basic style to the table listing.
2594 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2595 header, print useful error message on async callback failure.
2596 * war/OnlineGlom.css: Add style for table header, remove defaults
2597 provided by the Eclipse project wizard.
2599 2010-12-20 Ben Konrath <ben@bagu.org>
2601 Load example file from installed glom dir.
2603 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2604 provided by java-libglom to find the example file.
2606 2010-12-20 Ben Konrath <ben@bagu.org>
2608 Update Eclipse settings.
2611 * .settings/com.google.gdt.eclipse.core.prefs:
2612 * .settings/com.google.gwt.eclipse.core.prefs:
2614 2010-12-17 Ben Konrath <ben@bagu.org>
2618 * .classpath: New file.
2619 * .gitignore: New file.
2620 * .project: New file.
2621 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2622 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2623 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2624 * src/org/glom/web/client/GlomTable.java: New file.
2625 * src/org/glom/web/client/OnlineGlom.java: New file.
2626 * src/org/glom/web/client/TableNameService.java: New file.
2627 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2628 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2629 * war/OnlineGlom.css: New file.
2630 * war/OnlineGlom.html: New file.
2631 * war/WEB-INF/web.xml: New file.
2632 * war/images/glom.png: New file.