1 2011-09-23 Ben Konrath <ben@bagu.org>
3 Rename GlomField to DataItem and update associated methods.
5 This is a rename-only refactor. No functionality has been added or
8 * src/main/java/org/glom/web/client/OnlineGlomService.java:
9 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
10 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
11 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
12 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
13 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
14 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
15 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
16 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
17 * src/main/java/org/glom/web/server/database/DBAccess.java:
18 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
19 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
20 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
21 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
22 * src/main/java/org/glom/web/shared/DataItem.java:
23 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
24 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
26 2011-09-23 Ben Konrath <ben@bagu.org>
28 Rename GlomDocument to DocumentInfo and update associated methods.
30 This is a rename-only refactor. No functionality has been added or
33 * src/main/java/org/glom/web/client/OnlineGlomService.java:
34 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
35 * src/main/java/org/glom/web/client/activity/ListActivity.java:
36 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
37 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
38 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
39 * src/main/java/org/glom/web/shared/DocumentInfo.java:
41 2011-09-20 Ben Konrath <ben@bagu.org>
43 Require java-libglom 1.17.3.
45 This picks up the fix for the seg fault problem with the Scenes table
46 in the Openismus Film Manager example.
50 2011-09-20 Ben Konrath <ben@bagu.org>
52 Change the way sort clause is added for primary key when no sort clause is requested.
54 The primary key is now added to the LayoutFieldVector (fieldsToGet)
55 before the sort clause is created. When a sort clause is not requested, the
56 sort clause is created by finding the primary key in the LayoutFieldVector
59 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
61 2011-09-20 Ben Konrath <ben@bagu.org>
63 Log error message if no documents are found in the configured directory.
65 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
66 Extract the glom file extension string to a private static final class
67 variable (mostly as syntactic sugar). Accept a minor formatting change.
68 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
69 the example glom.document.directory configuration property to make it
70 more clear that it can any directory, not just the home directory.
72 2011-09-18 Ben Konrath <ben@bagu.org>
74 Add related lists to details view.
76 The related list table has support for paging and sorting just like the
77 table in the list view.
79 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
80 SQL queries for the related list tables.
81 * src/main/java/org/glom/web/client/OnlineGlomService.java:
82 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
83 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
84 Rename getList methods to getListView and add comments. Remove
85 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
86 it being unused. Add methods: getDetailsLayoutAndData(),
87 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
88 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
89 Create the layout and set the data for the fields in one async call
90 instead of two. Create related lists where appropriate.
91 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
92 for method name changes in OnlineGlomService.
93 * src/main/java/org/glom/web/client/ui/DetailsView.java:
94 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
95 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
97 * src/main/java/org/glom/web/client/ui/ListView.java:
98 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
99 tableName from setCellTable(). Create a ListViewTable instead of
101 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
102 represent a data field in the details view.
103 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
104 from addDetailsCell() to Field class. Keep track of the Fields and
105 Portals in the details view.
106 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
107 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
108 and add a method to get it. Add method to set the contents of the
110 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
111 New class for related list tables. This class has the data provider
112 for the related list table.
113 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
114 abstract class which is the base class for the ListViewTable and the
116 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
117 New class for list view tables. This class has the data provider for
119 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
120 methods for related list tables. Add more information to the
121 LayoutItemField and LayoutItemPortal DTOs.
122 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
123 Remove debugging print statement.
124 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
125 Remove debugging print statements. Add primary key field to SQL count
127 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
128 Remove unnecessary LayoutFieldVector parameter from
129 getResultSizeOfSQLQuery() method.
130 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
131 New class for related list table database access.
132 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
133 class that is a wrapper DTO for details view layout and data.
134 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
135 new 'fromField' string to this DTO.
136 * src/main/webapp/style.css: Remove bottom margin and override top
139 2011-09-15 Ben Konrath <ben@bagu.org>
141 Breakup the OnlineGlomServiceImpl class to make it more manageable.
143 This sets things up to make it easier to add the data retrieval for
144 related lists (portals). No user noticeable changes were made with
147 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
148 class has the code to retrieve the layouts and access the
149 database using the new database helper classes.
150 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
151 Most of the functionality has been removed from this class. This
152 class now represents the public interface for the client side
153 code. It also deals with configuring the servlet and cleaning
154 things up when the servlet is stopped.
155 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
156 of static methods into this utility class.
157 * src/main/java/org/glom/web/server/database/DBAccess.java:
158 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
159 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
160 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
161 These classes have the database retrieval code. The class hierarchy
162 has been setup to make it easy to reuse code for similar
165 2011-09-06 Ben Konrath <ben@bagu.org>
167 Create separate classes for list table code and the data provider.
169 As part of this refactor, I also split up the code a bit to make it
172 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
173 table code to two new classes (below).
174 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
175 with code from ListViewImpl.
176 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
177 New file with code from ListViewImpl.
179 2011-09-06 Ben Konrath <ben@bagu.org>
181 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
183 This fixes the LayoutItemPortal DTO to match the libglom layout object
186 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
188 2011-09-01 Ben Konrath <ben@bagu.org>
190 Set title of Portals in the Details View.
192 * pom.xml: Bump required version of java-libglom to 1.17.1.
193 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
194 widget creation to its own class. Add comments to constructor.
195 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
196 The code is mostly from the Group class with the title now set.
197 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
198 title of Portal. Update some comments. Fix some code formatting.
200 2011-09-01 Ben Konrath <ben@bagu.org>
202 Remove TODO comment for the flow table column width.
204 The flow table column width is working correctly and doesn't need to be
205 changed. See this mailing list post for more info:
207 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
209 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
211 2011-08-27 Ben Konrath <ben@bagu.org>
213 Add document title (database name) to top of the browser page.
215 I added the document title to the TableSelecitonView but that will
216 change if / when we add a view that doesn't require table selection.
218 * mockups/details-contacts.html:
219 * mockups/details-projects.html:
220 * mockups/listview-contacts.html:
221 * mockups/listview-projects.html:
222 * mockups/style.css: Add document title to mockups to keep things
224 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
225 sizes to account for the document title.
226 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
227 Set the document title when it has been retrieved from the server.
228 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
229 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
230 and implement setDocumentTitle(String) method.
231 * src/main/webapp/style.css: Add ID for document title style.
233 2011-08-25 Ben Konrath <ben@bagu.org>
235 Add NavigationType enum to LayoutItemPortal DTO.
237 This is the start of adding support for Portals to the Details View.
239 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
240 LayoutItem_Portal.navigation_type enum from libglom to
241 LayoutItemPortal.NavigationType enum.
242 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
243 NavigationType enum, field for storing the NavigationType and getter
246 2011-08-25 Ben Konrath <ben@bagu.org>
248 Implement the flow table layout in the Details View.
250 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
251 FlowTable to Group to account for the renamed class.
252 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
253 File. This is a container widget that implements the Glom details view
254 flow table behaviour.
255 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
256 org/glom/web/client/ui/FlowTable.java.
257 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
258 so that the size of the subgroups are a closer match to the size of
259 the Glom subgroups. This makes the flowtable layout match the layout
260 in Glom for the Music Collection example file.
262 2011-08-16 Ben Konrath <ben@bagu.org>
264 Create container element for LayoutItemPortal in Details View.
266 This will help me develop the layout for the FlowTable.
268 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
269 fieldPanel variable to detailsCell.
271 2011-08-15 Ben Konrath <ben@bagu.org>
273 Set the height of the data element in the Details View.
275 I changed the InlineLabels (text in a span element) to Labels (text in
276 a div element) so that I could set the height of the details-data
277 elements instead of the details-cell parent elements. This allows the
278 the details-data element to display the correct height if style is
279 applied that shows the height.
281 This change has the added benefit of allowing the order of the labels
282 and data elements to be changed for right-to-left languages.
284 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
285 InlineLabels to Labels.
286 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
287 InlineLabels to Labels. Set the height of the data element.
288 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
289 multiline text height in the Formatting DTO.
290 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
291 for multiline height along with getter and setter methods.
292 * src/main/webapp/style.css: Adjust style to account for the change
293 from span elements to div elements in the details cell.
295 2011-08-15 Ben Konrath <ben@bagu.org>
297 Make the List View appearance match the mockups.
299 It doesn't match exactly but it's much better than it was.
301 * mockups/listview-contacts.html: Remove unused css classes.
302 * mockups/listview-projects.html: Remove unused css classes.
303 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
304 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
305 for mainPanel instead of VerticalPanel (table). Set style name on
306 CellTable. Set style name on Details column. Right-align Details
308 * src/main/webapp/style.css: Adjust properties to match the mockups.
310 2011-08-12 Ben Konrath <ben@bagu.org>
312 Add better support for subgroups in the details view.
314 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
315 changed FlowTable constructor.
316 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
317 support for subgroups and subgroup-titles.
318 * src/main/webapp/style.css: Add CSS class for subgroups and
321 2011-08-12 Ben Konrath <ben@bagu.org>
323 Return the top level LayoutGroup title.
325 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
327 2011-08-11 Ben Konrath <ben@bagu.org>
329 Make the TableSelector header match the mockup.
331 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
332 the layout panel. Properly lineup the table selection header with
333 the list and details view.
334 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
335 margin around the details view.
336 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
337 Rename listBox variable to tableSelector. Set id for the style sheet.
338 Use a FlowPanel instead of a HorizontalPanel.
339 * src/main/webapp/style.css: Add properties to make the TableSelector
340 box match the mockups.
342 2011-07-13 Ben Konrath <ben@bagu.org>
344 Update install script for java-libglom version change.
346 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
349 2011-07-13 Ben Konrath <ben@bagu.org>
351 Add support sub-group in the details view.
353 I also removed the code that special-cased the default details view
356 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
358 I still have to make a proper flowtable.
360 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
361 Don't special-case default details view layout.
362 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
363 addLayoutField() as I'm going to use it.
364 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
365 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
367 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
368 extracted from DetailsViewImpl.GroupPanel. Add support for
370 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
371 column count when getting the details layout.
373 2011-07-12 Ben Konrath <ben@bagu.org>
375 Set browser title with database and table titles.
377 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
378 Set the browser title when the table changes and when the activity
380 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
381 title when retrieving document info (the GlomDocument object).
382 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
383 with getter and setter methods. Remove unused convenience constructor.
384 Use default code formatting.
386 2011-07-12 Ben Konrath <ben@bagu.org>
388 Ignore LayoutItemPortals in the details view.
390 I added a new DTO for the LayoutItemPortal so that I can ignore it in
393 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
394 LayoutItemPortal layout objects.
395 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
396 LayoutItemPortal objects when retrieving the details layout.
397 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
398 file. This is an empty class and just used to get type information for
401 2011-07-12 Ben Konrath <ben@bagu.org>
403 Use java-libglom 1.17.0.
407 2011-07-11 Ben Konrath <ben@bagu.org>
409 Remove "Table:" label from table selector.
411 This matches a recent change in the Glom UI.
413 * mockups/details-contacts.html:
414 * mockups/details-projects.html:
415 * mockups/listview-contacts.html:
416 * mockups/listview-projects.html: Remove the "Table:" label from the
418 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
420 2011-07-11 Ben Konrath <ben@bagu.org>
422 Add main groups to the details view.
424 This makes things look a little nicer in the details view. The next step
425 is to implement the flowtable.
427 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
428 resources from the standard gwt css theme. Standard.css is now
429 included in OnlineGlom.html so that the online glom css rules have
430 precedence over the gwt theme.
431 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
432 the whole LayoutGroup to the DetailsView instead of just the titles.
433 * src/main/java/org/glom/web/client/ui/DetailsView.java:
434 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
435 details layout with a helper class (GroupPanel). I might extract this
436 class when I make the full flowtable.
437 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
438 string as default so I don't have to worry about NPEs when processing
440 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
441 note beside OnlineGlom.gwt.xml above).
442 * src/main/webapp/style.css: Add default font-size to body to override
443 the font-size set by the standard theme. Don't use h2 tags for
444 group-title. Create new details-cell class.
446 2011-07-08 Murray Cumming <murrayc@murrayc.com>
448 ConfiguredDocument: Set the port number too.
450 * src/main/java/org/glom/web/server/ConfiguredDocument.java
451 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
452 Glom document. Presumably this worked sometimes so far because there is a
455 2011-07-08 Murray Cumming <murrayc@murrayc.com>
457 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
459 * src/main/java/org/glom/web/server/ConfiguredDocument.java
460 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
461 correct, though we should throw an exception too.
463 2011-07-08 Murray Cumming <murrayc@murrayc.com>
465 Fix a addDocuemnt typo.
467 * src/main/java/org/glom/web/shared/Documents.java
468 (Documents.addDocuemnt): Rename to addDocument().
469 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
470 (OnlineGlomServiceImpl.getDocuments): Adapt.
472 2011-07-08 Murray Cumming <murrayc@murrayc.com>
474 Slightly improved log output when connection fails.
476 * src/main/java/org/glom/web/server/ConfiguredDocument.java
477 (ConfiguredDocument.setUsernameAndPassword):
478 We don't know for sure if it' the username/password that's wrong, so
479 rephrase the message.
480 Also ouput the exception message, though it's generic in this case.
482 2011-07-08 Ben Konrath <ben@bagu.org>
486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
487 added braces to a one line if statement because the Eclipse formatter
488 was getting confused.
490 2011-07-07 Ben Konrath <ben@bagu.org>
492 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
494 These should really be two separate tasks but I counldn't get things to
495 work with GWT 2.2.0 and Eclipse 3.7.
499 * .settings/org.eclipse.jdt.core.prefs:
500 * .settings/org.eclipse.jdt.ui.prefs:
501 * .settings/org.eclipse.ltk.core.refactoring.prefs:
502 * .settings/org.eclipse.m2e.core.prefs:
503 Add new config files. Update current files. Remove references to the
504 webtools plugins as we're not using any of the webtools features.
505 * .gitignore: Add logs directory which is created when running with
507 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
508 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
509 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
511 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
513 2011-07-07 Murray Cumming <murrayc@murrayc.com>
515 onlineglom.properties: Add explanatory comments.
517 * src/main/resources/onlineglom.properties: Also change the default user
518 from ben to someuser, to avoid the risk of people thinking we just
519 stupidly hard-coded a locale path, when they see that on stderr or in a log.
521 2011-06-28 Ben Konrath <ben@bagu.org>
523 Use filename in Log for incorrect passwords.
525 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
526 getFileName(String) method to get the filename from the URI.
528 2011-06-28 Ben Konrath <ben@bagu.org>
530 Add the table name to the URL token for the ListPlace.
532 This makes things consistent between the DetailsPlace and the
533 ListPlace. It also allows the the ListPlace to be bookmarked.
535 * src/main/java/org/glom/web/client/OnlineGlomService.java:
536 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
538 Remove getDefaultListLayout(). The default layout is now returned
539 by the getListLayout() method when the table name is an empty string.
540 * src/main/java/org/glom/web/client/activity/ListActivity.java:
541 Add table name field. Change to a new ListPlace when the table
542 has been changed. Use getListLayout() for getting the default
544 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
545 Add table name field. Set the correct table name in the list box
546 when loading from bookmark. This corrects a problem for the
548 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
549 Move table name to super-class (HasSelectableTable). Move document
550 and table URL keys to super-class in HasSelectableTable.
551 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
552 Add table name field. Add Tokenizer class with URL key common to
553 the subclasses (DetailsPlace and ListPlace).
554 * src/main/java/org/glom/web/client/place/ListPlace.java:
555 Add table name. Add code to parse the URL token.
556 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
557 Update ListPlace construction with empty table name string.
558 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
559 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
560 Change setTableSelectedIndex(int) to setSelectedTableName(String).
561 Update ListPlace construction with table name string.
562 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
563 Change defaultTableName field to tableName to reflect how it's now
564 used. Update the getter and setter methods.
566 2011-06-28 Ben Konrath <ben@bagu.org>
568 Enable the table selector in the DetailsView.
570 * src/main/java/org/glom/web/client/OnlineGlomService.java:
571 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
573 Remove getDefaultDetailsLayout(). The default layout is now returned
574 by the getDetailsLayout() method when the table name is an empty
576 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
577 event handler for table change event. Change to using
578 getDetailsLayout() for the default details layout.
579 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
581 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
582 when navigating to the details place.
584 2011-06-27 Ben Konrath <ben@bagu.org>
586 Use filename based unique document ID in URL and for RPC.
588 The document ID is the glom document name with spaces (' ') replaced
589 with pluses ('+') and without the .glom extension.
591 This change is mostly a string substitution of 'documentTitle' for
592 'documentID'. The only code change is the addition of a Documents DTO to get the
593 filename to document title mappings as indicated below.
595 * src/main/java/org/glom/web/client/OnlineGlomService.java:
596 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
597 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
598 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
599 Use Documents DTO to create the document links in the document
601 * src/main/java/org/glom/web/client/activity/ListActivity.java:
602 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
603 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
604 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
605 * src/main/java/org/glom/web/client/place/ListPlace.java:
606 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
607 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
608 * src/main/java/org/glom/web/client/ui/ListView.java:
609 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
610 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
611 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
612 * src/main/java/org/glom/web/server/Log.java:
613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
614 getDocumentTitles() to getDocuments() and return the Documents DTO.
615 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
616 transferring the filename to document title mappings.
618 2011-06-25 Ben Konrath <ben@bagu.org>
620 Make the authentication popup work again.
622 This bug was introduced when I extracted ConfiguredDocument to its own class.
624 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
625 correct success / fail status in setUsernameAndPassword().
627 2011-06-25 Ben Konrath <ben@bagu.org>
629 Use filename as unique key for configuring database usernames and passwords.
631 This replaces the use of the Glom document title which could change
632 depending on the locale. Thanks to Murray Cumming for pointing out this
635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
636 * src/main/resources/onlineglom.properties:
638 2011-06-24 Ben Konrath <ben@bagu.org>
640 Pass primary key value to DetailsView.
642 This enables the DetailsView to load the correct data.
644 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
645 primary key value field and set in constructor. Pass primary key
646 value to getDetailsData().
647 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
648 variables for document title and primary key value.
649 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
650 key value to the DetailsPlace.
652 2011-06-24 Ben Konrath <ben@bagu.org>
654 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
656 This allows the primary key to be retrieved by the Details button. This
657 functionality has not been implemented yet but it's in the works.
659 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
660 the LayoutGroup result to ListView.setCellTable instead of all of its
662 * src/main/java/org/glom/web/client/ui/ListView.java:
663 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
664 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
665 get the primary key for the table.
666 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
667 index of the primary key in the LayoutGroup accounting for hidden
668 primary keys. Rename getJavaNumberFormat() to
669 convertToJavaNumberFormat() for consistency. Cleanup / add some
671 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
672 field for primary key index and a field to indicate whether the
673 primary key is hidden or not.
675 2011-06-23 Ben Konrath <ben@bagu.org>
677 Rename getTableData methods to getListData.
679 This is a rename refactor for consistency with other methods.
681 * src/main/java/org/glom/web/client/OnlineGlomService.java:
682 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
683 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
684 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
686 2011-06-23 Ben Konrath <ben@bagu.org>
688 Extract the ConfiguredDocument innerclass into its own class.
690 This makes the servlet code more object oriented.
692 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
693 from private ConfiguredDocument class in OnlineGlomServiceImpl.
694 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
695 new ConfiguredDocument class.
697 2011-06-21 Ben Konrath <ben@bagu.org>
699 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
701 This makes things more inline with how libglom works and reduces code
702 duplication. This refactor lays the groundwork for adding the primary key to
703 the LayoutGroup object.
705 * src/main/java/org/glom/web/client/OnlineGlomService.java:
706 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
708 Change method names to getListLayout and getDefaultListLayout for
709 consistency. Use LayoutGroup as the DTO for the list layout instead of
710 ColumnInfo and LayoutListTable.
711 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
712 new method names along with the LayoutGroup object for transferring the
714 * src/main/java/org/glom/web/client/ui/ListView.java:
715 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
716 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
717 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
719 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
720 Replaced with LayoutGroup.
721 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
722 expectedResultSize and defaultTableName fields which are needed for
724 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
725 type field which is needed for the list layout but will also be
726 useful for the details layout as things progress.
727 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
728 Make class abstract. Remove the unnecessary
729 getFormattingHorizontalAlignment method. Add setFormatting method.
731 2011-06-16 Ben Konrath <ben@bagu.org>
733 Add scripts for building and installing war.
735 These will help when updating OnlineGlom but they're also good
736 supplemental documentation of the build and deployment proceeding.
738 * utils/build-onlineglom-war.sh: New file.
739 * utils/install-onlineglom-war.sh: New file.
741 2011-06-16 Ben Konrath <ben@bagu.org>
743 Create wrapper class to create consistent log messages.
745 I wrapped methods in the Log class of gwt-log to add the method names
746 from the servlet and create consistent formatting of the document title
747 and table names in the log messages.
749 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
750 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
751 log methods to use methods from wrapped Log class.
753 2011-06-16 Ben Konrath <ben@bagu.org>
755 Remove superfluous conditional return.
757 Thanks to Murray Cumming for pointing this out!
759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
761 2011-06-15 Ben Konrath <ben@bagu.org>
763 Return an ArrayList of LayoutGroups for the Details layout.
765 This corrects a problem with the details layout as it can have more
766 than one top level LayoutGroup.
768 * src/main/java/org/glom/web/client/OnlineGlomService.java:
769 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
770 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
771 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
772 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
773 with ArrayList of LayoutGroups for the details view layout.
774 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
775 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
776 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
777 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
778 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
779 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
781 2011-06-14 Ben Konrath <ben@bagu.org>
783 Use cast_dynamic method to determine the libglom LayoutItem type.
785 This is better than finding the LayoutItem type by using the string
786 returned from the get_part_type_name() method.
788 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
790 2011-06-14 Ben Konrath <ben@bagu.org>
792 Add method names to log entries in the servlet.
794 This helps when tracking down deployment problems.
796 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
798 2011-06-14 Ben Konrath <ben@bagu.org>
800 Add data to the DetailsView using a hard-coded primary key value.
802 The layout and functionality of the DetailsView is not complete. This
803 is just a checkpoint so the patch doesn't get too big.
805 * src/main/java/org/glom/web/client/OnlineGlomService.java:
806 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
807 Add getDetailsData() servlet method.
808 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
809 Add RPC to getDetailsData(). Change the way the LayoutGroups and
810 LayoutFields are added to the DetailsView.
811 * src/main/java/org/glom/web/client/ui/DetailsView.java:
812 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
813 Add setData() method. Change addLayoutGroup() and addLayoutField() to
814 take the string for the title instead of the object.
815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
816 Add implementation getDetailsData() along with some private helper
818 * src/main/webapp/style.css: Add padding to details-data class. Add a
819 details-label class with the same padding as the details-data class.
821 2011-06-03 Ben Konrath <ben@bagu.org>
823 Use presenter.goTo() to change to the DetailsPlace.
825 This will make things easier when we need to open the DetailsView with
826 data specific to the row that was clicked.
828 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
830 2011-06-02 Ben Konrath <ben@bagu.org>
832 Add CSS file from mockups.
834 I'm adding this now because it's going to be useful to have when
835 developing the DetailsView. The TableSelectionView and ListView aren't
838 * src/main/webapp/OnlineGlom.html:
839 * src/main/webapp/style.css:
841 2011-06-02 Ben Konrath <ben@bagu.org>
843 Use String.isEmpty() to check for empty string.
845 * src/main/java/org/glom/web/client/activity/ListActivity.java:
847 2011-06-02 Ben Konrath <ben@bagu.org>
849 Display main layout group titles in the DetailsView.
851 This is the start of the DetailsActivity/DetailsView implementation.
853 * src/main/java/org/glom/web/client/OnlineGlomService.java:
854 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
855 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
856 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
857 Get the layout information for the details view from the server and set
858 the main layout group titles.
859 * src/main/java/org/glom/web/client/ui/DetailsView.java:
860 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
861 Add addLayoutGroup() and addLayoutField() methods. This are just
862 temporary methods for creating the the details view that will change
864 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
865 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
867 * src/main/java/org/glom/web/shared/layout/Formatting.java:
868 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
869 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
870 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
871 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
872 Data Transfer Objects that mimic the libglom object structure. These are
873 used for transferring the details layout but could also be used for
874 transferring the list layout.
876 2011-05-27 Ben Konrath <ben@bagu.org>
878 Reset the AuthenticationPopup when clearing the ListView.
880 * src/main/java/org/glom/web/client/activity/ListActivity.java:
882 2011-05-27 Ben Konrath <ben@bagu.org>
884 Fix problem with onlineglom.properties file loading.
886 The old way worked in Eclipse but not on the server. Loading the
887 onlineglom.properties file now works in Eclipse and on the server.
889 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
891 2011-05-24 Ben Konrath <ben@bagu.org>
893 Update gwt-log from 3.1.0 to 3.1.2.
895 Gwt-log 3.1.0 has been marked as depreciated.
899 2011-05-24 Ben Konrath <ben@bagu.org>
901 Add comment to ListActivity.goTo() method.
903 * src/main/java/org/glom/web/client/activity/ListActivity.java:
905 2011-05-24 Ben Konrath <ben@bagu.org>
907 Remove FIXME in convertGdkColorToHtmlColour()
909 The Gdk::Color value returned by libglom is 16-bits per channel on both
910 64 and 32-bit platforms.
912 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
914 2011-05-19 Ben Konrath <ben@bagu.org>
916 Improve performance of initial ListView load.
918 I removed a round trip to the server for getting the default table name
919 and then requesting information about that table. This also removes a potential
920 problem with the table change handler not being setup in time to receive the
921 table change event from the ListActivity.
923 * src/main/java/org/glom/web/client/OnlineGlomService.java:
924 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
925 getDefaultLayoutListTable() method. Improve comments.
926 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
927 getDefaultLayoutListTable() method instead of firing a table change
928 event to get the table to load.
929 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
930 implementation of getDefaultLayoutListTable() method.
931 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
934 2011-05-19 Ben Konrath <ben@bagu.org>
936 Override toDebugString() in TableChangeEvent.
938 This is useful to have for debugging.
940 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
942 2011-05-19 Ben Konrath <ben@bagu.org>
944 Add a "Back to List" link when at the DetailsPlace.
946 * src/main/java/org/glom/web/client/activity/ListActivity.java:
947 Populate the CellTable based on the selected table of the ListBox if
948 it's set otherwise use the default table. This allows the "Back to
950 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
951 Remove Place from constructors. Add a setPlace() method. Add
952 goToPlace() method. Set class as presenter for TableSelectionView.
953 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
954 Use the same TableSelectionActivity when switching between the List and
956 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
957 Subclass the new HasSelectableTablePlace. This removes some duplicate
959 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
960 New class to represent Places that display the TableSelectionView.
961 * src/main/java/org/glom/web/client/place/ListPlace.java:
962 Subclass the new HasSelectableTablePlace. This removes some duplicate
964 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
965 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
966 Add Presenter interface. Add setBackLinkVisible() method. Add
967 setBackLink() method.
969 2011-05-18 Ben Konrath <ben@bagu.org>
971 Enable the "Details" buttons.
973 Right now only an empty details view is displayed.
975 * src/main/java/org/glom/web/client/ClientFactory.java:
976 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
977 Add DetailsView to ClientFactory.
978 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
979 A basic activity for the details view.
980 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
981 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
983 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
984 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
986 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
987 Create a new DetailsActivity when a DetailsPlace is requested. Remove
988 unnecessary super() in constructor.
989 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
990 Create a new TableSelectionActivity when a DetailsPlace is requested. We
991 really shouldn't create a new TableSelectionActivity for both the ListPlace
992 and the DetailsPlace so this should be considered a temporary solution.
993 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
994 New file. Represents a URL for the details view.
995 * src/main/java/org/glom/web/client/ui/DetailsView.java:
996 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
997 A basic details view interface and implementation.
998 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
999 Enable the "Details" buttons.
1001 2011-05-12 Ben Konrath <ben@bagu.org>
1003 Use a LayoutPanel with multiple display areas for main layout.
1005 This is mostly a refactor in that there are no changes from the user
1006 point of view. These changes are required so that we can swap out the list view
1007 with the details view when the user clicks the "Details" button.
1009 * src/main/java/org/glom/web/client/ClientFactory.java:
1010 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1011 OnlineGlomView. Add TableSelectionView, ListView and
1012 AuthenticationPopup.
1013 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1014 for main layout. Add display regions for main activities. Add
1015 activity manager for for main activities.
1016 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1017 file from parts of the deleted OnlineGlomActivity.
1018 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1019 New file from parts of the deleted OnlineGlomActivity.
1020 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1021 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1022 New files for app wide table change event.
1023 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1024 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1025 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1026 Activity mappers for the main activities replace the deleted app-wide
1028 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1029 Fix a spelling error in he comment.
1030 * src/main/java/org/glom/web/client/ui/ListView.java:
1031 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1032 Renamed from LayoutListView and modified for MVP. This still not a
1033 proper dumb view as prescribed by the MVP pattern but it works for now.
1034 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1035 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1036 New widget stripped out of the deleted OnlineGlomView.
1037 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1038 Remove hack that is fixed by this patch.
1040 2011-05-06 Ben Konrath <ben@bagu.org>
1042 Rename OnlineGlomPlace to ListPlace.
1044 The only change besides the rename is that url will now display #list
1045 instead of #Document.
1047 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1048 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1049 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1050 * src/main/java/org/glom/web/client/place/ListPlace.java:
1051 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1053 2011-05-06 Ben Konrath <ben@bagu.org>
1055 Use Presenter for app navigation.
1057 This is the proper way to deal with Place (URL) changes with the MVP
1060 * src/main/java/org/glom/web/client/ClientFactory.java:
1061 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1062 PlaceHistoryMapper and PlaceHistoryHandler.
1063 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1064 PlaceHistoryMapper and PlaceHistoryHandler.
1065 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1066 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1067 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1068 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1069 Add Presenter interface and setPresenter methods. Rename addHyperLink
1070 to addDocumentLink taking only the document title as a parameter.
1072 2011-04-14 Ben Konrath <ben@bagu.org>
1074 Prompt for db username/password if they haven't been set.
1076 This is implemented with a popup widget that is contained within the
1077 OnlineGlomView and managed by the OnlineGlomActivity.
1079 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1080 methods for checking and setting the database username and password.
1081 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1082 new methods for checking and setting the database username and
1084 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1085 Display authentication popup if the JDBC connection to the database
1086 has not been authenticated.
1087 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1089 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1090 for dealing with the authentication popup.
1091 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1092 Implement the methods for dealing with the authentication popup.
1093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1094 try to executed queries if the database connection hasn't been
1095 authenticated. Implement methods for checking and setting the
1096 database username and password.
1098 2011-04-12 Ben Konrath <ben@bagu.org>
1100 Make log messages a little clearer.
1102 Add a dash betweeen the document title and the table name.
1104 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1106 2011-04-12 Ben Konrath <ben@bagu.org>
1108 Protect against NPEs when cleaning up database resources.
1110 While this isn't strictly necessary because the exception is caught,
1111 not protecting against the NPEs makes it harder to find the real error
1114 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1116 2011-04-12 Ben Konrath <ben@bagu.org>
1118 Move configuration of the servlet to the constructor.
1120 The servlet will be initialized even if the database authentication
1121 information is not set or correct. I still need to add the UI for prompting
1122 the user for the authentication information when it's required.
1124 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1125 javadocs for getDocumentTitles() method.
1126 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1127 Set error message when RPC fails.
1128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1129 glom files directory from the configuration file. Try to set the
1130 database authentication information for the specific document if it's
1131 set and works otherwise try to use the global authentication
1132 information set for the directory.
1133 * src/main/resources/onlineglom.properties: Moved from
1134 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1135 Added detailed comments for the new keys.
1137 2011-04-11 Ben Konrath <ben@bagu.org>
1139 Remove unnecessary @Override in DocumentSelectionViewImpl.
1141 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1143 2011-04-11 Ben Konrath <ben@bagu.org>
1145 Remove center alignment in DocumentSelectionView.
1147 The title element is still centred but the document titles and bottom
1148 sentence are both left-aligned.
1150 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1152 2011-04-11 Ben Konrath <ben@bagu.org>
1154 Change 'Demo' naming convention to 'Document'.
1156 This is just a rename refactor with no functional changes to the code.
1158 * src/main/java/org/glom/web/client/ClientFactory.java:
1159 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1160 * src/main/java/org/glom/web/client/OnlineGlom.java:
1161 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1162 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1163 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1164 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1165 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1166 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1167 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1168 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1169 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1170 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1172 2011-04-08 Ben Konrath <ben@bagu.org>
1174 Remove FIXME from safeLongToInt() method.
1176 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1179 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1181 2011-04-08 Ben Konrath <ben@bagu.org>
1183 Display an error if no glom documents are found in the specified directory.
1185 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1186 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1187 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1190 2011-04-08 Ben Konrath <ben@bagu.org>
1192 Add copyright header to one more file ... oops.
1194 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1196 2011-04-08 Ben Konrath <ben@bagu.org>
1198 Add copyright header to files without it.
1200 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1201 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1202 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1203 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1204 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1205 * src/main/java/org/glom/web/shared/GlomField.java:
1207 2011-04-08 Ben Konrath <ben@bagu.org>
1209 Add support for accessing multiple glom documents in the servlet.
1211 This completes the demo selection functionality.
1213 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1214 document title to methods.
1215 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1216 document title to methods.
1217 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1218 Set browser window title when the activity starts. Correct name of
1219 document title variable.
1220 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1221 Set browser window title when the activity starts. Set the table
1222 selector change handler after table selector has been set. Clear the
1223 OnlineGlomView when the activity has been stopped.
1224 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1225 document title as the place token. Use "#Document:" instead of
1226 "#OnlineGlomPlace:" in the URL.
1227 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1228 Change heading to "Online Glom"
1229 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1230 document title in RPC methods.
1231 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1232 setDocumentTitle() method. Add clear() method.
1233 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1234 setDocumentTitle() method. Implement clear() method which removes the
1235 change handler on the ListBox, clears the ListBox and clears the
1237 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1238 Implement methods with document title. Keep track for the configured
1239 glom documents and their corresponding JDBC configurations in a hash
1240 table. This information is retrieved using the document title as the
1241 key in the hash table.
1242 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1243 document title field as it's no longer needed.
1245 2011-04-08 Ben Konrath <ben@bagu.org>
1247 Update the Eclipse JDT configuration.
1249 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1250 methods. Automatically add the copyright header to new files.
1252 2011-04-05 Ben Konrath <ben@bagu.org>
1254 Add new page for demo selection.
1256 This patch adds all the components required to view and start an
1257 OnlineGlom demo by clicking on the desired hyperlink. The user is
1258 able to return to the demo selection page with the browser's back
1259 button. I still need to modify the servlet to work with multiple
1260 documents so all demo links will load the file defined in the
1261 OnlineGlom.properties.
1263 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1264 This is only useful during development so we don't need to save it.
1265 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1266 get a reference to the DemoSelectionView.
1267 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1268 method to get a reference to the DemoSelectionView.
1269 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1270 default view to DemoSelectionView.
1271 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1272 to get glom document titles for glom files in a hard-coded directory.
1273 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1274 method to get glom document titles for glom files in a hard-coded
1276 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1277 Presenter for DemoSelectionView.
1278 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1279 for DemoSelectionView.
1280 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1281 Update for DemoSelectionView.
1282 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1283 Basic 'Place' implementation for the DemoSelectionView.
1284 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1285 The interface for the DemoSelectionView.
1286 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1287 The implementation of the DemoSelectionView.
1288 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1289 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1290 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1291 implementation of method to get glom document titles for glom files
1292 in a hard-coded directory.
1293 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1294 on longer being used.
1295 * src/main/webapp/glom.png: Glom logo.
1297 2011-04-05 Ben Konrath <ben@bagu.org>
1299 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1301 This is the forth and final commit of a refactor that will allow
1302 OnlineGlom to be used with multiple documents.
1304 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1305 Move RPC code from OnlineGlomViewImpl to this class.
1306 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1308 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1309 RPC code to the presenter class (the P in MVP).
1311 2011-04-04 Ben Konrath <ben@bagu.org>
1313 Start moving the existing OnlineGlom code to MVP.
1315 This work is based on the GWT MVP framework that is documented here:
1317 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1319 This is the third commit of a refactor that will allow OnlineGlom to
1320 be used with multiple documents.
1322 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1323 Interface for client factory which is used to get instances of various
1324 classes throughout the app.
1325 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1326 Implementation of client factory.
1327 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1328 initialize the MVP framework.
1329 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1330 New file. Activity manager for the main container widget. This is the
1332 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1333 Maps place (URL) to its corresponding activity.
1334 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1335 New file. This is just a place holder for a generated file.
1336 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1337 New file. Represents the URL for the main Online Glom app.
1338 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1339 for changes in LayoutListViewImpl.
1340 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1341 interface for View. Move code to OnlineGlomViewImpl class.
1342 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1343 file. Implementation of OnlineGlomView.
1344 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1345 Place resources. Use ClientFactoryImpl by default.
1347 2011-04-04 Ben Konrath <ben@bagu.org>
1349 Move View classes to their own package.
1351 This is the second commit of a refactor that will allow OnlineGlom to
1352 be used with multiple documents.
1354 * src/main/java/org/glom/web/client/OnlineGlom.java:
1355 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1356 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1358 2011-04-02 Ben Konrath <ben@bagu.org>
1360 Move UI code from the main module to its own class.
1362 This is the first commit of a refactor that will allow OnlineGlom to be
1363 used with multiple documents.
1365 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1366 references to OnlineGlom to OnlineGlomView.
1367 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1368 OnlineGlomView and instantiate it here.
1369 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1370 represents the main OnlineGlomView with one document.
1372 2011-04-01 Ben Konrath <ben@bagu.org>
1374 Fix formatting of gwt.xml and add DTD.
1376 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1378 2011-03-30 Ben Konrath <ben@bagu.org>
1380 Propperly convert gdkColor string to html colour string.
1382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1384 2011-03-28 Ben Konrath <ben@bagu.org>
1386 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1388 This implementation matches
1389 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1390 readable and is not tied to Swig.
1392 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1394 2011-03-28 Ben Konrath <ben@bagu.org>
1396 Use read-only checkboxes for boolean field types.
1398 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1399 in the CellTable based on the field type. It currently only
1400 distinguishes between boolean and text columns but I'll need to add
1401 support for more types.
1402 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1403 column type in the ColumnInfo object. Add method to convert between the
1404 glom field type enum in ColumnInfo and the glom field type in libglom.
1405 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1407 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1408 getting and setting booleans.
1410 2011-03-25 Ben Konrath <ben@bagu.org>
1412 Don't get the Date twice from the ResultSet.
1414 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1416 2011-03-25 Ben Konrath <ben@bagu.org>
1418 Cleanup code in the servlet.
1420 * TODO: Remove item about row count. Add item about testing row count
1421 query with large number of rows.
1422 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1423 spelling mistakes, change method parameter to be consistent with
1426 2011-03-25 Ben Konrath <ben@bagu.org>
1428 Add server side logging with the gwt-log library.
1430 * .gitignore: Ignore the log file we're now producing.
1431 * TODO: Add a couple TODO item for logging.
1432 * pom.xml: Add gwt-log and log4j as a dependency.
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1434 logging of errors, warnings and some important info.
1435 * src/main/resources/log4j.properties: New file to configure log4j.
1437 2011-03-24 Ben Konrath <ben@bagu.org>
1439 Add a disable button for the Details view.
1441 * src/main/java/org/glom/web/client/LayoutListView.java:
1443 2011-03-22 Ben Konrath <ben@bagu.org>
1445 Use a count query to get the number of rows for the list view pager.
1447 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1449 2011-03-22 Ben Konrath <ben@bagu.org>
1451 Add more TODO information about CellTable pager positioning.
1455 2011-03-19 Ben Konrath <ben@bagu.org>
1457 Add TODO item about CellTable pager positioning.
1461 2011-03-18 Ben Konrath <ben@bagu.org>
1463 Remove unneeded GlomFieldColumn class.
1465 This is just a small code cleanup.
1467 * src/main/java/org/glom/web/client/LayoutListView.java:
1469 2011-03-18 Ben Konrath <ben@bagu.org>
1471 Use cursor mode in the query that gets data for the list view.
1473 I still need to fix the potential memory problem when getting the row
1474 count for the list view.
1476 * TODO: Add note about testing memory usage with large data sets. Add
1477 item about fixing row counting with large data sets.
1478 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1479 PostgreSQL JDBC driver into cursor mode when getting data for the
1482 2011-03-15 Ben Konrath <ben@bagu.org>
1484 Remove the GWT Container from the Eclipse build classpath.
1486 The GWT dependencies are set by Maven so this isn't needed.
1490 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1492 Added some earlier mockups to git, but not to the tarball dist.
1494 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1495 Openismus. These hopefully show how we might structure the HTML so that
1496 it can be styled easily with CSS. However, we probably need to adapt them
1497 for the CSS structure that GWT dictates for common widgets.
1499 2011-03-14 Ben Konrath <ben@bagu.org>
1501 Locate OnlineGlom.properties using the ServletContext.
1503 This is required to be able to locate the file in the deployed servlet.
1505 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1506 Configure the database and glom document in in a helper method so
1507 that the ServletContext can be used to locate OnlineGlom.properties.
1508 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1509 src/main/webapp. This is the proper location for .properites files.
1511 2011-03-12 Ben Konrath <ben@bagu.org>
1513 Add note to README about why we're compiling down to obfuscated JavaScript.
1517 2011-03-11 Ben Konrath <ben@bagu.org>
1519 Use properties file to configure servlet.
1521 This allows people to change the glom file path, db username and db
1522 password without recompiling the code.
1524 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1525 * src/main/webapp/OnlineGlom.properties:
1527 2011-03-11 Ben Konrath <ben@bagu.org>
1529 Use table fields in layout list view if the layout list is not defined.
1531 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1532 Manually create a LayoutFieldVector for the query builder using the
1533 table fields when a layout list is not defined in the glom file.
1535 2011-03-11 Ben Konrath <ben@bagu.org>
1537 Only show FIXME string for images when there's an image.
1539 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1540 in this change are some small code cleanups.
1542 2011-03-11 Ben Konrath <ben@bagu.org>
1544 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1548 2011-03-11 Ben Konrath <ben@bagu.org>
1550 Correctly set the index of the default table.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1553 Correctly set the index of the default table. Add commented out example
1556 2011-03-10 Ben Konrath <ben@bagu.org>
1558 Add comment to pom.xml about the previous change.
1560 * pom.xml: Add comment about the deployment issue so that it's obvious
1561 why java-libglom is set to the provided scope.
1563 2011-03-10 Ben Konrath <ben@bagu.org>
1565 Change java-libglom dependency from compile to provided in pom.xml.
1567 Since java-libglom uses jni it can only be loaded once and therefore
1568 must be placed in $CATALINA_HOME/lib and not included in each war.
1569 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1570 More information about this issue can be found in the Tomcat 6 release
1571 notes in the "JNI Based Applications" section:
1573 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1575 * README: Remove note about this issue. Deployment info should really
1576 be on the wiki anyway so I'll add it right now.
1577 * pom.xml: Change java-libglom dependency from compile to provided so
1578 that it's copied in to the packaged war.
1580 2011-03-09 Ben Konrath <ben@bagu.org>
1582 Change to using a neutral locale for currency, date and time formatting.
1584 This solves the problem of currency values being represented without a
1585 space between the currency code and the number (e.g. "EUR5.89" is now
1586 represented as "EUR 5.89"). More work is required when we implement
1587 a locale preference setting.
1589 * TODO: Add note about currency formatting issues with different
1591 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1592 to using the neutral ROOT locale.
1594 2011-03-09 Ben Konrath <ben@bagu.org>
1596 Add support for currency codes that are not ISO 4217 codes.
1598 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1599 the currency code defined in the glom file when it's not 3 characters
1600 long or when Java doesn't recognize the string as an ISO 4217 code.
1602 2011-03-08 Ben Konrath <ben@bagu.org>
1604 Remove test classes, launch configurations and configuration.
1606 The test stuff was getting in the way when creating the war. To make
1607 the war file you can now do 'mvn clean package'. The packaged war file
1608 will be in the target directory.
1610 * .classpath: Remove unused classpathentry for tests and i18n.
1611 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1612 property. Don't run test or i18n goals when packaging the war.
1613 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1618 * OnlineGlomTest-dev.launch:
1619 * OnlineGlomTest-prod.launch:
1620 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1621 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1623 2011-03-07 Ben Konrath <ben@bagu.org>
1625 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1627 These fixes allow me to use 'mvn deploy' to create the war file.
1629 * .classpath: This generated config has been updated by Eclipse. This
1630 change was probably triggered by me updating from Eclipse 3.6.1 to
1632 * .gitignore: Add entry to ignore the directory
1633 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1634 * .project: The generated config has been updated by Eclipse. This
1635 change was probably triggered by me updating from Eclipse 3.6.1 to
1637 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1638 so that Eclipse doesn't complain
1639 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1640 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1641 'tests' directory to 'client' directory. This is the new
1642 gwt-maven-plugin convension.
1643 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1644 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1646 2011-03-07 Ben Konrath <ben@bagu.org>
1648 Add support for horizontal alignment in the LayoutList columns.
1650 * TODO: Remove item about horizontal alignment. Add item about
1651 improvements to ColumnInfo.
1652 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1653 alignment on the columns. Use ColumnInfo RPC object get the column
1654 title and horizontal alignment.
1655 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1656 LayoutListView creation with ColumnInfo RPC object.
1657 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1658 a ColumnInfo object for every LayoutList columnn. Convert the
1659 FieldFormatting.HorizontalAlignment to the correct
1660 ColumnnInfo.HorizontatlAlignment with the new
1661 getColumnInfoHorizontalAlignment helper method.
1662 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1663 to encapsulate column information like alignment and title. This
1664 could be used to set the colour instead of on a per cell field basis.
1665 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1666 column title storage and retrieval with ColumnInfo.
1668 2011-03-04 Ben Konrath <ben@bagu.org>
1670 Add support for column sorting.
1672 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1673 AsynDataProvider to be an anonymous inner class. Use new
1674 getSortedTableData RPC method when column sort is requested. Set all
1675 columns sortable and add an AsyncHandler to activate sorting in the
1677 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1678 method getSortedTableData(). Cleanup other method signatures.
1679 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1680 new method getSortedTableData(). Cleanup other method signatures.
1681 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1682 Implement getSortedTableData() and getTableData() methods by using a
1683 private helper method with the appropriate parameters filled in. Use
1684 user supplied sort clause when supplied, otherwise fall back to
1685 sorting by the primary key. Move destroy() method to be underneath
1686 constructor for readability. Cleanup comments.
1688 2011-03-03 Ben Konrath <ben@bagu.org>
1690 Add support for colour text and colour backgrounds to the layout list cells.
1692 Only the cell backgrounds are coloured which leaves a gap between the
1693 cells that isn't coloured. I need to figure out a way to set
1694 'style=background-colour:' on the whole column rather than just the
1697 * TODO: Add a note about colouring the background of the whole column.
1698 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1699 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1700 render the coloured text and backgrounds. Use GlomField[] for the row type.
1701 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1703 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1704 GlomField[] for the row type.
1705 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1706 GlomField[] for the row type. Set the text, text colour and background
1707 colour in the GlomField objects as specified in the glom document. Add
1708 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1709 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1710 the glom field text, foreground colour and background colour.
1712 2011-03-02 Ben Konrath <ben@bagu.org>
1714 Don't display hidden tables in the combo box.
1716 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1718 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1719 code to ignore hidden tables using ArrayLists for the table names and
1721 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1722 tableNames to use ArrayLists instead of String[]. Update getter and setter
1725 2011-03-01 Ben Konrath <ben@bagu.org>
1727 Add support for Date and Time number types.
1729 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1730 Implement formatting for Date and Time values. Change the default glom
1731 file to small business example.
1733 2011-03-01 Ben Konrath <ben@bagu.org>
1735 Add support for formatting glom types as specified in the glom file.
1737 Formatting isn't finished yet - I still need to add support for Date
1740 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1741 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1742 checks for null values in JDBC cleanup code and catch all exceptions
1743 instead of just SQLExceptions.
1744 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1747 2011-03-01 Ben Konrath <ben@bagu.org>
1749 Use GWT 2.2.0 instead of 2.1.1.
1751 * pom.xml: Change GWT version numbers.
1753 2011-03-01 Ben Konrath <ben@bagu.org>
1755 A few small code cleanups.
1757 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1759 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1760 unnecessary object creation in constructor.
1761 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1762 unnecessary object creation in constructor.
1764 2011-02-28 Ben Konrath <ben@bagu.org>
1766 Add file for TODO list.
1770 2011-02-18 Ben Konrath <ben@bagu.org>
1772 Enable the CellTable Pager when more than 20 rows need to be viewed.
1774 The Pager will automatically become active when the results are larger
1775 than the CellTable size which is currently set to 20 lines.
1777 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1778 name on debug statment in RPC call in LayoutListDataProvider, add
1779 numRows parameter to LayoutListView constructor, propperly set rowCount
1781 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1782 name on debug statment in RPC call, use LayoutListTable object in RPC
1783 calls, pass rowCount to LayoutListView.
1784 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1785 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1787 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1788 interface for changes in OnlineGlomService.
1789 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1790 getLayoutListHeaders() to getLayoutListTable() and return
1791 LayoutListTable. Using this object allows me to pass other information
1792 about the LayoutList like the expected number of rows in the result set.
1793 The Connection object from the connection pool is now propperly closed.
1794 Only the requested number of lines are returned to the client in
1796 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1797 GlomTable and add columnTitles and numRows.
1799 2011-02-18 Ben Konrath <ben@bagu.org>
1801 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1803 This is a small performance boost. I'll use GlomTable to get the required
1804 layoutlist information.
1806 * src/main/java/org/glom/web/client/OnlineGlom.java:
1807 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1808 * src/main/java/org/glom/web/shared/GlomDocument.java:
1810 2011-02-18 Ben Konrath <ben@bagu.org>
1812 Add option to turn off formatting in JDT formatter preferences.
1814 * .settings/org.eclipse.jdt.core.prefs:
1816 2011-02-18 Ben Konrath <ben@bagu.org>
1818 Rename LayoutList to LayoutListView.
1820 I'm working towards setting things up to easily use MVP when the time
1823 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1825 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1828 2011-02-17 Ben Konrath <ben@bagu.org>
1830 Move LayoutListDataProvider class into LayoutList.java.
1832 * src/main/java/org/glom/web/client/LayoutList.java:
1834 2011-02-17 Ben Konrath <ben@bagu.org>
1836 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1838 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1840 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1841 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1842 from LibGlomServer.java.
1843 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1844 Rename from LibGlomServiceAsync.java.
1845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1846 Rename from LibGlomServiceImpl.java.
1847 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1849 2011-02-17 Ben Konrath <ben@bagu.org>
1851 Update JDT settings.
1853 * .settings/org.eclipse.jdt.core.prefs:
1855 2011-02-17 Ben Konrath <ben@bagu.org>
1857 Move GWT-RPC objects to shared package (where they should be).
1859 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1860 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1861 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1862 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1863 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1864 org.glom.web.shared package.
1865 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1866 org.glom.web.shared package.
1867 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1868 directory in compilation to javascript.
1870 2011-02-16 Ben Konrath <ben@bagu.org>
1872 Add sort clause to the sql query that grabs table information.
1874 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1875 if one of the columns is a primary key.
1877 2011-02-16 Ben Konrath <ben@bagu.org>
1879 Disable generateAsync feature of gwt-maven.
1881 The generated interface does not correctly match the methods in LibGlomService
1882 and the generated singleton Util inner-class doesn't respect the servlet
1885 * pom.xml: Turn off generateAsync feature.
1886 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1887 with singleton Util inner-class.
1889 2011-02-14 Ben Konrath <ben@bagu.org>
1891 Add LGPL v3 licence notices.
1893 Followed directions listed here:
1894 http://www.gnu.org/licenses/gpl-howto.html
1896 * COPYING: This file is a copy of the GPL v3.
1897 * COPYING.LESSER: This file is a copy of the LGPL v3.
1898 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1900 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1902 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1904 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1906 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1908 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1910 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1913 2011-02-14 Ben Konrath <ben@bagu.org>
1915 Use ArrayList instead of Array in GWT-RPC calls.
1917 Apparently this gives a slight performance boost to the compiled
1920 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1922 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1925 2011-02-14 Ben Konrath <ben@bagu.org>
1927 Access data from a postgres db rather than the example glom file.
1929 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1930 compile down to obfuscated javascript.
1931 * pom.xml: Add c3p0 and postgres JDBC libraries.
1932 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1933 using a postgres db accessed through the c3p0 connection pooling library.
1935 2011-02-14 Ben Konrath <ben@bagu.org>
1937 Update Java formatter settings.
1939 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1941 2011-02-02 Ben Konrath <ben@bagu.org>
1943 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1945 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1947 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1948 the compiled webapp directory that Eclipse uses as we're using Maven now.
1949 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1950 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1952 * pom.xml: Format file, change target Java version to 1.6.
1954 2011-02-02 Ben Konrath <ben@bagu.org>
1956 Add information about a deployment related issue.
1958 * README: Add Notes section with the problem outlined.
1960 2011-02-02 Ben Konrath <ben@bagu.org>
1962 Call Glom.libglom_deinit() when the servlet is shutdown.
1964 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1965 Glom.libglom_deinit() to destroy() method.
1967 2011-01-28 Ben Konrath <ben@bagu.org>
1969 Use generated Util class to get the RPC Async interface.
1971 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1973 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1974 getInstance() method to get a reference to the RPC Async interface.
1975 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1976 getInstance() method to get a reference to the RPC Async interface, remove
1977 the now unused getLibGlomServiceProxy() method.
1979 2011-01-27 Ben Konrath <ben@bagu.org>
1981 Cleanup ChangeLog entry from previous commit.
1983 * ChangeLog: Group logical changes together and add comments.
1985 2011-01-25 Ben Konrath <ben@bagu.org>
1987 Convert to gwt-maven project.
1989 * .gitignore: Update for new project structure.
1990 * README: New file with a link to the online documentation.
1991 * pom.xml: The generated maven configuration file with some tweaks.
1993 Add / update Eclipse settings. These files are a merge of the files that
1994 were generated with the gwt-maven plugin and the files we were previously
1998 * .settings/.jsdtscope:
1999 * .settings/com.google.gdt.eclipse.core.prefs:
2000 * .settings/com.google.gwt.eclipse.core.prefs:
2001 * .settings/org.eclipse.jdt.core.prefs:
2002 * .settings/org.eclipse.wst.common.component:
2003 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2004 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2005 * .settings/org.maven.ide.eclipse.prefs:
2006 * OnlineGlomTest-dev.launch:
2007 * OnlineGlomTest-prod.launch:
2009 Java source files moved from the 'src' directory to the directory structure
2011 * src/main/java/org/glom/web/client/GlomDocument.java:
2012 * src/main/java/org/glom/web/client/GlomTable.java:
2013 * src/main/java/org/glom/web/client/LayoutList.java:
2014 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2015 * src/main/java/org/glom/web/client/LibGlomService.java:
2016 * src/main/java/org/glom/web/client/OnlineGlom.java:
2017 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2019 Non-functional property file used for translations. I included this as
2020 reminder that it's something I need to sort out.
2021 * src/main/resources/org/glom/web/client/Messages.properties:
2023 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2024 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2026 The servlet configuration files moved from the 'war' directory.
2027 * src/main/webapp/OnlineGlom.css:
2028 * src/main/webapp/OnlineGlom.html:
2029 * src/main/webapp/WEB-INF/web.xml:
2031 Generated test files with most of the code commented out. I included these
2032 so that it's easy to add tests when we're ready for them.
2033 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2034 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2036 2011-01-25 Ben Konrath <ben@bagu.org>
2038 Remove unused println.
2040 * src/org/glom/web/server/LibGlomServiceImpl.java:
2042 2011-01-25 Ben Konrath <ben@bagu.org>
2044 Add project specific JDT settings.
2046 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2047 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2049 2011-01-25 Ben Konrath <ben@bagu.org>
2051 Populate celltable with example data.
2053 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2054 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2055 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2056 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2057 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2058 asynchronously gets the example data.
2059 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2060 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2061 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2062 curently selected table to be retrieved by other widgets.
2063 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2064 implement getTableData() in a hacky way. This method needs to be updated
2065 to grab information from the database when database creating is
2068 2011-01-20 Ben Konrath <ben@bagu.org>
2070 Set table headers when table dropBox changes.
2072 * src/org/glom/web/client/GlomDocument.java: Correct some method
2074 * src/org/glom/web/client/LibGlomService.java: Add method
2075 to get list layout field names.
2076 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2077 to get list layout field names.
2078 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2079 widget for list layout table.
2080 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2081 the table drop box and add new updateTable() method to asynchronously
2082 get the layout list field names for the currently selected table.
2083 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2084 implementation of getLayoutListHeaders() method.
2085 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2087 2011-01-18 Ben Konrath <ben@bagu.org>
2089 Make a listBox with table titles instead of the flexTable demo.
2091 This is the start of something more useful.
2093 * .classpath: Exclude a bunch of packages from the JVM that are
2094 getting in the way of the Eclipse content assist.
2095 * src/org/glom/web/client/GlomDocument.java:
2096 * src/org/glom/web/client/GlomTable.java:
2097 * src/org/glom/web/client/LibGlomService.java:
2098 * src/org/glom/web/client/LibGlomServiceAsync.java:
2099 * src/org/glom/web/client/OnlineGlom.java:
2100 * src/org/glom/web/server/LibGlomServiceImpl.java:
2101 * war/OnlineGlom.html:
2102 * war/WEB-INF/web.xml:
2104 211-01-13 Ben Konrath <ben@bagu.org>
2106 Update to new java-libglom API.
2108 * .gitignore: Ignore OnlineGlom.war.
2109 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2111 2010-12-20 Ben Konrath <ben@bagu.org>
2113 Add some basic style to the table listing.
2115 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2116 header, print useful error message on async callback failure.
2117 * war/OnlineGlom.css: Add style for table header, remove defaults
2118 provided by the Eclipse project wizard.
2120 2010-12-20 Ben Konrath <ben@bagu.org>
2122 Load example file from installed glom dir.
2124 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2125 provided by java-libglom to find the example file.
2127 2010-12-20 Ben Konrath <ben@bagu.org>
2129 Update Eclipse settings.
2132 * .settings/com.google.gdt.eclipse.core.prefs:
2133 * .settings/com.google.gwt.eclipse.core.prefs:
2135 2010-12-17 Ben Konrath <ben@bagu.org>
2139 * .classpath: New file.
2140 * .gitignore: New file.
2141 * .project: New file.
2142 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2143 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2144 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2145 * src/org/glom/web/client/GlomTable.java: New file.
2146 * src/org/glom/web/client/OnlineGlom.java: New file.
2147 * src/org/glom/web/client/TableNameService.java: New file.
2148 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2149 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2150 * war/OnlineGlom.css: New file.
2151 * war/OnlineGlom.html: New file.
2152 * war/WEB-INF/web.xml: New file.
2153 * war/images/glom.png: New file.