1 2011-10-26 Ben Konrath <ben@bagu.org>
3 Add style to Notebook that matches current theme.
5 It's not the best style in the world but it's better than the default.
7 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Add some
8 padding at the bottom of the child widgets.
9 * src/main/webapp/style.css: Add style for the Notebook.
11 2011-10-26 Ben Konrath <ben@bagu.org>
13 Move servlet initialization code to overridden init method.
15 This is half of the solution to getting proper error messages
16 displayed when configuration errors occur. Here's the relevant bug:
18 https://bugzilla.gnome.org/show_bug.cgi?id=662792
20 The rest of the solution involves surrounding the init method with a
21 try/catch block and setting a global variable with the error /
22 exception. A new async method should be created to retrieve and display
23 the error message / exception.
25 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Move
26 code from constructor to init method adding exceptions as needed.
28 2011-10-26 Ben Konrath <ben@bagu.org>
30 Add script to monitor and restart tomcat if required.
32 * utils/check-and-recover-tomcat.py: New file.
34 2011-10-26 Ben Konrath <ben@bagu.org>
36 Display the correct number of data items in the pager.
40 https://bugzilla.gnome.org/show_bug.cgi?id=661441
42 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
43 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
44 The implementation is the same for both tables: Keep track of the
45 number of non-empty rows and fire and RowCountChangeEvent after the data has
47 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add a
48 custom Pager class that subclasses SimplePager to handle displaying
49 the correct number when empty rows have been added.
51 2011-10-26 Ben Konrath <ben@bagu.org>
53 Correct error in previous commit.
55 * src/main/java/org/glom/web/client/activity/ListActivity.java: Remove
56 eventBus parameter from listView.setCellTable().
58 2011-10-26 Ben Konrath <ben@bagu.org>
60 Fix error in TODO comment.
62 * src/main/java/org/glom/web/client/activity/ListActivity.java:
64 2011-10-24 Ben Konrath <ben@bagu.org>
66 Create Notebook widgets to the details view.
68 This isn't finished just yet - I still need to create a reasonable
69 style to match the current theme.
71 * src/main/java/org/glom/web/client/Utils.java: Add method for
72 calculating the height of a widget. This is used in the Notebook class.
73 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
74 new constructor method in Group.
75 * src/main/java/org/glom/web/client/ui/details/Group.java: Add new
76 method for creating child widget that can be used by subclasses
77 like Notebook. New constructor that allows disabling the group
78 titles - Notebooks don't set a group title for their child groups.
79 * src/main/java/org/glom/web/client/ui/details/Notebook.java: New class
80 to make Notebooks using GWT's TabLayoutPanel.
81 * src/main/java/org/glom/web/client/ui/details/Portal.java: New
82 constructor that allows disabling the group titles.
83 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Create the
84 LayoutItemNotebook DTO.
85 * src/main/java/org/glom/web/shared/layout/LayoutItemNotebook.java: New
86 DTO for Notebooks. It's just an empty class for now but we might need
87 it to transfer some specific information in the future.
89 2011-10-21 Ben Konrath <ben@bagu.org>
91 Add navigation buttons to related list tables.
93 * src/main/java/org/glom/web/client/OnlineGlomService.java:
94 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
95 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add new
96 method getSuitableRecordToViewDetails() for getting the table name
97 and primary key value for related list navigation buttons.
98 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
99 private cell renderer class to get the navigation information for
100 related list tables from the server. Extract the navigation
101 processing code from the details cell navigation and use it for the
102 related list navigation as well.
103 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Add private
104 cell renderer class for the details open buttons. This was needed
105 because the related list navigation buttons and the list view
106 navigation buttons need to react differently when clicked.
107 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: Remove
108 the onEnterKeyDown() method because it's now overriden in the
109 subclasses that are specific to the related list tables and the list
111 * src/main/java/org/glom/web/client/ui/details/Portal.java: Increase
112 the vertical size a little because the buttons add a bit of vertical
113 space to table. This is not a perfect solution because the vertical
114 size of with table fewer than 5 rows will be a little smaller.
115 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Update for
116 changes in how navigation buttons are handled.
117 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Implement
118 getSuitableRecordToViewDetails() using the new RelatedListNavigation
119 database access object.
120 * src/main/java/org/glom/web/server/database/DBAccess.java: Move code
121 to find the portal for a given relationship name from
122 RelatedListDBAccess. Add method to find a primary key field for a
124 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
125 Move code to find the portal for a given relationship name to
127 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
128 New file: database access object for getting the related list
129 navigation information (the table name and the primary key value).
130 * src/main/java/org/glom/web/shared/NavigationRecord.java: New file:
131 DTO for transferring a table name to navigate to and a primary key
133 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
134 boolean and getter/setter to specifies if the related list should add
137 2011-10-11 Ben Konrath <ben@bagu.org>
139 Enable the open navigation button when the data has been set.
141 This avoids having active buttons that don't do anything when the data
144 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
146 2011-10-11 Ben Konrath <ben@bagu.org>
148 Use IsWidget interface for FlowTableItem.
150 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: Change
151 FlowTableItem.getWidget() to asWidget() from the IsWidget interface.
153 2011-10-11 Ben Konrath <ben@bagu.org>
155 Remove GWT styling from open button in details view.
157 There are still some issues with how the details cell is arranged but
158 this should be made to match Glom 1.20. I'm going to leave fixing this
159 until I have Glom 1.20 up and running.
161 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Set
162 style name on open button.
163 * src/main/webapp/style.css: Move and edit details-navigation class.
164 Re-arrange some classes to make them appear in the same order as the
167 2011-10-07 Ben Konrath <ben@bagu.org>
171 * .gitignore: Ignore new cache directory.
172 * .settings/com.google.gwt.eclipse.core.prefs: Update Eclipse settting.
173 * pom.xml: Change GWT and maven plugin to 2.4.0.
174 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Update doctype for
176 * src/main/java/org/glom/web/client/ClientFactory.java:
177 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
178 * src/main/java/org/glom/web/client/OnlineGlom.java:
179 Update source for API changes.
180 * utils/build-onlineglom-war.sh: Remove cache directory before the
183 2011-10-07 Ben Konrath <ben@bagu.org>
185 Add navigation buttons in the details view.
187 This isn't finished but I thought I'd commit what I have as it's a
188 pretty good start. I still need to:
190 1. Change the style so that it fits better into the current theme
191 2. Adjust the details cell to expand as much as possible.
193 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
194 click handlers to navigation buttons in the DetailsCells. Create a
195 refreshData() method to get just the data from the server without the
197 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
198 Update the tableSelector and browser title when the table name
199 changes without using the tableSelector.
200 * src/main/java/org/glom/web/client/ui/DetailsView.java:
201 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
202 getDetailsCells() to getCells(). Update variable names.
203 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java: Add
204 method to set click handler on navigation button. Rename a few
205 variables. Add navigation buttons where needed.
206 * src/main/java/org/glom/web/client/ui/details/Group.java: Rename a few
207 variables and methods.
208 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Set the
209 navigation boolean and navigation table as required in the
211 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
212 variables for navigation along with getter/setter methods.
214 2011-10-07 Ben Konrath <ben@bagu.org>
216 Rename Field to DetailsCell.
218 This is a refactor-only commit. No functionality has been added or
221 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
222 Update variable and method names.
223 * src/main/java/org/glom/web/client/ui/DetailsView.java:
224 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update
225 variable and method names.
226 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
228 * src/main/java/org/glom/web/client/ui/details/Group.java: Update
229 variable and method names.
231 2011-10-07 Ben Konrath <ben@bagu.org>
233 Create separate methods for layout and data the details view.
235 This is a refactor-only commit. No functionality has been added or
238 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: New
239 private methods: setData(), createLayout().
241 2011-10-07 Ben Konrath <ben@bagu.org>
243 Don't use TableSelectorImpl implementation details in TableSelectorActivity.
245 This is part of a change to get navigation buttons in the details view
246 but it should have been done this way from the start.
248 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
249 for method name change in TableSelectionView.
250 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
251 Create TableChangeEvent and set the browser title using the
252 TableSelectionView API.
253 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
254 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
255 Change getSelectedTable() to getSelectedTableName(). Add
256 getSelectedTableTitle().
258 2011-10-07 Ben Konrath <ben@bagu.org>
260 Use primaryKeyValue naming convention in constructor of DetailsPlace.
262 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
264 2011-10-07 Ben Konrath <ben@bagu.org>
266 Update TableChangeEvent to use newTableName naming convention.
268 This makes the class more consistent with GWT naming conventions.
270 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
271 Update for method name change in TableChangeEvent.
272 * src/main/java/org/glom/web/client/activity/ListActivity.java: Update
273 for method name change in TableChangeEvent.
274 * src/main/java/org/glom/web/client/event/TableChangeEvent.java: Update
275 newTableName variable and getter method. Make toDebugString()
278 2011-09-30 Ben Konrath <ben@bagu.org>
280 Disable the pager in the list tables when the data row count is less than the minimum.
282 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
283 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
285 2011-09-30 Ben Konrath <ben@bagu.org>
287 Add empty rows to the end of related list and list view tables.
289 I also extracted the cell rendering classes from the ListTable because
290 the code was becoming a little crazy with all the anonymous inner
291 classes. My plan is to use these cell rendering classes in the details
292 view as well so this refactor will be needed for that change.
294 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Only
295 set the row count in related list tables if the data has more rows
296 than the minimum number of rows visible.
297 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Only set the
298 row count in list view tables if the data has more rows than the
299 minimum number of rows visible.
300 * src/main/java/org/glom/web/client/ui/cell/BooleanCell.java: New class
301 for rendering TYPE_BOOLEAN cells. The code was extracted from the
303 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java: New class
304 for rendering TYPE_NUMERIC cells. The code was extracted from the
306 * src/main/java/org/glom/web/client/ui/cell/OpenButtonCell.java: New
307 class for rendering cells with buttons in list views. The code was
308 extracted from the ListTable class.
309 * src/main/java/org/glom/web/client/ui/cell/TextCell.java: New class
310 for rendering TYPE_TEXT cells. The code was extracted from the
312 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
313 Add empty rows to the end of the data if required. Implement
314 ListTable.getMinNumVisibleRows().
315 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Extract
316 cell renderer code to public classes. Return null in
317 Column.getValue() for empty rows. Add new abstract method:
318 getMinNumVisibleRows(). Move code to set the row count of the list view
319 table to ListViewImpl.
320 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java: Add
321 empty rows to the end of the data if required. Implement
322 ListTable.getMinNumVisibleRows().
325 2011-09-27 Ben Konrath <ben@bagu.org>
327 Use GWT.log for client-side debugging statements.
329 These are optimized out when deployed so I should have used this method
330 in the first place. These statements will eventually be replaced with some sort
331 of notification in the browser.
333 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
334 * src/main/java/org/glom/web/client/activity/ListActivity.java:
335 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
336 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
337 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
339 2011-09-27 Ben Konrath <ben@bagu.org>
341 Put tableselector on the right, back to list link on right.
343 The idea is that the table selector is acting like a label for the
344 currently displayed table so it should be placed below the document title. This
345 puts the table title in a similar position to where it is in Glom.
347 * mockups/details-contacts.html:
348 * mockups/details-projects.html:
349 * mockups/listview-contacts.html:
350 * mockups/listview-projects.html:
352 Update mockups to match how the interfaces currently look.
353 * src/main/webapp/style.css: Swap positions of backlink with the table
354 selector. Add some space on the left side of the table selector to
355 line things up with the document title.
357 2011-09-27 Ben Konrath <ben@bagu.org>
359 Add field colouring to details view.
361 This change re-works how field colouring works. The colour formatting
362 information is now set to the client with the layout information instead of
363 with the data. This eliminates the need to send the same colour strings for
364 data in list view column when colour information is set.
366 In order to set an alternate colour for negative numeric values, the
367 number is now sent to client and formatted with the GWT NumberFormat class.
369 This change also fixes:
371 https://bugzilla.gnome.org/show_bug.cgi?id=659752
373 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add the GWT
374 internationalization framework which is needed for client side numeric
376 * src/main/java/org/glom/web/client/Utils.java: New file for some
377 client static utility methods.
378 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
379 the DataItem object to the Field class. Use a utility method to
380 create the foreignKeyValue string.
381 * src/main/java/org/glom/web/client/ui/details/Field.java: Set
382 alignment and text colours in the constructor. Add setData(DataItem)
383 method. Remove setText(String) method.
384 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Add the
385 colour information to GlomTextCell. Create and use GlomNumberCell for
386 rendering numbers. Use utility method to get the string for the
387 primary key of the key provider. Re-work how the horizontal alignment
389 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
390 formatting to layout information. Methods for converting the libglom
391 formatting information were moved from DBAccess.
392 * src/main/java/org/glom/web/server/database/DBAccess.java: Remove
393 numeric formatting (it's now done on the client side). Don't set text
394 colours in DataItem. Move libglom formatting conversion methods to
396 * src/main/java/org/glom/web/shared/DataItem.java: Remove fields and
397 getters/setters for text colour information.
398 * src/main/java/org/glom/web/shared/GlomNumericFormat.java: New file
399 for transferring the libglom NumericFormat information to the client.
400 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add fields
401 and getters/setters for: GlomNumericFormat, background colour and
402 foreground colour strings.
404 2011-09-26 Ben Konrath <ben@bagu.org>
406 Simplify code that iterates through the LayoutGroup.
408 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
410 2011-09-26 Ben Konrath <ben@bagu.org>
412 Accept Eclipse formatting for OnlineGlomServiceAsync.
414 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
416 2011-09-26 Ben Konrath <ben@bagu.org>
418 Don't use the ListDBAccess classes to get the primary key layout information.
420 This was causing a bug where the wrong index for the hidden primary key
421 was being sent to the client.
423 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
424 primary key while creating the LayoutGroup DTO. Create a
425 LayoutItemField DTO for hidden primary keys. Don't use the
426 RelatedListDBAccess because it was only used for getting the primary
428 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
429 access modifier from public to protected for getPrimaryKeyField() and
430 getPrimaryKeyLayoutItemField().
431 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
432 abstract method getExpectedResultSize() because RelatedListDBAccess
433 doesn't have enough info to implement it.
434 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
435 Remove @Override for getExpectedResultSize().
436 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
437 Remove method getExpectedResultSize().
439 2011-09-23 Ben Konrath <ben@bagu.org>
441 Log which layout (list or details) the ignored item is from.
443 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
445 2011-09-23 Ben Konrath <ben@bagu.org>
447 Remove annotations that turn off code formatting in DataItem.
449 * src/main/java/org/glom/web/shared/DataItem.java:
451 2011-09-23 Ben Konrath <ben@bagu.org>
453 Rename GlomField to DataItem and update associated methods.
455 This is a rename-only refactor. No functionality has been added or
458 * src/main/java/org/glom/web/client/OnlineGlomService.java:
459 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
460 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
461 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
462 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
463 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
464 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
465 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
466 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
467 * src/main/java/org/glom/web/server/database/DBAccess.java:
468 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
469 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
470 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
471 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
472 * src/main/java/org/glom/web/shared/DataItem.java:
473 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
474 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
476 2011-09-23 Ben Konrath <ben@bagu.org>
478 Rename GlomDocument to DocumentInfo and update associated methods.
480 This is a rename-only refactor. No functionality has been added or
483 * src/main/java/org/glom/web/client/OnlineGlomService.java:
484 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
485 * src/main/java/org/glom/web/client/activity/ListActivity.java:
486 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
487 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
489 * src/main/java/org/glom/web/shared/DocumentInfo.java:
491 2011-09-20 Ben Konrath <ben@bagu.org>
493 Require java-libglom 1.17.3.
495 This picks up the fix for the seg fault problem with the Scenes table
496 in the Openismus Film Manager example.
500 2011-09-20 Ben Konrath <ben@bagu.org>
502 Change the way sort clause is added for primary key when no sort clause is requested.
504 The primary key is now added to the LayoutFieldVector (fieldsToGet)
505 before the sort clause is created. When a sort clause is not requested, the
506 sort clause is created by finding the primary key in the LayoutFieldVector
509 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
511 2011-09-20 Ben Konrath <ben@bagu.org>
513 Log error message if no documents are found in the configured directory.
515 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
516 Extract the glom file extension string to a private static final class
517 variable (mostly as syntactic sugar). Accept a minor formatting change.
518 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
519 the example glom.document.directory configuration property to make it
520 more clear that it can any directory, not just the home directory.
522 2011-09-18 Ben Konrath <ben@bagu.org>
524 Add related lists to details view.
526 The related list table has support for paging and sorting just like the
527 table in the list view.
529 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
530 SQL queries for the related list tables.
531 * src/main/java/org/glom/web/client/OnlineGlomService.java:
532 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
533 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
534 Rename getList methods to getListView and add comments. Remove
535 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
536 it being unused. Add methods: getDetailsLayoutAndData(),
537 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
538 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
539 Create the layout and set the data for the fields in one async call
540 instead of two. Create related lists where appropriate.
541 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
542 for method name changes in OnlineGlomService.
543 * src/main/java/org/glom/web/client/ui/DetailsView.java:
544 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
545 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
547 * src/main/java/org/glom/web/client/ui/ListView.java:
548 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
549 tableName from setCellTable(). Create a ListViewTable instead of
551 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
552 represent a data field in the details view.
553 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
554 from addDetailsCell() to Field class. Keep track of the Fields and
555 Portals in the details view.
556 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
557 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
558 and add a method to get it. Add method to set the contents of the
560 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
561 New class for related list tables. This class has the data provider
562 for the related list table.
563 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
564 abstract class which is the base class for the ListViewTable and the
566 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
567 New class for list view tables. This class has the data provider for
569 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
570 methods for related list tables. Add more information to the
571 LayoutItemField and LayoutItemPortal DTOs.
572 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
573 Remove debugging print statement.
574 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
575 Remove debugging print statements. Add primary key field to SQL count
577 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
578 Remove unnecessary LayoutFieldVector parameter from
579 getResultSizeOfSQLQuery() method.
580 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
581 New class for related list table database access.
582 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
583 class that is a wrapper DTO for details view layout and data.
584 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
585 new 'fromField' string to this DTO.
586 * src/main/webapp/style.css: Remove bottom margin and override top
589 2011-09-15 Ben Konrath <ben@bagu.org>
591 Breakup the OnlineGlomServiceImpl class to make it more manageable.
593 This sets things up to make it easier to add the data retrieval for
594 related lists (portals). No user noticeable changes were made with
597 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
598 class has the code to retrieve the layouts and access the
599 database using the new database helper classes.
600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
601 Most of the functionality has been removed from this class. This
602 class now represents the public interface for the client side
603 code. It also deals with configuring the servlet and cleaning
604 things up when the servlet is stopped.
605 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
606 of static methods into this utility class.
607 * src/main/java/org/glom/web/server/database/DBAccess.java:
608 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
609 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
610 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
611 These classes have the database retrieval code. The class hierarchy
612 has been setup to make it easy to reuse code for similar
615 2011-09-06 Ben Konrath <ben@bagu.org>
617 Create separate classes for list table code and the data provider.
619 As part of this refactor, I also split up the code a bit to make it
622 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
623 table code to two new classes (below).
624 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
625 with code from ListViewImpl.
626 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
627 New file with code from ListViewImpl.
629 2011-09-06 Ben Konrath <ben@bagu.org>
631 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
633 This fixes the LayoutItemPortal DTO to match the libglom layout object
636 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
638 2011-09-01 Ben Konrath <ben@bagu.org>
640 Set title of Portals in the Details View.
642 * pom.xml: Bump required version of java-libglom to 1.17.1.
643 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
644 widget creation to its own class. Add comments to constructor.
645 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
646 The code is mostly from the Group class with the title now set.
647 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
648 title of Portal. Update some comments. Fix some code formatting.
650 2011-09-01 Ben Konrath <ben@bagu.org>
652 Remove TODO comment for the flow table column width.
654 The flow table column width is working correctly and doesn't need to be
655 changed. See this mailing list post for more info:
657 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
659 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
661 2011-08-27 Ben Konrath <ben@bagu.org>
663 Add document title (database name) to top of the browser page.
665 I added the document title to the TableSelecitonView but that will
666 change if / when we add a view that doesn't require table selection.
668 * mockups/details-contacts.html:
669 * mockups/details-projects.html:
670 * mockups/listview-contacts.html:
671 * mockups/listview-projects.html:
672 * mockups/style.css: Add document title to mockups to keep things
674 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
675 sizes to account for the document title.
676 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
677 Set the document title when it has been retrieved from the server.
678 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
679 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
680 and implement setDocumentTitle(String) method.
681 * src/main/webapp/style.css: Add ID for document title style.
683 2011-08-25 Ben Konrath <ben@bagu.org>
685 Add NavigationType enum to LayoutItemPortal DTO.
687 This is the start of adding support for Portals to the Details View.
689 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
690 LayoutItem_Portal.navigation_type enum from libglom to
691 LayoutItemPortal.NavigationType enum.
692 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
693 NavigationType enum, field for storing the NavigationType and getter
696 2011-08-25 Ben Konrath <ben@bagu.org>
698 Implement the flow table layout in the Details View.
700 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
701 FlowTable to Group to account for the renamed class.
702 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
703 File. This is a container widget that implements the Glom details view
704 flow table behaviour.
705 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
706 org/glom/web/client/ui/FlowTable.java.
707 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
708 so that the size of the subgroups are a closer match to the size of
709 the Glom subgroups. This makes the flowtable layout match the layout
710 in Glom for the Music Collection example file.
712 2011-08-16 Ben Konrath <ben@bagu.org>
714 Create container element for LayoutItemPortal in Details View.
716 This will help me develop the layout for the FlowTable.
718 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
719 fieldPanel variable to detailsCell.
721 2011-08-15 Ben Konrath <ben@bagu.org>
723 Set the height of the data element in the Details View.
725 I changed the InlineLabels (text in a span element) to Labels (text in
726 a div element) so that I could set the height of the details-data
727 elements instead of the details-cell parent elements. This allows the
728 the details-data element to display the correct height if style is
729 applied that shows the height.
731 This change has the added benefit of allowing the order of the labels
732 and data elements to be changed for right-to-left languages.
734 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
735 InlineLabels to Labels.
736 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
737 InlineLabels to Labels. Set the height of the data element.
738 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
739 multiline text height in the Formatting DTO.
740 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
741 for multiline height along with getter and setter methods.
742 * src/main/webapp/style.css: Adjust style to account for the change
743 from span elements to div elements in the details cell.
745 2011-08-15 Ben Konrath <ben@bagu.org>
747 Make the List View appearance match the mockups.
749 It doesn't match exactly but it's much better than it was.
751 * mockups/listview-contacts.html: Remove unused css classes.
752 * mockups/listview-projects.html: Remove unused css classes.
753 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
754 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
755 for mainPanel instead of VerticalPanel (table). Set style name on
756 CellTable. Set style name on Details column. Right-align Details
758 * src/main/webapp/style.css: Adjust properties to match the mockups.
760 2011-08-12 Ben Konrath <ben@bagu.org>
762 Add better support for subgroups in the details view.
764 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
765 changed FlowTable constructor.
766 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
767 support for subgroups and subgroup-titles.
768 * src/main/webapp/style.css: Add CSS class for subgroups and
771 2011-08-12 Ben Konrath <ben@bagu.org>
773 Return the top level LayoutGroup title.
775 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
777 2011-08-11 Ben Konrath <ben@bagu.org>
779 Make the TableSelector header match the mockup.
781 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
782 the layout panel. Properly lineup the table selection header with
783 the list and details view.
784 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
785 margin around the details view.
786 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
787 Rename listBox variable to tableSelector. Set id for the style sheet.
788 Use a FlowPanel instead of a HorizontalPanel.
789 * src/main/webapp/style.css: Add properties to make the TableSelector
790 box match the mockups.
792 2011-07-13 Ben Konrath <ben@bagu.org>
794 Update install script for java-libglom version change.
796 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
799 2011-07-13 Ben Konrath <ben@bagu.org>
801 Add support sub-group in the details view.
803 I also removed the code that special-cased the default details view
806 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
808 I still have to make a proper flowtable.
810 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
811 Don't special-case default details view layout.
812 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
813 addLayoutField() as I'm going to use it.
814 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
815 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
817 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
818 extracted from DetailsViewImpl.GroupPanel. Add support for
820 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
821 column count when getting the details layout.
823 2011-07-12 Ben Konrath <ben@bagu.org>
825 Set browser title with database and table titles.
827 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
828 Set the browser title when the table changes and when the activity
830 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
831 title when retrieving document info (the GlomDocument object).
832 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
833 with getter and setter methods. Remove unused convenience constructor.
834 Use default code formatting.
836 2011-07-12 Ben Konrath <ben@bagu.org>
838 Ignore LayoutItemPortals in the details view.
840 I added a new DTO for the LayoutItemPortal so that I can ignore it in
843 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
844 LayoutItemPortal layout objects.
845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
846 LayoutItemPortal objects when retrieving the details layout.
847 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
848 file. This is an empty class and just used to get type information for
851 2011-07-12 Ben Konrath <ben@bagu.org>
853 Use java-libglom 1.17.0.
857 2011-07-11 Ben Konrath <ben@bagu.org>
859 Remove "Table:" label from table selector.
861 This matches a recent change in the Glom UI.
863 * mockups/details-contacts.html:
864 * mockups/details-projects.html:
865 * mockups/listview-contacts.html:
866 * mockups/listview-projects.html: Remove the "Table:" label from the
868 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
870 2011-07-11 Ben Konrath <ben@bagu.org>
872 Add main groups to the details view.
874 This makes things look a little nicer in the details view. The next step
875 is to implement the flowtable.
877 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
878 resources from the standard gwt css theme. Standard.css is now
879 included in OnlineGlom.html so that the online glom css rules have
880 precedence over the gwt theme.
881 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
882 the whole LayoutGroup to the DetailsView instead of just the titles.
883 * src/main/java/org/glom/web/client/ui/DetailsView.java:
884 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
885 details layout with a helper class (GroupPanel). I might extract this
886 class when I make the full flowtable.
887 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
888 string as default so I don't have to worry about NPEs when processing
890 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
891 note beside OnlineGlom.gwt.xml above).
892 * src/main/webapp/style.css: Add default font-size to body to override
893 the font-size set by the standard theme. Don't use h2 tags for
894 group-title. Create new details-cell class.
896 2011-07-08 Murray Cumming <murrayc@murrayc.com>
898 ConfiguredDocument: Set the port number too.
900 * src/main/java/org/glom/web/server/ConfiguredDocument.java
901 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
902 Glom document. Presumably this worked sometimes so far because there is a
905 2011-07-08 Murray Cumming <murrayc@murrayc.com>
907 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
909 * src/main/java/org/glom/web/server/ConfiguredDocument.java
910 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
911 correct, though we should throw an exception too.
913 2011-07-08 Murray Cumming <murrayc@murrayc.com>
915 Fix a addDocuemnt typo.
917 * src/main/java/org/glom/web/shared/Documents.java
918 (Documents.addDocuemnt): Rename to addDocument().
919 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
920 (OnlineGlomServiceImpl.getDocuments): Adapt.
922 2011-07-08 Murray Cumming <murrayc@murrayc.com>
924 Slightly improved log output when connection fails.
926 * src/main/java/org/glom/web/server/ConfiguredDocument.java
927 (ConfiguredDocument.setUsernameAndPassword):
928 We don't know for sure if it' the username/password that's wrong, so
929 rephrase the message.
930 Also ouput the exception message, though it's generic in this case.
932 2011-07-08 Ben Konrath <ben@bagu.org>
936 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
937 added braces to a one line if statement because the Eclipse formatter
938 was getting confused.
940 2011-07-07 Ben Konrath <ben@bagu.org>
942 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
944 These should really be two separate tasks but I counldn't get things to
945 work with GWT 2.2.0 and Eclipse 3.7.
949 * .settings/org.eclipse.jdt.core.prefs:
950 * .settings/org.eclipse.jdt.ui.prefs:
951 * .settings/org.eclipse.ltk.core.refactoring.prefs:
952 * .settings/org.eclipse.m2e.core.prefs:
953 Add new config files. Update current files. Remove references to the
954 webtools plugins as we're not using any of the webtools features.
955 * .gitignore: Add logs directory which is created when running with
957 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
958 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
959 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
961 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
963 2011-07-07 Murray Cumming <murrayc@murrayc.com>
965 onlineglom.properties: Add explanatory comments.
967 * src/main/resources/onlineglom.properties: Also change the default user
968 from ben to someuser, to avoid the risk of people thinking we just
969 stupidly hard-coded a locale path, when they see that on stderr or in a log.
971 2011-06-28 Ben Konrath <ben@bagu.org>
973 Use filename in Log for incorrect passwords.
975 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
976 getFileName(String) method to get the filename from the URI.
978 2011-06-28 Ben Konrath <ben@bagu.org>
980 Add the table name to the URL token for the ListPlace.
982 This makes things consistent between the DetailsPlace and the
983 ListPlace. It also allows the the ListPlace to be bookmarked.
985 * src/main/java/org/glom/web/client/OnlineGlomService.java:
986 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
987 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
988 Remove getDefaultListLayout(). The default layout is now returned
989 by the getListLayout() method when the table name is an empty string.
990 * src/main/java/org/glom/web/client/activity/ListActivity.java:
991 Add table name field. Change to a new ListPlace when the table
992 has been changed. Use getListLayout() for getting the default
994 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
995 Add table name field. Set the correct table name in the list box
996 when loading from bookmark. This corrects a problem for the
998 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
999 Move table name to super-class (HasSelectableTable). Move document
1000 and table URL keys to super-class in HasSelectableTable.
1001 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1002 Add table name field. Add Tokenizer class with URL key common to
1003 the subclasses (DetailsPlace and ListPlace).
1004 * src/main/java/org/glom/web/client/place/ListPlace.java:
1005 Add table name. Add code to parse the URL token.
1006 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1007 Update ListPlace construction with empty table name string.
1008 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1009 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1010 Change setTableSelectedIndex(int) to setSelectedTableName(String).
1011 Update ListPlace construction with table name string.
1012 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1013 Change defaultTableName field to tableName to reflect how it's now
1014 used. Update the getter and setter methods.
1016 2011-06-28 Ben Konrath <ben@bagu.org>
1018 Enable the table selector in the DetailsView.
1020 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1021 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1022 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1023 Remove getDefaultDetailsLayout(). The default layout is now returned
1024 by the getDetailsLayout() method when the table name is an empty
1026 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1027 event handler for table change event. Change to using
1028 getDetailsLayout() for the default details layout.
1029 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
1031 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
1032 when navigating to the details place.
1034 2011-06-27 Ben Konrath <ben@bagu.org>
1036 Use filename based unique document ID in URL and for RPC.
1038 The document ID is the glom document name with spaces (' ') replaced
1039 with pluses ('+') and without the .glom extension.
1041 This change is mostly a string substitution of 'documentTitle' for
1042 'documentID'. The only code change is the addition of a Documents DTO to get the
1043 filename to document title mappings as indicated below.
1045 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1046 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1047 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1048 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1049 Use Documents DTO to create the document links in the document
1051 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1052 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1053 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1054 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1055 * src/main/java/org/glom/web/client/place/ListPlace.java:
1056 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1057 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1058 * src/main/java/org/glom/web/client/ui/ListView.java:
1059 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1060 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1061 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1062 * src/main/java/org/glom/web/server/Log.java:
1063 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1064 getDocumentTitles() to getDocuments() and return the Documents DTO.
1065 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
1066 transferring the filename to document title mappings.
1068 2011-06-25 Ben Konrath <ben@bagu.org>
1070 Make the authentication popup work again.
1072 This bug was introduced when I extracted ConfiguredDocument to its own class.
1074 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
1075 correct success / fail status in setUsernameAndPassword().
1077 2011-06-25 Ben Konrath <ben@bagu.org>
1079 Use filename as unique key for configuring database usernames and passwords.
1081 This replaces the use of the Glom document title which could change
1082 depending on the locale. Thanks to Murray Cumming for pointing out this
1085 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1086 * src/main/resources/onlineglom.properties:
1088 2011-06-24 Ben Konrath <ben@bagu.org>
1090 Pass primary key value to DetailsView.
1092 This enables the DetailsView to load the correct data.
1094 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
1095 primary key value field and set in constructor. Pass primary key
1096 value to getDetailsData().
1097 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
1098 variables for document title and primary key value.
1099 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
1100 key value to the DetailsPlace.
1102 2011-06-24 Ben Konrath <ben@bagu.org>
1104 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
1106 This allows the primary key to be retrieved by the Details button. This
1107 functionality has not been implemented yet but it's in the works.
1109 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
1110 the LayoutGroup result to ListView.setCellTable instead of all of its
1111 fields individually.
1112 * src/main/java/org/glom/web/client/ui/ListView.java:
1113 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
1114 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
1115 get the primary key for the table.
1116 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1117 index of the primary key in the LayoutGroup accounting for hidden
1118 primary keys. Rename getJavaNumberFormat() to
1119 convertToJavaNumberFormat() for consistency. Cleanup / add some
1121 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
1122 field for primary key index and a field to indicate whether the
1123 primary key is hidden or not.
1125 2011-06-23 Ben Konrath <ben@bagu.org>
1127 Rename getTableData methods to getListData.
1129 This is a rename refactor for consistency with other methods.
1131 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1132 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1133 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1136 2011-06-23 Ben Konrath <ben@bagu.org>
1138 Extract the ConfiguredDocument innerclass into its own class.
1140 This makes the servlet code more object oriented.
1142 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
1143 from private ConfiguredDocument class in OnlineGlomServiceImpl.
1144 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
1145 new ConfiguredDocument class.
1147 2011-06-21 Ben Konrath <ben@bagu.org>
1149 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
1151 This makes things more inline with how libglom works and reduces code
1152 duplication. This refactor lays the groundwork for adding the primary key to
1153 the LayoutGroup object.
1155 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1156 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1157 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1158 Change method names to getListLayout and getDefaultListLayout for
1159 consistency. Use LayoutGroup as the DTO for the list layout instead of
1160 ColumnInfo and LayoutListTable.
1161 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
1162 new method names along with the LayoutGroup object for transferring the
1164 * src/main/java/org/glom/web/client/ui/ListView.java:
1165 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1166 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
1167 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
1169 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
1170 Replaced with LayoutGroup.
1171 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
1172 expectedResultSize and defaultTableName fields which are needed for
1174 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
1175 type field which is needed for the list layout but will also be
1176 useful for the details layout as things progress.
1177 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1178 Make class abstract. Remove the unnecessary
1179 getFormattingHorizontalAlignment method. Add setFormatting method.
1181 2011-06-16 Ben Konrath <ben@bagu.org>
1183 Add scripts for building and installing war.
1185 These will help when updating OnlineGlom but they're also good
1186 supplemental documentation of the build and deployment proceeding.
1188 * utils/build-onlineglom-war.sh: New file.
1189 * utils/install-onlineglom-war.sh: New file.
1191 2011-06-16 Ben Konrath <ben@bagu.org>
1193 Create wrapper class to create consistent log messages.
1195 I wrapped methods in the Log class of gwt-log to add the method names
1196 from the servlet and create consistent formatting of the document title
1197 and table names in the log messages.
1199 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
1200 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
1201 log methods to use methods from wrapped Log class.
1203 2011-06-16 Ben Konrath <ben@bagu.org>
1205 Remove superfluous conditional return.
1207 Thanks to Murray Cumming for pointing this out!
1209 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1211 2011-06-15 Ben Konrath <ben@bagu.org>
1213 Return an ArrayList of LayoutGroups for the Details layout.
1215 This corrects a problem with the details layout as it can have more
1216 than one top level LayoutGroup.
1218 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1219 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
1220 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
1221 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
1222 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
1223 with ArrayList of LayoutGroups for the details view layout.
1224 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1225 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
1226 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
1227 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
1228 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
1229 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
1231 2011-06-14 Ben Konrath <ben@bagu.org>
1233 Use cast_dynamic method to determine the libglom LayoutItem type.
1235 This is better than finding the LayoutItem type by using the string
1236 returned from the get_part_type_name() method.
1238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1240 2011-06-14 Ben Konrath <ben@bagu.org>
1242 Add method names to log entries in the servlet.
1244 This helps when tracking down deployment problems.
1246 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1248 2011-06-14 Ben Konrath <ben@bagu.org>
1250 Add data to the DetailsView using a hard-coded primary key value.
1252 The layout and functionality of the DetailsView is not complete. This
1253 is just a checkpoint so the patch doesn't get too big.
1255 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1256 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1257 Add getDetailsData() servlet method.
1258 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1259 Add RPC to getDetailsData(). Change the way the LayoutGroups and
1260 LayoutFields are added to the DetailsView.
1261 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1262 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1263 Add setData() method. Change addLayoutGroup() and addLayoutField() to
1264 take the string for the title instead of the object.
1265 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1266 Add implementation getDetailsData() along with some private helper
1268 * src/main/webapp/style.css: Add padding to details-data class. Add a
1269 details-label class with the same padding as the details-data class.
1271 2011-06-03 Ben Konrath <ben@bagu.org>
1273 Use presenter.goTo() to change to the DetailsPlace.
1275 This will make things easier when we need to open the DetailsView with
1276 data specific to the row that was clicked.
1278 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1280 2011-06-02 Ben Konrath <ben@bagu.org>
1282 Add CSS file from mockups.
1284 I'm adding this now because it's going to be useful to have when
1285 developing the DetailsView. The TableSelectionView and ListView aren't
1288 * src/main/webapp/OnlineGlom.html:
1289 * src/main/webapp/style.css:
1291 2011-06-02 Ben Konrath <ben@bagu.org>
1293 Use String.isEmpty() to check for empty string.
1295 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1297 2011-06-02 Ben Konrath <ben@bagu.org>
1299 Display main layout group titles in the DetailsView.
1301 This is the start of the DetailsActivity/DetailsView implementation.
1303 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1304 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1305 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
1306 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1307 Get the layout information for the details view from the server and set
1308 the main layout group titles.
1309 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1310 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1311 Add addLayoutGroup() and addLayoutField() methods. This are just
1312 temporary methods for creating the the details view that will change
1314 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1315 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
1317 * src/main/java/org/glom/web/shared/layout/Formatting.java:
1318 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
1319 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
1320 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
1321 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
1322 Data Transfer Objects that mimic the libglom object structure. These are
1323 used for transferring the details layout but could also be used for
1324 transferring the list layout.
1326 2011-05-27 Ben Konrath <ben@bagu.org>
1328 Reset the AuthenticationPopup when clearing the ListView.
1330 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1332 2011-05-27 Ben Konrath <ben@bagu.org>
1334 Fix problem with onlineglom.properties file loading.
1336 The old way worked in Eclipse but not on the server. Loading the
1337 onlineglom.properties file now works in Eclipse and on the server.
1339 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1341 2011-05-24 Ben Konrath <ben@bagu.org>
1343 Update gwt-log from 3.1.0 to 3.1.2.
1345 Gwt-log 3.1.0 has been marked as depreciated.
1349 2011-05-24 Ben Konrath <ben@bagu.org>
1351 Add comment to ListActivity.goTo() method.
1353 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1355 2011-05-24 Ben Konrath <ben@bagu.org>
1357 Remove FIXME in convertGdkColorToHtmlColour()
1359 The Gdk::Color value returned by libglom is 16-bits per channel on both
1360 64 and 32-bit platforms.
1362 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1364 2011-05-19 Ben Konrath <ben@bagu.org>
1366 Improve performance of initial ListView load.
1368 I removed a round trip to the server for getting the default table name
1369 and then requesting information about that table. This also removes a potential
1370 problem with the table change handler not being setup in time to receive the
1371 table change event from the ListActivity.
1373 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1374 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1375 getDefaultLayoutListTable() method. Improve comments.
1376 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
1377 getDefaultLayoutListTable() method instead of firing a table change
1378 event to get the table to load.
1379 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1380 implementation of getDefaultLayoutListTable() method.
1381 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
1384 2011-05-19 Ben Konrath <ben@bagu.org>
1386 Override toDebugString() in TableChangeEvent.
1388 This is useful to have for debugging.
1390 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1392 2011-05-19 Ben Konrath <ben@bagu.org>
1394 Add a "Back to List" link when at the DetailsPlace.
1396 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1397 Populate the CellTable based on the selected table of the ListBox if
1398 it's set otherwise use the default table. This allows the "Back to
1400 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1401 Remove Place from constructors. Add a setPlace() method. Add
1402 goToPlace() method. Set class as presenter for TableSelectionView.
1403 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1404 Use the same TableSelectionActivity when switching between the List and
1406 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1407 Subclass the new HasSelectableTablePlace. This removes some duplicate
1409 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1410 New class to represent Places that display the TableSelectionView.
1411 * src/main/java/org/glom/web/client/place/ListPlace.java:
1412 Subclass the new HasSelectableTablePlace. This removes some duplicate
1414 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1415 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1416 Add Presenter interface. Add setBackLinkVisible() method. Add
1417 setBackLink() method.
1419 2011-05-18 Ben Konrath <ben@bagu.org>
1421 Enable the "Details" buttons.
1423 Right now only an empty details view is displayed.
1425 * src/main/java/org/glom/web/client/ClientFactory.java:
1426 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1427 Add DetailsView to ClientFactory.
1428 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1429 A basic activity for the details view.
1430 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1431 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1433 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1434 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1436 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1437 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1438 unnecessary super() in constructor.
1439 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1440 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1441 really shouldn't create a new TableSelectionActivity for both the ListPlace
1442 and the DetailsPlace so this should be considered a temporary solution.
1443 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1444 New file. Represents a URL for the details view.
1445 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1446 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1447 A basic details view interface and implementation.
1448 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1449 Enable the "Details" buttons.
1451 2011-05-12 Ben Konrath <ben@bagu.org>
1453 Use a LayoutPanel with multiple display areas for main layout.
1455 This is mostly a refactor in that there are no changes from the user
1456 point of view. These changes are required so that we can swap out the list view
1457 with the details view when the user clicks the "Details" button.
1459 * src/main/java/org/glom/web/client/ClientFactory.java:
1460 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1461 OnlineGlomView. Add TableSelectionView, ListView and
1462 AuthenticationPopup.
1463 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1464 for main layout. Add display regions for main activities. Add
1465 activity manager for for main activities.
1466 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1467 file from parts of the deleted OnlineGlomActivity.
1468 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1469 New file from parts of the deleted OnlineGlomActivity.
1470 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1471 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1472 New files for app wide table change event.
1473 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1474 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1475 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1476 Activity mappers for the main activities replace the deleted app-wide
1478 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1479 Fix a spelling error in he comment.
1480 * src/main/java/org/glom/web/client/ui/ListView.java:
1481 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1482 Renamed from LayoutListView and modified for MVP. This still not a
1483 proper dumb view as prescribed by the MVP pattern but it works for now.
1484 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1485 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1486 New widget stripped out of the deleted OnlineGlomView.
1487 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1488 Remove hack that is fixed by this patch.
1490 2011-05-06 Ben Konrath <ben@bagu.org>
1492 Rename OnlineGlomPlace to ListPlace.
1494 The only change besides the rename is that url will now display #list
1495 instead of #Document.
1497 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1498 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1499 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1500 * src/main/java/org/glom/web/client/place/ListPlace.java:
1501 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1503 2011-05-06 Ben Konrath <ben@bagu.org>
1505 Use Presenter for app navigation.
1507 This is the proper way to deal with Place (URL) changes with the MVP
1510 * src/main/java/org/glom/web/client/ClientFactory.java:
1511 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1512 PlaceHistoryMapper and PlaceHistoryHandler.
1513 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1514 PlaceHistoryMapper and PlaceHistoryHandler.
1515 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1516 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1517 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1518 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1519 Add Presenter interface and setPresenter methods. Rename addHyperLink
1520 to addDocumentLink taking only the document title as a parameter.
1522 2011-04-14 Ben Konrath <ben@bagu.org>
1524 Prompt for db username/password if they haven't been set.
1526 This is implemented with a popup widget that is contained within the
1527 OnlineGlomView and managed by the OnlineGlomActivity.
1529 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1530 methods for checking and setting the database username and password.
1531 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1532 new methods for checking and setting the database username and
1534 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1535 Display authentication popup if the JDBC connection to the database
1536 has not been authenticated.
1537 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1539 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1540 for dealing with the authentication popup.
1541 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1542 Implement the methods for dealing with the authentication popup.
1543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1544 try to executed queries if the database connection hasn't been
1545 authenticated. Implement methods for checking and setting the
1546 database username and password.
1548 2011-04-12 Ben Konrath <ben@bagu.org>
1550 Make log messages a little clearer.
1552 Add a dash betweeen the document title and the table name.
1554 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1556 2011-04-12 Ben Konrath <ben@bagu.org>
1558 Protect against NPEs when cleaning up database resources.
1560 While this isn't strictly necessary because the exception is caught,
1561 not protecting against the NPEs makes it harder to find the real error
1564 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1566 2011-04-12 Ben Konrath <ben@bagu.org>
1568 Move configuration of the servlet to the constructor.
1570 The servlet will be initialized even if the database authentication
1571 information is not set or correct. I still need to add the UI for prompting
1572 the user for the authentication information when it's required.
1574 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1575 javadocs for getDocumentTitles() method.
1576 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1577 Set error message when RPC fails.
1578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1579 glom files directory from the configuration file. Try to set the
1580 database authentication information for the specific document if it's
1581 set and works otherwise try to use the global authentication
1582 information set for the directory.
1583 * src/main/resources/onlineglom.properties: Moved from
1584 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1585 Added detailed comments for the new keys.
1587 2011-04-11 Ben Konrath <ben@bagu.org>
1589 Remove unnecessary @Override in DocumentSelectionViewImpl.
1591 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1593 2011-04-11 Ben Konrath <ben@bagu.org>
1595 Remove center alignment in DocumentSelectionView.
1597 The title element is still centred but the document titles and bottom
1598 sentence are both left-aligned.
1600 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1602 2011-04-11 Ben Konrath <ben@bagu.org>
1604 Change 'Demo' naming convention to 'Document'.
1606 This is just a rename refactor with no functional changes to the code.
1608 * src/main/java/org/glom/web/client/ClientFactory.java:
1609 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1610 * src/main/java/org/glom/web/client/OnlineGlom.java:
1611 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1612 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1613 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1614 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1615 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1616 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1617 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1618 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1619 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1620 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1622 2011-04-08 Ben Konrath <ben@bagu.org>
1624 Remove FIXME from safeLongToInt() method.
1626 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1629 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1631 2011-04-08 Ben Konrath <ben@bagu.org>
1633 Display an error if no glom documents are found in the specified directory.
1635 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1636 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1637 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1638 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1640 2011-04-08 Ben Konrath <ben@bagu.org>
1642 Add copyright header to one more file ... oops.
1644 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1646 2011-04-08 Ben Konrath <ben@bagu.org>
1648 Add copyright header to files without it.
1650 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1651 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1652 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1653 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1654 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1655 * src/main/java/org/glom/web/shared/GlomField.java:
1657 2011-04-08 Ben Konrath <ben@bagu.org>
1659 Add support for accessing multiple glom documents in the servlet.
1661 This completes the demo selection functionality.
1663 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1664 document title to methods.
1665 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1666 document title to methods.
1667 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1668 Set browser window title when the activity starts. Correct name of
1669 document title variable.
1670 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1671 Set browser window title when the activity starts. Set the table
1672 selector change handler after table selector has been set. Clear the
1673 OnlineGlomView when the activity has been stopped.
1674 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1675 document title as the place token. Use "#Document:" instead of
1676 "#OnlineGlomPlace:" in the URL.
1677 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1678 Change heading to "Online Glom"
1679 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1680 document title in RPC methods.
1681 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1682 setDocumentTitle() method. Add clear() method.
1683 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1684 setDocumentTitle() method. Implement clear() method which removes the
1685 change handler on the ListBox, clears the ListBox and clears the
1687 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1688 Implement methods with document title. Keep track for the configured
1689 glom documents and their corresponding JDBC configurations in a hash
1690 table. This information is retrieved using the document title as the
1691 key in the hash table.
1692 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1693 document title field as it's no longer needed.
1695 2011-04-08 Ben Konrath <ben@bagu.org>
1697 Update the Eclipse JDT configuration.
1699 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1700 methods. Automatically add the copyright header to new files.
1702 2011-04-05 Ben Konrath <ben@bagu.org>
1704 Add new page for demo selection.
1706 This patch adds all the components required to view and start an
1707 OnlineGlom demo by clicking on the desired hyperlink. The user is
1708 able to return to the demo selection page with the browser's back
1709 button. I still need to modify the servlet to work with multiple
1710 documents so all demo links will load the file defined in the
1711 OnlineGlom.properties.
1713 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1714 This is only useful during development so we don't need to save it.
1715 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1716 get a reference to the DemoSelectionView.
1717 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1718 method to get a reference to the DemoSelectionView.
1719 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1720 default view to DemoSelectionView.
1721 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1722 to get glom document titles for glom files in a hard-coded directory.
1723 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1724 method to get glom document titles for glom files in a hard-coded
1726 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1727 Presenter for DemoSelectionView.
1728 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1729 for DemoSelectionView.
1730 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1731 Update for DemoSelectionView.
1732 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1733 Basic 'Place' implementation for the DemoSelectionView.
1734 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1735 The interface for the DemoSelectionView.
1736 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1737 The implementation of the DemoSelectionView.
1738 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1739 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1741 implementation of method to get glom document titles for glom files
1742 in a hard-coded directory.
1743 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1744 on longer being used.
1745 * src/main/webapp/glom.png: Glom logo.
1747 2011-04-05 Ben Konrath <ben@bagu.org>
1749 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1751 This is the forth and final commit of a refactor that will allow
1752 OnlineGlom to be used with multiple documents.
1754 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1755 Move RPC code from OnlineGlomViewImpl to this class.
1756 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1758 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1759 RPC code to the presenter class (the P in MVP).
1761 2011-04-04 Ben Konrath <ben@bagu.org>
1763 Start moving the existing OnlineGlom code to MVP.
1765 This work is based on the GWT MVP framework that is documented here:
1767 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1769 This is the third commit of a refactor that will allow OnlineGlom to
1770 be used with multiple documents.
1772 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1773 Interface for client factory which is used to get instances of various
1774 classes throughout the app.
1775 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1776 Implementation of client factory.
1777 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1778 initialize the MVP framework.
1779 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1780 New file. Activity manager for the main container widget. This is the
1782 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1783 Maps place (URL) to its corresponding activity.
1784 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1785 New file. This is just a place holder for a generated file.
1786 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1787 New file. Represents the URL for the main Online Glom app.
1788 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1789 for changes in LayoutListViewImpl.
1790 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1791 interface for View. Move code to OnlineGlomViewImpl class.
1792 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1793 file. Implementation of OnlineGlomView.
1794 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1795 Place resources. Use ClientFactoryImpl by default.
1797 2011-04-04 Ben Konrath <ben@bagu.org>
1799 Move View classes to their own package.
1801 This is the second commit of a refactor that will allow OnlineGlom to
1802 be used with multiple documents.
1804 * src/main/java/org/glom/web/client/OnlineGlom.java:
1805 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1806 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1808 2011-04-02 Ben Konrath <ben@bagu.org>
1810 Move UI code from the main module to its own class.
1812 This is the first commit of a refactor that will allow OnlineGlom to be
1813 used with multiple documents.
1815 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1816 references to OnlineGlom to OnlineGlomView.
1817 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1818 OnlineGlomView and instantiate it here.
1819 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1820 represents the main OnlineGlomView with one document.
1822 2011-04-01 Ben Konrath <ben@bagu.org>
1824 Fix formatting of gwt.xml and add DTD.
1826 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1828 2011-03-30 Ben Konrath <ben@bagu.org>
1830 Propperly convert gdkColor string to html colour string.
1832 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1834 2011-03-28 Ben Konrath <ben@bagu.org>
1836 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1838 This implementation matches
1839 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1840 readable and is not tied to Swig.
1842 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1844 2011-03-28 Ben Konrath <ben@bagu.org>
1846 Use read-only checkboxes for boolean field types.
1848 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1849 in the CellTable based on the field type. It currently only
1850 distinguishes between boolean and text columns but I'll need to add
1851 support for more types.
1852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1853 column type in the ColumnInfo object. Add method to convert between the
1854 glom field type enum in ColumnInfo and the glom field type in libglom.
1855 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1857 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1858 getting and setting booleans.
1860 2011-03-25 Ben Konrath <ben@bagu.org>
1862 Don't get the Date twice from the ResultSet.
1864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1866 2011-03-25 Ben Konrath <ben@bagu.org>
1868 Cleanup code in the servlet.
1870 * TODO: Remove item about row count. Add item about testing row count
1871 query with large number of rows.
1872 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1873 spelling mistakes, change method parameter to be consistent with
1876 2011-03-25 Ben Konrath <ben@bagu.org>
1878 Add server side logging with the gwt-log library.
1880 * .gitignore: Ignore the log file we're now producing.
1881 * TODO: Add a couple TODO item for logging.
1882 * pom.xml: Add gwt-log and log4j as a dependency.
1883 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1884 logging of errors, warnings and some important info.
1885 * src/main/resources/log4j.properties: New file to configure log4j.
1887 2011-03-24 Ben Konrath <ben@bagu.org>
1889 Add a disable button for the Details view.
1891 * src/main/java/org/glom/web/client/LayoutListView.java:
1893 2011-03-22 Ben Konrath <ben@bagu.org>
1895 Use a count query to get the number of rows for the list view pager.
1897 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1899 2011-03-22 Ben Konrath <ben@bagu.org>
1901 Add more TODO information about CellTable pager positioning.
1905 2011-03-19 Ben Konrath <ben@bagu.org>
1907 Add TODO item about CellTable pager positioning.
1911 2011-03-18 Ben Konrath <ben@bagu.org>
1913 Remove unneeded GlomFieldColumn class.
1915 This is just a small code cleanup.
1917 * src/main/java/org/glom/web/client/LayoutListView.java:
1919 2011-03-18 Ben Konrath <ben@bagu.org>
1921 Use cursor mode in the query that gets data for the list view.
1923 I still need to fix the potential memory problem when getting the row
1924 count for the list view.
1926 * TODO: Add note about testing memory usage with large data sets. Add
1927 item about fixing row counting with large data sets.
1928 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1929 PostgreSQL JDBC driver into cursor mode when getting data for the
1932 2011-03-15 Ben Konrath <ben@bagu.org>
1934 Remove the GWT Container from the Eclipse build classpath.
1936 The GWT dependencies are set by Maven so this isn't needed.
1940 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1942 Added some earlier mockups to git, but not to the tarball dist.
1944 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1945 Openismus. These hopefully show how we might structure the HTML so that
1946 it can be styled easily with CSS. However, we probably need to adapt them
1947 for the CSS structure that GWT dictates for common widgets.
1949 2011-03-14 Ben Konrath <ben@bagu.org>
1951 Locate OnlineGlom.properties using the ServletContext.
1953 This is required to be able to locate the file in the deployed servlet.
1955 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1956 Configure the database and glom document in in a helper method so
1957 that the ServletContext can be used to locate OnlineGlom.properties.
1958 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1959 src/main/webapp. This is the proper location for .properites files.
1961 2011-03-12 Ben Konrath <ben@bagu.org>
1963 Add note to README about why we're compiling down to obfuscated JavaScript.
1967 2011-03-11 Ben Konrath <ben@bagu.org>
1969 Use properties file to configure servlet.
1971 This allows people to change the glom file path, db username and db
1972 password without recompiling the code.
1974 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1975 * src/main/webapp/OnlineGlom.properties:
1977 2011-03-11 Ben Konrath <ben@bagu.org>
1979 Use table fields in layout list view if the layout list is not defined.
1981 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1982 Manually create a LayoutFieldVector for the query builder using the
1983 table fields when a layout list is not defined in the glom file.
1985 2011-03-11 Ben Konrath <ben@bagu.org>
1987 Only show FIXME string for images when there's an image.
1989 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1990 in this change are some small code cleanups.
1992 2011-03-11 Ben Konrath <ben@bagu.org>
1994 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1996 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1998 2011-03-11 Ben Konrath <ben@bagu.org>
2000 Correctly set the index of the default table.
2002 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2003 Correctly set the index of the default table. Add commented out example
2006 2011-03-10 Ben Konrath <ben@bagu.org>
2008 Add comment to pom.xml about the previous change.
2010 * pom.xml: Add comment about the deployment issue so that it's obvious
2011 why java-libglom is set to the provided scope.
2013 2011-03-10 Ben Konrath <ben@bagu.org>
2015 Change java-libglom dependency from compile to provided in pom.xml.
2017 Since java-libglom uses jni it can only be loaded once and therefore
2018 must be placed in $CATALINA_HOME/lib and not included in each war.
2019 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
2020 More information about this issue can be found in the Tomcat 6 release
2021 notes in the "JNI Based Applications" section:
2023 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
2025 * README: Remove note about this issue. Deployment info should really
2026 be on the wiki anyway so I'll add it right now.
2027 * pom.xml: Change java-libglom dependency from compile to provided so
2028 that it's copied in to the packaged war.
2030 2011-03-09 Ben Konrath <ben@bagu.org>
2032 Change to using a neutral locale for currency, date and time formatting.
2034 This solves the problem of currency values being represented without a
2035 space between the currency code and the number (e.g. "EUR5.89" is now
2036 represented as "EUR 5.89"). More work is required when we implement
2037 a locale preference setting.
2039 * TODO: Add note about currency formatting issues with different
2041 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2042 to using the neutral ROOT locale.
2044 2011-03-09 Ben Konrath <ben@bagu.org>
2046 Add support for currency codes that are not ISO 4217 codes.
2048 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2049 the currency code defined in the glom file when it's not 3 characters
2050 long or when Java doesn't recognize the string as an ISO 4217 code.
2052 2011-03-08 Ben Konrath <ben@bagu.org>
2054 Remove test classes, launch configurations and configuration.
2056 The test stuff was getting in the way when creating the war. To make
2057 the war file you can now do 'mvn clean package'. The packaged war file
2058 will be in the target directory.
2060 * .classpath: Remove unused classpathentry for tests and i18n.
2061 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
2062 property. Don't run test or i18n goals when packaging the war.
2063 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
2068 * OnlineGlomTest-dev.launch:
2069 * OnlineGlomTest-prod.launch:
2070 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2071 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2073 2011-03-07 Ben Konrath <ben@bagu.org>
2075 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
2077 These fixes allow me to use 'mvn deploy' to create the war file.
2079 * .classpath: This generated config has been updated by Eclipse. This
2080 change was probably triggered by me updating from Eclipse 3.6.1 to
2082 * .gitignore: Add entry to ignore the directory
2083 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
2084 * .project: The generated config has been updated by Eclipse. This
2085 change was probably triggered by me updating from Eclipse 3.6.1 to
2087 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
2088 so that Eclipse doesn't complain
2089 * pom.xml: Update to gwt-maven-plugin 2.2.0.
2090 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
2091 'tests' directory to 'client' directory. This is the new
2092 gwt-maven-plugin convension.
2093 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
2094 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
2096 2011-03-07 Ben Konrath <ben@bagu.org>
2098 Add support for horizontal alignment in the LayoutList columns.
2100 * TODO: Remove item about horizontal alignment. Add item about
2101 improvements to ColumnInfo.
2102 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
2103 alignment on the columns. Use ColumnInfo RPC object get the column
2104 title and horizontal alignment.
2105 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2106 LayoutListView creation with ColumnInfo RPC object.
2107 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
2108 a ColumnInfo object for every LayoutList columnn. Convert the
2109 FieldFormatting.HorizontalAlignment to the correct
2110 ColumnnInfo.HorizontatlAlignment with the new
2111 getColumnInfoHorizontalAlignment helper method.
2112 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
2113 to encapsulate column information like alignment and title. This
2114 could be used to set the colour instead of on a per cell field basis.
2115 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
2116 column title storage and retrieval with ColumnInfo.
2118 2011-03-04 Ben Konrath <ben@bagu.org>
2120 Add support for column sorting.
2122 * src/main/java/org/glom/web/client/LayoutListView.java: Change
2123 AsynDataProvider to be an anonymous inner class. Use new
2124 getSortedTableData RPC method when column sort is requested. Set all
2125 columns sortable and add an AsyncHandler to activate sorting in the
2127 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
2128 method getSortedTableData(). Cleanup other method signatures.
2129 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
2130 new method getSortedTableData(). Cleanup other method signatures.
2131 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2132 Implement getSortedTableData() and getTableData() methods by using a
2133 private helper method with the appropriate parameters filled in. Use
2134 user supplied sort clause when supplied, otherwise fall back to
2135 sorting by the primary key. Move destroy() method to be underneath
2136 constructor for readability. Cleanup comments.
2138 2011-03-03 Ben Konrath <ben@bagu.org>
2140 Add support for colour text and colour backgrounds to the layout list cells.
2142 Only the cell backgrounds are coloured which leaves a gap between the
2143 cells that isn't coloured. I need to figure out a way to set
2144 'style=background-colour:' on the whole column rather than just the
2147 * TODO: Add a note about colouring the background of the whole column.
2148 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
2149 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
2150 render the coloured text and backgrounds. Use GlomField[] for the row type.
2151 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
2153 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
2154 GlomField[] for the row type.
2155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
2156 GlomField[] for the row type. Set the text, text colour and background
2157 colour in the GlomField objects as specified in the glom document. Add
2158 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
2159 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
2160 the glom field text, foreground colour and background colour.
2162 2011-03-02 Ben Konrath <ben@bagu.org>
2164 Don't display hidden tables in the combo box.
2166 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
2168 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2169 code to ignore hidden tables using ArrayLists for the table names and
2171 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
2172 tableNames to use ArrayLists instead of String[]. Update getter and setter
2175 2011-03-01 Ben Konrath <ben@bagu.org>
2177 Add support for Date and Time number types.
2179 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2180 Implement formatting for Date and Time values. Change the default glom
2181 file to small business example.
2183 2011-03-01 Ben Konrath <ben@bagu.org>
2185 Add support for formatting glom types as specified in the glom file.
2187 Formatting isn't finished yet - I still need to add support for Date
2190 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
2191 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
2192 checks for null values in JDBC cleanup code and catch all exceptions
2193 instead of just SQLExceptions.
2194 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
2197 2011-03-01 Ben Konrath <ben@bagu.org>
2199 Use GWT 2.2.0 instead of 2.1.1.
2201 * pom.xml: Change GWT version numbers.
2203 2011-03-01 Ben Konrath <ben@bagu.org>
2205 A few small code cleanups.
2207 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
2209 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
2210 unnecessary object creation in constructor.
2211 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
2212 unnecessary object creation in constructor.
2214 2011-02-28 Ben Konrath <ben@bagu.org>
2216 Add file for TODO list.
2220 2011-02-18 Ben Konrath <ben@bagu.org>
2222 Enable the CellTable Pager when more than 20 rows need to be viewed.
2224 The Pager will automatically become active when the results are larger
2225 than the CellTable size which is currently set to 20 lines.
2227 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
2228 name on debug statment in RPC call in LayoutListDataProvider, add
2229 numRows parameter to LayoutListView constructor, propperly set rowCount
2231 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
2232 name on debug statment in RPC call, use LayoutListTable object in RPC
2233 calls, pass rowCount to LayoutListView.
2234 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
2235 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
2237 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
2238 interface for changes in OnlineGlomService.
2239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
2240 getLayoutListHeaders() to getLayoutListTable() and return
2241 LayoutListTable. Using this object allows me to pass other information
2242 about the LayoutList like the expected number of rows in the result set.
2243 The Connection object from the connection pool is now propperly closed.
2244 Only the requested number of lines are returned to the client in
2246 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
2247 GlomTable and add columnTitles and numRows.
2249 2011-02-18 Ben Konrath <ben@bagu.org>
2251 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
2253 This is a small performance boost. I'll use GlomTable to get the required
2254 layoutlist information.
2256 * src/main/java/org/glom/web/client/OnlineGlom.java:
2257 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2258 * src/main/java/org/glom/web/shared/GlomDocument.java:
2260 2011-02-18 Ben Konrath <ben@bagu.org>
2262 Add option to turn off formatting in JDT formatter preferences.
2264 * .settings/org.eclipse.jdt.core.prefs:
2266 2011-02-18 Ben Konrath <ben@bagu.org>
2268 Rename LayoutList to LayoutListView.
2270 I'm working towards setting things up to easily use MVP when the time
2273 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
2275 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
2278 2011-02-17 Ben Konrath <ben@bagu.org>
2280 Move LayoutListDataProvider class into LayoutList.java.
2282 * src/main/java/org/glom/web/client/LayoutList.java:
2284 2011-02-17 Ben Konrath <ben@bagu.org>
2286 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
2288 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
2290 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
2291 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
2292 from LibGlomServer.java.
2293 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2294 Rename from LibGlomServiceAsync.java.
2295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2296 Rename from LibGlomServiceImpl.java.
2297 * src/main/webapp/WEB-INF/web.xml: Update configuration.
2299 2011-02-17 Ben Konrath <ben@bagu.org>
2301 Update JDT settings.
2303 * .settings/org.eclipse.jdt.core.prefs:
2305 2011-02-17 Ben Konrath <ben@bagu.org>
2307 Move GWT-RPC objects to shared package (where they should be).
2309 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
2310 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
2311 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
2312 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
2313 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
2314 org.glom.web.shared package.
2315 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
2316 org.glom.web.shared package.
2317 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
2318 directory in compilation to javascript.
2320 2011-02-16 Ben Konrath <ben@bagu.org>
2322 Add sort clause to the sql query that grabs table information.
2324 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
2325 if one of the columns is a primary key.
2327 2011-02-16 Ben Konrath <ben@bagu.org>
2329 Disable generateAsync feature of gwt-maven.
2331 The generated interface does not correctly match the methods in LibGlomService
2332 and the generated singleton Util inner-class doesn't respect the servlet
2335 * pom.xml: Turn off generateAsync feature.
2336 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
2337 with singleton Util inner-class.
2339 2011-02-14 Ben Konrath <ben@bagu.org>
2341 Add LGPL v3 licence notices.
2343 Followed directions listed here:
2344 http://www.gnu.org/licenses/gpl-howto.html
2346 * COPYING: This file is a copy of the GPL v3.
2347 * COPYING.LESSER: This file is a copy of the LGPL v3.
2348 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
2350 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
2352 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
2354 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
2356 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
2358 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
2360 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2363 2011-02-14 Ben Konrath <ben@bagu.org>
2365 Use ArrayList instead of Array in GWT-RPC calls.
2367 Apparently this gives a slight performance boost to the compiled
2370 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
2372 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
2375 2011-02-14 Ben Konrath <ben@bagu.org>
2377 Access data from a postgres db rather than the example glom file.
2379 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
2380 compile down to obfuscated javascript.
2381 * pom.xml: Add c3p0 and postgres JDBC libraries.
2382 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
2383 using a postgres db accessed through the c3p0 connection pooling library.
2385 2011-02-14 Ben Konrath <ben@bagu.org>
2387 Update Java formatter settings.
2389 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
2391 2011-02-02 Ben Konrath <ben@bagu.org>
2393 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
2395 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
2397 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
2398 the compiled webapp directory that Eclipse uses as we're using Maven now.
2399 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
2400 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
2402 * pom.xml: Format file, change target Java version to 1.6.
2404 2011-02-02 Ben Konrath <ben@bagu.org>
2406 Add information about a deployment related issue.
2408 * README: Add Notes section with the problem outlined.
2410 2011-02-02 Ben Konrath <ben@bagu.org>
2412 Call Glom.libglom_deinit() when the servlet is shutdown.
2414 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2415 Glom.libglom_deinit() to destroy() method.
2417 2011-01-28 Ben Konrath <ben@bagu.org>
2419 Use generated Util class to get the RPC Async interface.
2421 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2423 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2424 getInstance() method to get a reference to the RPC Async interface.
2425 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2426 getInstance() method to get a reference to the RPC Async interface, remove
2427 the now unused getLibGlomServiceProxy() method.
2429 2011-01-27 Ben Konrath <ben@bagu.org>
2431 Cleanup ChangeLog entry from previous commit.
2433 * ChangeLog: Group logical changes together and add comments.
2435 2011-01-25 Ben Konrath <ben@bagu.org>
2437 Convert to gwt-maven project.
2439 * .gitignore: Update for new project structure.
2440 * README: New file with a link to the online documentation.
2441 * pom.xml: The generated maven configuration file with some tweaks.
2443 Add / update Eclipse settings. These files are a merge of the files that
2444 were generated with the gwt-maven plugin and the files we were previously
2448 * .settings/.jsdtscope:
2449 * .settings/com.google.gdt.eclipse.core.prefs:
2450 * .settings/com.google.gwt.eclipse.core.prefs:
2451 * .settings/org.eclipse.jdt.core.prefs:
2452 * .settings/org.eclipse.wst.common.component:
2453 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2454 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2455 * .settings/org.maven.ide.eclipse.prefs:
2456 * OnlineGlomTest-dev.launch:
2457 * OnlineGlomTest-prod.launch:
2459 Java source files moved from the 'src' directory to the directory structure
2461 * src/main/java/org/glom/web/client/GlomDocument.java:
2462 * src/main/java/org/glom/web/client/GlomTable.java:
2463 * src/main/java/org/glom/web/client/LayoutList.java:
2464 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2465 * src/main/java/org/glom/web/client/LibGlomService.java:
2466 * src/main/java/org/glom/web/client/OnlineGlom.java:
2467 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2469 Non-functional property file used for translations. I included this as
2470 reminder that it's something I need to sort out.
2471 * src/main/resources/org/glom/web/client/Messages.properties:
2473 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2474 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2476 The servlet configuration files moved from the 'war' directory.
2477 * src/main/webapp/OnlineGlom.css:
2478 * src/main/webapp/OnlineGlom.html:
2479 * src/main/webapp/WEB-INF/web.xml:
2481 Generated test files with most of the code commented out. I included these
2482 so that it's easy to add tests when we're ready for them.
2483 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2484 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2486 2011-01-25 Ben Konrath <ben@bagu.org>
2488 Remove unused println.
2490 * src/org/glom/web/server/LibGlomServiceImpl.java:
2492 2011-01-25 Ben Konrath <ben@bagu.org>
2494 Add project specific JDT settings.
2496 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2497 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2499 2011-01-25 Ben Konrath <ben@bagu.org>
2501 Populate celltable with example data.
2503 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2504 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2505 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2506 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2507 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2508 asynchronously gets the example data.
2509 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2510 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2511 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2512 curently selected table to be retrieved by other widgets.
2513 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2514 implement getTableData() in a hacky way. This method needs to be updated
2515 to grab information from the database when database creating is
2518 2011-01-20 Ben Konrath <ben@bagu.org>
2520 Set table headers when table dropBox changes.
2522 * src/org/glom/web/client/GlomDocument.java: Correct some method
2524 * src/org/glom/web/client/LibGlomService.java: Add method
2525 to get list layout field names.
2526 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2527 to get list layout field names.
2528 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2529 widget for list layout table.
2530 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2531 the table drop box and add new updateTable() method to asynchronously
2532 get the layout list field names for the currently selected table.
2533 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2534 implementation of getLayoutListHeaders() method.
2535 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2537 2011-01-18 Ben Konrath <ben@bagu.org>
2539 Make a listBox with table titles instead of the flexTable demo.
2541 This is the start of something more useful.
2543 * .classpath: Exclude a bunch of packages from the JVM that are
2544 getting in the way of the Eclipse content assist.
2545 * src/org/glom/web/client/GlomDocument.java:
2546 * src/org/glom/web/client/GlomTable.java:
2547 * src/org/glom/web/client/LibGlomService.java:
2548 * src/org/glom/web/client/LibGlomServiceAsync.java:
2549 * src/org/glom/web/client/OnlineGlom.java:
2550 * src/org/glom/web/server/LibGlomServiceImpl.java:
2551 * war/OnlineGlom.html:
2552 * war/WEB-INF/web.xml:
2554 211-01-13 Ben Konrath <ben@bagu.org>
2556 Update to new java-libglom API.
2558 * .gitignore: Ignore OnlineGlom.war.
2559 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2561 2010-12-20 Ben Konrath <ben@bagu.org>
2563 Add some basic style to the table listing.
2565 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2566 header, print useful error message on async callback failure.
2567 * war/OnlineGlom.css: Add style for table header, remove defaults
2568 provided by the Eclipse project wizard.
2570 2010-12-20 Ben Konrath <ben@bagu.org>
2572 Load example file from installed glom dir.
2574 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2575 provided by java-libglom to find the example file.
2577 2010-12-20 Ben Konrath <ben@bagu.org>
2579 Update Eclipse settings.
2582 * .settings/com.google.gdt.eclipse.core.prefs:
2583 * .settings/com.google.gwt.eclipse.core.prefs:
2585 2010-12-17 Ben Konrath <ben@bagu.org>
2589 * .classpath: New file.
2590 * .gitignore: New file.
2591 * .project: New file.
2592 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2593 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2594 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2595 * src/org/glom/web/client/GlomTable.java: New file.
2596 * src/org/glom/web/client/OnlineGlom.java: New file.
2597 * src/org/glom/web/client/TableNameService.java: New file.
2598 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2599 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2600 * war/OnlineGlom.css: New file.
2601 * war/OnlineGlom.html: New file.
2602 * war/WEB-INF/web.xml: New file.
2603 * war/images/glom.png: New file.