1 2011-09-23 Ben Konrath <ben@bagu.org>
3 Remove annotations that turn off code formatting in DataItem.
5 * src/main/java/org/glom/web/shared/DataItem.java:
7 2011-09-23 Ben Konrath <ben@bagu.org>
9 Rename GlomField to DataItem and update associated methods.
11 This is a rename-only refactor. No functionality has been added or
14 * src/main/java/org/glom/web/client/OnlineGlomService.java:
15 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
16 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
17 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
18 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
19 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
20 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
21 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
22 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
23 * src/main/java/org/glom/web/server/database/DBAccess.java:
24 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
25 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
26 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
27 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
28 * src/main/java/org/glom/web/shared/DataItem.java:
29 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java:
30 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
32 2011-09-23 Ben Konrath <ben@bagu.org>
34 Rename GlomDocument to DocumentInfo and update associated methods.
36 This is a rename-only refactor. No functionality has been added or
39 * src/main/java/org/glom/web/client/OnlineGlomService.java:
40 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
41 * src/main/java/org/glom/web/client/activity/ListActivity.java:
42 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
43 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
44 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
45 * src/main/java/org/glom/web/shared/DocumentInfo.java:
47 2011-09-20 Ben Konrath <ben@bagu.org>
49 Require java-libglom 1.17.3.
51 This picks up the fix for the seg fault problem with the Scenes table
52 in the Openismus Film Manager example.
56 2011-09-20 Ben Konrath <ben@bagu.org>
58 Change the way sort clause is added for primary key when no sort clause is requested.
60 The primary key is now added to the LayoutFieldVector (fieldsToGet)
61 before the sort clause is created. When a sort clause is not requested, the
62 sort clause is created by finding the primary key in the LayoutFieldVector
65 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
67 2011-09-20 Ben Konrath <ben@bagu.org>
69 Log error message if no documents are found in the configured directory.
71 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also:
72 Extract the glom file extension string to a private static final class
73 variable (mostly as syntactic sugar). Accept a minor formatting change.
74 * src/main/resources/onlineglom.properties: Add '/glomfile' to end of
75 the example glom.document.directory configuration property to make it
76 more clear that it can any directory, not just the home directory.
78 2011-09-18 Ben Konrath <ben@bagu.org>
80 Add related lists to details view.
82 The related list table has support for paging and sorting just like the
83 table in the list view.
85 * pom.xml: Require java-libglom 1.17.2 for the new methods to build the
86 SQL queries for the related list tables.
87 * src/main/java/org/glom/web/client/OnlineGlomService.java:
88 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
89 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
90 Rename getList methods to getListView and add comments. Remove
91 getDetailsLayout() as it's not used anymore. Add note to getDetailsData() about
92 it being unused. Add methods: getDetailsLayoutAndData(),
93 getSortedRelatedListData(), getRelatedListData(), getRelatedListRowCount()
94 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
95 Create the layout and set the data for the fields in one async call
96 instead of two. Create related lists where appropriate.
97 * src/main/java/org/glom/web/client/activity/ListActivity.java: Changes
98 for method name changes in OnlineGlomService.
99 * src/main/java/org/glom/web/client/ui/DetailsView.java:
100 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Rename
101 addLayoutGroup() to addGroup(). Add methods to get the DTOs for the
103 * src/main/java/org/glom/web/client/ui/ListView.java:
104 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Remove
105 tableName from setCellTable(). Create a ListViewTable instead of
107 * src/main/java/org/glom/web/client/ui/details/Field.java: New class to
108 represent a data field in the details view.
109 * src/main/java/org/glom/web/client/ui/details/Group.java: Move to code
110 from addDetailsCell() to Field class. Keep track of the Fields and
111 Portals in the details view.
112 * src/main/java/org/glom/web/client/ui/details/Portal.java: Make portal
113 a little bigger to match Glom. Keep track of the LayoutItemPortal DTO
114 and add a method to get it. Add method to set the contents of the
116 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
117 New class for related list tables. This class has the data provider
118 for the related list table.
119 * src/main/java/org/glom/web/client/ui/list/ListTable.java: Change to
120 abstract class which is the base class for the ListViewTable and the
122 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
123 New class for list view tables. This class has the data provider for
125 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
126 methods for related list tables. Add more information to the
127 LayoutItemField and LayoutItemPortal DTOs.
128 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
129 Remove debugging print statement.
130 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
131 Remove debugging print statements. Add primary key field to SQL count
133 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
134 Remove unnecessary LayoutFieldVector parameter from
135 getResultSizeOfSQLQuery() method.
136 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
137 New class for related list table database access.
138 * src/main/java/org/glom/web/shared/DetailsLayoutAndData.java: New
139 class that is a wrapper DTO for details view layout and data.
140 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
141 new 'fromField' string to this DTO.
142 * src/main/webapp/style.css: Remove bottom margin and override top
145 2011-09-15 Ben Konrath <ben@bagu.org>
147 Breakup the OnlineGlomServiceImpl class to make it more manageable.
149 This sets things up to make it easier to add the data retrieval for
150 related lists (portals). No user noticeable changes were made with
153 * src/main/java/org/glom/web/server/ConfiguredDocument.java: This
154 class has the code to retrieve the layouts and access the
155 database using the new database helper classes.
156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
157 Most of the functionality has been removed from this class. This
158 class now represents the public interface for the client side
159 code. It also deals with configuring the servlet and cleaning
160 things up when the servlet is stopped.
161 * src/main/java/org/glom/web/server/Utils.java: Extract a couple
162 of static methods into this utility class.
163 * src/main/java/org/glom/web/server/database/DBAccess.java:
164 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
165 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
166 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
167 These classes have the database retrieval code. The class hierarchy
168 has been setup to make it easy to reuse code for similar
171 2011-09-06 Ben Konrath <ben@bagu.org>
173 Create separate classes for list table code and the data provider.
175 As part of this refactor, I also split up the code a bit to make it
178 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Move list
179 table code to two new classes (below).
180 * src/main/java/org/glom/web/client/ui/list/ListTable.java: New file
181 with code from ListViewImpl.
182 * src/main/java/org/glom/web/client/ui/list/ListTableDataProvider.java:
183 New file with code from ListViewImpl.
185 2011-09-06 Ben Konrath <ben@bagu.org>
187 Change the LayoutItemPortal DTO to extend LayoutGroup instead of LayoutItem.
189 This fixes the LayoutItemPortal DTO to match the libglom layout object
192 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java:
194 2011-09-01 Ben Konrath <ben@bagu.org>
196 Set title of Portals in the Details View.
198 * pom.xml: Bump required version of java-libglom to 1.17.1.
199 * src/main/java/org/glom/web/client/ui/details/Group.java: Move Portal
200 widget creation to its own class. Add comments to constructor.
201 * src/main/java/org/glom/web/client/ui/details/Portal.java: New file.
202 The code is mostly from the Group class with the title now set.
203 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
204 title of Portal. Update some comments. Fix some code formatting.
206 2011-09-01 Ben Konrath <ben@bagu.org>
208 Remove TODO comment for the flow table column width.
210 The flow table column width is working correctly and doesn't need to be
211 changed. See this mailing list post for more info:
213 https://mail.gnome.org/archives/glom-devel-list/2011-August/msg00017.html
215 * src/main/java/org/glom/web/client/ui/details/FlowTable.java:
217 2011-08-27 Ben Konrath <ben@bagu.org>
219 Add document title (database name) to top of the browser page.
221 I added the document title to the TableSelecitonView but that will
222 change if / when we add a view that doesn't require table selection.
224 * mockups/details-contacts.html:
225 * mockups/details-projects.html:
226 * mockups/listview-contacts.html:
227 * mockups/listview-projects.html:
228 * mockups/style.css: Add document title to mockups to keep things
230 * src/main/java/org/glom/web/client/OnlineGlom.java: Adjust LayoutPanel
231 sizes to account for the document title.
232 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
233 Set the document title when it has been retrieved from the server.
234 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
235 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java: Add
236 and implement setDocumentTitle(String) method.
237 * src/main/webapp/style.css: Add ID for document title style.
239 2011-08-25 Ben Konrath <ben@bagu.org>
241 Add NavigationType enum to LayoutItemPortal DTO.
243 This is the start of adding support for Portals to the Details View.
245 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert
246 LayoutItem_Portal.navigation_type enum from libglom to
247 LayoutItemPortal.NavigationType enum.
248 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: Add
249 NavigationType enum, field for storing the NavigationType and getter
252 2011-08-25 Ben Konrath <ben@bagu.org>
254 Implement the flow table layout in the Details View.
256 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
257 FlowTable to Group to account for the renamed class.
258 * src/main/java/org/glom/web/client/ui/details/FlowTable.java: New
259 File. This is a container widget that implements the Glom details view
260 flow table behaviour.
261 * src/main/java/org/glom/web/client/ui/details/Group.java: Moved from
262 org/glom/web/client/ui/FlowTable.java.
263 * src/main/webapp/style.css: Adjust bottom margin of the subgroup-title
264 so that the size of the subgroups are a closer match to the size of
265 the Glom subgroups. This makes the flowtable layout match the layout
266 in Glom for the Music Collection example file.
268 2011-08-16 Ben Konrath <ben@bagu.org>
270 Create container element for LayoutItemPortal in Details View.
272 This will help me develop the layout for the FlowTable.
274 * src/main/java/org/glom/web/client/ui/FlowTable.java: Also rename
275 fieldPanel variable to detailsCell.
277 2011-08-15 Ben Konrath <ben@bagu.org>
279 Set the height of the data element in the Details View.
281 I changed the InlineLabels (text in a span element) to Labels (text in
282 a div element) so that I could set the height of the details-data
283 elements instead of the details-cell parent elements. This allows the
284 the details-data element to display the correct height if style is
285 applied that shows the height.
287 This change has the added benefit of allowing the order of the labels
288 and data elements to be changed for right-to-left languages.
290 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Change
291 InlineLabels to Labels.
292 * src/main/java/org/glom/web/client/ui/FlowTable.java: Change
293 InlineLabels to Labels. Set the height of the data element.
294 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
295 multiline text height in the Formatting DTO.
296 * src/main/java/org/glom/web/shared/layout/Formatting.java: Add field
297 for multiline height along with getter and setter methods.
298 * src/main/webapp/style.css: Adjust style to account for the change
299 from span elements to div elements in the details cell.
301 2011-08-15 Ben Konrath <ben@bagu.org>
303 Make the List View appearance match the mockups.
305 It doesn't match exactly but it's much better than it was.
307 * mockups/listview-contacts.html: Remove unused css classes.
308 * mockups/listview-projects.html: Remove unused css classes.
309 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Display 15
310 rows instead of 20. Rename vPanel to mainPanel. Use FlowPanel (div)
311 for mainPanel instead of VerticalPanel (table). Set style name on
312 CellTable. Set style name on Details column. Right-align Details
314 * src/main/webapp/style.css: Adjust properties to match the mockups.
316 2011-08-12 Ben Konrath <ben@bagu.org>
318 Add better support for subgroups in the details view.
320 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Update for
321 changed FlowTable constructor.
322 * src/main/java/org/glom/web/client/ui/FlowTable.java: Add better
323 support for subgroups and subgroup-titles.
324 * src/main/webapp/style.css: Add CSS class for subgroups and
327 2011-08-12 Ben Konrath <ben@bagu.org>
329 Return the top level LayoutGroup title.
331 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
333 2011-08-11 Ben Konrath <ben@bagu.org>
335 Make the TableSelector header match the mockup.
337 * src/main/java/org/glom/web/client/OnlineGlom.java: Add a margin to
338 the layout panel. Properly lineup the table selection header with
339 the list and details view.
340 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Remove the
341 margin around the details view.
342 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
343 Rename listBox variable to tableSelector. Set id for the style sheet.
344 Use a FlowPanel instead of a HorizontalPanel.
345 * src/main/webapp/style.css: Add properties to make the TableSelector
346 box match the mockups.
348 2011-07-13 Ben Konrath <ben@bagu.org>
350 Update install script for java-libglom version change.
352 * utils/install-onlineglom-war.sh: Also exit if 'make check' in
355 2011-07-13 Ben Konrath <ben@bagu.org>
357 Add support sub-group in the details view.
359 I also removed the code that special-cased the default details view
362 http://mail.gnome.org/archives/glom-devel-list/2011-July/msg00005.html
364 I still have to make a proper flowtable.
366 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
367 Don't special-case default details view layout.
368 * src/main/java/org/glom/web/client/ui/DetailsView.java: Remove
369 addLayoutField() as I'm going to use it.
370 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Extract
371 GroupPanel to FlowTable class. Remove unimplemented addLayoutField()
373 * src/main/java/org/glom/web/client/ui/FlowTable.java: New class
374 extracted from DetailsViewImpl.GroupPanel. Add support for
376 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
377 column count when getting the details layout.
379 2011-07-12 Ben Konrath <ben@bagu.org>
381 Set browser title with database and table titles.
383 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
384 Set the browser title when the table changes and when the activity
386 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set
387 title when retrieving document info (the GlomDocument object).
388 * src/main/java/org/glom/web/shared/GlomDocument.java: Add title field
389 with getter and setter methods. Remove unused convenience constructor.
390 Use default code formatting.
392 2011-07-12 Ben Konrath <ben@bagu.org>
394 Ignore LayoutItemPortals in the details view.
396 I added a new DTO for the LayoutItemPortal so that I can ignore it in
399 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Ignore
400 LayoutItemPortal layout objects.
401 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
402 LayoutItemPortal objects when retrieving the details layout.
403 * src/main/java/org/glom/web/shared/layout/LayoutItemPortal.java: New
404 file. This is an empty class and just used to get type information for
407 2011-07-12 Ben Konrath <ben@bagu.org>
409 Use java-libglom 1.17.0.
413 2011-07-11 Ben Konrath <ben@bagu.org>
415 Remove "Table:" label from table selector.
417 This matches a recent change in the Glom UI.
419 * mockups/details-contacts.html:
420 * mockups/details-projects.html:
421 * mockups/listview-contacts.html:
422 * mockups/listview-projects.html: Remove the "Table:" label from the
424 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
426 2011-07-11 Ben Konrath <ben@bagu.org>
428 Add main groups to the details view.
430 This makes things look a little nicer in the details view. The next step
431 is to implement the flowtable.
433 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Inherit only the
434 resources from the standard gwt css theme. Standard.css is now
435 included in OnlineGlom.html so that the online glom css rules have
436 precedence over the gwt theme.
437 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Pass
438 the whole LayoutGroup to the DetailsView instead of just the titles.
439 * src/main/java/org/glom/web/client/ui/DetailsView.java:
440 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java: Create the
441 details layout with a helper class (GroupPanel). I might extract this
442 class when I make the full flowtable.
443 * src/main/java/org/glom/web/shared/layout/LayoutItem.java: Add empty
444 string as default so I don't have to worry about NPEs when processing
446 * src/main/webapp/OnlineGlom.html: Add the gwt standard css file (see
447 note beside OnlineGlom.gwt.xml above).
448 * src/main/webapp/style.css: Add default font-size to body to override
449 the font-size set by the standard theme. Don't use h2 tags for
450 group-title. Create new details-cell class.
452 2011-07-08 Murray Cumming <murrayc@murrayc.com>
454 ConfiguredDocument: Set the port number too.
456 * src/main/java/org/glom/web/server/ConfiguredDocument.java
457 (ConfiguredDocument.ConfiguredDocument): Get the port number from the
458 Glom document. Presumably this worked sometimes so far because there is a
461 2011-07-08 Murray Cumming <murrayc@murrayc.com>
463 ConfiguredDocument: Warn that sqlite and self-hosting are not supported.
465 * src/main/java/org/glom/web/server/ConfiguredDocument.java
466 (ConfiguredDocument.ConfiguredDocument): Check that the hosting mode is
467 correct, though we should throw an exception too.
469 2011-07-08 Murray Cumming <murrayc@murrayc.com>
471 Fix a addDocuemnt typo.
473 * src/main/java/org/glom/web/shared/Documents.java
474 (Documents.addDocuemnt): Rename to addDocument().
475 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
476 (OnlineGlomServiceImpl.getDocuments): Adapt.
478 2011-07-08 Murray Cumming <murrayc@murrayc.com>
480 Slightly improved log output when connection fails.
482 * src/main/java/org/glom/web/server/ConfiguredDocument.java
483 (ConfiguredDocument.setUsernameAndPassword):
484 We don't know for sure if it' the username/password that's wrong, so
485 rephrase the message.
486 Also ouput the exception message, though it's generic in this case.
488 2011-07-08 Ben Konrath <ben@bagu.org>
492 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also
493 added braces to a one line if statement because the Eclipse formatter
494 was getting confused.
496 2011-07-07 Ben Konrath <ben@bagu.org>
498 Update project config files for Eclipse 3.7 and use GWT 2.3.0.
500 These should really be two separate tasks but I counldn't get things to
501 work with GWT 2.2.0 and Eclipse 3.7.
505 * .settings/org.eclipse.jdt.core.prefs:
506 * .settings/org.eclipse.jdt.ui.prefs:
507 * .settings/org.eclipse.ltk.core.refactoring.prefs:
508 * .settings/org.eclipse.m2e.core.prefs:
509 Add new config files. Update current files. Remove references to the
510 webtools plugins as we're not using any of the webtools features.
511 * .gitignore: Add logs directory which is created when running with
513 * pom.xml: Update to GWT 2.3.0. Eclipse configuration was automatically added.
514 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Moved from
515 src/main/resources/org/glom/web/OnlineGlom.gwt.xml as per this known
517 http://mojo.codehaus.org/gwt-maven-plugin/eclipse/google_plugin.html#Limitations
519 2011-07-07 Murray Cumming <murrayc@murrayc.com>
521 onlineglom.properties: Add explanatory comments.
523 * src/main/resources/onlineglom.properties: Also change the default user
524 from ben to someuser, to avoid the risk of people thinking we just
525 stupidly hard-coded a locale path, when they see that on stderr or in a log.
527 2011-06-28 Ben Konrath <ben@bagu.org>
529 Use filename in Log for incorrect passwords.
531 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Add
532 getFileName(String) method to get the filename from the URI.
534 2011-06-28 Ben Konrath <ben@bagu.org>
536 Add the table name to the URL token for the ListPlace.
538 This makes things consistent between the DetailsPlace and the
539 ListPlace. It also allows the the ListPlace to be bookmarked.
541 * src/main/java/org/glom/web/client/OnlineGlomService.java:
542 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
543 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
544 Remove getDefaultListLayout(). The default layout is now returned
545 by the getListLayout() method when the table name is an empty string.
546 * src/main/java/org/glom/web/client/activity/ListActivity.java:
547 Add table name field. Change to a new ListPlace when the table
548 has been changed. Use getListLayout() for getting the default
550 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
551 Add table name field. Set the correct table name in the list box
552 when loading from bookmark. This corrects a problem for the
554 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
555 Move table name to super-class (HasSelectableTable). Move document
556 and table URL keys to super-class in HasSelectableTable.
557 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
558 Add table name field. Add Tokenizer class with URL key common to
559 the subclasses (DetailsPlace and ListPlace).
560 * src/main/java/org/glom/web/client/place/ListPlace.java:
561 Add table name. Add code to parse the URL token.
562 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
563 Update ListPlace construction with empty table name string.
564 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
565 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
566 Change setTableSelectedIndex(int) to setSelectedTableName(String).
567 Update ListPlace construction with table name string.
568 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
569 Change defaultTableName field to tableName to reflect how it's now
570 used. Update the getter and setter methods.
572 2011-06-28 Ben Konrath <ben@bagu.org>
574 Enable the table selector in the DetailsView.
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 getDefaultDetailsLayout(). The default layout is now returned
580 by the getDetailsLayout() method when the table name is an empty
582 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
583 event handler for table change event. Change to using
584 getDetailsLayout() for the default details layout.
585 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add table
587 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use table
588 when navigating to the details place.
590 2011-06-27 Ben Konrath <ben@bagu.org>
592 Use filename based unique document ID in URL and for RPC.
594 The document ID is the glom document name with spaces (' ') replaced
595 with pluses ('+') and without the .glom extension.
597 This change is mostly a string substitution of 'documentTitle' for
598 'documentID'. The only code change is the addition of a Documents DTO to get the
599 filename to document title mappings as indicated below.
601 * src/main/java/org/glom/web/client/OnlineGlomService.java:
602 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
603 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
604 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
605 Use Documents DTO to create the document links in the document
607 * src/main/java/org/glom/web/client/activity/ListActivity.java:
608 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
609 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
610 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
611 * src/main/java/org/glom/web/client/place/ListPlace.java:
612 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
613 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
614 * src/main/java/org/glom/web/client/ui/ListView.java:
615 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
616 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
617 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
618 * src/main/java/org/glom/web/server/Log.java:
619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
620 getDocumentTitles() to getDocuments() and return the Documents DTO.
621 * src/main/java/org/glom/web/shared/Documents.java: New DTO for
622 transferring the filename to document title mappings.
624 2011-06-25 Ben Konrath <ben@bagu.org>
626 Make the authentication popup work again.
628 This bug was introduced when I extracted ConfiguredDocument to its own class.
630 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Return the
631 correct success / fail status in setUsernameAndPassword().
633 2011-06-25 Ben Konrath <ben@bagu.org>
635 Use filename as unique key for configuring database usernames and passwords.
637 This replaces the use of the Glom document title which could change
638 depending on the locale. Thanks to Murray Cumming for pointing out this
641 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
642 * src/main/resources/onlineglom.properties:
644 2011-06-24 Ben Konrath <ben@bagu.org>
646 Pass primary key value to DetailsView.
648 This enables the DetailsView to load the correct data.
650 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Add
651 primary key value field and set in constructor. Pass primary key
652 value to getDetailsData().
653 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Add URL
654 variables for document title and primary key value.
655 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Pass primary
656 key value to the DetailsPlace.
658 2011-06-24 Ben Konrath <ben@bagu.org>
660 Add primary key index to LayoutGroup DTO and add ProvidesKey to CellTable.
662 This allows the primary key to be retrieved by the Details button. This
663 functionality has not been implemented yet but it's in the works.
665 * src/main/java/org/glom/web/client/activity/ListActivity.java: Pass
666 the LayoutGroup result to ListView.setCellTable instead of all of its
668 * src/main/java/org/glom/web/client/ui/ListView.java:
669 * src/main/java/org/glom/web/client/ui/ListViewImpl.java: Use
670 LayoutGroup as parameter for setCellTable. Add ProvidesKey to CellTable
671 get the primary key for the table.
672 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
673 index of the primary key in the LayoutGroup accounting for hidden
674 primary keys. Rename getJavaNumberFormat() to
675 convertToJavaNumberFormat() for consistency. Cleanup / add some
677 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add a
678 field for primary key index and a field to indicate whether the
679 primary key is hidden or not.
681 2011-06-23 Ben Konrath <ben@bagu.org>
683 Rename getTableData methods to getListData.
685 This is a rename refactor for consistency with other methods.
687 * src/main/java/org/glom/web/client/OnlineGlomService.java:
688 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
689 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
690 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
692 2011-06-23 Ben Konrath <ben@bagu.org>
694 Extract the ConfiguredDocument innerclass into its own class.
696 This makes the servlet code more object oriented.
698 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Extracted
699 from private ConfiguredDocument class in OnlineGlomServiceImpl.
700 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use the
701 new ConfiguredDocument class.
703 2011-06-21 Ben Konrath <ben@bagu.org>
705 Use the LayoutGroup group for the list layout instead of ColumnInfo and LayoutListTable.
707 This makes things more inline with how libglom works and reduces code
708 duplication. This refactor lays the groundwork for adding the primary key to
709 the LayoutGroup object.
711 * src/main/java/org/glom/web/client/OnlineGlomService.java:
712 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
713 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
714 Change method names to getListLayout and getDefaultListLayout for
715 consistency. Use LayoutGroup as the DTO for the list layout instead of
716 ColumnInfo and LayoutListTable.
717 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use the
718 new method names along with the LayoutGroup object for transferring the
720 * src/main/java/org/glom/web/client/ui/ListView.java:
721 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
722 Use ArrayList<LayoutItem> instead of ColumnInfo[] in setCellTable().
723 * src/main/java/org/glom/web/shared/ColumnInfo.java: Deleted. Replaced
725 * src/main/java/org/glom/web/shared/LayoutListTable.java: Deleted.
726 Replaced with LayoutGroup.
727 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java: Add
728 expectedResultSize and defaultTableName fields which are needed for
730 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java: Add
731 type field which is needed for the list layout but will also be
732 useful for the details layout as things progress.
733 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
734 Make class abstract. Remove the unnecessary
735 getFormattingHorizontalAlignment method. Add setFormatting method.
737 2011-06-16 Ben Konrath <ben@bagu.org>
739 Add scripts for building and installing war.
741 These will help when updating OnlineGlom but they're also good
742 supplemental documentation of the build and deployment proceeding.
744 * utils/build-onlineglom-war.sh: New file.
745 * utils/install-onlineglom-war.sh: New file.
747 2011-06-16 Ben Konrath <ben@bagu.org>
749 Create wrapper class to create consistent log messages.
751 I wrapped methods in the Log class of gwt-log to add the method names
752 from the servlet and create consistent formatting of the document title
753 and table names in the log messages.
755 * src/main/java/org/glom/web/server/Log.java: New file with wrapped methods.
756 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Convert all
757 log methods to use methods from wrapped Log class.
759 2011-06-16 Ben Konrath <ben@bagu.org>
761 Remove superfluous conditional return.
763 Thanks to Murray Cumming for pointing this out!
765 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
767 2011-06-15 Ben Konrath <ben@bagu.org>
769 Return an ArrayList of LayoutGroups for the Details layout.
771 This corrects a problem with the details layout as it can have more
772 than one top level LayoutGroup.
774 * src/main/java/org/glom/web/client/OnlineGlomService.java:
775 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Change
776 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return
777 an ArrayList<LayoutGroup> in the get*DetailsLayout methods.
778 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Deal
779 with ArrayList of LayoutGroups for the details view layout.
780 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
781 method name from get*DetailsLayoutGroup to get*DetailsLayout. Return an
782 ArrayList<LayoutGroup> in the get*DetailsLayout methods. Inline
783 getTableFieldsToShowForSequence() into getFieldsToShowForSQLQuery() to simplify
784 the code a bit. Rename getTableFieldsToShowForSequenceAddGroup() to
785 getFieldsToShowForSQLQueryAddGroup() to try to keep things more consistent.
787 2011-06-14 Ben Konrath <ben@bagu.org>
789 Use cast_dynamic method to determine the libglom LayoutItem type.
791 This is better than finding the LayoutItem type by using the string
792 returned from the get_part_type_name() method.
794 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
796 2011-06-14 Ben Konrath <ben@bagu.org>
798 Add method names to log entries in the servlet.
800 This helps when tracking down deployment problems.
802 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
804 2011-06-14 Ben Konrath <ben@bagu.org>
806 Add data to the DetailsView using a hard-coded primary key value.
808 The layout and functionality of the DetailsView is not complete. This
809 is just a checkpoint so the patch doesn't get too big.
811 * src/main/java/org/glom/web/client/OnlineGlomService.java:
812 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
813 Add getDetailsData() servlet method.
814 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
815 Add RPC to getDetailsData(). Change the way the LayoutGroups and
816 LayoutFields are added to the DetailsView.
817 * src/main/java/org/glom/web/client/ui/DetailsView.java:
818 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
819 Add setData() method. Change addLayoutGroup() and addLayoutField() to
820 take the string for the title instead of the object.
821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
822 Add implementation getDetailsData() along with some private helper
824 * src/main/webapp/style.css: Add padding to details-data class. Add a
825 details-label class with the same padding as the details-data class.
827 2011-06-03 Ben Konrath <ben@bagu.org>
829 Use presenter.goTo() to change to the DetailsPlace.
831 This will make things easier when we need to open the DetailsView with
832 data specific to the row that was clicked.
834 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
836 2011-06-02 Ben Konrath <ben@bagu.org>
838 Add CSS file from mockups.
840 I'm adding this now because it's going to be useful to have when
841 developing the DetailsView. The TableSelectionView and ListView aren't
844 * src/main/webapp/OnlineGlom.html:
845 * src/main/webapp/style.css:
847 2011-06-02 Ben Konrath <ben@bagu.org>
849 Use String.isEmpty() to check for empty string.
851 * src/main/java/org/glom/web/client/activity/ListActivity.java:
853 2011-06-02 Ben Konrath <ben@bagu.org>
855 Display main layout group titles in the DetailsView.
857 This is the start of the DetailsActivity/DetailsView implementation.
859 * src/main/java/org/glom/web/client/OnlineGlomService.java:
860 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
861 Add getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup() methods.
862 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
863 Get the layout information for the details view from the server and set
864 the main layout group titles.
865 * src/main/java/org/glom/web/client/ui/DetailsView.java:
866 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
867 Add addLayoutGroup() and addLayoutField() methods. This are just
868 temporary methods for creating the the details view that will change
870 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
871 Implement getDetailsLayoutGroup() and getDefaultDetailsLayoutGroup()
873 * src/main/java/org/glom/web/shared/layout/Formatting.java:
874 * src/main/java/org/glom/web/shared/layout/LayoutGroup.java:
875 * src/main/java/org/glom/web/shared/layout/LayoutItem.java:
876 * src/main/java/org/glom/web/shared/layout/LayoutItemField.java:
877 * src/main/java/org/glom/web/shared/layout/LayoutItemWithFormatting.java:
878 Data Transfer Objects that mimic the libglom object structure. These are
879 used for transferring the details layout but could also be used for
880 transferring the list layout.
882 2011-05-27 Ben Konrath <ben@bagu.org>
884 Reset the AuthenticationPopup when clearing the ListView.
886 * src/main/java/org/glom/web/client/activity/ListActivity.java:
888 2011-05-27 Ben Konrath <ben@bagu.org>
890 Fix problem with onlineglom.properties file loading.
892 The old way worked in Eclipse but not on the server. Loading the
893 onlineglom.properties file now works in Eclipse and on the server.
895 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
897 2011-05-24 Ben Konrath <ben@bagu.org>
899 Update gwt-log from 3.1.0 to 3.1.2.
901 Gwt-log 3.1.0 has been marked as depreciated.
905 2011-05-24 Ben Konrath <ben@bagu.org>
907 Add comment to ListActivity.goTo() method.
909 * src/main/java/org/glom/web/client/activity/ListActivity.java:
911 2011-05-24 Ben Konrath <ben@bagu.org>
913 Remove FIXME in convertGdkColorToHtmlColour()
915 The Gdk::Color value returned by libglom is 16-bits per channel on both
916 64 and 32-bit platforms.
918 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
920 2011-05-19 Ben Konrath <ben@bagu.org>
922 Improve performance of initial ListView load.
924 I removed a round trip to the server for getting the default table name
925 and then requesting information about that table. This also removes a potential
926 problem with the table change handler not being setup in time to receive the
927 table change event from the ListActivity.
929 * src/main/java/org/glom/web/client/OnlineGlomService.java:
930 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
931 getDefaultLayoutListTable() method. Improve comments.
932 * src/main/java/org/glom/web/client/activity/ListActivity.java: Use
933 getDefaultLayoutListTable() method instead of firing a table change
934 event to get the table to load.
935 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
936 implementation of getDefaultLayoutListTable() method.
937 * src/main/java/org/glom/web/shared/LayoutListTable.java: Add field for
940 2011-05-19 Ben Konrath <ben@bagu.org>
942 Override toDebugString() in TableChangeEvent.
944 This is useful to have for debugging.
946 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
948 2011-05-19 Ben Konrath <ben@bagu.org>
950 Add a "Back to List" link when at the DetailsPlace.
952 * src/main/java/org/glom/web/client/activity/ListActivity.java:
953 Populate the CellTable based on the selected table of the ListBox if
954 it's set otherwise use the default table. This allows the "Back to
956 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
957 Remove Place from constructors. Add a setPlace() method. Add
958 goToPlace() method. Set class as presenter for TableSelectionView.
959 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
960 Use the same TableSelectionActivity when switching between the List and
962 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
963 Subclass the new HasSelectableTablePlace. This removes some duplicate
965 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
966 New class to represent Places that display the TableSelectionView.
967 * src/main/java/org/glom/web/client/place/ListPlace.java:
968 Subclass the new HasSelectableTablePlace. This removes some duplicate
970 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
971 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
972 Add Presenter interface. Add setBackLinkVisible() method. Add
973 setBackLink() method.
975 2011-05-18 Ben Konrath <ben@bagu.org>
977 Enable the "Details" buttons.
979 Right now only an empty details view is displayed.
981 * src/main/java/org/glom/web/client/ClientFactory.java:
982 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
983 Add DetailsView to ClientFactory.
984 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
985 A basic activity for the details view.
986 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
987 Add a new constructor that takes a DetailsPlace. Rename shutdown() to
989 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
990 Add DetailsPlace.Tokenizer to the list of tokens that are generated by
992 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
993 Create a new DetailsActivity when a DetailsPlace is requested. Remove
994 unnecessary super() in constructor.
995 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
996 Create a new TableSelectionActivity when a DetailsPlace is requested. We
997 really shouldn't create a new TableSelectionActivity for both the ListPlace
998 and the DetailsPlace so this should be considered a temporary solution.
999 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
1000 New file. Represents a URL for the details view.
1001 * src/main/java/org/glom/web/client/ui/DetailsView.java:
1002 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
1003 A basic details view interface and implementation.
1004 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1005 Enable the "Details" buttons.
1007 2011-05-12 Ben Konrath <ben@bagu.org>
1009 Use a LayoutPanel with multiple display areas for main layout.
1011 This is mostly a refactor in that there are no changes from the user
1012 point of view. These changes are required so that we can swap out the list view
1013 with the details view when the user clicks the "Details" button.
1015 * src/main/java/org/glom/web/client/ClientFactory.java:
1016 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1017 OnlineGlomView. Add TableSelectionView, ListView and
1018 AuthenticationPopup.
1019 * src/main/java/org/glom/web/client/OnlineGlom.java: Use LayoutPanel
1020 for main layout. Add display regions for main activities. Add
1021 activity manager for for main activities.
1022 * src/main/java/org/glom/web/client/activity/ListActivity.java: New
1023 file from parts of the deleted OnlineGlomActivity.
1024 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1025 New file from parts of the deleted OnlineGlomActivity.
1026 * src/main/java/org/glom/web/client/event/TableChangeEvent.java:
1027 * src/main/java/org/glom/web/client/event/TableChangeEventHandler.java:
1028 New files for app wide table change event.
1029 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java:
1030 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMapper.java:
1031 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMapper.java:
1032 Activity mappers for the main activities replace the deleted app-wide
1034 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java:
1035 Fix a spelling error in he comment.
1036 * src/main/java/org/glom/web/client/ui/ListView.java:
1037 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1038 Renamed from LayoutListView and modified for MVP. This still not a
1039 proper dumb view as prescribed by the MVP pattern but it works for now.
1040 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1041 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1042 New widget stripped out of the deleted OnlineGlomView.
1043 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1044 Remove hack that is fixed by this patch.
1046 2011-05-06 Ben Konrath <ben@bagu.org>
1048 Rename OnlineGlomPlace to ListPlace.
1050 The only change besides the rename is that url will now display #list
1051 instead of #Document.
1053 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1054 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1055 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1056 * src/main/java/org/glom/web/client/place/ListPlace.java:
1057 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1059 2011-05-06 Ben Konrath <ben@bagu.org>
1061 Use Presenter for app navigation.
1063 This is the proper way to deal with Place (URL) changes with the MVP
1066 * src/main/java/org/glom/web/client/ClientFactory.java:
1067 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Remove
1068 PlaceHistoryMapper and PlaceHistoryHandler.
1069 * src/main/java/org/glom/web/client/OnlineGlom.java: Re-add
1070 PlaceHistoryMapper and PlaceHistoryHandler.
1071 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1072 Don't use getHistoryMapper().getToken(place) to create the hyperlinks.
1073 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1074 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1075 Add Presenter interface and setPresenter methods. Rename addHyperLink
1076 to addDocumentLink taking only the document title as a parameter.
1078 2011-04-14 Ben Konrath <ben@bagu.org>
1080 Prompt for db username/password if they haven't been set.
1082 This is implemented with a popup widget that is contained within the
1083 OnlineGlomView and managed by the OnlineGlomActivity.
1085 * src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
1086 methods for checking and setting the database username and password.
1087 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
1088 new methods for checking and setting the database username and
1090 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1091 Display authentication popup if the JDBC connection to the database
1092 has not been authenticated.
1093 * src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
1095 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1096 for dealing with the authentication popup.
1097 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
1098 Implement the methods for dealing with the authentication popup.
1099 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
1100 try to executed queries if the database connection hasn't been
1101 authenticated. Implement methods for checking and setting the
1102 database username and password.
1104 2011-04-12 Ben Konrath <ben@bagu.org>
1106 Make log messages a little clearer.
1108 Add a dash betweeen the document title and the table name.
1110 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1112 2011-04-12 Ben Konrath <ben@bagu.org>
1114 Protect against NPEs when cleaning up database resources.
1116 While this isn't strictly necessary because the exception is caught,
1117 not protecting against the NPEs makes it harder to find the real error
1120 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1122 2011-04-12 Ben Konrath <ben@bagu.org>
1124 Move configuration of the servlet to the constructor.
1126 The servlet will be initialized even if the database authentication
1127 information is not set or correct. I still need to add the UI for prompting
1128 the user for the authentication information when it's required.
1130 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1131 javadocs for getDocumentTitles() method.
1132 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1133 Set error message when RPC fails.
1134 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
1135 glom files directory from the configuration file. Try to set the
1136 database authentication information for the specific document if it's
1137 set and works otherwise try to use the global authentication
1138 information set for the directory.
1139 * src/main/resources/onlineglom.properties: Moved from
1140 src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
1141 Added detailed comments for the new keys.
1143 2011-04-11 Ben Konrath <ben@bagu.org>
1145 Remove unnecessary @Override in DocumentSelectionViewImpl.
1147 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1149 2011-04-11 Ben Konrath <ben@bagu.org>
1151 Remove center alignment in DocumentSelectionView.
1153 The title element is still centred but the document titles and bottom
1154 sentence are both left-aligned.
1156 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1158 2011-04-11 Ben Konrath <ben@bagu.org>
1160 Change 'Demo' naming convention to 'Document'.
1162 This is just a rename refactor with no functional changes to the code.
1164 * src/main/java/org/glom/web/client/ClientFactory.java:
1165 * src/main/java/org/glom/web/client/ClientFactoryImpl.java:
1166 * src/main/java/org/glom/web/client/OnlineGlom.java:
1167 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1168 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1169 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1170 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java:
1171 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1172 * src/main/java/org/glom/web/client/place/DocumentSelectionPlace.java:
1173 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
1174 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
1175 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
1176 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1178 2011-04-08 Ben Konrath <ben@bagu.org>
1180 Remove FIXME from safeLongToInt() method.
1182 Libglom uses longs on 32-bit and 64-bit platforms so it's ok to use
1185 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1187 2011-04-08 Ben Konrath <ben@bagu.org>
1189 Display an error if no glom documents are found in the specified directory.
1191 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1192 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1193 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1194 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1196 2011-04-08 Ben Konrath <ben@bagu.org>
1198 Add copyright header to one more file ... oops.
1200 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1202 2011-04-08 Ben Konrath <ben@bagu.org>
1204 Add copyright header to files without it.
1206 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1207 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1208 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1209 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1210 * src/main/java/org/glom/web/shared/ColumnInfo.java:
1211 * src/main/java/org/glom/web/shared/GlomField.java:
1213 2011-04-08 Ben Konrath <ben@bagu.org>
1215 Add support for accessing multiple glom documents in the servlet.
1217 This completes the demo selection functionality.
1219 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add
1220 document title to methods.
1221 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1222 document title to methods.
1223 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1224 Set browser window title when the activity starts. Correct name of
1225 document title variable.
1226 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1227 Set browser window title when the activity starts. Set the table
1228 selector change handler after table selector has been set. Clear the
1229 OnlineGlomView when the activity has been stopped.
1230 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java: Use the
1231 document title as the place token. Use "#Document:" instead of
1232 "#OnlineGlomPlace:" in the URL.
1233 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1234 Change heading to "Online Glom"
1235 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Use
1236 document title in RPC methods.
1237 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Remove
1238 setDocumentTitle() method. Add clear() method.
1239 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Remove
1240 setDocumentTitle() method. Implement clear() method which removes the
1241 change handler on the ListBox, clears the ListBox and clears the
1243 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1244 Implement methods with document title. Keep track for the configured
1245 glom documents and their corresponding JDBC configurations in a hash
1246 table. This information is retrieved using the document title as the
1247 key in the hash table.
1248 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1249 document title field as it's no longer needed.
1251 2011-04-08 Ben Konrath <ben@bagu.org>
1253 Update the Eclipse JDT configuration.
1255 * .settings/org.eclipse.jdt.ui.prefs: Automatically add comments to new
1256 methods. Automatically add the copyright header to new files.
1258 2011-04-05 Ben Konrath <ben@bagu.org>
1260 Add new page for demo selection.
1262 This patch adds all the components required to view and start an
1263 OnlineGlom demo by clicking on the desired hyperlink. The user is
1264 able to return to the demo selection page with the browser's back
1265 button. I still need to modify the servlet to work with multiple
1266 documents so all demo links will load the file defined in the
1267 OnlineGlom.properties.
1269 * .gitignore: Add .gwt which holds the error log for the GWT UiBuidler.
1270 This is only useful during development so we don't need to save it.
1271 * src/main/java/org/glom/web/client/ClientFactory.java: Add method to
1272 get a reference to the DemoSelectionView.
1273 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: Implement
1274 method to get a reference to the DemoSelectionView.
1275 * src/main/java/org/glom/web/client/OnlineGlom.java: Change the
1276 default view to DemoSelectionView.
1277 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add method
1278 to get glom document titles for glom files in a hard-coded directory.
1279 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1280 method to get glom document titles for glom files in a hard-coded
1282 * src/main/java/org/glom/web/client/activity/DemoSelectionActivity.java:
1283 Presenter for DemoSelectionView.
1284 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: Update
1285 for DemoSelectionView.
1286 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1287 Update for DemoSelectionView.
1288 * src/main/java/org/glom/web/client/place/DemoSelectionPlace.java:
1289 Basic 'Place' implementation for the DemoSelectionView.
1290 * src/main/java/org/glom/web/client/ui/DemoSelectionView.java:
1291 The interface for the DemoSelectionView.
1292 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.java:
1293 The implementation of the DemoSelectionView.
1294 * src/main/java/org/glom/web/client/ui/DemoSelectionViewImpl.ui.xml:
1295 The GWT UiBuilder xml file used in DemoSelectionViewImpl.
1296 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1297 implementation of method to get glom document titles for glom files
1298 in a hard-coded directory.
1299 * src/main/webapp/OnlineGlom.html: Remove link to CSS file as it's
1300 on longer being used.
1301 * src/main/webapp/glom.png: Glom logo.
1303 2011-04-05 Ben Konrath <ben@bagu.org>
1305 Move RPC code from OnlineGlomViewImpl to OnlineGlomActivity.
1307 This is the forth and final commit of a refactor that will allow
1308 OnlineGlom to be used with multiple documents.
1310 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1311 Move RPC code from OnlineGlomViewImpl to this class.
1312 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
1314 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: Move
1315 RPC code to the presenter class (the P in MVP).
1317 2011-04-04 Ben Konrath <ben@bagu.org>
1319 Start moving the existing OnlineGlom code to MVP.
1321 This work is based on the GWT MVP framework that is documented here:
1323 https://code.google.com/webtoolkit/doc/2.2/DevGuideMvpActivitiesAndPlaces.html
1325 This is the third commit of a refactor that will allow OnlineGlom to
1326 be used with multiple documents.
1328 * src/main/java/org/glom/web/client/ClientFactory.java: New file.
1329 Interface for client factory which is used to get instances of various
1330 classes throughout the app.
1331 * src/main/java/org/glom/web/client/ClientFactoryImpl.java: New file.
1332 Implementation of client factory.
1333 * src/main/java/org/glom/web/client/OnlineGlom.java: Add code to
1334 initialize the MVP framework.
1335 * src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
1336 New file. Activity manager for the main container widget. This is the
1338 * src/main/java/org/glom/web/client/mvp/AppActivityMapper.java: New file.
1339 Maps place (URL) to its corresponding activity.
1340 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1341 New file. This is just a place holder for a generated file.
1342 * src/main/java/org/glom/web/client/place/OnlineGlomPlace.java:
1343 New file. Represents the URL for the main Online Glom app.
1344 * src/main/java/org/glom/web/client/ui/LayoutListView.java: Update
1345 for changes in LayoutListViewImpl.
1346 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Create
1347 interface for View. Move code to OnlineGlomViewImpl class.
1348 * src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java: New
1349 file. Implementation of OnlineGlomView.
1350 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Add Activity and
1351 Place resources. Use ClientFactoryImpl by default.
1353 2011-04-04 Ben Konrath <ben@bagu.org>
1355 Move View classes to their own package.
1357 This is the second commit of a refactor that will allow OnlineGlom to
1358 be used with multiple documents.
1360 * src/main/java/org/glom/web/client/OnlineGlom.java:
1361 * src/main/java/org/glom/web/client/ui/LayoutListView.java:
1362 * src/main/java/org/glom/web/client/ui/OnlineGlomView.java:
1364 2011-04-02 Ben Konrath <ben@bagu.org>
1366 Move UI code from the main module to its own class.
1368 This is the first commit of a refactor that will allow OnlineGlom to be
1369 used with multiple documents.
1371 * src/main/java/org/glom/web/client/LayoutListView.java: Update
1372 references to OnlineGlom to OnlineGlomView.
1373 * src/main/java/org/glom/web/client/OnlineGlom.java: Move code to
1374 OnlineGlomView and instantiate it here.
1375 * src/main/java/org/glom/web/client/OnlineGlomView.java: New class that
1376 represents the main OnlineGlomView with one document.
1378 2011-04-01 Ben Konrath <ben@bagu.org>
1380 Fix formatting of gwt.xml and add DTD.
1382 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
1384 2011-03-30 Ben Konrath <ben@bagu.org>
1386 Propperly convert gdkColor string to html colour string.
1388 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1390 2011-03-28 Ben Konrath <ben@bagu.org>
1392 Change implementation of OnlineGlomServiceImpl.getColumnInfoHorizontalAlignment().
1394 This implementation matches
1395 OnlineGlomServiceImpl.getColumnInfoGlomFieldType(), should perform better, is more
1396 readable and is not tied to Swig.
1398 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1400 2011-03-28 Ben Konrath <ben@bagu.org>
1402 Use read-only checkboxes for boolean field types.
1404 * src/main/java/org/glom/web/client/LayoutListView.java: Create columns
1405 in the CellTable based on the field type. It currently only
1406 distinguishes between boolean and text columns but I'll need to add
1407 support for more types.
1408 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Set the
1409 column type in the ColumnInfo object. Add method to convert between the
1410 glom field type enum in ColumnInfo and the glom field type in libglom.
1411 * src/main/java/org/glom/web/shared/ColumnInfo.java: Add support for
1413 * src/main/java/org/glom/web/shared/GlomField.java: Add support for
1414 getting and setting booleans.
1416 2011-03-25 Ben Konrath <ben@bagu.org>
1418 Don't get the Date twice from the ResultSet.
1420 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1422 2011-03-25 Ben Konrath <ben@bagu.org>
1424 Cleanup code in the servlet.
1426 * TODO: Remove item about row count. Add item about testing row count
1427 query with large number of rows.
1428 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Fix
1429 spelling mistakes, change method parameter to be consistent with
1432 2011-03-25 Ben Konrath <ben@bagu.org>
1434 Add server side logging with the gwt-log library.
1436 * .gitignore: Ignore the log file we're now producing.
1437 * TODO: Add a couple TODO item for logging.
1438 * pom.xml: Add gwt-log and log4j as a dependency.
1439 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1440 logging of errors, warnings and some important info.
1441 * src/main/resources/log4j.properties: New file to configure log4j.
1443 2011-03-24 Ben Konrath <ben@bagu.org>
1445 Add a disable button for the Details view.
1447 * src/main/java/org/glom/web/client/LayoutListView.java:
1449 2011-03-22 Ben Konrath <ben@bagu.org>
1451 Use a count query to get the number of rows for the list view pager.
1453 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1455 2011-03-22 Ben Konrath <ben@bagu.org>
1457 Add more TODO information about CellTable pager positioning.
1461 2011-03-19 Ben Konrath <ben@bagu.org>
1463 Add TODO item about CellTable pager positioning.
1467 2011-03-18 Ben Konrath <ben@bagu.org>
1469 Remove unneeded GlomFieldColumn class.
1471 This is just a small code cleanup.
1473 * src/main/java/org/glom/web/client/LayoutListView.java:
1475 2011-03-18 Ben Konrath <ben@bagu.org>
1477 Use cursor mode in the query that gets data for the list view.
1479 I still need to fix the potential memory problem when getting the row
1480 count for the list view.
1482 * TODO: Add note about testing memory usage with large data sets. Add
1483 item about fixing row counting with large data sets.
1484 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Put the
1485 PostgreSQL JDBC driver into cursor mode when getting data for the
1488 2011-03-15 Ben Konrath <ben@bagu.org>
1490 Remove the GWT Container from the Eclipse build classpath.
1492 The GWT dependencies are set by Maven so this isn't needed.
1496 2011-03-15 Murray Cumming <murrayc@murrayc.com>
1498 Added some earlier mockups to git, but not to the tarball dist.
1500 * mockups/: Added some mockups from 2010-02 by Daniel Borgmann for
1501 Openismus. These hopefully show how we might structure the HTML so that
1502 it can be styled easily with CSS. However, we probably need to adapt them
1503 for the CSS structure that GWT dictates for common widgets.
1505 2011-03-14 Ben Konrath <ben@bagu.org>
1507 Locate OnlineGlom.properties using the ServletContext.
1509 This is required to be able to locate the file in the deployed servlet.
1511 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1512 Configure the database and glom document in in a helper method so
1513 that the ServletContext can be used to locate OnlineGlom.properties.
1514 * src/main/webapp/WEB-INF/OnlineGlom.properties: Moved from
1515 src/main/webapp. This is the proper location for .properites files.
1517 2011-03-12 Ben Konrath <ben@bagu.org>
1519 Add note to README about why we're compiling down to obfuscated JavaScript.
1523 2011-03-11 Ben Konrath <ben@bagu.org>
1525 Use properties file to configure servlet.
1527 This allows people to change the glom file path, db username and db
1528 password without recompiling the code.
1530 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1531 * src/main/webapp/OnlineGlom.properties:
1533 2011-03-11 Ben Konrath <ben@bagu.org>
1535 Use table fields in layout list view if the layout list is not defined.
1537 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1538 Manually create a LayoutFieldVector for the query builder using the
1539 table fields when a layout list is not defined in the glom file.
1541 2011-03-11 Ben Konrath <ben@bagu.org>
1543 Only show FIXME string for images when there's an image.
1545 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Also included
1546 in this change are some small code cleanups.
1548 2011-03-11 Ben Konrath <ben@bagu.org>
1550 Set text for fields with TYPE_IMAGE and TYPE_INVALID to avoid NPEs.
1552 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1554 2011-03-11 Ben Konrath <ben@bagu.org>
1556 Correctly set the index of the default table.
1558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1559 Correctly set the index of the default table. Add commented out example
1562 2011-03-10 Ben Konrath <ben@bagu.org>
1564 Add comment to pom.xml about the previous change.
1566 * pom.xml: Add comment about the deployment issue so that it's obvious
1567 why java-libglom is set to the provided scope.
1569 2011-03-10 Ben Konrath <ben@bagu.org>
1571 Change java-libglom dependency from compile to provided in pom.xml.
1573 Since java-libglom uses jni it can only be loaded once and therefore
1574 must be placed in $CATALINA_HOME/lib and not included in each war.
1575 This directory is defined as /usr/share/tomcat6/lib/ on Ubuntu 10.04.
1576 More information about this issue can be found in the Tomcat 6 release
1577 notes in the "JNI Based Applications" section:
1579 http://tomcat.apache.org/tomcat-6.0-doc/RELEASE-NOTES.txt
1581 * README: Remove note about this issue. Deployment info should really
1582 be on the wiki anyway so I'll add it right now.
1583 * pom.xml: Change java-libglom dependency from compile to provided so
1584 that it's copied in to the packaged war.
1586 2011-03-09 Ben Konrath <ben@bagu.org>
1588 Change to using a neutral locale for currency, date and time formatting.
1590 This solves the problem of currency values being represented without a
1591 space between the currency code and the number (e.g. "EUR5.89" is now
1592 represented as "EUR 5.89"). More work is required when we implement
1593 a locale preference setting.
1595 * TODO: Add note about currency formatting issues with different
1597 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1598 to using the neutral ROOT locale.
1600 2011-03-09 Ben Konrath <ben@bagu.org>
1602 Add support for currency codes that are not ISO 4217 codes.
1604 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1605 the currency code defined in the glom file when it's not 3 characters
1606 long or when Java doesn't recognize the string as an ISO 4217 code.
1608 2011-03-08 Ben Konrath <ben@bagu.org>
1610 Remove test classes, launch configurations and configuration.
1612 The test stuff was getting in the way when creating the war. To make
1613 the war file you can now do 'mvn clean package'. The packaged war file
1614 will be in the target directory.
1616 * .classpath: Remove unused classpathentry for tests and i18n.
1617 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
1618 property. Don't run test or i18n goals when packaging the war.
1619 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
1624 * OnlineGlomTest-dev.launch:
1625 * OnlineGlomTest-prod.launch:
1626 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1627 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
1629 2011-03-07 Ben Konrath <ben@bagu.org>
1631 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
1633 These fixes allow me to use 'mvn deploy' to create the war file.
1635 * .classpath: This generated config has been updated by Eclipse. This
1636 change was probably triggered by me updating from Eclipse 3.6.1 to
1638 * .gitignore: Add entry to ignore the directory
1639 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
1640 * .project: The generated config has been updated by Eclipse. This
1641 change was probably triggered by me updating from Eclipse 3.6.1 to
1643 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
1644 so that Eclipse doesn't complain
1645 * pom.xml: Update to gwt-maven-plugin 2.2.0.
1646 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
1647 'tests' directory to 'client' directory. This is the new
1648 gwt-maven-plugin convension.
1649 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
1650 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
1652 2011-03-07 Ben Konrath <ben@bagu.org>
1654 Add support for horizontal alignment in the LayoutList columns.
1656 * TODO: Remove item about horizontal alignment. Add item about
1657 improvements to ColumnInfo.
1658 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
1659 alignment on the columns. Use ColumnInfo RPC object get the column
1660 title and horizontal alignment.
1661 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1662 LayoutListView creation with ColumnInfo RPC object.
1663 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
1664 a ColumnInfo object for every LayoutList columnn. Convert the
1665 FieldFormatting.HorizontalAlignment to the correct
1666 ColumnnInfo.HorizontatlAlignment with the new
1667 getColumnInfoHorizontalAlignment helper method.
1668 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
1669 to encapsulate column information like alignment and title. This
1670 could be used to set the colour instead of on a per cell field basis.
1671 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
1672 column title storage and retrieval with ColumnInfo.
1674 2011-03-04 Ben Konrath <ben@bagu.org>
1676 Add support for column sorting.
1678 * src/main/java/org/glom/web/client/LayoutListView.java: Change
1679 AsynDataProvider to be an anonymous inner class. Use new
1680 getSortedTableData RPC method when column sort is requested. Set all
1681 columns sortable and add an AsyncHandler to activate sorting in the
1683 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
1684 method getSortedTableData(). Cleanup other method signatures.
1685 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
1686 new method getSortedTableData(). Cleanup other method signatures.
1687 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1688 Implement getSortedTableData() and getTableData() methods by using a
1689 private helper method with the appropriate parameters filled in. Use
1690 user supplied sort clause when supplied, otherwise fall back to
1691 sorting by the primary key. Move destroy() method to be underneath
1692 constructor for readability. Cleanup comments.
1694 2011-03-03 Ben Konrath <ben@bagu.org>
1696 Add support for colour text and colour backgrounds to the layout list cells.
1698 Only the cell backgrounds are coloured which leaves a gap between the
1699 cells that isn't coloured. I need to figure out a way to set
1700 'style=background-colour:' on the whole column rather than just the
1703 * TODO: Add a note about colouring the background of the whole column.
1704 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
1705 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
1706 render the coloured text and backgrounds. Use GlomField[] for the row type.
1707 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
1709 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
1710 GlomField[] for the row type.
1711 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
1712 GlomField[] for the row type. Set the text, text colour and background
1713 colour in the GlomField objects as specified in the glom document. Add
1714 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
1715 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
1716 the glom field text, foreground colour and background colour.
1718 2011-03-02 Ben Konrath <ben@bagu.org>
1720 Don't display hidden tables in the combo box.
1722 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
1724 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1725 code to ignore hidden tables using ArrayLists for the table names and
1727 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
1728 tableNames to use ArrayLists instead of String[]. Update getter and setter
1731 2011-03-01 Ben Konrath <ben@bagu.org>
1733 Add support for Date and Time number types.
1735 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1736 Implement formatting for Date and Time values. Change the default glom
1737 file to small business example.
1739 2011-03-01 Ben Konrath <ben@bagu.org>
1741 Add support for formatting glom types as specified in the glom file.
1743 Formatting isn't finished yet - I still need to add support for Date
1746 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
1747 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
1748 checks for null values in JDBC cleanup code and catch all exceptions
1749 instead of just SQLExceptions.
1750 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
1753 2011-03-01 Ben Konrath <ben@bagu.org>
1755 Use GWT 2.2.0 instead of 2.1.1.
1757 * pom.xml: Change GWT version numbers.
1759 2011-03-01 Ben Konrath <ben@bagu.org>
1761 A few small code cleanups.
1763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
1765 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
1766 unnecessary object creation in constructor.
1767 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
1768 unnecessary object creation in constructor.
1770 2011-02-28 Ben Konrath <ben@bagu.org>
1772 Add file for TODO list.
1776 2011-02-18 Ben Konrath <ben@bagu.org>
1778 Enable the CellTable Pager when more than 20 rows need to be viewed.
1780 The Pager will automatically become active when the results are larger
1781 than the CellTable size which is currently set to 20 lines.
1783 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
1784 name on debug statment in RPC call in LayoutListDataProvider, add
1785 numRows parameter to LayoutListView constructor, propperly set rowCount
1787 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
1788 name on debug statment in RPC call, use LayoutListTable object in RPC
1789 calls, pass rowCount to LayoutListView.
1790 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
1791 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
1793 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
1794 interface for changes in OnlineGlomService.
1795 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
1796 getLayoutListHeaders() to getLayoutListTable() and return
1797 LayoutListTable. Using this object allows me to pass other information
1798 about the LayoutList like the expected number of rows in the result set.
1799 The Connection object from the connection pool is now propperly closed.
1800 Only the requested number of lines are returned to the client in
1802 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
1803 GlomTable and add columnTitles and numRows.
1805 2011-02-18 Ben Konrath <ben@bagu.org>
1807 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
1809 This is a small performance boost. I'll use GlomTable to get the required
1810 layoutlist information.
1812 * src/main/java/org/glom/web/client/OnlineGlom.java:
1813 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1814 * src/main/java/org/glom/web/shared/GlomDocument.java:
1816 2011-02-18 Ben Konrath <ben@bagu.org>
1818 Add option to turn off formatting in JDT formatter preferences.
1820 * .settings/org.eclipse.jdt.core.prefs:
1822 2011-02-18 Ben Konrath <ben@bagu.org>
1824 Rename LayoutList to LayoutListView.
1826 I'm working towards setting things up to easily use MVP when the time
1829 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
1831 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
1834 2011-02-17 Ben Konrath <ben@bagu.org>
1836 Move LayoutListDataProvider class into LayoutList.java.
1838 * src/main/java/org/glom/web/client/LayoutList.java:
1840 2011-02-17 Ben Konrath <ben@bagu.org>
1842 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
1844 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
1846 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
1847 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
1848 from LibGlomServer.java.
1849 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1850 Rename from LibGlomServiceAsync.java.
1851 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1852 Rename from LibGlomServiceImpl.java.
1853 * src/main/webapp/WEB-INF/web.xml: Update configuration.
1855 2011-02-17 Ben Konrath <ben@bagu.org>
1857 Update JDT settings.
1859 * .settings/org.eclipse.jdt.core.prefs:
1861 2011-02-17 Ben Konrath <ben@bagu.org>
1863 Move GWT-RPC objects to shared package (where they should be).
1865 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
1866 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
1867 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
1868 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
1869 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
1870 org.glom.web.shared package.
1871 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
1872 org.glom.web.shared package.
1873 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
1874 directory in compilation to javascript.
1876 2011-02-16 Ben Konrath <ben@bagu.org>
1878 Add sort clause to the sql query that grabs table information.
1880 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
1881 if one of the columns is a primary key.
1883 2011-02-16 Ben Konrath <ben@bagu.org>
1885 Disable generateAsync feature of gwt-maven.
1887 The generated interface does not correctly match the methods in LibGlomService
1888 and the generated singleton Util inner-class doesn't respect the servlet
1891 * pom.xml: Turn off generateAsync feature.
1892 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
1893 with singleton Util inner-class.
1895 2011-02-14 Ben Konrath <ben@bagu.org>
1897 Add LGPL v3 licence notices.
1899 Followed directions listed here:
1900 http://www.gnu.org/licenses/gpl-howto.html
1902 * COPYING: This file is a copy of the GPL v3.
1903 * COPYING.LESSER: This file is a copy of the LGPL v3.
1904 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
1906 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
1908 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
1910 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
1912 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
1914 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
1916 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1919 2011-02-14 Ben Konrath <ben@bagu.org>
1921 Use ArrayList instead of Array in GWT-RPC calls.
1923 Apparently this gives a slight performance boost to the compiled
1926 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
1928 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
1931 2011-02-14 Ben Konrath <ben@bagu.org>
1933 Access data from a postgres db rather than the example glom file.
1935 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
1936 compile down to obfuscated javascript.
1937 * pom.xml: Add c3p0 and postgres JDBC libraries.
1938 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
1939 using a postgres db accessed through the c3p0 connection pooling library.
1941 2011-02-14 Ben Konrath <ben@bagu.org>
1943 Update Java formatter settings.
1945 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
1947 2011-02-02 Ben Konrath <ben@bagu.org>
1949 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
1951 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
1953 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
1954 the compiled webapp directory that Eclipse uses as we're using Maven now.
1955 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
1956 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
1958 * pom.xml: Format file, change target Java version to 1.6.
1960 2011-02-02 Ben Konrath <ben@bagu.org>
1962 Add information about a deployment related issue.
1964 * README: Add Notes section with the problem outlined.
1966 2011-02-02 Ben Konrath <ben@bagu.org>
1968 Call Glom.libglom_deinit() when the servlet is shutdown.
1970 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
1971 Glom.libglom_deinit() to destroy() method.
1973 2011-01-28 Ben Konrath <ben@bagu.org>
1975 Use generated Util class to get the RPC Async interface.
1977 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
1979 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
1980 getInstance() method to get a reference to the RPC Async interface.
1981 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
1982 getInstance() method to get a reference to the RPC Async interface, remove
1983 the now unused getLibGlomServiceProxy() method.
1985 2011-01-27 Ben Konrath <ben@bagu.org>
1987 Cleanup ChangeLog entry from previous commit.
1989 * ChangeLog: Group logical changes together and add comments.
1991 2011-01-25 Ben Konrath <ben@bagu.org>
1993 Convert to gwt-maven project.
1995 * .gitignore: Update for new project structure.
1996 * README: New file with a link to the online documentation.
1997 * pom.xml: The generated maven configuration file with some tweaks.
1999 Add / update Eclipse settings. These files are a merge of the files that
2000 were generated with the gwt-maven plugin and the files we were previously
2004 * .settings/.jsdtscope:
2005 * .settings/com.google.gdt.eclipse.core.prefs:
2006 * .settings/com.google.gwt.eclipse.core.prefs:
2007 * .settings/org.eclipse.jdt.core.prefs:
2008 * .settings/org.eclipse.wst.common.component:
2009 * .settings/org.eclipse.wst.common.project.facet.core.xml:
2010 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
2011 * .settings/org.maven.ide.eclipse.prefs:
2012 * OnlineGlomTest-dev.launch:
2013 * OnlineGlomTest-prod.launch:
2015 Java source files moved from the 'src' directory to the directory structure
2017 * src/main/java/org/glom/web/client/GlomDocument.java:
2018 * src/main/java/org/glom/web/client/GlomTable.java:
2019 * src/main/java/org/glom/web/client/LayoutList.java:
2020 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
2021 * src/main/java/org/glom/web/client/LibGlomService.java:
2022 * src/main/java/org/glom/web/client/OnlineGlom.java:
2023 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
2025 Non-functional property file used for translations. I included this as
2026 reminder that it's something I need to sort out.
2027 * src/main/resources/org/glom/web/client/Messages.properties:
2029 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
2030 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
2032 The servlet configuration files moved from the 'war' directory.
2033 * src/main/webapp/OnlineGlom.css:
2034 * src/main/webapp/OnlineGlom.html:
2035 * src/main/webapp/WEB-INF/web.xml:
2037 Generated test files with most of the code commented out. I included these
2038 so that it's easy to add tests when we're ready for them.
2039 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
2040 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
2042 2011-01-25 Ben Konrath <ben@bagu.org>
2044 Remove unused println.
2046 * src/org/glom/web/server/LibGlomServiceImpl.java:
2048 2011-01-25 Ben Konrath <ben@bagu.org>
2050 Add project specific JDT settings.
2052 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
2053 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
2055 2011-01-25 Ben Konrath <ben@bagu.org>
2057 Populate celltable with example data.
2059 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
2060 * src/org/glom/web/client/GlomTable.java: Correct formatting.
2061 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
2062 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
2063 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
2064 asynchronously gets the example data.
2065 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
2066 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
2067 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
2068 curently selected table to be retrieved by other widgets.
2069 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
2070 implement getTableData() in a hacky way. This method needs to be updated
2071 to grab information from the database when database creating is
2074 2011-01-20 Ben Konrath <ben@bagu.org>
2076 Set table headers when table dropBox changes.
2078 * src/org/glom/web/client/GlomDocument.java: Correct some method
2080 * src/org/glom/web/client/LibGlomService.java: Add method
2081 to get list layout field names.
2082 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
2083 to get list layout field names.
2084 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
2085 widget for list layout table.
2086 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
2087 the table drop box and add new updateTable() method to asynchronously
2088 get the layout list field names for the currently selected table.
2089 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
2090 implementation of getLayoutListHeaders() method.
2091 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
2093 2011-01-18 Ben Konrath <ben@bagu.org>
2095 Make a listBox with table titles instead of the flexTable demo.
2097 This is the start of something more useful.
2099 * .classpath: Exclude a bunch of packages from the JVM that are
2100 getting in the way of the Eclipse content assist.
2101 * src/org/glom/web/client/GlomDocument.java:
2102 * src/org/glom/web/client/GlomTable.java:
2103 * src/org/glom/web/client/LibGlomService.java:
2104 * src/org/glom/web/client/LibGlomServiceAsync.java:
2105 * src/org/glom/web/client/OnlineGlom.java:
2106 * src/org/glom/web/server/LibGlomServiceImpl.java:
2107 * war/OnlineGlom.html:
2108 * war/WEB-INF/web.xml:
2110 211-01-13 Ben Konrath <ben@bagu.org>
2112 Update to new java-libglom API.
2114 * .gitignore: Ignore OnlineGlom.war.
2115 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
2117 2010-12-20 Ben Konrath <ben@bagu.org>
2119 Add some basic style to the table listing.
2121 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
2122 header, print useful error message on async callback failure.
2123 * war/OnlineGlom.css: Add style for table header, remove defaults
2124 provided by the Eclipse project wizard.
2126 2010-12-20 Ben Konrath <ben@bagu.org>
2128 Load example file from installed glom dir.
2130 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
2131 provided by java-libglom to find the example file.
2133 2010-12-20 Ben Konrath <ben@bagu.org>
2135 Update Eclipse settings.
2138 * .settings/com.google.gdt.eclipse.core.prefs:
2139 * .settings/com.google.gwt.eclipse.core.prefs:
2141 2010-12-17 Ben Konrath <ben@bagu.org>
2145 * .classpath: New file.
2146 * .gitignore: New file.
2147 * .project: New file.
2148 * .settings/com.google.gdt.eclipse.core.prefs: New file.
2149 * .settings/com.google.gwt.eclipse.core.prefs: New file.
2150 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
2151 * src/org/glom/web/client/GlomTable.java: New file.
2152 * src/org/glom/web/client/OnlineGlom.java: New file.
2153 * src/org/glom/web/client/TableNameService.java: New file.
2154 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
2155 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
2156 * war/OnlineGlom.css: New file.
2157 * war/OnlineGlom.html: New file.
2158 * war/WEB-INF/web.xml: New file.
2159 * war/images/glom.png: New file.