1 2011-09-26 Ben Konrath <ben@bagu.org>
3 Accept Eclipse formatting for OnlineGlomServiceAsync.
5 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
7 2011-09-26 Ben Konrath <ben@bagu.org>
9 Don't use the ListDBAccess classes to get the primary key layout information.
11 This was causing a bug where the wrong index for the hidden primary key
12 was being sent to the client.
14 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Find the
15 primary key while creating the LayoutGroup DTO. Create a
16 LayoutItemField DTO for hidden primary keys. Don't use the
17 RelatedListDBAccess because it was only used for getting the primary
19 * src/main/java/org/glom/web/server/database/DBAccess.java: Change the
20 access modifier from public to protected for getPrimaryKeyField() and
21 getPrimaryKeyLayoutItemField().
22 * src/main/java/org/glom/web/server/database/ListDBAccess.java: Remove
23 abstract method getExpectedResultSize() because RelatedListDBAccess
24 doesn't have enough info to implement it.
25 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
26 Remove @Override for getExpectedResultSize().
27 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
28 Remove method getExpectedResultSize().
30 2011-09-23 Ben Konrath <ben@bagu.org>
32 Log which layout (list or details) the ignored item is from.
34 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
36 2011-09-23 Ben Konrath <ben@bagu.org>
38 Remove annotations that turn off code formatting in DataItem.
40 * src/main/java/org/glom/web/shared/DataItem.java:
42 2011-09-23 Ben Konrath <ben@bagu.org>
44 Rename GlomField to DataItem and update associated methods.
46 This is a rename-only refactor. No functionality has been added or
49 * src/main/java/org/glom/web/client/OnlineGlomService.java:
50 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
51 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
52 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
53 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
54 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
55 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
56 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
57 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
58 * src/main/java/org/glom/web/server/database/DBAccess.java:
59 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
60 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
61 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
62 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
63 * src/main/java/org/glom/web/shared/DataItem.java:
64 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
65 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
67 2011-09-23 Ben Konrath <ben@bagu.org>
69 Rename GlomDocument to DocumentInfo and update associated methods.
71 This is a rename-only refactor. No functionality has been added or
74 * src/main/java/org/glom/web/client/OnlineGlomService.java:
75 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
76 * src/main/java/org/glom/web/client/activity/ListActivity.java:
77 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
78 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
79 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
80 * src/main/java/org/glom/web/shared/DocumentInfo.java:
82 2011-09-20 Ben Konrath <ben@bagu.org>
84 Require java-libglom 1.17.3.
86 This picks up the fix for the seg fault problem with the Scenes table
87 in the Openismus Film Manager example.
91 2011-09-20 Ben Konrath <ben@bagu.org>
93 Change the way sort clause is added for primary key when no sort clause is requested.
95 The primary key is now added to the LayoutFieldVector (fieldsToGet)
96 before the sort clause is created. When a sort clause is not requested, the
97 sort clause is created by finding the primary key in the LayoutFieldVector
100 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
102 2011-09-20 Ben Konrath <ben@bagu.org>
104 Log error message if no documents are found in the configured directory.
106 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
107 Extract the glom file extension string to a private static final class
108 variable (mostly as syntactic sugar). Accept a minor formatting change.
109 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
110 the example glom.document.directory configuration property to make it
111 more clear that it can any directory, not just the home directory.
113 2011-09-18 Ben Konrath <ben@bagu.org>
115 Add related lists to details view.
117 The related list table has support for paging and sorting just like the
118 table in the list view.
120 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
121 SQL queries for the related list tables.
122 * src/main/java/org/glom/web/client/OnlineGlomService.java:
123 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
124 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
125 Rename getList methods to getListView and add comments. Remove
126 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
127 it being unused. Add methods: getDetailsLayoutAndData(),
128 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
129 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
130 Create the layout and set the data for the fields in one async call
131 instead of two. Create related lists where appropriate.
132 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
133 for method name changes in OnlineGlomService.
134 * src/main/java/org/glom/web/client/ui/DetailsView.java:
135 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
136 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
138 * src/main/java/org/glom/web/client/ui/ListView.java:
139 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
140 tableName from setCellTable(). Create a ListViewTable instead of
142 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
143 represent a data field in the details view.
144 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
145 from addDetailsCell() to Field class. Keep track of the Fields and
146 Portals in the details view.
147 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
148 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
149 and add a method to get it. Add method to set the contents of the
151 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
152 New class for related list tables. This class has the data provider
153 for the related list table.
154 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
155 abstract class which is the base class for the ListViewTable and the
157 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
158 New class for list view tables. This class has the data provider for
160 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
161 methods for related list tables. Add more information to the
162 LayoutItemField and LayoutItemPortal DTOs.
163 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
164 Remove debugging print statement.
165 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
166 Remove debugging print statements. Add primary key field to SQL count
168 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
169 Remove unnecessary LayoutFieldVector parameter from
170 getResultSizeOfSQLQuery() method.
171 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
172 New class for related list table database access.
173 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
174 class that is a wrapper DTO for details view layout and data.
175 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
176 new 'fromField' string to this DTO.
177 * src/main/webapp/style.css: Remove bottom margin and override top
180 2011-09-15 Ben Konrath <ben@bagu.org>
182 Breakup the OnlineGlomServiceImpl class to make it more manageable.
184 This sets things up to make it easier to add the data retrieval for
185 related lists (portals). No user noticeable changes were made with
188 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
189 class has the code to retrieve the layouts and access the
190 database using the new database helper classes.
191 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
192 Most of the functionality has been removed from this class. This
193 class now represents the public interface for the client side
194 code. It also deals with configuring the servlet and cleaning
195 things up when the servlet is stopped.
196 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
197 of static methods into this utility class.
198 * src/main/java/org/glom/web/server/database/DBAccess.java:
199 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
200 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
201 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
202 These classes have the database retrieval code. The class hierarchy
203 has been setup to make it easy to reuse code for similar
206 2011-09-06 Ben Konrath <ben@bagu.org>
208 Create separate classes for list table code and the data provider.
210 As part of this refactor, I also split up the code a bit to make it
213 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
214 table code to two new classes (below).
215 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
216 with code from ListViewImpl.
217 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
218 New file with code from ListViewImpl.
220 2011-09-06 Ben Konrath <ben@bagu.org>
222 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
224 This fixes the LayoutItemPortal DTO to match the libglom layout object
227 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
229 2011-09-01 Ben Konrath <ben@bagu.org>
231 Set title of Portals in the Details View.
233 * pom.xml: Bump required version of java-libglom to 1.17.1.
234 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
235 widget creation to its own class. Add comments to constructor.
236 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
237 The code is mostly from the Group class with the title now set.
238 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
239 title of Portal. Update some comments. Fix some code formatting.
241 2011-09-01 Ben Konrath <ben@bagu.org>
243 Remove TODO comment for the flow table column width.
245 The flow table column width is working correctly and doesn't need to be
246 changed. See this mailing list post for more info:
248 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
250 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
252 2011-08-27 Ben Konrath <ben@bagu.org>
254 Add document title (database name) to top of the browser page.
256 I added the document title to the TableSelecitonView but that will
257 change if / when we add a view that doesn't require table selection.
259 * mockups/details-contacts.html:
260 * mockups/details-projects.html:
261 * mockups/listview-contacts.html:
262 * mockups/listview-projects.html:
263 * mockups/style.css: Add document title to mockups to keep things
265 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
266 sizes to account for the document title.
267 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
268 Set the document title when it has been retrieved from the server.
269 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
270 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
271 and implement setDocumentTitle(String) method.
272 * src/main/webapp/style.css: Add ID for document title style.
274 2011-08-25 Ben Konrath <ben@bagu.org>
276 Add NavigationType enum to LayoutItemPortal DTO.
278 This is the start of adding support for Portals to the Details View.
280 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
281 LayoutItem_Portal.navigation_type enum from libglom to
282 LayoutItemPortal.NavigationType enum.
283 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
284 NavigationType enum, field for storing the NavigationType and getter
287 2011-08-25 Ben Konrath <ben@bagu.org>
289 Implement the flow table layout in the Details View.
291 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
292 FlowTable to Group to account for the renamed class.
293 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
294 File. This is a container widget that implements the Glom details view
295 flow table behaviour.
296 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
297 org/glom/web/client/ui/FlowTable.java.
298 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
299 so that the size of the subgroups are a closer match to the size of
300 the Glom subgroups. This makes the flowtable layout match the layout
301 in Glom for the Music Collection example file.
303 2011-08-16 Ben Konrath <ben@bagu.org>
305 Create container element for LayoutItemPortal in Details View.
307 This will help me develop the layout for the FlowTable.
309 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
310 fieldPanel variable to detailsCell.
312 2011-08-15 Ben Konrath <ben@bagu.org>
314 Set the height of the data element in the Details View.
316 I changed the InlineLabels (text in a span element) to Labels (text in
317 a div element) so that I could set the height of the details-data
318 elements instead of the details-cell parent elements. This allows the
319 the details-data element to display the correct height if style is
320 applied that shows the height.
322 This change has the added benefit of allowing the order of the labels
323 and data elements to be changed for right-to-left languages.
325 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
326 InlineLabels to Labels.
327 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
328 InlineLabels to Labels. Set the height of the data element.
329 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
330 multiline text height in the Formatting DTO.
331 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
332 for multiline height along with getter and setter methods.
333 * src/main/webapp/style.css: Adjust style to account for the change
334 from span elements to div elements in the details cell.
336 2011-08-15 Ben Konrath <ben@bagu.org>
338 Make the List View appearance match the mockups.
340 It doesn't match exactly but it's much better than it was.
342 * mockups/listview-contacts.html: Remove unused css classes.
343 * mockups/listview-projects.html: Remove unused css classes.
344 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
345 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
346 for mainPanel instead of VerticalPanel (table). Set style name on
347 CellTable. Set style name on Details column. Right-align Details
349 * src/main/webapp/style.css: Adjust properties to match the mockups.
351 2011-08-12 Ben Konrath <ben@bagu.org>
353 Add better support for subgroups in the details view.
355 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
356 changed FlowTable constructor.
357 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
358 support for subgroups and subgroup-titles.
359 * src/main/webapp/style.css: Add CSS class for subgroups and
362 2011-08-12 Ben Konrath <ben@bagu.org>
364 Return the top level LayoutGroup title.
366 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
368 2011-08-11 Ben Konrath <ben@bagu.org>
370 Make the TableSelector header match the mockup.
372 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
373 the layout panel. Properly lineup the table selection header with
374 the list and details view.
375 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
376 margin around the details view.
377 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
378 Rename listBox variable to tableSelector. Set id for the style sheet.
379 Use a FlowPanel instead of a HorizontalPanel.
380 * src/main/webapp/style.css: Add properties to make the TableSelector
381 box match the mockups.
383 2011-07-13 Ben Konrath <ben@bagu.org>
385 Update install script for java-libglom version change.
387 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
390 2011-07-13 Ben Konrath <ben@bagu.org>
392 Add support sub-group in the details view.
394 I also removed the code that special-cased the default details view
397 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
399 I still have to make a proper flowtable.
401 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
402 Don't special-case default details view layout.
403 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
404 addLayoutField() as I'm going to use it.
405 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
406 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
408 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
409 extracted from DetailsViewImpl.GroupPanel. Add support for
411 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
412 column count when getting the details layout.
414 2011-07-12 Ben Konrath <ben@bagu.org>
416 Set browser title with database and table titles.
418 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
419 Set the browser title when the table changes and when the activity
421 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
422 title when retrieving document info (the GlomDocument object).
423 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
424 with getter and setter methods. Remove unused convenience constructor.
425 Use default code formatting.
427 2011-07-12 Ben Konrath <ben@bagu.org>
429 Ignore LayoutItemPortals in the details view.
431 I added a new DTO for the LayoutItemPortal so that I can ignore it in
434 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
435 LayoutItemPortal layout objects.
436 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
437 LayoutItemPortal objects when retrieving the details layout.
438 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
439 file. This is an empty class and just used to get type information for
442 2011-07-12 Ben Konrath <ben@bagu.org>
444 Use java-libglom 1.17.0.
448 2011-07-11 Ben Konrath <ben@bagu.org>
450 Remove "Table:" label from table selector.
452 This matches a recent change in the Glom UI.
454 * mockups/details-contacts.html:
455 * mockups/details-projects.html:
456 * mockups/listview-contacts.html:
457 * mockups/listview-projects.html: Remove the "Table:" label from the
459 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
461 2011-07-11 Ben Konrath <ben@bagu.org>
463 Add main groups to the details view.
465 This makes things look a little nicer in the details view. The next step
466 is to implement the flowtable.
468 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
469 resources from the standard gwt css theme. Standard.css is now
470 included in OnlineGlom.html so that the online glom css rules have
471 precedence over the gwt theme.
472 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
473 the whole LayoutGroup to the DetailsView instead of just the titles.
474 * src/main/java/org/glom/web/client/ui/DetailsView.java:
475 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
476 details layout with a helper class (GroupPanel). I might extract this
477 class when I make the full flowtable.
478 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
479 string as default so I don't have to worry about NPEs when processing
481 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
482 note beside OnlineGlom.gwt.xml above).
483 * src/main/webapp/style.css: Add default font-size to body to override
484 the font-size set by the standard theme. Don't use h2 tags for
485 group-title. Create new details-cell class.
487 2011-07-08 Murray Cumming <murrayc@murrayc.com>
489 ConfiguredDocument: Set the port number too.
491 * src/main/java/org/glom/web/server/ConfiguredDocument.java
492 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
493 Glom document. Presumably this worked sometimes so far because there is a
496 2011-07-08 Murray Cumming <murrayc@murrayc.com>
498 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
500 * src/main/java/org/glom/web/server/ConfiguredDocument.java
501 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
502 correct, though we should throw an exception too.
504 2011-07-08 Murray Cumming <murrayc@murrayc.com>
506 Fix a addDocuemnt typo.
508 * src/main/java/org/glom/web/shared/Documents.java
509 (Documents.addDocuemnt): Rename to addDocument().
510 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
511 (OnlineGlomServiceImpl.getDocuments): Adapt.
513 2011-07-08 Murray Cumming <murrayc@murrayc.com>
515 Slightly improved log output when connection fails.
517 * src/main/java/org/glom/web/server/ConfiguredDocument.java
518 (ConfiguredDocument.setUsernameAndPassword):
519 We don't know for sure if it' the username/password that's wrong, so
520 rephrase the message.
521 Also ouput the exception message, though it's generic in this case.
523 2011-07-08 Ben Konrath <ben@bagu.org>
527 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
528 added braces to a one line if statement because the Eclipse formatter
529 was getting confused.
531 2011-07-07 Ben Konrath <ben@bagu.org>
533 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
535 These should really be two separate tasks but I counldn't get things to
536 work with GWT 2.2.0 and Eclipse 3.7.
540 * .settings/org.eclipse.jdt.core.prefs:
541 * .settings/org.eclipse.jdt.ui.prefs:
542 * .settings/org.eclipse.ltk.core.refactoring.prefs:
543 * .settings/org.eclipse.m2e.core.prefs:
544 Add new config files. Update current files. Remove references to the
545 webtools plugins as we're not using any of the webtools features.
546 * .gitignore: Add logs directory which is created when running with
548 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
549 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
550 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
552 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
554 2011-07-07 Murray Cumming <murrayc@murrayc.com>
556 onlineglom.properties: Add explanatory comments.
558 * src/main/resources/onlineglom.properties: Also change the default user
559 from ben to someuser, to avoid the risk of people thinking we just
560 stupidly hard-coded a locale path, when they see that on stderr or in a log.
562 2011-06-28 Ben Konrath <ben@bagu.org>
564 Use filename in Log for incorrect passwords.
566 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
567 getFileName(String) method to get the filename from the URI.
569 2011-06-28 Ben Konrath <ben@bagu.org>
571 Add the table name to the URL token for the ListPlace.
573 This makes things consistent between the DetailsPlace and the
574 ListPlace. It also allows the the ListPlace to be bookmarked.
576 * src/main/java/org/glom/web/client/OnlineGlomService.java:
577 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
578 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
579 Remove getDefaultListLayout(). The default layout is now returned
580 by the getListLayout() method when the table name is an empty string.
581 * src/main/java/org/glom/web/client/activity/ListActivity.java:
582 Add table name field. Change to a new ListPlace when the table
583 has been changed. Use getListLayout() for getting the default
585 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
586 Add table name field. Set the correct table name in the list box
587 when loading from bookmark. This corrects a problem for the
589 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
590 Move table name to super-class (HasSelectableTable). Move document
591 and table URL keys to super-class in HasSelectableTable.
592 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
593 Add table name field. Add Tokenizer class with URL key common to
594 the subclasses (DetailsPlace and ListPlace).
595 * src/main/java/org/glom/web/client/place/ListPlace.java:
596 Add table name. Add code to parse the URL token.
597 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
598 Update ListPlace construction with empty table name string.
599 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
600 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
601 Change setTableSelectedIndex(int) to setSelectedTableName(String).
602 Update ListPlace construction with table name string.
603 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
604 Change defaultTableName field to tableName to reflect how it's now
605 used. Update the getter and setter methods.
607 2011-06-28 Ben Konrath <ben@bagu.org>
609 Enable the table selector in the DetailsView.
611 * src/main/java/org/glom/web/client/OnlineGlomService.java:
612 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
613 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
614 Remove getDefaultDetailsLayout(). The default layout is now returned
615 by the getDetailsLayout() method when the table name is an empty
617 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
618 event handler for table change event. Change to using
619 getDetailsLayout() for the default details layout.
620 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
622 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
623 when navigating to the details place.
625 2011-06-27 Ben Konrath <ben@bagu.org>
627 Use filename based unique document ID in URL and for RPC.
629 The document ID is the glom document name with spaces (' ') replaced
630 with pluses ('+') and without the .glom extension.
632 This change is mostly a string substitution of 'documentTitle' for
633 'documentID'. The only code change is the addition of a Documents DTO to get the
634 filename to document title mappings as indicated below.
636 * src/main/java/org/glom/web/client/OnlineGlomService.java:
637 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
638 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
639 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
640 Use Documents DTO to create the document links in the document
642 * src/main/java/org/glom/web/client/activity/ListActivity.java:
643 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
644 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
645 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
646 * src/main/java/org/glom/web/client/place/ListPlace.java:
647 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
648 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
649 * src/main/java/org/glom/web/client/ui/ListView.java:
650 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
651 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
652 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
653 * src/main/java/org/glom/web/server/Log.java:
654 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
655 getDocumentTitles() to getDocuments() and return the Documents DTO.
656 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
657 transferring the filename to document title mappings.
659 2011-06-25 Ben Konrath <ben@bagu.org>
661 Make the authentication popup work again.
663 This bug was introduced when I extracted ConfiguredDocument to its own class.
665 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
666 correct success / fail status in setUsernameAndPassword().
668 2011-06-25 Ben Konrath <ben@bagu.org>
670 Use filename as unique key for configuring database usernames and passwords.
672 This replaces the use of the Glom document title which could change
673 depending on the locale. Thanks to Murray Cumming for pointing out this
676 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
677 * src/main/resources/onlineglom.properties:
679 2011-06-24 Ben Konrath <ben@bagu.org>
681 Pass primary key value to DetailsView.
683 This enables the DetailsView to load the correct data.
685 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
686 primary key value field and set in constructor. Pass primary key
687 value to getDetailsData().
688 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
689 variables for document title and primary key value.
690 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
691 key value to the DetailsPlace.
693 2011-06-24 Ben Konrath <ben@bagu.org>
695 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
697 This allows the primary key to be retrieved by the Details button. This
698 functionality has not been implemented yet but it's in the works.
700 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
701 the LayoutGroup result to ListView.setCellTable instead of all of its
703 * src/main/java/org/glom/web/client/ui/ListView.java:
704 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
705 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
706 get the primary key for the table.
707 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
708 index of the primary key in the LayoutGroup accounting for hidden
709 primary keys. Rename getJavaNumberFormat() to
710 convertToJavaNumberFormat() for consistency. Cleanup / add some
712 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
713 field for primary key index and a field to indicate whether the
714 primary key is hidden or not.
716 2011-06-23 Ben Konrath <ben@bagu.org>
718 Rename getTableData methods to getListData.
720 This is a rename refactor for consistency with other methods.
722 * src/main/java/org/glom/web/client/OnlineGlomService.java:
723 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
724 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
725 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
727 2011-06-23 Ben Konrath <ben@bagu.org>
729 Extract the ConfiguredDocument innerclass into its own class.
731 This makes the servlet code more object oriented.
733 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
734 from private ConfiguredDocument class in OnlineGlomServiceImpl.
735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
736 new ConfiguredDocument class.
738 2011-06-21 Ben Konrath <ben@bagu.org>
740 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
742 This makes things more inline with how libglom works and reduces code
743 duplication. This refactor lays the groundwork for adding the primary key to
744 the LayoutGroup object.
746 * src/main/java/org/glom/web/client/OnlineGlomService.java:
747 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
748 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
749 Change method names to getListLayout and getDefaultListLayout for
750 consistency. Use LayoutGroup as the DTO for the list layout instead of
751 ColumnInfo and LayoutListTable.
752 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
753 new method names along with the LayoutGroup object for transferring the
755 * src/main/java/org/glom/web/client/ui/ListView.java:
756 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
757 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
758 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
760 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
761 Replaced with LayoutGroup.
762 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
763 expectedResultSize and defaultTableName fields which are needed for
765 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
766 type field which is needed for the list layout but will also be
767 useful for the details layout as things progress.
768 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
769 Make class abstract. Remove the unnecessary
770 getFormattingHorizontalAlignment method. Add setFormatting method.
772 2011-06-16 Ben Konrath <ben@bagu.org>
774 Add scripts for building and installing war.
776 These will help when updating OnlineGlom but they're also good
777 supplemental documentation of the build and deployment proceeding.
779 * utils/build-onlineglom-war.sh: New file.
780 * utils/install-onlineglom-war.sh: New file.
782 2011-06-16 Ben Konrath <ben@bagu.org>
784 Create wrapper class to create consistent log messages.
786 I wrapped methods in the Log class of gwt-log to add the method names
787 from the servlet and create consistent formatting of the document title
788 and table names in the log messages.
790 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
791 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
792 log methods to use methods from wrapped Log class.
794 2011-06-16 Ben Konrath <ben@bagu.org>
796 Remove superfluous conditional return.
798 Thanks to Murray Cumming for pointing this out!
800 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
802 2011-06-15 Ben Konrath <ben@bagu.org>
804 Return an ArrayList of LayoutGroups for the Details layout.
806 This corrects a problem with the details layout as it can have more
807 than one top level LayoutGroup.
809 * src/main/java/org/glom/web/client/OnlineGlomService.java:
810 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
811 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
812 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
813 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
814 with ArrayList of LayoutGroups for the details view layout.
815 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
816 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
817 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
818 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
819 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
820 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
822 2011-06-14 Ben Konrath <ben@bagu.org>
824 Use cast_dynamic method to determine the libglom LayoutItem type.
826 This is better than finding the LayoutItem type by using the string
827 returned from the get_part_type_name() method.
829 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
831 2011-06-14 Ben Konrath <ben@bagu.org>
833 Add method names to log entries in the servlet.
835 This helps when tracking down deployment problems.
837 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
839 2011-06-14 Ben Konrath <ben@bagu.org>
841 Add data to the DetailsView using a hard-coded primary key value.
843 The layout and functionality of the DetailsView is not complete. This
844 is just a checkpoint so the patch doesn't get too big.
846 * src/main/java/org/glom/web/client/OnlineGlomService.java:
847 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
848 Add getDetailsData() servlet method.
849 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
850 Add RPC to getDetailsData(). Change the way the LayoutGroups and
851 LayoutFields are added to the DetailsView.
852 * src/main/java/org/glom/web/client/ui/DetailsView.java:
853 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
854 Add setData() method. Change addLayoutGroup() and addLayoutField() to
855 take the string for the title instead of the object.
856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
857 Add implementation getDetailsData() along with some private helper
859 * src/main/webapp/style.css: Add padding to details-data class. Add a
860 details-label class with the same padding as the details-data class.
862 2011-06-03 Ben Konrath <ben@bagu.org>
864 Use presenter.goTo() to change to the DetailsPlace.
866 This will make things easier when we need to open the DetailsView with
867 data specific to the row that was clicked.
869 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
871 2011-06-02 Ben Konrath <ben@bagu.org>
873 Add CSS file from mockups.
875 I'm adding this now because it's going to be useful to have when
876 developing the DetailsView. The TableSelectionView and ListView aren't
879 * src/main/webapp/OnlineGlom.html:
880 * src/main/webapp/style.css:
882 2011-06-02 Ben Konrath <ben@bagu.org>
884 Use String.isEmpty() to check for empty string.
886 * src/main/java/org/glom/web/client/activity/ListActivity.java:
888 2011-06-02 Ben Konrath <ben@bagu.org>
890 Display main layout group titles in the DetailsView.
892 This is the start of the DetailsActivity/DetailsView implementation.
894 * src/main/java/org/glom/web/client/OnlineGlomService.java:
895 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
896 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
897 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
898 Get the layout information for the details view from the server and set
899 the main layout group titles.
900 * src/main/java/org/glom/web/client/ui/DetailsView.java:
901 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
902 Add addLayoutGroup() and addLayoutField() methods. This are just
903 temporary methods for creating the the details view that will change
905 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
906 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
908 * src/main/java/org/glom/web/shared/layout/Formatting.java:
909 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
910 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
911 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
912 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
913 Data Transfer Objects that mimic the libglom object structure. These are
914 used for transferring the details layout but could also be used for
915 transferring the list layout.
917 2011-05-27 Ben Konrath <ben@bagu.org>
919 Reset the AuthenticationPopup when clearing the ListView.
921 * src/main/java/org/glom/web/client/activity/ListActivity.java:
923 2011-05-27 Ben Konrath <ben@bagu.org>
925 Fix problem with onlineglom.properties file loading.
927 The old way worked in Eclipse but not on the server. Loading the
928 onlineglom.properties file now works in Eclipse and on the server.
930 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
932 2011-05-24 Ben Konrath <ben@bagu.org>
934 Update gwt-log from 3.1.0 to 3.1.2.
936 Gwt-log 3.1.0 has been marked as depreciated.
940 2011-05-24 Ben Konrath <ben@bagu.org>
942 Add comment to ListActivity.goTo() method.
944 * src/main/java/org/glom/web/client/activity/ListActivity.java:
946 2011-05-24 Ben Konrath <ben@bagu.org>
948 Remove FIXME in convertGdkColorToHtmlColour()
950 The Gdk::Color value returned by libglom is 16-bits per channel on both
951 64 and 32-bit platforms.
953 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
955 2011-05-19 Ben Konrath <ben@bagu.org>
957 Improve performance of initial ListView load.
959 I removed a round trip to the server for getting the default table name
960 and then requesting information about that table. This also removes a potential
961 problem with the table change handler not being setup in time to receive the
962 table change event from the ListActivity.
964 * src/main/java/org/glom/web/client/OnlineGlomService.java:
965 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
966 getDefaultLayoutListTable() method. Improve comments.
967 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
968 getDefaultLayoutListTable() method instead of firing a table change
969 event to get the table to load.
970 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
971 implementation of getDefaultLayoutListTable() method.
972 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
975 2011-05-19 Ben Konrath <ben@bagu.org>
977 Override toDebugString() in TableChangeEvent.
979 This is useful to have for debugging.
981 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
983 2011-05-19 Ben Konrath <ben@bagu.org>
985 Add a "Back to List" link when at the DetailsPlace.
987 * src/main/java/org/glom/web/client/activity/ListActivity.java:
988 Populate the CellTable based on the selected table of the ListBox if
989 it's set otherwise use the default table. This allows the "Back to
991 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
992 Remove Place from constructors. Add a setPlace() method. Add
993 goToPlace() method. Set class as presenter for TableSelectionView.
994 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
995 Use the same TableSelectionActivity when switching between the List and
997 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
998 Subclass the new HasSelectableTablePlace. This removes some duplicate
1000 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1001 New class to represent Places that display the TableSelectionView.
1002 * src/main/java/org/glom/web/client/place/ListPlace.java:
1003 Subclass the new HasSelectableTablePlace. This removes some duplicate
1005 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1006 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1007 Add Presenter interface. Add setBackLinkVisible() method. Add
1008 setBackLink() method.
1010 2011-05-18 Ben Konrath <ben@bagu.org>
1012 Enable the "Details" buttons.
1014 Right now only an empty details view is displayed.
1016 * src/main/java/org/glom/web/client/ClientFactory.java:
1017 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1018 Add DetailsView to ClientFactory.
1019 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1020 A basic activity for the details view.
1021 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1022 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
1024 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1025 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
1027 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1028 Create a new DetailsActivity when a DetailsPlace is requested. Remove
1029 unnecessary super() in constructor.
1030 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1031 Create a new TableSelectionActivity when a DetailsPlace is requested. We
1032 really shouldn't create a new TableSelectionActivity for both the ListPlace
1033 and the DetailsPlace so this should be considered a temporary solution.
1034 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1035 New file. Represents a URL for the details view.
1036 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1037 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1038 A basic details view interface and implementation.
1039 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1040 Enable the "Details" buttons.
1042 2011-05-12 Ben Konrath <ben@bagu.org>
1044 Use a LayoutPanel with multiple display areas for main layout.
1046 This is mostly a refactor in that there are no changes from the user
1047 point of view. These changes are required so that we can swap out the list view
1048 with the details view when the user clicks the "Details" button.
1050 * src/main/java/org/glom/web/client/ClientFactory.java:
1051 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1052 OnlineGlomView. Add TableSelectionView, ListView and
1053 AuthenticationPopup.
1054 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1055 for main layout. Add display regions for main activities. Add
1056 activity manager for for main activities.
1057 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1058 file from parts of the deleted OnlineGlomActivity.
1059 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1060 New file from parts of the deleted OnlineGlomActivity.
1061 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1062 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1063 New files for app wide table change event.
1064 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1065 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1066 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1067 Activity mappers for the main activities replace the deleted app-wide
1069 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1070 Fix a spelling error in he comment.
1071 * src/main/java/org/glom/web/client/ui/ListView.java:
1072 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1073 Renamed from LayoutListView and modified for MVP. This still not a
1074 proper dumb view as prescribed by the MVP pattern but it works for now.
1075 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1076 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1077 New widget stripped out of the deleted OnlineGlomView.
1078 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1079 Remove hack that is fixed by this patch.
1081 2011-05-06 Ben Konrath <ben@bagu.org>
1083 Rename OnlineGlomPlace to ListPlace.
1085 The only change besides the rename is that url will now display #list
1086 instead of #Document.
1088 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1089 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1090 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1091 * src/main/java/org/glom/web/client/place/ListPlace.java:
1092 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1094 2011-05-06 Ben Konrath <ben@bagu.org>
1096 Use Presenter for app navigation.
1098 This is the proper way to deal with Place (URL) changes with the MVP
1101 * src/main/java/org/glom/web/client/ClientFactory.java:
1102 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1103 PlaceHistoryMapper and PlaceHistoryHandler.
1104 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1105 PlaceHistoryMapper and PlaceHistoryHandler.
1106 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1107 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1108 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1109 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1110 Add Presenter interface and setPresenter methods. Rename addHyperLink
1111 to addDocumentLink taking only the document title as a parameter.
1113 2011-04-14 Ben Konrath <ben@bagu.org>
1115 Prompt for db username/password if they haven't been set.
1117 This is implemented with a popup widget that is contained within the
1118 OnlineGlomView and managed by the OnlineGlomActivity.
1120 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1121 methods for checking and setting the database username and password.
1122 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1123 new methods for checking and setting the database username and
1125 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1126 Display authentication popup if the JDBC connection to the database
1127 has not been authenticated.
1128 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1130 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1131 for dealing with the authentication popup.
1132 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1133 Implement the methods for dealing with the authentication popup.
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1135 try to executed queries if the database connection hasn't been
1136 authenticated. Implement methods for checking and setting the
1137 database username and password.
1139 2011-04-12 Ben Konrath <ben@bagu.org>
1141 Make log messages a little clearer.
1143 Add a dash betweeen the document title and the table name.
1145 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1147 2011-04-12 Ben Konrath <ben@bagu.org>
1149 Protect against NPEs when cleaning up database resources.
1151 While this isn't strictly necessary because the exception is caught,
1152 not protecting against the NPEs makes it harder to find the real error
1155 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1157 2011-04-12 Ben Konrath <ben@bagu.org>
1159 Move configuration of the servlet to the constructor.
1161 The servlet will be initialized even if the database authentication
1162 information is not set or correct. I still need to add the UI for prompting
1163 the user for the authentication information when it's required.
1165 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1166 javadocs for getDocumentTitles() method.
1167 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1168 Set error message when RPC fails.
1169 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1170 glom files directory from the configuration file. Try to set the
1171 database authentication information for the specific document if it's
1172 set and works otherwise try to use the global authentication
1173 information set for the directory.
1174 * src/main/resources/onlineglom.properties: Moved from
1175 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1176 Added detailed comments for the new keys.
1178 2011-04-11 Ben Konrath <ben@bagu.org>
1180 Remove unnecessary @Override in DocumentSelectionViewImpl.
1182 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1184 2011-04-11 Ben Konrath <ben@bagu.org>
1186 Remove center alignment in DocumentSelectionView.
1188 The title element is still centred but the document titles and bottom
1189 sentence are both left-aligned.
1191 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1193 2011-04-11 Ben Konrath <ben@bagu.org>
1195 Change 'Demo' naming convention to 'Document'.
1197 This is just a rename refactor with no functional changes to the code.
1199 * src/main/java/org/glom/web/client/ClientFactory.java:
1200 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1201 * src/main/java/org/glom/web/client/OnlineGlom.java:
1202 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1203 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1204 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1205 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1206 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1207 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1208 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1209 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1210 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1211 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1213 2011-04-08 Ben Konrath <ben@bagu.org>
1215 Remove FIXME from safeLongToInt() method.
1217 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1220 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1222 2011-04-08 Ben Konrath <ben@bagu.org>
1224 Display an error if no glom documents are found in the specified directory.
1226 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1227 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1228 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1229 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1231 2011-04-08 Ben Konrath <ben@bagu.org>
1233 Add copyright header to one more file ... oops.
1235 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1237 2011-04-08 Ben Konrath <ben@bagu.org>
1239 Add copyright header to files without it.
1241 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1242 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1243 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1244 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1245 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1246 * src/main/java/org/glom/web/shared/GlomField.java:
1248 2011-04-08 Ben Konrath <ben@bagu.org>
1250 Add support for accessing multiple glom documents in the servlet.
1252 This completes the demo selection functionality.
1254 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1255 document title to methods.
1256 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1257 document title to methods.
1258 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1259 Set browser window title when the activity starts. Correct name of
1260 document title variable.
1261 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1262 Set browser window title when the activity starts. Set the table
1263 selector change handler after table selector has been set. Clear the
1264 OnlineGlomView when the activity has been stopped.
1265 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1266 document title as the place token. Use "#Document:" instead of
1267 "#OnlineGlomPlace:" in the URL.
1268 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1269 Change heading to "Online Glom"
1270 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1271 document title in RPC methods.
1272 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1273 setDocumentTitle() method. Add clear() method.
1274 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1275 setDocumentTitle() method. Implement clear() method which removes the
1276 change handler on the ListBox, clears the ListBox and clears the
1278 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1279 Implement methods with document title. Keep track for the configured
1280 glom documents and their corresponding JDBC configurations in a hash
1281 table. This information is retrieved using the document title as the
1282 key in the hash table.
1283 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1284 document title field as it's no longer needed.
1286 2011-04-08 Ben Konrath <ben@bagu.org>
1288 Update the Eclipse JDT configuration.
1290 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1291 methods. Automatically add the copyright header to new files.
1293 2011-04-05 Ben Konrath <ben@bagu.org>
1295 Add new page for demo selection.
1297 This patch adds all the components required to view and start an
1298 OnlineGlom demo by clicking on the desired hyperlink. The user is
1299 able to return to the demo selection page with the browser's back
1300 button. I still need to modify the servlet to work with multiple
1301 documents so all demo links will load the file defined in the
1302 OnlineGlom.properties.
1304 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1305 This is only useful during development so we don't need to save it.
1306 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1307 get a reference to the DemoSelectionView.
1308 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1309 method to get a reference to the DemoSelectionView.
1310 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1311 default view to DemoSelectionView.
1312 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1313 to get glom document titles for glom files in a hard-coded directory.
1314 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1315 method to get glom document titles for glom files in a hard-coded
1317 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1318 Presenter for DemoSelectionView.
1319 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1320 for DemoSelectionView.
1321 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1322 Update for DemoSelectionView.
1323 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1324 Basic 'Place' implementation for the DemoSelectionView.
1325 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1326 The interface for the DemoSelectionView.
1327 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1328 The implementation of the DemoSelectionView.
1329 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1330 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1332 implementation of method to get glom document titles for glom files
1333 in a hard-coded directory.
1334 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1335 on longer being used.
1336 * src/main/webapp/glom.png: Glom logo.
1338 2011-04-05 Ben Konrath <ben@bagu.org>
1340 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1342 This is the forth and final commit of a refactor that will allow
1343 OnlineGlom to be used with multiple documents.
1345 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1346 Move RPC code from OnlineGlomViewImpl to this class.
1347 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1349 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1350 RPC code to the presenter class (the P in MVP).
1352 2011-04-04 Ben Konrath <ben@bagu.org>
1354 Start moving the existing OnlineGlom code to MVP.
1356 This work is based on the GWT MVP framework that is documented here:
1358 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1360 This is the third commit of a refactor that will allow OnlineGlom to
1361 be used with multiple documents.
1363 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1364 Interface for client factory which is used to get instances of various
1365 classes throughout the app.
1366 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1367 Implementation of client factory.
1368 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1369 initialize the MVP framework.
1370 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1371 New file. Activity manager for the main container widget. This is the
1373 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1374 Maps place (URL) to its corresponding activity.
1375 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1376 New file. This is just a place holder for a generated file.
1377 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1378 New file. Represents the URL for the main Online Glom app.
1379 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1380 for changes in LayoutListViewImpl.
1381 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1382 interface for View. Move code to OnlineGlomViewImpl class.
1383 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1384 file. Implementation of OnlineGlomView.
1385 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1386 Place resources. Use ClientFactoryImpl by default.
1388 2011-04-04 Ben Konrath <ben@bagu.org>
1390 Move View classes to their own package.
1392 This is the second commit of a refactor that will allow OnlineGlom to
1393 be used with multiple documents.
1395 * src/main/java/org/glom/web/client/OnlineGlom.java:
1396 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1397 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1399 2011-04-02 Ben Konrath <ben@bagu.org>
1401 Move UI code from the main module to its own class.
1403 This is the first commit of a refactor that will allow OnlineGlom to be
1404 used with multiple documents.
1406 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1407 references to OnlineGlom to OnlineGlomView.
1408 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1409 OnlineGlomView and instantiate it here.
1410 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1411 represents the main OnlineGlomView with one document.
1413 2011-04-01 Ben Konrath <ben@bagu.org>
1415 Fix formatting of gwt.xml and add DTD.
1417 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1419 2011-03-30 Ben Konrath <ben@bagu.org>
1421 Propperly convert gdkColor string to html colour string.
1423 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1425 2011-03-28 Ben Konrath <ben@bagu.org>
1427 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1429 This implementation matches
1430 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1431 readable and is not tied to Swig.
1433 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1435 2011-03-28 Ben Konrath <ben@bagu.org>
1437 Use read-only checkboxes for boolean field types.
1439 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1440 in the CellTable based on the field type. It currently only
1441 distinguishes between boolean and text columns but I'll need to add
1442 support for more types.
1443 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1444 column type in the ColumnInfo object. Add method to convert between the
1445 glom field type enum in ColumnInfo and the glom field type in libglom.
1446 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1448 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1449 getting and setting booleans.
1451 2011-03-25 Ben Konrath <ben@bagu.org>
1453 Don't get the Date twice from the ResultSet.
1455 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1457 2011-03-25 Ben Konrath <ben@bagu.org>
1459 Cleanup code in the servlet.
1461 * TODO: Remove item about row count. Add item about testing row count
1462 query with large number of rows.
1463 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1464 spelling mistakes, change method parameter to be consistent with
1467 2011-03-25 Ben Konrath <ben@bagu.org>
1469 Add server side logging with the gwt-log library.
1471 * .gitignore: Ignore the log file we're now producing.
1472 * TODO: Add a couple TODO item for logging.
1473 * pom.xml: Add gwt-log and log4j as a dependency.
1474 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1475 logging of errors, warnings and some important info.
1476 * src/main/resources/log4j.properties: New file to configure log4j.
1478 2011-03-24 Ben Konrath <ben@bagu.org>
1480 Add a disable button for the Details view.
1482 * src/main/java/org/glom/web/client/LayoutListView.java:
1484 2011-03-22 Ben Konrath <ben@bagu.org>
1486 Use a count query to get the number of rows for the list view pager.
1488 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1490 2011-03-22 Ben Konrath <ben@bagu.org>
1492 Add more TODO information about CellTable pager positioning.
1496 2011-03-19 Ben Konrath <ben@bagu.org>
1498 Add TODO item about CellTable pager positioning.
1502 2011-03-18 Ben Konrath <ben@bagu.org>
1504 Remove unneeded GlomFieldColumn class.
1506 This is just a small code cleanup.
1508 * src/main/java/org/glom/web/client/LayoutListView.java:
1510 2011-03-18 Ben Konrath <ben@bagu.org>
1512 Use cursor mode in the query that gets data for the list view.
1514 I still need to fix the potential memory problem when getting the row
1515 count for the list view.
1517 * TODO: Add note about testing memory usage with large data sets. Add
1518 item about fixing row counting with large data sets.
1519 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1520 PostgreSQL JDBC driver into cursor mode when getting data for the
1523 2011-03-15 Ben Konrath <ben@bagu.org>
1525 Remove the GWT Container from the Eclipse build classpath.
1527 The GWT dependencies are set by Maven so this isn't needed.
1531 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1533 Added some earlier mockups to git, but not to the tarball dist.
1535 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1536 Openismus. These hopefully show how we might structure the HTML so that
1537 it can be styled easily with CSS. However, we probably need to adapt them
1538 for the CSS structure that GWT dictates for common widgets.
1540 2011-03-14 Ben Konrath <ben@bagu.org>
1542 Locate OnlineGlom.properties using the ServletContext.
1544 This is required to be able to locate the file in the deployed servlet.
1546 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1547 Configure the database and glom document in in a helper method so
1548 that the ServletContext can be used to locate OnlineGlom.properties.
1549 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1550 src/main/webapp. This is the proper location for .properites files.
1552 2011-03-12 Ben Konrath <ben@bagu.org>
1554 Add note to README about why we're compiling down to obfuscated JavaScript.
1558 2011-03-11 Ben Konrath <ben@bagu.org>
1560 Use properties file to configure servlet.
1562 This allows people to change the glom file path, db username and db
1563 password without recompiling the code.
1565 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1566 * src/main/webapp/OnlineGlom.properties:
1568 2011-03-11 Ben Konrath <ben@bagu.org>
1570 Use table fields in layout list view if the layout list is not defined.
1572 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1573 Manually create a LayoutFieldVector for the query builder using the
1574 table fields when a layout list is not defined in the glom file.
1576 2011-03-11 Ben Konrath <ben@bagu.org>
1578 Only show FIXME string for images when there's an image.
1580 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1581 in this change are some small code cleanups.
1583 2011-03-11 Ben Konrath <ben@bagu.org>
1585 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1587 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1589 2011-03-11 Ben Konrath <ben@bagu.org>
1591 Correctly set the index of the default table.
1593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1594 Correctly set the index of the default table. Add commented out example
1597 2011-03-10 Ben Konrath <ben@bagu.org>
1599 Add comment to pom.xml about the previous change.
1601 * pom.xml: Add comment about the deployment issue so that it's obvious
1602 why java-libglom is set to the provided scope.
1604 2011-03-10 Ben Konrath <ben@bagu.org>
1606 Change java-libglom dependency from compile to provided in pom.xml.
1608 Since java-libglom uses jni it can only be loaded once and therefore
1609 must be placed in $CATALINA_HOME/lib and not included in each war.
1610 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1611 More information about this issue can be found in the Tomcat 6 release
1612 notes in the "JNI Based Applications" section:
1614 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1616 * README: Remove note about this issue. Deployment info should really
1617 be on the wiki anyway so I'll add it right now.
1618 * pom.xml: Change java-libglom dependency from compile to provided so
1619 that it's copied in to the packaged war.
1621 2011-03-09 Ben Konrath <ben@bagu.org>
1623 Change to using a neutral locale for currency, date and time formatting.
1625 This solves the problem of currency values being represented without a
1626 space between the currency code and the number (e.g. "EUR5.89" is now
1627 represented as "EUR 5.89"). More work is required when we implement
1628 a locale preference setting.
1630 * TODO: Add note about currency formatting issues with different
1632 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1633 to using the neutral ROOT locale.
1635 2011-03-09 Ben Konrath <ben@bagu.org>
1637 Add support for currency codes that are not ISO 4217 codes.
1639 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1640 the currency code defined in the glom file when it's not 3 characters
1641 long or when Java doesn't recognize the string as an ISO 4217 code.
1643 2011-03-08 Ben Konrath <ben@bagu.org>
1645 Remove test classes, launch configurations and configuration.
1647 The test stuff was getting in the way when creating the war. To make
1648 the war file you can now do 'mvn clean package'. The packaged war file
1649 will be in the target directory.
1651 * .classpath: Remove unused classpathentry for tests and i18n.
1652 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1653 property. Don't run test or i18n goals when packaging the war.
1654 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1659 * OnlineGlomTest-dev.launch:
1660 * OnlineGlomTest-prod.launch:
1661 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1662 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1664 2011-03-07 Ben Konrath <ben@bagu.org>
1666 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1668 These fixes allow me to use 'mvn deploy' to create the war file.
1670 * .classpath: This generated config has been updated by Eclipse. This
1671 change was probably triggered by me updating from Eclipse 3.6.1 to
1673 * .gitignore: Add entry to ignore the directory
1674 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1675 * .project: The generated config has been updated by Eclipse. This
1676 change was probably triggered by me updating from Eclipse 3.6.1 to
1678 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1679 so that Eclipse doesn't complain
1680 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1681 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1682 'tests' directory to 'client' directory. This is the new
1683 gwt-maven-plugin convension.
1684 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1685 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1687 2011-03-07 Ben Konrath <ben@bagu.org>
1689 Add support for horizontal alignment in the LayoutList columns.
1691 * TODO: Remove item about horizontal alignment. Add item about
1692 improvements to ColumnInfo.
1693 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1694 alignment on the columns. Use ColumnInfo RPC object get the column
1695 title and horizontal alignment.
1696 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1697 LayoutListView creation with ColumnInfo RPC object.
1698 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1699 a ColumnInfo object for every LayoutList columnn. Convert the
1700 FieldFormatting.HorizontalAlignment to the correct
1701 ColumnnInfo.HorizontatlAlignment with the new
1702 getColumnInfoHorizontalAlignment helper method.
1703 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1704 to encapsulate column information like alignment and title. This
1705 could be used to set the colour instead of on a per cell field basis.
1706 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1707 column title storage and retrieval with ColumnInfo.
1709 2011-03-04 Ben Konrath <ben@bagu.org>
1711 Add support for column sorting.
1713 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1714 AsynDataProvider to be an anonymous inner class. Use new
1715 getSortedTableData RPC method when column sort is requested. Set all
1716 columns sortable and add an AsyncHandler to activate sorting in the
1718 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1719 method getSortedTableData(). Cleanup other method signatures.
1720 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1721 new method getSortedTableData(). Cleanup other method signatures.
1722 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1723 Implement getSortedTableData() and getTableData() methods by using a
1724 private helper method with the appropriate parameters filled in. Use
1725 user supplied sort clause when supplied, otherwise fall back to
1726 sorting by the primary key. Move destroy() method to be underneath
1727 constructor for readability. Cleanup comments.
1729 2011-03-03 Ben Konrath <ben@bagu.org>
1731 Add support for colour text and colour backgrounds to the layout list cells.
1733 Only the cell backgrounds are coloured which leaves a gap between the
1734 cells that isn't coloured. I need to figure out a way to set
1735 'style=background-colour:' on the whole column rather than just the
1738 * TODO: Add a note about colouring the background of the whole column.
1739 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1740 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1741 render the coloured text and backgrounds. Use GlomField[] for the row type.
1742 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1744 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1745 GlomField[] for the row type.
1746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1747 GlomField[] for the row type. Set the text, text colour and background
1748 colour in the GlomField objects as specified in the glom document. Add
1749 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1750 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1751 the glom field text, foreground colour and background colour.
1753 2011-03-02 Ben Konrath <ben@bagu.org>
1755 Don't display hidden tables in the combo box.
1757 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1759 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1760 code to ignore hidden tables using ArrayLists for the table names and
1762 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1763 tableNames to use ArrayLists instead of String[]. Update getter and setter
1766 2011-03-01 Ben Konrath <ben@bagu.org>
1768 Add support for Date and Time number types.
1770 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1771 Implement formatting for Date and Time values. Change the default glom
1772 file to small business example.
1774 2011-03-01 Ben Konrath <ben@bagu.org>
1776 Add support for formatting glom types as specified in the glom file.
1778 Formatting isn't finished yet - I still need to add support for Date
1781 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1782 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1783 checks for null values in JDBC cleanup code and catch all exceptions
1784 instead of just SQLExceptions.
1785 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1788 2011-03-01 Ben Konrath <ben@bagu.org>
1790 Use GWT 2.2.0 instead of 2.1.1.
1792 * pom.xml: Change GWT version numbers.
1794 2011-03-01 Ben Konrath <ben@bagu.org>
1796 A few small code cleanups.
1798 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1800 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1801 unnecessary object creation in constructor.
1802 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1803 unnecessary object creation in constructor.
1805 2011-02-28 Ben Konrath <ben@bagu.org>
1807 Add file for TODO list.
1811 2011-02-18 Ben Konrath <ben@bagu.org>
1813 Enable the CellTable Pager when more than 20 rows need to be viewed.
1815 The Pager will automatically become active when the results are larger
1816 than the CellTable size which is currently set to 20 lines.
1818 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1819 name on debug statment in RPC call in LayoutListDataProvider, add
1820 numRows parameter to LayoutListView constructor, propperly set rowCount
1822 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1823 name on debug statment in RPC call, use LayoutListTable object in RPC
1824 calls, pass rowCount to LayoutListView.
1825 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1826 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1828 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1829 interface for changes in OnlineGlomService.
1830 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1831 getLayoutListHeaders() to getLayoutListTable() and return
1832 LayoutListTable. Using this object allows me to pass other information
1833 about the LayoutList like the expected number of rows in the result set.
1834 The Connection object from the connection pool is now propperly closed.
1835 Only the requested number of lines are returned to the client in
1837 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1838 GlomTable and add columnTitles and numRows.
1840 2011-02-18 Ben Konrath <ben@bagu.org>
1842 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1844 This is a small performance boost. I'll use GlomTable to get the required
1845 layoutlist information.
1847 * src/main/java/org/glom/web/client/OnlineGlom.java:
1848 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1849 * src/main/java/org/glom/web/shared/GlomDocument.java:
1851 2011-02-18 Ben Konrath <ben@bagu.org>
1853 Add option to turn off formatting in JDT formatter preferences.
1855 * .settings/org.eclipse.jdt.core.prefs:
1857 2011-02-18 Ben Konrath <ben@bagu.org>
1859 Rename LayoutList to LayoutListView.
1861 I'm working towards setting things up to easily use MVP when the time
1864 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1866 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1869 2011-02-17 Ben Konrath <ben@bagu.org>
1871 Move LayoutListDataProvider class into LayoutList.java.
1873 * src/main/java/org/glom/web/client/LayoutList.java:
1875 2011-02-17 Ben Konrath <ben@bagu.org>
1877 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1879 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1881 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1882 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1883 from LibGlomServer.java.
1884 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1885 Rename from LibGlomServiceAsync.java.
1886 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1887 Rename from LibGlomServiceImpl.java.
1888 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1890 2011-02-17 Ben Konrath <ben@bagu.org>
1892 Update JDT settings.
1894 * .settings/org.eclipse.jdt.core.prefs:
1896 2011-02-17 Ben Konrath <ben@bagu.org>
1898 Move GWT-RPC objects to shared package (where they should be).
1900 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1901 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1902 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1903 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1904 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1905 org.glom.web.shared package.
1906 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1907 org.glom.web.shared package.
1908 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1909 directory in compilation to javascript.
1911 2011-02-16 Ben Konrath <ben@bagu.org>
1913 Add sort clause to the sql query that grabs table information.
1915 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1916 if one of the columns is a primary key.
1918 2011-02-16 Ben Konrath <ben@bagu.org>
1920 Disable generateAsync feature of gwt-maven.
1922 The generated interface does not correctly match the methods in LibGlomService
1923 and the generated singleton Util inner-class doesn't respect the servlet
1926 * pom.xml: Turn off generateAsync feature.
1927 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1928 with singleton Util inner-class.
1930 2011-02-14 Ben Konrath <ben@bagu.org>
1932 Add LGPL v3 licence notices.
1934 Followed directions listed here:
1935 http://www.gnu.org/licenses/gpl-howto.html
1937 * COPYING: This file is a copy of the GPL v3.
1938 * COPYING.LESSER: This file is a copy of the LGPL v3.
1939 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1941 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1943 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1945 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1947 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1949 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1951 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1954 2011-02-14 Ben Konrath <ben@bagu.org>
1956 Use ArrayList instead of Array in GWT-RPC calls.
1958 Apparently this gives a slight performance boost to the compiled
1961 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1963 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1966 2011-02-14 Ben Konrath <ben@bagu.org>
1968 Access data from a postgres db rather than the example glom file.
1970 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1971 compile down to obfuscated javascript.
1972 * pom.xml: Add c3p0 and postgres JDBC libraries.
1973 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1974 using a postgres db accessed through the c3p0 connection pooling library.
1976 2011-02-14 Ben Konrath <ben@bagu.org>
1978 Update Java formatter settings.
1980 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1982 2011-02-02 Ben Konrath <ben@bagu.org>
1984 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1986 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1988 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1989 the compiled webapp directory that Eclipse uses as we're using Maven now.
1990 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1991 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1993 * pom.xml: Format file, change target Java version to 1.6.
1995 2011-02-02 Ben Konrath <ben@bagu.org>
1997 Add information about a deployment related issue.
1999 * README: Add Notes section with the problem outlined.
2001 2011-02-02 Ben Konrath <ben@bagu.org>
2003 Call Glom.libglom_deinit() when the servlet is shutdown.
2005 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
2006 Glom.libglom_deinit() to destroy() method.
2008 2011-01-28 Ben Konrath <ben@bagu.org>
2010 Use generated Util class to get the RPC Async interface.
2012 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
2014 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
2015 getInstance() method to get a reference to the RPC Async interface.
2016 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
2017 getInstance() method to get a reference to the RPC Async interface, remove
2018 the now unused getLibGlomServiceProxy() method.
2020 2011-01-27 Ben Konrath <ben@bagu.org>
2022 Cleanup ChangeLog entry from previous commit.
2024 * ChangeLog: Group logical changes together and add comments.
2026 2011-01-25 Ben Konrath <ben@bagu.org>
2028 Convert to gwt-maven project.
2030 * .gitignore: Update for new project structure.
2031 * README: New file with a link to the online documentation.
2032 * pom.xml: The generated maven configuration file with some tweaks.
2034 Add / update Eclipse settings. These files are a merge of the files that
2035 were generated with the gwt-maven plugin and the files we were previously
2039 * .settings/.jsdtscope:
2040 * .settings/com.google.gdt.eclipse.core.prefs:
2041 * .settings/com.google.gwt.eclipse.core.prefs:
2042 * .settings/org.eclipse.jdt.core.prefs:
2043 * .settings/org.eclipse.wst.common.component:
2044 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2045 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2046 * .settings/org.maven.ide.eclipse.prefs:
2047 * OnlineGlomTest-dev.launch:
2048 * OnlineGlomTest-prod.launch:
2050 Java source files moved from the 'src' directory to the directory structure
2052 * src/main/java/org/glom/web/client/GlomDocument.java:
2053 * src/main/java/org/glom/web/client/GlomTable.java:
2054 * src/main/java/org/glom/web/client/LayoutList.java:
2055 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2056 * src/main/java/org/glom/web/client/LibGlomService.java:
2057 * src/main/java/org/glom/web/client/OnlineGlom.java:
2058 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2060 Non-functional property file used for translations. I included this as
2061 reminder that it's something I need to sort out.
2062 * src/main/resources/org/glom/web/client/Messages.properties:
2064 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2065 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2067 The servlet configuration files moved from the 'war' directory.
2068 * src/main/webapp/OnlineGlom.css:
2069 * src/main/webapp/OnlineGlom.html:
2070 * src/main/webapp/WEB-INF/web.xml:
2072 Generated test files with most of the code commented out. I included these
2073 so that it's easy to add tests when we're ready for them.
2074 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2075 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2077 2011-01-25 Ben Konrath <ben@bagu.org>
2079 Remove unused println.
2081 * src/org/glom/web/server/LibGlomServiceImpl.java:
2083 2011-01-25 Ben Konrath <ben@bagu.org>
2085 Add project specific JDT settings.
2087 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2088 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2090 2011-01-25 Ben Konrath <ben@bagu.org>
2092 Populate celltable with example data.
2094 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2095 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2096 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2097 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2098 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2099 asynchronously gets the example data.
2100 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2101 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2102 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2103 curently selected table to be retrieved by other widgets.
2104 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2105 implement getTableData() in a hacky way. This method needs to be updated
2106 to grab information from the database when database creating is
2109 2011-01-20 Ben Konrath <ben@bagu.org>
2111 Set table headers when table dropBox changes.
2113 * src/org/glom/web/client/GlomDocument.java: Correct some method
2115 * src/org/glom/web/client/LibGlomService.java: Add method
2116 to get list layout field names.
2117 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2118 to get list layout field names.
2119 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2120 widget for list layout table.
2121 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2122 the table drop box and add new updateTable() method to asynchronously
2123 get the layout list field names for the currently selected table.
2124 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2125 implementation of getLayoutListHeaders() method.
2126 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2128 2011-01-18 Ben Konrath <ben@bagu.org>
2130 Make a listBox with table titles instead of the flexTable demo.
2132 This is the start of something more useful.
2134 * .classpath: Exclude a bunch of packages from the JVM that are
2135 getting in the way of the Eclipse content assist.
2136 * src/org/glom/web/client/GlomDocument.java:
2137 * src/org/glom/web/client/GlomTable.java:
2138 * src/org/glom/web/client/LibGlomService.java:
2139 * src/org/glom/web/client/LibGlomServiceAsync.java:
2140 * src/org/glom/web/client/OnlineGlom.java:
2141 * src/org/glom/web/server/LibGlomServiceImpl.java:
2142 * war/OnlineGlom.html:
2143 * war/WEB-INF/web.xml:
2145 211-01-13 Ben Konrath <ben@bagu.org>
2147 Update to new java-libglom API.
2149 * .gitignore: Ignore OnlineGlom.war.
2150 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2152 2010-12-20 Ben Konrath <ben@bagu.org>
2154 Add some basic style to the table listing.
2156 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2157 header, print useful error message on async callback failure.
2158 * war/OnlineGlom.css: Add style for table header, remove defaults
2159 provided by the Eclipse project wizard.
2161 2010-12-20 Ben Konrath <ben@bagu.org>
2163 Load example file from installed glom dir.
2165 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2166 provided by java-libglom to find the example file.
2168 2010-12-20 Ben Konrath <ben@bagu.org>
2170 Update Eclipse settings.
2173 * .settings/com.google.gdt.eclipse.core.prefs:
2174 * .settings/com.google.gwt.eclipse.core.prefs:
2176 2010-12-17 Ben Konrath <ben@bagu.org>
2180 * .classpath: New file.
2181 * .gitignore: New file.
2182 * .project: New file.
2183 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2184 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2185 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2186 * src/org/glom/web/client/GlomTable.java: New file.
2187 * src/org/glom/web/client/OnlineGlom.java: New file.
2188 * src/org/glom/web/client/TableNameService.java: New file.
2189 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2190 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2191 * war/OnlineGlom.css: New file.
2192 * war/OnlineGlom.html: New file.
2193 * war/WEB-INF/web.xml: New file.
2194 * war/images/glom.png: New file.