1 2011-10-27 Ben Konrath <ben@bagu.org>
3 Require the latest release of java-libglom (1.17.4).
7 2011-10-26 Ben Konrath <ben@bagu.org>
9 Add style to Notebook that matches current theme.
11 It's not the best style in the world but it's better than the default.
13 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
14 padding at the bottom of the child widgets.
15 * src/main/webapp/style.css: Add style for the Notebook.
17 2011-10-26 Ben Konrath <ben@bagu.org>
19 Move servlet initialization code to overridden init method.
21 This is half of the solution to getting proper error messages
22 displayed when configuration errors occur. Here's the relevant bug:
24 https://bugzilla.gnome.org/show_bug.cgi?id=662792
26 The rest of the solution involves surrounding the init method with a
27 try/catch block and setting a global variable with the error /
28 exception. A new async method should be created to retrieve and display
29 the error message / exception.
31 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
32 code from constructor to init method adding exceptions as needed.
34 2011-10-26 Ben Konrath <ben@bagu.org>
36 Add script to monitor and restart tomcat if required.
38 * utils/check-and-recover-tomcat.py: New file.
40 2011-10-26 Ben Konrath <ben@bagu.org>
42 Display the correct number of data items in the pager.
46 https://bugzilla.gnome.org/show_bug.cgi?id=661441
48 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
49 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
50 The implementation is the same for both tables: Keep track of the
51 number of non-empty rows and fire and RowCountChangeEvent after the data has
53 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
54 custom Pager class that subclasses SimplePager to handle displaying
55 the correct number when empty rows have been added.
57 2011-10-26 Ben Konrath <ben@bagu.org>
59 Correct error in previous commit.
61 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
62 eventBus parameter from listView.setCellTable().
64 2011-10-26 Ben Konrath <ben@bagu.org>
66 Fix error in TODO comment.
68 * src/main/java/org/glom/web/client/activity/ListActivity.java:
70 2011-10-24 Ben Konrath <ben@bagu.org>
72 Create Notebook widgets to the details view.
74 This isn't finished just yet - I still need to create a reasonable
75 style to match the current theme.
77 * src/main/java/org/glom/web/client/Utils.java: Add method for
78 calculating the height of a widget. This is used in the Notebook class.
79 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
80 new constructor method in Group.
81 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
82 method for creating child widget that can be used by subclasses
83 like Notebook. New constructor that allows disabling the group
84 titles - Notebooks don't set a group title for their child groups.
85 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
86 to make Notebooks using GWT's TabLayoutPanel.
87 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
88 constructor that allows disabling the group titles.
89 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
90 LayoutItemNotebook DTO.
91 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
92 DTO for Notebooks. It's just an empty class for now but we might need
93 it to transfer some specific information in the future.
95 2011-10-21 Ben Konrath <ben@bagu.org>
97 Add navigation buttons to related list tables.
99 * src/main/java/org/glom/web/client/OnlineGlomService.java:
100 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
101 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
102 method getSuitableRecordToViewDetails() for getting the table name
103 and primary key value for related list navigation buttons.
104 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
105 private cell renderer class to get the navigation information for
106 related list tables from the server. Extract the navigation
107 processing code from the details cell navigation and use it for the
108 related list navigation as well.
109 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
110 cell renderer class for the details open buttons. This was needed
111 because the related list navigation buttons and the list view
112 navigation buttons need to react differently when clicked.
113 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
114 the onEnterKeyDown() method because it's now overriden in the
115 subclasses that are specific to the related list tables and the list
117 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
118 the vertical size a little because the buttons add a bit of vertical
119 space to table. This is not a perfect solution because the vertical
120 size of with table fewer than 5 rows will be a little smaller.
121 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
122 changes in how navigation buttons are handled.
123 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
124 getSuitableRecordToViewDetails() using the new RelatedListNavigation
125 database access object.
126 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
127 to find the portal for a given relationship name from
128 RelatedListDBAccess. Add method to find a primary key field for a
130 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
131 Move code to find the portal for a given relationship name to
133 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
134 New file: database access object for getting the related list
135 navigation information (the table name and the primary key value).
136 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
137 DTO for transferring a table name to navigate to and a primary key
139 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
140 boolean and getter/setter to specifies if the related list should add
143 2011-10-11 Ben Konrath <ben@bagu.org>
145 Enable the open navigation button when the data has been set.
147 This avoids having active buttons that don't do anything when the data
150 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
152 2011-10-11 Ben Konrath <ben@bagu.org>
154 Use IsWidget interface for FlowTableItem.
156 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
157 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
159 2011-10-11 Ben Konrath <ben@bagu.org>
161 Remove GWT styling from open button in details view.
163 There are still some issues with how the details cell is arranged but
164 this should be made to match Glom 1.20. I'm going to leave fixing this
165 until I have Glom 1.20 up and running.
167 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
168 style name on open button.
169 * src/main/webapp/style.css: Move and edit details-navigation class.
170 Re-arrange some classes to make them appear in the same order as the
173 2011-10-07 Ben Konrath <ben@bagu.org>
177 * .gitignore: Ignore new cache directory.
178 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
179 * pom.xml: Change GWT and maven plugin to 2.4.0.
180 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
182 * src/main/java/org/glom/web/client/ClientFactory.java:
183 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
184 * src/main/java/org/glom/web/client/OnlineGlom.java:
185 Update source for API changes.
186 * utils/build-onlineglom-war.sh: Remove cache directory before the
189 2011-10-07 Ben Konrath <ben@bagu.org>
191 Add navigation buttons in the details view.
193 This isn't finished but I thought I'd commit what I have as it's a
194 pretty good start. I still need to:
196 1. Change the style so that it fits better into the current theme
197 2. Adjust the details cell to expand as much as possible.
199 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
200 click handlers to navigation buttons in the DetailsCells. Create a
201 refreshData() method to get just the data from the server without the
203 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
204 Update the tableSelector and browser title when the table name
205 changes without using the tableSelector.
206 * src/main/java/org/glom/web/client/ui/DetailsView.java:
207 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
208 getDetailsCells() to getCells(). Update variable names.
209 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
210 method to set click handler on navigation button. Rename a few
211 variables. Add navigation buttons where needed.
212 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
213 variables and methods.
214 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
215 navigation boolean and navigation table as required in the
217 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
218 variables for navigation along with getter/setter methods.
220 2011-10-07 Ben Konrath <ben@bagu.org>
222 Rename Field to DetailsCell.
224 This is a refactor-only commit. No functionality has been added or
227 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
228 Update variable and method names.
229 * src/main/java/org/glom/web/client/ui/DetailsView.java:
230 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
231 variable and method names.
232 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
234 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
235 variable and method names.
237 2011-10-07 Ben Konrath <ben@bagu.org>
239 Create separate methods for layout and data the details view.
241 This is a refactor-only commit. No functionality has been added or
244 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
245 private methods: setData(), createLayout().
247 2011-10-07 Ben Konrath <ben@bagu.org>
249 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
251 This is part of a change to get navigation buttons in the details view
252 but it should have been done this way from the start.
254 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
255 for method name change in TableSelectionView.
256 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
257 Create TableChangeEvent and set the browser title using the
258 TableSelectionView API.
259 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
260 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
261 Change getSelectedTable() to getSelectedTableName(). Add
262 getSelectedTableTitle().
264 2011-10-07 Ben Konrath <ben@bagu.org>
266 Use primaryKeyValue naming convention in constructor of DetailsPlace.
268 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
270 2011-10-07 Ben Konrath <ben@bagu.org>
272 Update TableChangeEvent to use newTableName naming convention.
274 This makes the class more consistent with GWT naming conventions.
276 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
277 Update for method name change in TableChangeEvent.
278 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
279 for method name change in TableChangeEvent.
280 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
281 newTableName variable and getter method. Make toDebugString()
284 2011-09-30 Ben Konrath <ben@bagu.org>
286 Disable the pager in the list tables when the data row count is less than the minimum.
288 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
289 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
291 2011-09-30 Ben Konrath <ben@bagu.org>
293 Add empty rows to the end of related list and list view tables.
295 I also extracted the cell rendering classes from the ListTable because
296 the code was becoming a little crazy with all the anonymous inner
297 classes. My plan is to use these cell rendering classes in the details
298 view as well so this refactor will be needed for that change.
300 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
301 set the row count in related list tables if the data has more rows
302 than the minimum number of rows visible.
303 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
304 row count in list view tables if the data has more rows than the
305 minimum number of rows visible.
306 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
307 for rendering TYPE_BOOLEAN cells. The code was extracted from the
309 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
310 for rendering TYPE_NUMERIC cells. The code was extracted from the
312 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
313 class for rendering cells with buttons in list views. The code was
314 extracted from the ListTable class.
315 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
316 for rendering TYPE_TEXT cells. The code was extracted from the
318 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
319 Add empty rows to the end of the data if required. Implement
320 ListTable.getMinNumVisibleRows().
321 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
322 cell renderer code to public classes. Return null in
323 Column.getValue() for empty rows. Add new abstract method:
324 getMinNumVisibleRows(). Move code to set the row count of the list view
325 table to ListViewImpl.
326 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
327 empty rows to the end of the data if required. Implement
328 ListTable.getMinNumVisibleRows().
331 2011-09-27 Ben Konrath <ben@bagu.org>
333 Use GWT.log for client-side debugging statements.
335 These are optimized out when deployed so I should have used this method
336 in the first place. These statements will eventually be replaced with some sort
337 of notification in the browser.
339 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
340 * src/main/java/org/glom/web/client/activity/ListActivity.java:
341 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
342 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
343 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
345 2011-09-27 Ben Konrath <ben@bagu.org>
347 Put tableselector on the right, back to list link on right.
349 The idea is that the table selector is acting like a label for the
350 currently displayed table so it should be placed below the document title. This
351 puts the table title in a similar position to where it is in Glom.
353 * mockups/details-contacts.html:
354 * mockups/details-projects.html:
355 * mockups/listview-contacts.html:
356 * mockups/listview-projects.html:
358 Update mockups to match how the interfaces currently look.
359 * src/main/webapp/style.css: Swap positions of backlink with the table
360 selector. Add some space on the left side of the table selector to
361 line things up with the document title.
363 2011-09-27 Ben Konrath <ben@bagu.org>
365 Add field colouring to details view.
367 This change re-works how field colouring works. The colour formatting
368 information is now set to the client with the layout information instead of
369 with the data. This eliminates the need to send the same colour strings for
370 data in list view column when colour information is set.
372 In order to set an alternate colour for negative numeric values, the
373 number is now sent to client and formatted with the GWT NumberFormat class.
375 This change also fixes:
377 https://bugzilla.gnome.org/show_bug.cgi?id=659752
379 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
380 internationalization framework which is needed for client side numeric
382 * src/main/java/org/glom/web/client/Utils.java: New file for some
383 client static utility methods.
384 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
385 the DataItem object to the Field class. Use a utility method to
386 create the foreignKeyValue string.
387 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
388 alignment and text colours in the constructor. Add setData(DataItem)
389 method. Remove setText(String) method.
390 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
391 colour information to GlomTextCell. Create and use GlomNumberCell for
392 rendering numbers. Use utility method to get the string for the
393 primary key of the key provider. Re-work how the horizontal alignment
395 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
396 formatting to layout information. Methods for converting the libglom
397 formatting information were moved from DBAccess.
398 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
399 numeric formatting (it's now done on the client side). Don't set text
400 colours in DataItem. Move libglom formatting conversion methods to
402 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
403 getters/setters for text colour information.
404 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
405 for transferring the libglom NumericFormat information to the client.
406 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
407 and getters/setters for: GlomNumericFormat, background colour and
408 foreground colour strings.
410 2011-09-26 Ben Konrath <ben@bagu.org>
412 Simplify code that iterates through the LayoutGroup.
414 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
416 2011-09-26 Ben Konrath <ben@bagu.org>
418 Accept Eclipse formatting for OnlineGlomServiceAsync.
420 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
422 2011-09-26 Ben Konrath <ben@bagu.org>
424 Don't use the ListDBAccess classes to get the primary key layout information.
426 This was causing a bug where the wrong index for the hidden primary key
427 was being sent to the client.
429 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
430 primary key while creating the LayoutGroup DTO. Create a
431 LayoutItemField DTO for hidden primary keys. Don't use the
432 RelatedListDBAccess because it was only used for getting the primary
434 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
435 access modifier from public to protected for getPrimaryKeyField() and
436 getPrimaryKeyLayoutItemField().
437 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
438 abstract method getExpectedResultSize() because RelatedListDBAccess
439 doesn't have enough info to implement it.
440 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
441 Remove @Override for getExpectedResultSize().
442 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
443 Remove method getExpectedResultSize().
445 2011-09-23 Ben Konrath <ben@bagu.org>
447 Log which layout (list or details) the ignored item is from.
449 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
451 2011-09-23 Ben Konrath <ben@bagu.org>
453 Remove annotations that turn off code formatting in DataItem.
455 * src/main/java/org/glom/web/shared/DataItem.java:
457 2011-09-23 Ben Konrath <ben@bagu.org>
459 Rename GlomField to DataItem and update associated methods.
461 This is a rename-only refactor. No functionality has been added or
464 * src/main/java/org/glom/web/client/OnlineGlomService.java:
465 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
466 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
467 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
468 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
469 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
470 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
471 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
472 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
473 * src/main/java/org/glom/web/server/database/DBAccess.java:
474 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
475 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
476 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
477 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
478 * src/main/java/org/glom/web/shared/DataItem.java:
479 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
480 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
482 2011-09-23 Ben Konrath <ben@bagu.org>
484 Rename GlomDocument to DocumentInfo and update associated methods.
486 This is a rename-only refactor. No functionality has been added or
489 * src/main/java/org/glom/web/client/OnlineGlomService.java:
490 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
491 * src/main/java/org/glom/web/client/activity/ListActivity.java:
492 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
493 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
494 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
495 * src/main/java/org/glom/web/shared/DocumentInfo.java:
497 2011-09-20 Ben Konrath <ben@bagu.org>
499 Require java-libglom 1.17.3.
501 This picks up the fix for the seg fault problem with the Scenes table
502 in the Openismus Film Manager example.
506 2011-09-20 Ben Konrath <ben@bagu.org>
508 Change the way sort clause is added for primary key when no sort clause is requested.
510 The primary key is now added to the LayoutFieldVector (fieldsToGet)
511 before the sort clause is created. When a sort clause is not requested, the
512 sort clause is created by finding the primary key in the LayoutFieldVector
515 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
517 2011-09-20 Ben Konrath <ben@bagu.org>
519 Log error message if no documents are found in the configured directory.
521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
522 Extract the glom file extension string to a private static final class
523 variable (mostly as syntactic sugar). Accept a minor formatting change.
524 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
525 the example glom.document.directory configuration property to make it
526 more clear that it can any directory, not just the home directory.
528 2011-09-18 Ben Konrath <ben@bagu.org>
530 Add related lists to details view.
532 The related list table has support for paging and sorting just like the
533 table in the list view.
535 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
536 SQL queries for the related list tables.
537 * src/main/java/org/glom/web/client/OnlineGlomService.java:
538 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
539 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
540 Rename getList methods to getListView and add comments. Remove
541 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
542 it being unused. Add methods: getDetailsLayoutAndData(),
543 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
544 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
545 Create the layout and set the data for the fields in one async call
546 instead of two. Create related lists where appropriate.
547 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
548 for method name changes in OnlineGlomService.
549 * src/main/java/org/glom/web/client/ui/DetailsView.java:
550 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
551 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
553 * src/main/java/org/glom/web/client/ui/ListView.java:
554 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
555 tableName from setCellTable(). Create a ListViewTable instead of
557 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
558 represent a data field in the details view.
559 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
560 from addDetailsCell() to Field class. Keep track of the Fields and
561 Portals in the details view.
562 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
563 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
564 and add a method to get it. Add method to set the contents of the
566 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
567 New class for related list tables. This class has the data provider
568 for the related list table.
569 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
570 abstract class which is the base class for the ListViewTable and the
572 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
573 New class for list view tables. This class has the data provider for
575 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
576 methods for related list tables. Add more information to the
577 LayoutItemField and LayoutItemPortal DTOs.
578 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
579 Remove debugging print statement.
580 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
581 Remove debugging print statements. Add primary key field to SQL count
583 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
584 Remove unnecessary LayoutFieldVector parameter from
585 getResultSizeOfSQLQuery() method.
586 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
587 New class for related list table database access.
588 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
589 class that is a wrapper DTO for details view layout and data.
590 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
591 new 'fromField' string to this DTO.
592 * src/main/webapp/style.css: Remove bottom margin and override top
595 2011-09-15 Ben Konrath <ben@bagu.org>
597 Breakup the OnlineGlomServiceImpl class to make it more manageable.
599 This sets things up to make it easier to add the data retrieval for
600 related lists (portals). No user noticeable changes were made with
603 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
604 class has the code to retrieve the layouts and access the
605 database using the new database helper classes.
606 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
607 Most of the functionality has been removed from this class. This
608 class now represents the public interface for the client side
609 code. It also deals with configuring the servlet and cleaning
610 things up when the servlet is stopped.
611 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
612 of static methods into this utility class.
613 * src/main/java/org/glom/web/server/database/DBAccess.java:
614 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
615 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
616 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
617 These classes have the database retrieval code. The class hierarchy
618 has been setup to make it easy to reuse code for similar
621 2011-09-06 Ben Konrath <ben@bagu.org>
623 Create separate classes for list table code and the data provider.
625 As part of this refactor, I also split up the code a bit to make it
628 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
629 table code to two new classes (below).
630 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
631 with code from ListViewImpl.
632 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
633 New file with code from ListViewImpl.
635 2011-09-06 Ben Konrath <ben@bagu.org>
637 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
639 This fixes the LayoutItemPortal DTO to match the libglom layout object
642 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
644 2011-09-01 Ben Konrath <ben@bagu.org>
646 Set title of Portals in the Details View.
648 * pom.xml: Bump required version of java-libglom to 1.17.1.
649 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
650 widget creation to its own class. Add comments to constructor.
651 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
652 The code is mostly from the Group class with the title now set.
653 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
654 title of Portal. Update some comments. Fix some code formatting.
656 2011-09-01 Ben Konrath <ben@bagu.org>
658 Remove TODO comment for the flow table column width.
660 The flow table column width is working correctly and doesn't need to be
661 changed. See this mailing list post for more info:
663 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
665 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
667 2011-08-27 Ben Konrath <ben@bagu.org>
669 Add document title (database name) to top of the browser page.
671 I added the document title to the TableSelecitonView but that will
672 change if / when we add a view that doesn't require table selection.
674 * mockups/details-contacts.html:
675 * mockups/details-projects.html:
676 * mockups/listview-contacts.html:
677 * mockups/listview-projects.html:
678 * mockups/style.css: Add document title to mockups to keep things
680 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
681 sizes to account for the document title.
682 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
683 Set the document title when it has been retrieved from the server.
684 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
685 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
686 and implement setDocumentTitle(String) method.
687 * src/main/webapp/style.css: Add ID for document title style.
689 2011-08-25 Ben Konrath <ben@bagu.org>
691 Add NavigationType enum to LayoutItemPortal DTO.
693 This is the start of adding support for Portals to the Details View.
695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
696 LayoutItem_Portal.navigation_type enum from libglom to
697 LayoutItemPortal.NavigationType enum.
698 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
699 NavigationType enum, field for storing the NavigationType and getter
702 2011-08-25 Ben Konrath <ben@bagu.org>
704 Implement the flow table layout in the Details View.
706 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
707 FlowTable to Group to account for the renamed class.
708 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
709 File. This is a container widget that implements the Glom details view
710 flow table behaviour.
711 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
712 org/glom/web/client/ui/FlowTable.java.
713 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
714 so that the size of the subgroups are a closer match to the size of
715 the Glom subgroups. This makes the flowtable layout match the layout
716 in Glom for the Music Collection example file.
718 2011-08-16 Ben Konrath <ben@bagu.org>
720 Create container element for LayoutItemPortal in Details View.
722 This will help me develop the layout for the FlowTable.
724 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
725 fieldPanel variable to detailsCell.
727 2011-08-15 Ben Konrath <ben@bagu.org>
729 Set the height of the data element in the Details View.
731 I changed the InlineLabels (text in a span element) to Labels (text in
732 a div element) so that I could set the height of the details-data
733 elements instead of the details-cell parent elements. This allows the
734 the details-data element to display the correct height if style is
735 applied that shows the height.
737 This change has the added benefit of allowing the order of the labels
738 and data elements to be changed for right-to-left languages.
740 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
741 InlineLabels to Labels.
742 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
743 InlineLabels to Labels. Set the height of the data element.
744 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
745 multiline text height in the Formatting DTO.
746 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
747 for multiline height along with getter and setter methods.
748 * src/main/webapp/style.css: Adjust style to account for the change
749 from span elements to div elements in the details cell.
751 2011-08-15 Ben Konrath <ben@bagu.org>
753 Make the List View appearance match the mockups.
755 It doesn't match exactly but it's much better than it was.
757 * mockups/listview-contacts.html: Remove unused css classes.
758 * mockups/listview-projects.html: Remove unused css classes.
759 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
760 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
761 for mainPanel instead of VerticalPanel (table). Set style name on
762 CellTable. Set style name on Details column. Right-align Details
764 * src/main/webapp/style.css: Adjust properties to match the mockups.
766 2011-08-12 Ben Konrath <ben@bagu.org>
768 Add better support for subgroups in the details view.
770 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
771 changed FlowTable constructor.
772 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
773 support for subgroups and subgroup-titles.
774 * src/main/webapp/style.css: Add CSS class for subgroups and
777 2011-08-12 Ben Konrath <ben@bagu.org>
779 Return the top level LayoutGroup title.
781 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
783 2011-08-11 Ben Konrath <ben@bagu.org>
785 Make the TableSelector header match the mockup.
787 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
788 the layout panel. Properly lineup the table selection header with
789 the list and details view.
790 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
791 margin around the details view.
792 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
793 Rename listBox variable to tableSelector. Set id for the style sheet.
794 Use a FlowPanel instead of a HorizontalPanel.
795 * src/main/webapp/style.css: Add properties to make the TableSelector
796 box match the mockups.
798 2011-07-13 Ben Konrath <ben@bagu.org>
800 Update install script for java-libglom version change.
802 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
805 2011-07-13 Ben Konrath <ben@bagu.org>
807 Add support sub-group in the details view.
809 I also removed the code that special-cased the default details view
812 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
814 I still have to make a proper flowtable.
816 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
817 Don't special-case default details view layout.
818 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
819 addLayoutField() as I'm going to use it.
820 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
821 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
823 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
824 extracted from DetailsViewImpl.GroupPanel. Add support for
826 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
827 column count when getting the details layout.
829 2011-07-12 Ben Konrath <ben@bagu.org>
831 Set browser title with database and table titles.
833 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
834 Set the browser title when the table changes and when the activity
836 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
837 title when retrieving document info (the GlomDocument object).
838 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
839 with getter and setter methods. Remove unused convenience constructor.
840 Use default code formatting.
842 2011-07-12 Ben Konrath <ben@bagu.org>
844 Ignore LayoutItemPortals in the details view.
846 I added a new DTO for the LayoutItemPortal so that I can ignore it in
849 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
850 LayoutItemPortal layout objects.
851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
852 LayoutItemPortal objects when retrieving the details layout.
853 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
854 file. This is an empty class and just used to get type information for
857 2011-07-12 Ben Konrath <ben@bagu.org>
859 Use java-libglom 1.17.0.
863 2011-07-11 Ben Konrath <ben@bagu.org>
865 Remove "Table:" label from table selector.
867 This matches a recent change in the Glom UI.
869 * mockups/details-contacts.html:
870 * mockups/details-projects.html:
871 * mockups/listview-contacts.html:
872 * mockups/listview-projects.html: Remove the "Table:" label from the
874 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
876 2011-07-11 Ben Konrath <ben@bagu.org>
878 Add main groups to the details view.
880 This makes things look a little nicer in the details view. The next step
881 is to implement the flowtable.
883 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
884 resources from the standard gwt css theme. Standard.css is now
885 included in OnlineGlom.html so that the online glom css rules have
886 precedence over the gwt theme.
887 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
888 the whole LayoutGroup to the DetailsView instead of just the titles.
889 * src/main/java/org/glom/web/client/ui/DetailsView.java:
890 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
891 details layout with a helper class (GroupPanel). I might extract this
892 class when I make the full flowtable.
893 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
894 string as default so I don't have to worry about NPEs when processing
896 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
897 note beside OnlineGlom.gwt.xml above).
898 * src/main/webapp/style.css: Add default font-size to body to override
899 the font-size set by the standard theme. Don't use h2 tags for
900 group-title. Create new details-cell class.
902 2011-07-08 Murray Cumming <murrayc@murrayc.com>
904 ConfiguredDocument: Set the port number too.
906 * src/main/java/org/glom/web/server/ConfiguredDocument.java
907 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
908 Glom document. Presumably this worked sometimes so far because there is a
911 2011-07-08 Murray Cumming <murrayc@murrayc.com>
913 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
915 * src/main/java/org/glom/web/server/ConfiguredDocument.java
916 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
917 correct, though we should throw an exception too.
919 2011-07-08 Murray Cumming <murrayc@murrayc.com>
921 Fix a addDocuemnt typo.
923 * src/main/java/org/glom/web/shared/Documents.java
924 (Documents.addDocuemnt): Rename to addDocument().
925 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
926 (OnlineGlomServiceImpl.getDocuments): Adapt.
928 2011-07-08 Murray Cumming <murrayc@murrayc.com>
930 Slightly improved log output when connection fails.
932 * src/main/java/org/glom/web/server/ConfiguredDocument.java
933 (ConfiguredDocument.setUsernameAndPassword):
934 We don't know for sure if it' the username/password that's wrong, so
935 rephrase the message.
936 Also ouput the exception message, though it's generic in this case.
938 2011-07-08 Ben Konrath <ben@bagu.org>
942 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
943 added braces to a one line if statement because the Eclipse formatter
944 was getting confused.
946 2011-07-07 Ben Konrath <ben@bagu.org>
948 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
950 These should really be two separate tasks but I counldn't get things to
951 work with GWT 2.2.0 and Eclipse 3.7.
955 * .settings/org.eclipse.jdt.core.prefs:
956 * .settings/org.eclipse.jdt.ui.prefs:
957 * .settings/org.eclipse.ltk.core.refactoring.prefs:
958 * .settings/org.eclipse.m2e.core.prefs:
959 Add new config files. Update current files. Remove references to the
960 webtools plugins as we're not using any of the webtools features.
961 * .gitignore: Add logs directory which is created when running with
963 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
964 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
965 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
967 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
969 2011-07-07 Murray Cumming <murrayc@murrayc.com>
971 onlineglom.properties: Add explanatory comments.
973 * src/main/resources/onlineglom.properties: Also change the default user
974 from ben to someuser, to avoid the risk of people thinking we just
975 stupidly hard-coded a locale path, when they see that on stderr or in a log.
977 2011-06-28 Ben Konrath <ben@bagu.org>
979 Use filename in Log for incorrect passwords.
981 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
982 getFileName(String) method to get the filename from the URI.
984 2011-06-28 Ben Konrath <ben@bagu.org>
986 Add the table name to the URL token for the ListPlace.
988 This makes things consistent between the DetailsPlace and the
989 ListPlace. It also allows the the ListPlace to be bookmarked.
991 * src/main/java/org/glom/web/client/OnlineGlomService.java:
992 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
993 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
994 Remove getDefaultListLayout(). The default layout is now returned
995 by the getListLayout() method when the table name is an empty string.
996 * src/main/java/org/glom/web/client/activity/ListActivity.java:
997 Add table name field. Change to a new ListPlace when the table
998 has been changed. Use getListLayout() for getting the default
1000 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1001 Add table name field. Set the correct table name in the list box
1002 when loading from bookmark. This corrects a problem for the
1004 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1005 Move table name to super-class (HasSelectableTable). Move document
1006 and table URL keys to super-class in HasSelectableTable.
1007 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1008 Add table name field. Add Tokenizer class with URL key common to
1009 the subclasses (DetailsPlace and ListPlace).
1010 * src/main/java/org/glom/web/client/place/ListPlace.java:
1011 Add table name. Add code to parse the URL token.
1012 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1013 Update ListPlace construction with empty table name string.
1014 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1015 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1016 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1017 Update ListPlace construction with table name string.
1018 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1019 Change defaultTableName field to tableName to reflect how it's now
1020 used. Update the getter and setter methods.
1022 2011-06-28 Ben Konrath <ben@bagu.org>
1024 Enable the table selector in the DetailsView.
1026 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1027 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1028 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1029 Remove getDefaultDetailsLayout(). The default layout is now returned
1030 by the getDetailsLayout() method when the table name is an empty
1032 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1033 event handler for table change event. Change to using
1034 getDetailsLayout() for the default details layout.
1035 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1037 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1038 when navigating to the details place.
1040 2011-06-27 Ben Konrath <ben@bagu.org>
1042 Use filename based unique document ID in URL and for RPC.
1044 The document ID is the glom document name with spaces (' ') replaced
1045 with pluses ('+') and without the .glom extension.
1047 This change is mostly a string substitution of 'documentTitle' for
1048 'documentID'. The only code change is the addition of a Documents DTO to get the
1049 filename to document title mappings as indicated below.
1051 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1052 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1053 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1054 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1055 Use Documents DTO to create the document links in the document
1057 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1058 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1059 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1060 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1061 * src/main/java/org/glom/web/client/place/ListPlace.java:
1062 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1063 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1064 * src/main/java/org/glom/web/client/ui/ListView.java:
1065 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1066 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1067 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1068 * src/main/java/org/glom/web/server/Log.java:
1069 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1070 getDocumentTitles() to getDocuments() and return the Documents DTO.
1071 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1072 transferring the filename to document title mappings.
1074 2011-06-25 Ben Konrath <ben@bagu.org>
1076 Make the authentication popup work again.
1078 This bug was introduced when I extracted ConfiguredDocument to its own class.
1080 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1081 correct success / fail status in setUsernameAndPassword().
1083 2011-06-25 Ben Konrath <ben@bagu.org>
1085 Use filename as unique key for configuring database usernames and passwords.
1087 This replaces the use of the Glom document title which could change
1088 depending on the locale. Thanks to Murray Cumming for pointing out this
1091 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1092 * src/main/resources/onlineglom.properties:
1094 2011-06-24 Ben Konrath <ben@bagu.org>
1096 Pass primary key value to DetailsView.
1098 This enables the DetailsView to load the correct data.
1100 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1101 primary key value field and set in constructor. Pass primary key
1102 value to getDetailsData().
1103 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1104 variables for document title and primary key value.
1105 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1106 key value to the DetailsPlace.
1108 2011-06-24 Ben Konrath <ben@bagu.org>
1110 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1112 This allows the primary key to be retrieved by the Details button. This
1113 functionality has not been implemented yet but it's in the works.
1115 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1116 the LayoutGroup result to ListView.setCellTable instead of all of its
1117 fields individually.
1118 * src/main/java/org/glom/web/client/ui/ListView.java:
1119 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1120 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1121 get the primary key for the table.
1122 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1123 index of the primary key in the LayoutGroup accounting for hidden
1124 primary keys. Rename getJavaNumberFormat() to
1125 convertToJavaNumberFormat() for consistency. Cleanup / add some
1127 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1128 field for primary key index and a field to indicate whether the
1129 primary key is hidden or not.
1131 2011-06-23 Ben Konrath <ben@bagu.org>
1133 Rename getTableData methods to getListData.
1135 This is a rename refactor for consistency with other methods.
1137 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1138 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1139 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1140 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1142 2011-06-23 Ben Konrath <ben@bagu.org>
1144 Extract the ConfiguredDocument innerclass into its own class.
1146 This makes the servlet code more object oriented.
1148 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1149 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1151 new ConfiguredDocument class.
1153 2011-06-21 Ben Konrath <ben@bagu.org>
1155 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1157 This makes things more inline with how libglom works and reduces code
1158 duplication. This refactor lays the groundwork for adding the primary key to
1159 the LayoutGroup object.
1161 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1162 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1163 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1164 Change method names to getListLayout and getDefaultListLayout for
1165 consistency. Use LayoutGroup as the DTO for the list layout instead of
1166 ColumnInfo and LayoutListTable.
1167 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1168 new method names along with the LayoutGroup object for transferring the
1170 * src/main/java/org/glom/web/client/ui/ListView.java:
1171 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1172 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1173 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1175 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1176 Replaced with LayoutGroup.
1177 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1178 expectedResultSize and defaultTableName fields which are needed for
1180 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1181 type field which is needed for the list layout but will also be
1182 useful for the details layout as things progress.
1183 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1184 Make class abstract. Remove the unnecessary
1185 getFormattingHorizontalAlignment method. Add setFormatting method.
1187 2011-06-16 Ben Konrath <ben@bagu.org>
1189 Add scripts for building and installing war.
1191 These will help when updating OnlineGlom but they're also good
1192 supplemental documentation of the build and deployment proceeding.
1194 * utils/build-onlineglom-war.sh: New file.
1195 * utils/install-onlineglom-war.sh: New file.
1197 2011-06-16 Ben Konrath <ben@bagu.org>
1199 Create wrapper class to create consistent log messages.
1201 I wrapped methods in the Log class of gwt-log to add the method names
1202 from the servlet and create consistent formatting of the document title
1203 and table names in the log messages.
1205 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1207 log methods to use methods from wrapped Log class.
1209 2011-06-16 Ben Konrath <ben@bagu.org>
1211 Remove superfluous conditional return.
1213 Thanks to Murray Cumming for pointing this out!
1215 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1217 2011-06-15 Ben Konrath <ben@bagu.org>
1219 Return an ArrayList of LayoutGroups for the Details layout.
1221 This corrects a problem with the details layout as it can have more
1222 than one top level LayoutGroup.
1224 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1225 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1226 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1227 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1228 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1229 with ArrayList of LayoutGroups for the details view layout.
1230 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1231 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1232 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1233 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1234 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1235 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1237 2011-06-14 Ben Konrath <ben@bagu.org>
1239 Use cast_dynamic method to determine the libglom LayoutItem type.
1241 This is better than finding the LayoutItem type by using the string
1242 returned from the get_part_type_name() method.
1244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1246 2011-06-14 Ben Konrath <ben@bagu.org>
1248 Add method names to log entries in the servlet.
1250 This helps when tracking down deployment problems.
1252 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1254 2011-06-14 Ben Konrath <ben@bagu.org>
1256 Add data to the DetailsView using a hard-coded primary key value.
1258 The layout and functionality of the DetailsView is not complete. This
1259 is just a checkpoint so the patch doesn't get too big.
1261 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1262 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1263 Add getDetailsData() servlet method.
1264 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1265 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1266 LayoutFields are added to the DetailsView.
1267 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1268 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1269 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1270 take the string for the title instead of the object.
1271 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1272 Add implementation getDetailsData() along with some private helper
1274 * src/main/webapp/style.css: Add padding to details-data class. Add a
1275 details-label class with the same padding as the details-data class.
1277 2011-06-03 Ben Konrath <ben@bagu.org>
1279 Use presenter.goTo() to change to the DetailsPlace.
1281 This will make things easier when we need to open the DetailsView with
1282 data specific to the row that was clicked.
1284 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1286 2011-06-02 Ben Konrath <ben@bagu.org>
1288 Add CSS file from mockups.
1290 I'm adding this now because it's going to be useful to have when
1291 developing the DetailsView. The TableSelectionView and ListView aren't
1294 * src/main/webapp/OnlineGlom.html:
1295 * src/main/webapp/style.css:
1297 2011-06-02 Ben Konrath <ben@bagu.org>
1299 Use String.isEmpty() to check for empty string.
1301 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1303 2011-06-02 Ben Konrath <ben@bagu.org>
1305 Display main layout group titles in the DetailsView.
1307 This is the start of the DetailsActivity/DetailsView implementation.
1309 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1310 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1311 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1312 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1313 Get the layout information for the details view from the server and set
1314 the main layout group titles.
1315 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1316 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1317 Add addLayoutGroup() and addLayoutField() methods. This are just
1318 temporary methods for creating the the details view that will change
1320 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1321 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1323 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1324 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1325 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1326 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1327 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1328 Data Transfer Objects that mimic the libglom object structure. These are
1329 used for transferring the details layout but could also be used for
1330 transferring the list layout.
1332 2011-05-27 Ben Konrath <ben@bagu.org>
1334 Reset the AuthenticationPopup when clearing the ListView.
1336 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1338 2011-05-27 Ben Konrath <ben@bagu.org>
1340 Fix problem with onlineglom.properties file loading.
1342 The old way worked in Eclipse but not on the server. Loading the
1343 onlineglom.properties file now works in Eclipse and on the server.
1345 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1347 2011-05-24 Ben Konrath <ben@bagu.org>
1349 Update gwt-log from 3.1.0 to 3.1.2.
1351 Gwt-log 3.1.0 has been marked as depreciated.
1355 2011-05-24 Ben Konrath <ben@bagu.org>
1357 Add comment to ListActivity.goTo() method.
1359 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1361 2011-05-24 Ben Konrath <ben@bagu.org>
1363 Remove FIXME in convertGdkColorToHtmlColour()
1365 The Gdk::Color value returned by libglom is 16-bits per channel on both
1366 64 and 32-bit platforms.
1368 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1370 2011-05-19 Ben Konrath <ben@bagu.org>
1372 Improve performance of initial ListView load.
1374 I removed a round trip to the server for getting the default table name
1375 and then requesting information about that table. This also removes a potential
1376 problem with the table change handler not being setup in time to receive the
1377 table change event from the ListActivity.
1379 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1380 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1381 getDefaultLayoutListTable() method. Improve comments.
1382 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1383 getDefaultLayoutListTable() method instead of firing a table change
1384 event to get the table to load.
1385 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1386 implementation of getDefaultLayoutListTable() method.
1387 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1390 2011-05-19 Ben Konrath <ben@bagu.org>
1392 Override toDebugString() in TableChangeEvent.
1394 This is useful to have for debugging.
1396 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1398 2011-05-19 Ben Konrath <ben@bagu.org>
1400 Add a "Back to List" link when at the DetailsPlace.
1402 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1403 Populate the CellTable based on the selected table of the ListBox if
1404 it's set otherwise use the default table. This allows the "Back to
1406 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1407 Remove Place from constructors. Add a setPlace() method. Add
1408 goToPlace() method. Set class as presenter for TableSelectionView.
1409 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1410 Use the same TableSelectionActivity when switching between the List and
1412 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1413 Subclass the new HasSelectableTablePlace. This removes some duplicate
1415 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1416 New class to represent Places that display the TableSelectionView.
1417 * src/main/java/org/glom/web/client/place/ListPlace.java:
1418 Subclass the new HasSelectableTablePlace. This removes some duplicate
1420 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1421 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1422 Add Presenter interface. Add setBackLinkVisible() method. Add
1423 setBackLink() method.
1425 2011-05-18 Ben Konrath <ben@bagu.org>
1427 Enable the "Details" buttons.
1429 Right now only an empty details view is displayed.
1431 * src/main/java/org/glom/web/client/ClientFactory.java:
1432 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1433 Add DetailsView to ClientFactory.
1434 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1435 A basic activity for the details view.
1436 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1437 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1439 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1440 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1442 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1443 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1444 unnecessary super() in constructor.
1445 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1446 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1447 really shouldn't create a new TableSelectionActivity for both the ListPlace
1448 and the DetailsPlace so this should be considered a temporary solution.
1449 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1450 New file. Represents a URL for the details view.
1451 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1452 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1453 A basic details view interface and implementation.
1454 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1455 Enable the "Details" buttons.
1457 2011-05-12 Ben Konrath <ben@bagu.org>
1459 Use a LayoutPanel with multiple display areas for main layout.
1461 This is mostly a refactor in that there are no changes from the user
1462 point of view. These changes are required so that we can swap out the list view
1463 with the details view when the user clicks the "Details" button.
1465 * src/main/java/org/glom/web/client/ClientFactory.java:
1466 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1467 OnlineGlomView. Add TableSelectionView, ListView and
1468 AuthenticationPopup.
1469 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1470 for main layout. Add display regions for main activities. Add
1471 activity manager for for main activities.
1472 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1473 file from parts of the deleted OnlineGlomActivity.
1474 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1475 New file from parts of the deleted OnlineGlomActivity.
1476 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1477 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1478 New files for app wide table change event.
1479 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1480 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1481 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1482 Activity mappers for the main activities replace the deleted app-wide
1484 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1485 Fix a spelling error in he comment.
1486 * src/main/java/org/glom/web/client/ui/ListView.java:
1487 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1488 Renamed from LayoutListView and modified for MVP. This still not a
1489 proper dumb view as prescribed by the MVP pattern but it works for now.
1490 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1491 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1492 New widget stripped out of the deleted OnlineGlomView.
1493 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1494 Remove hack that is fixed by this patch.
1496 2011-05-06 Ben Konrath <ben@bagu.org>
1498 Rename OnlineGlomPlace to ListPlace.
1500 The only change besides the rename is that url will now display #list
1501 instead of #Document.
1503 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1504 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1505 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1506 * src/main/java/org/glom/web/client/place/ListPlace.java:
1507 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1509 2011-05-06 Ben Konrath <ben@bagu.org>
1511 Use Presenter for app navigation.
1513 This is the proper way to deal with Place (URL) changes with the MVP
1516 * src/main/java/org/glom/web/client/ClientFactory.java:
1517 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1518 PlaceHistoryMapper and PlaceHistoryHandler.
1519 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1520 PlaceHistoryMapper and PlaceHistoryHandler.
1521 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1522 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1523 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1524 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1525 Add Presenter interface and setPresenter methods. Rename addHyperLink
1526 to addDocumentLink taking only the document title as a parameter.
1528 2011-04-14 Ben Konrath <ben@bagu.org>
1530 Prompt for db username/password if they haven't been set.
1532 This is implemented with a popup widget that is contained within the
1533 OnlineGlomView and managed by the OnlineGlomActivity.
1535 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1536 methods for checking and setting the database username and password.
1537 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1538 new methods for checking and setting the database username and
1540 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1541 Display authentication popup if the JDBC connection to the database
1542 has not been authenticated.
1543 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1545 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1546 for dealing with the authentication popup.
1547 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1548 Implement the methods for dealing with the authentication popup.
1549 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1550 try to executed queries if the database connection hasn't been
1551 authenticated. Implement methods for checking and setting the
1552 database username and password.
1554 2011-04-12 Ben Konrath <ben@bagu.org>
1556 Make log messages a little clearer.
1558 Add a dash betweeen the document title and the table name.
1560 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1562 2011-04-12 Ben Konrath <ben@bagu.org>
1564 Protect against NPEs when cleaning up database resources.
1566 While this isn't strictly necessary because the exception is caught,
1567 not protecting against the NPEs makes it harder to find the real error
1570 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1572 2011-04-12 Ben Konrath <ben@bagu.org>
1574 Move configuration of the servlet to the constructor.
1576 The servlet will be initialized even if the database authentication
1577 information is not set or correct. I still need to add the UI for prompting
1578 the user for the authentication information when it's required.
1580 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1581 javadocs for getDocumentTitles() method.
1582 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1583 Set error message when RPC fails.
1584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1585 glom files directory from the configuration file. Try to set the
1586 database authentication information for the specific document if it's
1587 set and works otherwise try to use the global authentication
1588 information set for the directory.
1589 * src/main/resources/onlineglom.properties: Moved from
1590 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1591 Added detailed comments for the new keys.
1593 2011-04-11 Ben Konrath <ben@bagu.org>
1595 Remove unnecessary @Override in DocumentSelectionViewImpl.
1597 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1599 2011-04-11 Ben Konrath <ben@bagu.org>
1601 Remove center alignment in DocumentSelectionView.
1603 The title element is still centred but the document titles and bottom
1604 sentence are both left-aligned.
1606 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1608 2011-04-11 Ben Konrath <ben@bagu.org>
1610 Change 'Demo' naming convention to 'Document'.
1612 This is just a rename refactor with no functional changes to the code.
1614 * src/main/java/org/glom/web/client/ClientFactory.java:
1615 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1616 * src/main/java/org/glom/web/client/OnlineGlom.java:
1617 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1618 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1619 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1620 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1621 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1622 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1623 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1624 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1625 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1626 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1628 2011-04-08 Ben Konrath <ben@bagu.org>
1630 Remove FIXME from safeLongToInt() method.
1632 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1637 2011-04-08 Ben Konrath <ben@bagu.org>
1639 Display an error if no glom documents are found in the specified directory.
1641 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1642 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1643 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1644 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1646 2011-04-08 Ben Konrath <ben@bagu.org>
1648 Add copyright header to one more file ... oops.
1650 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1652 2011-04-08 Ben Konrath <ben@bagu.org>
1654 Add copyright header to files without it.
1656 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1657 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1658 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1659 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1660 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1661 * src/main/java/org/glom/web/shared/GlomField.java:
1663 2011-04-08 Ben Konrath <ben@bagu.org>
1665 Add support for accessing multiple glom documents in the servlet.
1667 This completes the demo selection functionality.
1669 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1670 document title to methods.
1671 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1672 document title to methods.
1673 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1674 Set browser window title when the activity starts. Correct name of
1675 document title variable.
1676 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1677 Set browser window title when the activity starts. Set the table
1678 selector change handler after table selector has been set. Clear the
1679 OnlineGlomView when the activity has been stopped.
1680 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1681 document title as the place token. Use "#Document:" instead of
1682 "#OnlineGlomPlace:" in the URL.
1683 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1684 Change heading to "Online Glom"
1685 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1686 document title in RPC methods.
1687 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1688 setDocumentTitle() method. Add clear() method.
1689 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1690 setDocumentTitle() method. Implement clear() method which removes the
1691 change handler on the ListBox, clears the ListBox and clears the
1693 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1694 Implement methods with document title. Keep track for the configured
1695 glom documents and their corresponding JDBC configurations in a hash
1696 table. This information is retrieved using the document title as the
1697 key in the hash table.
1698 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1699 document title field as it's no longer needed.
1701 2011-04-08 Ben Konrath <ben@bagu.org>
1703 Update the Eclipse JDT configuration.
1705 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1706 methods. Automatically add the copyright header to new files.
1708 2011-04-05 Ben Konrath <ben@bagu.org>
1710 Add new page for demo selection.
1712 This patch adds all the components required to view and start an
1713 OnlineGlom demo by clicking on the desired hyperlink. The user is
1714 able to return to the demo selection page with the browser's back
1715 button. I still need to modify the servlet to work with multiple
1716 documents so all demo links will load the file defined in the
1717 OnlineGlom.properties.
1719 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1720 This is only useful during development so we don't need to save it.
1721 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1722 get a reference to the DemoSelectionView.
1723 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1724 method to get a reference to the DemoSelectionView.
1725 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1726 default view to DemoSelectionView.
1727 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1728 to get glom document titles for glom files in a hard-coded directory.
1729 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1730 method to get glom document titles for glom files in a hard-coded
1732 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1733 Presenter for DemoSelectionView.
1734 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1735 for DemoSelectionView.
1736 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1737 Update for DemoSelectionView.
1738 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1739 Basic 'Place' implementation for the DemoSelectionView.
1740 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1741 The interface for the DemoSelectionView.
1742 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1743 The implementation of the DemoSelectionView.
1744 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1745 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1747 implementation of method to get glom document titles for glom files
1748 in a hard-coded directory.
1749 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1750 on longer being used.
1751 * src/main/webapp/glom.png: Glom logo.
1753 2011-04-05 Ben Konrath <ben@bagu.org>
1755 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1757 This is the forth and final commit of a refactor that will allow
1758 OnlineGlom to be used with multiple documents.
1760 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1761 Move RPC code from OnlineGlomViewImpl to this class.
1762 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1764 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1765 RPC code to the presenter class (the P in MVP).
1767 2011-04-04 Ben Konrath <ben@bagu.org>
1769 Start moving the existing OnlineGlom code to MVP.
1771 This work is based on the GWT MVP framework that is documented here:
1773 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1775 This is the third commit of a refactor that will allow OnlineGlom to
1776 be used with multiple documents.
1778 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1779 Interface for client factory which is used to get instances of various
1780 classes throughout the app.
1781 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1782 Implementation of client factory.
1783 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1784 initialize the MVP framework.
1785 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1786 New file. Activity manager for the main container widget. This is the
1788 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1789 Maps place (URL) to its corresponding activity.
1790 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1791 New file. This is just a place holder for a generated file.
1792 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1793 New file. Represents the URL for the main Online Glom app.
1794 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1795 for changes in LayoutListViewImpl.
1796 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1797 interface for View. Move code to OnlineGlomViewImpl class.
1798 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1799 file. Implementation of OnlineGlomView.
1800 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1801 Place resources. Use ClientFactoryImpl by default.
1803 2011-04-04 Ben Konrath <ben@bagu.org>
1805 Move View classes to their own package.
1807 This is the second commit of a refactor that will allow OnlineGlom to
1808 be used with multiple documents.
1810 * src/main/java/org/glom/web/client/OnlineGlom.java:
1811 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1812 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1814 2011-04-02 Ben Konrath <ben@bagu.org>
1816 Move UI code from the main module to its own class.
1818 This is the first commit of a refactor that will allow OnlineGlom to be
1819 used with multiple documents.
1821 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1822 references to OnlineGlom to OnlineGlomView.
1823 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1824 OnlineGlomView and instantiate it here.
1825 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1826 represents the main OnlineGlomView with one document.
1828 2011-04-01 Ben Konrath <ben@bagu.org>
1830 Fix formatting of gwt.xml and add DTD.
1832 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1834 2011-03-30 Ben Konrath <ben@bagu.org>
1836 Propperly convert gdkColor string to html colour string.
1838 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1840 2011-03-28 Ben Konrath <ben@bagu.org>
1842 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1844 This implementation matches
1845 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1846 readable and is not tied to Swig.
1848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1850 2011-03-28 Ben Konrath <ben@bagu.org>
1852 Use read-only checkboxes for boolean field types.
1854 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1855 in the CellTable based on the field type. It currently only
1856 distinguishes between boolean and text columns but I'll need to add
1857 support for more types.
1858 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1859 column type in the ColumnInfo object. Add method to convert between the
1860 glom field type enum in ColumnInfo and the glom field type in libglom.
1861 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1863 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1864 getting and setting booleans.
1866 2011-03-25 Ben Konrath <ben@bagu.org>
1868 Don't get the Date twice from the ResultSet.
1870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1872 2011-03-25 Ben Konrath <ben@bagu.org>
1874 Cleanup code in the servlet.
1876 * TODO: Remove item about row count. Add item about testing row count
1877 query with large number of rows.
1878 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1879 spelling mistakes, change method parameter to be consistent with
1882 2011-03-25 Ben Konrath <ben@bagu.org>
1884 Add server side logging with the gwt-log library.
1886 * .gitignore: Ignore the log file we're now producing.
1887 * TODO: Add a couple TODO item for logging.
1888 * pom.xml: Add gwt-log and log4j as a dependency.
1889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1890 logging of errors, warnings and some important info.
1891 * src/main/resources/log4j.properties: New file to configure log4j.
1893 2011-03-24 Ben Konrath <ben@bagu.org>
1895 Add a disable button for the Details view.
1897 * src/main/java/org/glom/web/client/LayoutListView.java:
1899 2011-03-22 Ben Konrath <ben@bagu.org>
1901 Use a count query to get the number of rows for the list view pager.
1903 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1905 2011-03-22 Ben Konrath <ben@bagu.org>
1907 Add more TODO information about CellTable pager positioning.
1911 2011-03-19 Ben Konrath <ben@bagu.org>
1913 Add TODO item about CellTable pager positioning.
1917 2011-03-18 Ben Konrath <ben@bagu.org>
1919 Remove unneeded GlomFieldColumn class.
1921 This is just a small code cleanup.
1923 * src/main/java/org/glom/web/client/LayoutListView.java:
1925 2011-03-18 Ben Konrath <ben@bagu.org>
1927 Use cursor mode in the query that gets data for the list view.
1929 I still need to fix the potential memory problem when getting the row
1930 count for the list view.
1932 * TODO: Add note about testing memory usage with large data sets. Add
1933 item about fixing row counting with large data sets.
1934 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1935 PostgreSQL JDBC driver into cursor mode when getting data for the
1938 2011-03-15 Ben Konrath <ben@bagu.org>
1940 Remove the GWT Container from the Eclipse build classpath.
1942 The GWT dependencies are set by Maven so this isn't needed.
1946 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1948 Added some earlier mockups to git, but not to the tarball dist.
1950 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1951 Openismus. These hopefully show how we might structure the HTML so that
1952 it can be styled easily with CSS. However, we probably need to adapt them
1953 for the CSS structure that GWT dictates for common widgets.
1955 2011-03-14 Ben Konrath <ben@bagu.org>
1957 Locate OnlineGlom.properties using the ServletContext.
1959 This is required to be able to locate the file in the deployed servlet.
1961 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1962 Configure the database and glom document in in a helper method so
1963 that the ServletContext can be used to locate OnlineGlom.properties.
1964 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1965 src/main/webapp. This is the proper location for .properites files.
1967 2011-03-12 Ben Konrath <ben@bagu.org>
1969 Add note to README about why we're compiling down to obfuscated JavaScript.
1973 2011-03-11 Ben Konrath <ben@bagu.org>
1975 Use properties file to configure servlet.
1977 This allows people to change the glom file path, db username and db
1978 password without recompiling the code.
1980 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1981 * src/main/webapp/OnlineGlom.properties:
1983 2011-03-11 Ben Konrath <ben@bagu.org>
1985 Use table fields in layout list view if the layout list is not defined.
1987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1988 Manually create a LayoutFieldVector for the query builder using the
1989 table fields when a layout list is not defined in the glom file.
1991 2011-03-11 Ben Konrath <ben@bagu.org>
1993 Only show FIXME string for images when there's an image.
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1996 in this change are some small code cleanups.
1998 2011-03-11 Ben Konrath <ben@bagu.org>
2000 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
2002 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2004 2011-03-11 Ben Konrath <ben@bagu.org>
2006 Correctly set the index of the default table.
2008 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2009 Correctly set the index of the default table. Add commented out example
2012 2011-03-10 Ben Konrath <ben@bagu.org>
2014 Add comment to pom.xml about the previous change.
2016 * pom.xml: Add comment about the deployment issue so that it's obvious
2017 why java-libglom is set to the provided scope.
2019 2011-03-10 Ben Konrath <ben@bagu.org>
2021 Change java-libglom dependency from compile to provided in pom.xml.
2023 Since java-libglom uses jni it can only be loaded once and therefore
2024 must be placed in $CATALINA_HOME/lib and not included in each war.
2025 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2026 More information about this issue can be found in the Tomcat 6 release
2027 notes in the "JNI Based Applications" section:
2029 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2031 * README: Remove note about this issue. Deployment info should really
2032 be on the wiki anyway so I'll add it right now.
2033 * pom.xml: Change java-libglom dependency from compile to provided so
2034 that it's copied in to the packaged war.
2036 2011-03-09 Ben Konrath <ben@bagu.org>
2038 Change to using a neutral locale for currency, date and time formatting.
2040 This solves the problem of currency values being represented without a
2041 space between the currency code and the number (e.g. "EUR5.89" is now
2042 represented as "EUR 5.89"). More work is required when we implement
2043 a locale preference setting.
2045 * TODO: Add note about currency formatting issues with different
2047 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2048 to using the neutral ROOT locale.
2050 2011-03-09 Ben Konrath <ben@bagu.org>
2052 Add support for currency codes that are not ISO 4217 codes.
2054 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2055 the currency code defined in the glom file when it's not 3 characters
2056 long or when Java doesn't recognize the string as an ISO 4217 code.
2058 2011-03-08 Ben Konrath <ben@bagu.org>
2060 Remove test classes, launch configurations and configuration.
2062 The test stuff was getting in the way when creating the war. To make
2063 the war file you can now do 'mvn clean package'. The packaged war file
2064 will be in the target directory.
2066 * .classpath: Remove unused classpathentry for tests and i18n.
2067 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2068 property. Don't run test or i18n goals when packaging the war.
2069 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2074 * OnlineGlomTest-dev.launch:
2075 * OnlineGlomTest-prod.launch:
2076 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2077 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2079 2011-03-07 Ben Konrath <ben@bagu.org>
2081 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2083 These fixes allow me to use 'mvn deploy' to create the war file.
2085 * .classpath: This generated config has been updated by Eclipse. This
2086 change was probably triggered by me updating from Eclipse 3.6.1 to
2088 * .gitignore: Add entry to ignore the directory
2089 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2090 * .project: The generated config has been updated by Eclipse. This
2091 change was probably triggered by me updating from Eclipse 3.6.1 to
2093 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2094 so that Eclipse doesn't complain
2095 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2096 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2097 'tests' directory to 'client' directory. This is the new
2098 gwt-maven-plugin convension.
2099 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2100 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2102 2011-03-07 Ben Konrath <ben@bagu.org>
2104 Add support for horizontal alignment in the LayoutList columns.
2106 * TODO: Remove item about horizontal alignment. Add item about
2107 improvements to ColumnInfo.
2108 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2109 alignment on the columns. Use ColumnInfo RPC object get the column
2110 title and horizontal alignment.
2111 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2112 LayoutListView creation with ColumnInfo RPC object.
2113 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2114 a ColumnInfo object for every LayoutList columnn. Convert the
2115 FieldFormatting.HorizontalAlignment to the correct
2116 ColumnnInfo.HorizontatlAlignment with the new
2117 getColumnInfoHorizontalAlignment helper method.
2118 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2119 to encapsulate column information like alignment and title. This
2120 could be used to set the colour instead of on a per cell field basis.
2121 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2122 column title storage and retrieval with ColumnInfo.
2124 2011-03-04 Ben Konrath <ben@bagu.org>
2126 Add support for column sorting.
2128 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2129 AsynDataProvider to be an anonymous inner class. Use new
2130 getSortedTableData RPC method when column sort is requested. Set all
2131 columns sortable and add an AsyncHandler to activate sorting in the
2133 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2134 method getSortedTableData(). Cleanup other method signatures.
2135 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2136 new method getSortedTableData(). Cleanup other method signatures.
2137 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2138 Implement getSortedTableData() and getTableData() methods by using a
2139 private helper method with the appropriate parameters filled in. Use
2140 user supplied sort clause when supplied, otherwise fall back to
2141 sorting by the primary key. Move destroy() method to be underneath
2142 constructor for readability. Cleanup comments.
2144 2011-03-03 Ben Konrath <ben@bagu.org>
2146 Add support for colour text and colour backgrounds to the layout list cells.
2148 Only the cell backgrounds are coloured which leaves a gap between the
2149 cells that isn't coloured. I need to figure out a way to set
2150 'style=background-colour:' on the whole column rather than just the
2153 * TODO: Add a note about colouring the background of the whole column.
2154 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2155 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2156 render the coloured text and backgrounds. Use GlomField[] for the row type.
2157 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2159 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2160 GlomField[] for the row type.
2161 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2162 GlomField[] for the row type. Set the text, text colour and background
2163 colour in the GlomField objects as specified in the glom document. Add
2164 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2165 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2166 the glom field text, foreground colour and background colour.
2168 2011-03-02 Ben Konrath <ben@bagu.org>
2170 Don't display hidden tables in the combo box.
2172 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2174 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2175 code to ignore hidden tables using ArrayLists for the table names and
2177 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2178 tableNames to use ArrayLists instead of String[]. Update getter and setter
2181 2011-03-01 Ben Konrath <ben@bagu.org>
2183 Add support for Date and Time number types.
2185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2186 Implement formatting for Date and Time values. Change the default glom
2187 file to small business example.
2189 2011-03-01 Ben Konrath <ben@bagu.org>
2191 Add support for formatting glom types as specified in the glom file.
2193 Formatting isn't finished yet - I still need to add support for Date
2196 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2197 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2198 checks for null values in JDBC cleanup code and catch all exceptions
2199 instead of just SQLExceptions.
2200 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2203 2011-03-01 Ben Konrath <ben@bagu.org>
2205 Use GWT 2.2.0 instead of 2.1.1.
2207 * pom.xml: Change GWT version numbers.
2209 2011-03-01 Ben Konrath <ben@bagu.org>
2211 A few small code cleanups.
2213 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2215 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2216 unnecessary object creation in constructor.
2217 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2218 unnecessary object creation in constructor.
2220 2011-02-28 Ben Konrath <ben@bagu.org>
2222 Add file for TODO list.
2226 2011-02-18 Ben Konrath <ben@bagu.org>
2228 Enable the CellTable Pager when more than 20 rows need to be viewed.
2230 The Pager will automatically become active when the results are larger
2231 than the CellTable size which is currently set to 20 lines.
2233 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2234 name on debug statment in RPC call in LayoutListDataProvider, add
2235 numRows parameter to LayoutListView constructor, propperly set rowCount
2237 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2238 name on debug statment in RPC call, use LayoutListTable object in RPC
2239 calls, pass rowCount to LayoutListView.
2240 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2241 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2243 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2244 interface for changes in OnlineGlomService.
2245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2246 getLayoutListHeaders() to getLayoutListTable() and return
2247 LayoutListTable. Using this object allows me to pass other information
2248 about the LayoutList like the expected number of rows in the result set.
2249 The Connection object from the connection pool is now propperly closed.
2250 Only the requested number of lines are returned to the client in
2252 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2253 GlomTable and add columnTitles and numRows.
2255 2011-02-18 Ben Konrath <ben@bagu.org>
2257 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2259 This is a small performance boost. I'll use GlomTable to get the required
2260 layoutlist information.
2262 * src/main/java/org/glom/web/client/OnlineGlom.java:
2263 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2264 * src/main/java/org/glom/web/shared/GlomDocument.java:
2266 2011-02-18 Ben Konrath <ben@bagu.org>
2268 Add option to turn off formatting in JDT formatter preferences.
2270 * .settings/org.eclipse.jdt.core.prefs:
2272 2011-02-18 Ben Konrath <ben@bagu.org>
2274 Rename LayoutList to LayoutListView.
2276 I'm working towards setting things up to easily use MVP when the time
2279 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2281 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2284 2011-02-17 Ben Konrath <ben@bagu.org>
2286 Move LayoutListDataProvider class into LayoutList.java.
2288 * src/main/java/org/glom/web/client/LayoutList.java:
2290 2011-02-17 Ben Konrath <ben@bagu.org>
2292 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2294 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2296 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2297 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2298 from LibGlomServer.java.
2299 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2300 Rename from LibGlomServiceAsync.java.
2301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2302 Rename from LibGlomServiceImpl.java.
2303 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2305 2011-02-17 Ben Konrath <ben@bagu.org>
2307 Update JDT settings.
2309 * .settings/org.eclipse.jdt.core.prefs:
2311 2011-02-17 Ben Konrath <ben@bagu.org>
2313 Move GWT-RPC objects to shared package (where they should be).
2315 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2316 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2317 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2318 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2319 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2320 org.glom.web.shared package.
2321 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2322 org.glom.web.shared package.
2323 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2324 directory in compilation to javascript.
2326 2011-02-16 Ben Konrath <ben@bagu.org>
2328 Add sort clause to the sql query that grabs table information.
2330 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2331 if one of the columns is a primary key.
2333 2011-02-16 Ben Konrath <ben@bagu.org>
2335 Disable generateAsync feature of gwt-maven.
2337 The generated interface does not correctly match the methods in LibGlomService
2338 and the generated singleton Util inner-class doesn't respect the servlet
2341 * pom.xml: Turn off generateAsync feature.
2342 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2343 with singleton Util inner-class.
2345 2011-02-14 Ben Konrath <ben@bagu.org>
2347 Add LGPL v3 licence notices.
2349 Followed directions listed here:
2350 http://www.gnu.org/licenses/gpl-howto.html
2352 * COPYING: This file is a copy of the GPL v3.
2353 * COPYING.LESSER: This file is a copy of the LGPL v3.
2354 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2356 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2358 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2360 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2362 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2364 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2366 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2369 2011-02-14 Ben Konrath <ben@bagu.org>
2371 Use ArrayList instead of Array in GWT-RPC calls.
2373 Apparently this gives a slight performance boost to the compiled
2376 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2378 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2381 2011-02-14 Ben Konrath <ben@bagu.org>
2383 Access data from a postgres db rather than the example glom file.
2385 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2386 compile down to obfuscated javascript.
2387 * pom.xml: Add c3p0 and postgres JDBC libraries.
2388 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2389 using a postgres db accessed through the c3p0 connection pooling library.
2391 2011-02-14 Ben Konrath <ben@bagu.org>
2393 Update Java formatter settings.
2395 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2397 2011-02-02 Ben Konrath <ben@bagu.org>
2399 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2401 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2403 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2404 the compiled webapp directory that Eclipse uses as we're using Maven now.
2405 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2406 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2408 * pom.xml: Format file, change target Java version to 1.6.
2410 2011-02-02 Ben Konrath <ben@bagu.org>
2412 Add information about a deployment related issue.
2414 * README: Add Notes section with the problem outlined.
2416 2011-02-02 Ben Konrath <ben@bagu.org>
2418 Call Glom.libglom_deinit() when the servlet is shutdown.
2420 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2421 Glom.libglom_deinit() to destroy() method.
2423 2011-01-28 Ben Konrath <ben@bagu.org>
2425 Use generated Util class to get the RPC Async interface.
2427 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2429 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2430 getInstance() method to get a reference to the RPC Async interface.
2431 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2432 getInstance() method to get a reference to the RPC Async interface, remove
2433 the now unused getLibGlomServiceProxy() method.
2435 2011-01-27 Ben Konrath <ben@bagu.org>
2437 Cleanup ChangeLog entry from previous commit.
2439 * ChangeLog: Group logical changes together and add comments.
2441 2011-01-25 Ben Konrath <ben@bagu.org>
2443 Convert to gwt-maven project.
2445 * .gitignore: Update for new project structure.
2446 * README: New file with a link to the online documentation.
2447 * pom.xml: The generated maven configuration file with some tweaks.
2449 Add / update Eclipse settings. These files are a merge of the files that
2450 were generated with the gwt-maven plugin and the files we were previously
2454 * .settings/.jsdtscope:
2455 * .settings/com.google.gdt.eclipse.core.prefs:
2456 * .settings/com.google.gwt.eclipse.core.prefs:
2457 * .settings/org.eclipse.jdt.core.prefs:
2458 * .settings/org.eclipse.wst.common.component:
2459 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2460 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2461 * .settings/org.maven.ide.eclipse.prefs:
2462 * OnlineGlomTest-dev.launch:
2463 * OnlineGlomTest-prod.launch:
2465 Java source files moved from the 'src' directory to the directory structure
2467 * src/main/java/org/glom/web/client/GlomDocument.java:
2468 * src/main/java/org/glom/web/client/GlomTable.java:
2469 * src/main/java/org/glom/web/client/LayoutList.java:
2470 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2471 * src/main/java/org/glom/web/client/LibGlomService.java:
2472 * src/main/java/org/glom/web/client/OnlineGlom.java:
2473 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2475 Non-functional property file used for translations. I included this as
2476 reminder that it's something I need to sort out.
2477 * src/main/resources/org/glom/web/client/Messages.properties:
2479 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2480 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2482 The servlet configuration files moved from the 'war' directory.
2483 * src/main/webapp/OnlineGlom.css:
2484 * src/main/webapp/OnlineGlom.html:
2485 * src/main/webapp/WEB-INF/web.xml:
2487 Generated test files with most of the code commented out. I included these
2488 so that it's easy to add tests when we're ready for them.
2489 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2490 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2492 2011-01-25 Ben Konrath <ben@bagu.org>
2494 Remove unused println.
2496 * src/org/glom/web/server/LibGlomServiceImpl.java:
2498 2011-01-25 Ben Konrath <ben@bagu.org>
2500 Add project specific JDT settings.
2502 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2503 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2505 2011-01-25 Ben Konrath <ben@bagu.org>
2507 Populate celltable with example data.
2509 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2510 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2511 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2512 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2513 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2514 asynchronously gets the example data.
2515 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2516 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2517 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2518 curently selected table to be retrieved by other widgets.
2519 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2520 implement getTableData() in a hacky way. This method needs to be updated
2521 to grab information from the database when database creating is
2524 2011-01-20 Ben Konrath <ben@bagu.org>
2526 Set table headers when table dropBox changes.
2528 * src/org/glom/web/client/GlomDocument.java: Correct some method
2530 * src/org/glom/web/client/LibGlomService.java: Add method
2531 to get list layout field names.
2532 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2533 to get list layout field names.
2534 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2535 widget for list layout table.
2536 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2537 the table drop box and add new updateTable() method to asynchronously
2538 get the layout list field names for the currently selected table.
2539 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2540 implementation of getLayoutListHeaders() method.
2541 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2543 2011-01-18 Ben Konrath <ben@bagu.org>
2545 Make a listBox with table titles instead of the flexTable demo.
2547 This is the start of something more useful.
2549 * .classpath: Exclude a bunch of packages from the JVM that are
2550 getting in the way of the Eclipse content assist.
2551 * src/org/glom/web/client/GlomDocument.java:
2552 * src/org/glom/web/client/GlomTable.java:
2553 * src/org/glom/web/client/LibGlomService.java:
2554 * src/org/glom/web/client/LibGlomServiceAsync.java:
2555 * src/org/glom/web/client/OnlineGlom.java:
2556 * src/org/glom/web/server/LibGlomServiceImpl.java:
2557 * war/OnlineGlom.html:
2558 * war/WEB-INF/web.xml:
2560 211-01-13 Ben Konrath <ben@bagu.org>
2562 Update to new java-libglom API.
2564 * .gitignore: Ignore OnlineGlom.war.
2565 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2567 2010-12-20 Ben Konrath <ben@bagu.org>
2569 Add some basic style to the table listing.
2571 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2572 header, print useful error message on async callback failure.
2573 * war/OnlineGlom.css: Add style for table header, remove defaults
2574 provided by the Eclipse project wizard.
2576 2010-12-20 Ben Konrath <ben@bagu.org>
2578 Load example file from installed glom dir.
2580 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2581 provided by java-libglom to find the example file.
2583 2010-12-20 Ben Konrath <ben@bagu.org>
2585 Update Eclipse settings.
2588 * .settings/com.google.gdt.eclipse.core.prefs:
2589 * .settings/com.google.gwt.eclipse.core.prefs:
2591 2010-12-17 Ben Konrath <ben@bagu.org>
2595 * .classpath: New file.
2596 * .gitignore: New file.
2597 * .project: New file.
2598 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2599 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2600 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2601 * src/org/glom/web/client/GlomTable.java: New file.
2602 * src/org/glom/web/client/OnlineGlom.java: New file.
2603 * src/org/glom/web/client/TableNameService.java: New file.
2604 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2605 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2606 * war/OnlineGlom.css: New file.
2607 * war/OnlineGlom.html: New file.
2608 * war/WEB-INF/web.xml: New file.
2609 * war/images/glom.png: New file.