1 2012-12-04 Murray Cumming <murrayc@murrayc.com>
3 DetailsActivity: Check for authentication here too.
5 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
6 Call checkAuthentication to deal with a TODO here.
8 2012-12-04 Murray Cumming <murrayc@murrayc.com>
10 Authentication: Reduce some copy/paste by moving code to base class.
12 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
13 Add checkAuthentication().
14 * src/main/java/org/glom/web/client/activity/ListActivity.java:
15 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
16 Call it here instead of copy/pasting the code.
18 2012-12-04 Murray Cumming <murrayc@murrayc.com>
20 GwtTestOnlineGlomService: Add some assertions.
22 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
23 However, these assertions will never be run because we have no
24 way to set up the test conditions (specifying documents and their
25 databases) for the OnlineGlom service.
26 See https://groups.google.com/forum/?hl=en&fromgroups=#!topic/google-web-toolkit/Z6rPWG4kcKQ
28 2012-12-04 Murray Cumming <murrayc@murrayc.com>
30 Add client-side tests for StringUtils and Utils.
32 * src/test/java/org/glom/web/client/GwtTestStringUtils.java: Added.
33 * src/test/java/org/glom/web/client/GwtTestUtils.java: Added.
34 This is mostly just to catch java->javascript compilation problems.
36 2012-12-02 Murray Cumming <murrayc@murrayc.com>
38 Add GwtTestReportPlace.
40 * src/test/java/org/glom/web/client/place/GwtTestReportPlace.java:
41 This is like the existing GwtTest*Place tests.
42 It would be nice if we could just test that all client and shared
43 code can be compiled to Javascript without creating a test for it.
44 Currently, we only discover problems when starting it in a browser.
46 2012-12-02 Murray Cumming <murrayc@murrayc.com>
48 Add GwtTestDetailsPlace to test the same code as client-side.
50 * src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java:
51 See the comment about the awkward client-side-only Date API.
52 Ignoring this Date API issue, it would be nice if we could test
53 the same code as both Java (server) and generated Javascript (client)
54 without duplicating most of the test code.
56 2012-12-02 Murray Cumming <murrayc@murrayc.com>
58 DataItemTest: Test the date type too, and improve the asserts.
60 * src/test/java/org/glom/web/shared/DataItemTest.java:
61 Add testdate(). See the comment about the awkward server-side-only
64 2012-12-02 Murray Cumming <murrayc@murrayc.com>
66 DetailsPlace: Use a date-formatting API available in GWT client code.
68 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
69 getStringForData(): Use DateTimeFormat.getFormat(), because that works
70 on the client side (but not the server side) instead of String.format()
71 with Date.getYear()/getMonth()/getDate(), because they work only on the
72 server side (but not on the client side). Rather annoying.
73 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java: Rename to
75 * src/test/java/org/glom/web/client/place/ListPlaceTest.java: Rename to
76 GwtTestListPlaceTest, so we can run these as client-side (generated
77 Javascript) code so we can catch these problems sooner.
78 It is unfortunate that the code cannot run on the server-side as Java,
79 but it does not need to.
81 2012-12-02 Murray Cumming <murrayc@murrayc.com>
83 In the UI, allow primary keys to be any type, and test it.
85 * src/main/java/org/glom/web/shared/TypedDataItem.java:
86 Added isUnknownType() for convenience.
87 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
88 getToken(): Move some code into getStringForData() and handle
90 * src/main/java/org/glom/web/server/Utils.java:
91 Added transformUnknownToActualType(), to parse the unknown string
92 as a particular type of data. This should correspond with
93 getStringForData() above.
94 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
95 Add setDataItemType() to set the type of data for primary
97 getDetailsData(), getSuitableRecordToViewDetails():
98 Call it, to have the correctly-typed primary key value.
99 We do it here, on the server, instead of before, because it
100 is only here that we can know the field type that is in the
102 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
103 Added testGetPlaceParametersNumericPrimaryKey(),
104 testGetPlaceParametersBooleanPrimaryKey() and
105 testGetPlaceParametersDatePrimaryKey).
107 2012-11-30 Murray Cumming <murrayc@murrayc.com>
109 Allow primary keys to be any type, and test it.
111 * src/main/java/org/glom/web/shared/TypedDataItem.java:
112 Add overrides for the other set*() methods, to set the type.
113 Added getValue() which returns a generic Object.
114 * src/main/java/org/glom/web/server/SqlUtils.java:
115 buildSimpleWhereExpression(): Use TypedDataItem.getValue() instead of
117 * src/test/java/org/glom/web/server/SelfHostExampleNonNumericPrimaryKeysTest.java:
118 Added this test, which is much like SelfHostExampleTest, but which uses this
119 test file, take from Glom:
120 * src/test/resources/org/glom/web/server/test_example_music_collection_text_pk_fields.glom:
121 which has all the primary keys changes to text instead of numbers.
123 However, parts of the UI code still assume that primary keys are numbers.
125 2012-11-28 Murray Cumming <murrayc@murrayc.com>
127 SelfHostExampleTest: Move some checks into a utility function.
129 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
130 Move the data checks into a new file:
131 * src/test/java/org/glom/web/server/SelfHostTestUtils.java:
132 SelfHostTestUtils.java: so we can use it in some other
133 tests, with different documents.
135 2012-11-28 Murray Cumming <murrayc@murrayc.com>
137 SelfHosting test: Also try using a relationship.
139 * src/main/java/org/glom/web/server/database/DBAccess.java:
140 convertResultSetToDTO(): Move some code into a public
142 * src/main/java/org/glom/web/server/SqlUtils.java:
143 fillDataItemFromResultSet(): This takes a DataItem and
144 sets it from a value from a datbase recordset.
145 * src/main/java/org/glom/web/server/libglom/Document.java:
146 Make getDocument() public, so we can use it in a test.
147 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
148 Add testExampleMusiccollectionDataRelated() and call it from
149 testExampleMusiccollectionData(), to do a basic test of using
152 2012-11-22 Murray Cumming <murrayc@murrayc.com>
154 Build: Specify the source encoding.
156 * pom.xml: Set project.build.sourceEncoding
157 This should fix this build problem on some systems:
158 [ERROR] /var/lib/jenkins/workspace/OnlineGlom/src/test/java/org/glom/web/server/libglom/DocumentTest.java:[139,72] error: unmappable character for encoding ASCII
162 2012-11-20 Murray Cumming <murrayc@murrayc.com>
164 Update the jasperreports version.
166 * pom.xml: This was shown by
167 mvn versions:display-dependency-updates
169 2012-11-20 Murray Cumming <murrayc@murrayc.com>
171 Eclipse: Reorder the Java Build Path to fix the build in Eclipse.
173 * .classpath: This prevents an error saying that getTextContent()
175 See http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
177 2012-11-20 Murray Cumming <murrayc@murrayc.com>
179 Explicitly declare some dependencies (and scopes) that we use.
181 * pom.xml: The dependency report showed what we use.
183 2012-11-20 Murray Cumming <murrayc@murrayc.com>
185 Update the gwt-test-utils version.
187 * pom.xml: gwt-test-utils 0.43 uses GWT 2.5.0, not GWT 2.4.0.
188 Using both in the same project was causing gwt-log to fail in GWTBrige,
190 testOutOfBounds(org.glom.web.server.libglom.DocumentLayoutPathTest):
191 (class: com/google/gwt/core/client/GWT, method: setBridge signature: (Lcom/google/gwt/core/client/GWTBridge;)V) Incompatible argument to function
193 2012-11-19 Murray Cumming <murrayc@murrayc.com>
195 DocumentTest: testLocales(): Update for the latest example version.
197 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
198 The .glom file, updated in the previous commit, now has more translations.
200 2012-11-19 Murray Cumming <murrayc@murrayc.com>
202 Update the .glom files used for tests.
204 * src/test/resources/org/glom/web/server/example_film_manager.glom:
205 * src/test/resources/org/glom/web/server/example_music_collection.glom:
206 * src/test/resources/org/glom/web/server/libglom/example_film_manager.glom:
207 * src/test/resources/org/glom/web/server/libglom/example_music_collection.glom:
208 Copy them from git master of Glom.
210 2012-11-18 Murray Cumming <murrayc@murrayc.com>
212 Update versions of dependencies.
214 * pom.xml: Increase some version numbers based on the output of
215 , using mvn versions:display-dependency-updates.
216 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
217 Use the annotation instead of getModuleName().
218 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
219 Do not use deprecated assert() classes/methods.
221 2012-11-18 Murray Cumming <murrayc@murrayc.com>
223 Document: Correct an import to use the correct Log API.
225 * src/main/java/org/glom/web/server/libglom/Document.java:
226 Use our Utils.Log API rather than the jfree one that Eclipse
227 must have suggested at some time.
229 2012-11-15 Murray Cumming <murrayc@murrayc.com>
231 Details: Get static image data from our images services.
233 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
234 Add constructors for LayoutItemText and LayoutItemImage and
235 deal with their common type instead of just LayoutItemField.
237 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
239 * src/main/java/org/glom/web/client/ui/details/Group.java:
240 createChildWidget(): Use the other DetailsCell constructors for
241 these layout items, and do not add them to the list of
242 cells with data from the database.
243 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
244 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
245 Remove the image data when cloning the layout and storing it in the
246 cache. Clients will instead get it via the URL, from
248 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
249 doGet(): Depending on the URI parameters, optionally get
250 image data from a layout_item_image in the document,
252 * src/main/java/org/glom/web/server/database/DBAccess.java:
253 convertResultSetToDTO(): Move some URIBuilder code to:
254 * src/main/java/org/glom/web/server/Utils.java:
255 Add buildImageDataUrl() taking the primary key, etc, to
256 get data from the database.
258 2012-11-15 Murray Cumming <murrayc@murrayc.com>
260 Document: Static image items: Store an image URL, using the layout path.
262 * src/main/java/org/glom/web/server/Utils.java: Add buildImageDataUrl().
263 * src/main/java/org/glom/web/server/libglom/Document.java:
264 Add a constructor that takes the documentID, for use in the
266 loadLayoutNode(): Pass a Path object to the helper methods, so we
267 can use it to create a URL for LayoutItemImage items.
268 This seems as good a way as any to specify a layout item in the document.
269 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
270 Pass the documentID to the constructor, for use in the LayoutItemImage
273 2012-11-15 Murray Cumming <murrayc@murrayc.com>
275 Document: Add getLayoutItemByPath().
277 * src/main/java/org/glom/web/server/Utils.java:
278 Add buildLayoutPath() and parseLayoutPath().
279 * src/test/java/org/glom/web/server/LayoutPathTest.java: Test that these
280 utility methods work.
281 * src/main/java/org/glom/web/server/libglom/Document.java:
282 Add Add getLayoutItemByPath().
283 * src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java: Test
286 This will be useful in subsequent commits.
288 2012-11-15 Murray Cumming <murrayc@murrayc.com>
290 Document: Use a better base64 decoder to read static image data.
292 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
293 getNodeTextChildAsValue(): Use the apache commons base64 decoder
294 instead of the gwt one, because it correctly decodes the strings
295 from g_base64_encode(). It is probably more correct.
296 The newlines might be confusing the gwt decoder.
298 2012-11-14 Murray Cumming <murrayc@murrayc.com>
300 Document: Do not use == to compare strings. Use equals().
302 * src/main/java/org/glom/web/server/libglom/Document.java:
303 == only checks that they are the same object, so it can
306 2012-11-14 Murray Cumming <murrayc@murrayc.com>
308 Document: Add and use public constants for layout names.
310 * src/main/java/org/glom/web/server/libglom/Document.java:
311 Make LAYOUT_NAME_DETAILS and LAYOUT_NAME_LIST public.
312 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
313 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
314 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
315 * src/test/java/org/glom/web/server/libglom/DocumentTest.java: Use
316 them here instead of hard-coded the strings repeatedly.
318 2012-11-13 Murray Cumming <murrayc@murrayc.com>
320 Document: Load static text and image items too.
322 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java:
323 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java:
324 New LayoutItem classes to represent these layout items.
325 * src/main/java/org/glom/web/shared/libglom/layout/StaticText.java: The
326 main text of a LayoutItemText.
327 * src/main/java/org/glom/web/server/libglom/Document.java:
328 load_after_layout_group(): Handle the node types and instantiate the
330 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
331 Add testLayoutItemText() to check that the text is loaded properly.
333 2012-11-13 Murray Cumming <murrayc@murrayc.com>
335 Do not use client.GWT for shared code.
337 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
338 Import shared.GWT instead of client.GWT, which seems to be appropriate.
340 2012-11-12 Murray Cumming <murrayc@murrayc.com>
342 Use image data when recreating databases for testing.
344 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setImageData(),
345 for use locally (not acrosss the network) when recreating databases
347 getValue(): Use it here instead of getImageDataUrl(), noting that
348 this method is only for use when recreating databases.
349 * src/main/java/org/glom/web/server/libglom/Document.java:
350 getNodeTextChildAsValue(): Use it instead of setImageDataUrl().
352 2012-11-09 Murray Cumming <murrayc@murrayc.com>
354 OnlineGlomImages: Detect the mime-type (content type).
356 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
357 doGet(): Instead of hard-coding image/png.
359 2012-11-09 Murray Cumming <murrayc@murrayc.com>
361 Eclipse project files: Use JDK 1.7 instead of JDK 1.6.
364 * .settings/org.eclipse.jdt.core.prefs: By changing the Eclipse
365 Java Compiler and Java Build path settings in the UI.
367 2012-11-09 Murray Cumming <murrayc@murrayc.com>
369 Use the latest (now stable) version of GWT.
371 * pom.xml: And the latest version of the gwt-maven-plugin.
373 2012-11-08 Murray Cumming <murrayc@murrayc.com>
375 Added an Indonesian translation.
377 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
378 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_id.properties:
379 This is from the new translation in Glom.
381 2012-07-23 Murray Cumming <murrayc@murrayc.com>
383 Details: Show images.
385 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
387 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
388 so it can be used in:
389 * src/main/java/org/glom/web/server/OnlineGlomImages.java: A new servlet just
390 for serving image data.
391 * src/main/webapp/WEB-INF/web.xml: Mention the new servlet.
393 * src/main/java/org/glom/web/shared/DataItem.java: Added get/setImageDataUrl().
394 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
395 setData(): For image field types, add a GWT Image widget,
396 with the URL that was set in the DataItem.
398 * pom.xml: Depend on org.apache.httpcomponents for UriBuilder.
399 * src/main/java/org/glom/web/server/database/DBAccess.java:
400 convertResultSetToDTO(): Set the URL for image data, so the client browser
401 can retrieve the image from our new servlet. This uses UriBuilder.
402 Move getPrimaryKeyField to:
403 * src/main/java/org/glom/web/server/libglom/Document.java:
404 Added getTablePrimaryKeyField().
406 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
407 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
408 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
411 2012-07-22 Murray Cumming <murrayc@murrayc.com>
415 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
416 * src/main/java/org/glom/web/client/OnlineGlomService.java:
417 * src/main/webapp/WEB-INF/web.xml: Change the servlet-name from libGlom
418 to gwtGlom, which is more appropriate.
419 This servlet name does not seem to be visible to the client side anyway.
421 2012-07-22 Murray Cumming <murrayc@murrayc.com>
423 Tests: Make the imports of assert*() consistent.
425 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
426 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
427 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
428 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
429 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
430 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
431 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
432 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
433 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
434 * src/test/java/org/glom/web/shared/DataItemTest.java:
436 import static org.junit.Assert.*;
437 which seems fairly common.
441 2012-07-21 Murray Cumming <murrayc@murrayc.com>
443 tests: Move a test that needs a database connection.
445 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
446 Move testGetListViewLayoutGroup() to
447 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
448 because it needs a database connection.
450 2012-07-21 Murray Cumming <murrayc@murrayc.com>
452 tests: Use @BeforeClass on tearDown().
454 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
455 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
456 This avoids leaking a postgres process in SelfHostExampleTest.
458 2012-07-21 Murray Cumming <murrayc@murrayc.com>
460 tests: Test translations more.
462 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
463 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
464 Test titles in the non-default locale.
466 2012-07-21 Murray Cumming <murrayc@murrayc.com>
468 tests: Add SelfHostConfiguredDocumentTest
470 * src/test/java/org/glom/web/server/SelfHoster.java: Add getters for the
471 username and password, for use by ConfiguredDocument.
472 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
473 This tests some of the ConfiguredDocument API that requires a database connection.
475 2012-07-21 Murray Cumming <murrayc@murrayc.com>
477 Document: Load title translations and test them.
479 * src/main/java/org/glom/web/server/libglom/Document.java: Load the translations
480 of titles. I am surprised that we do not do this yet.
481 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
482 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
483 Test translations more.
485 2012-07-20 Murray Cumming <murrayc@murrayc.com>
489 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
490 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
491 Set the timeout here too.
493 2012-07-20 Murray Cumming <murrayc@murrayc.com>
495 tests: ConfiguredDocumentTest: Make this pass.
497 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
498 Disable tests that need a database connection.
500 2012-07-20 Murray Cumming <murrayc@murrayc.com>
502 Use Java 1.7 instead of Java 1.6.
504 * pom.xml: Specify the 1.7 JDK, though I don't like how we seem to need
505 to do this twice, at least for Eclipse.
506 This seems OK because it is the current version.
508 2012-07-20 Murray Cumming <murrayc@murrayc.com>
512 * src/main/java/org/glom/web/server/Log.java: Avoid using null strings.
513 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
514 Avoid using a null Connection.
516 2012-07-20 Murray Cumming <murrayc@murrayc.com>
518 tests: Add a ConfiguredDocument test.
520 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
523 2012-07-20 Murray Cumming <murrayc@murrayc.com>
525 LayoutItemFIeld: getName(): Use the Field if it is set.
527 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
528 getName(): If the full field details have been set, return its name, so that
529 callers do not need to set the name separately.
530 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
531 testExampleMusiccollectionData): Do not use a TYPE_FORWARD_ONLY statement,
532 so we can count the rows.
534 2012-07-20 Murray Cumming <murrayc@murrayc.com>
536 tests: SelfHoster: Test SqlUtils too.
538 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
539 Retrieve some data and check it too, as in the regular Glom
540 test_selfhosting_new_from_example.cc test.
541 * src/test/java/org/glom/web/server/SelfHoster.java:
542 createConnection(): Make this public.
544 2012-07-20 Murray Cumming <murrayc@murrayc.com>
546 tests: SelfHoster: createConnection(): Do not warn about expected failures.
548 Let the caller say if the connection is expected to fail, to avoid
549 irrelevant error output.
551 2012-07-20 Murray Cumming <murrayc@murrayc.com>
553 tests: SelfHoster: createAndSelfHostNewEmpty(): Sleep after starting server.
555 * src/test/java/org/glom/web/server/SelfHoster.java:
556 createAndSelfHostNewEmpty(): Sleep initially, to avoid distracting errors
557 due to the inevitable need to retry the connection while the database server
560 2012-07-20 Murray Cumming <murrayc@murray.com>
562 tests: SelfHoster: createConnection(): Set a timeout.
564 * src/test/java/org/glom/web/server/SelfHoster.java:
565 createConnection(): Use setLoginTimeout() because it otherwise seems to take
566 ages to actually return when it fails.
568 2012-07-20 Murray Cumming <murrayc@murrayc.com>
570 tests: SelfHoster: selfHost(): Close the test connection.
572 * src/test/java/org/glom/web/server/SelfHoster.java: selfHost():
573 When we check that the connection works, close the connection. This seems
574 to not be closed automatically otherwise.
576 2012-07-20 Murray Cumming <murrayc@murrayc.com>
578 Use slf4j-simple to see JDBC errors.
580 * pom.xml: Depend on slf4j-simple so we can see errors from JDBC.
582 2012-07-19 Murray Cumming <murrayc@murrayc.com>
584 SelfHoster.discoverFirstFreePort(): Close the socket.
586 * src/test/java/org/glom/web/server/SelfHoster.java:
587 discoverFirstFreePort(): Close the socket. Eclipse Juno warns about this.
589 2012-07-19 Murray Cumming <murrayc@murrayc.com>
591 Avoid another code warning in Eclipse Juno.
593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
594 Do instanceof checks on the FileUtils.listFiles() result and its
597 2012-07-13 Murray Cumming <murrayc@murrayc.com>
599 Avoid some code warnings in Eclipse Juno
601 * src/main/java/org/glom/web/server/libglom/Document.java:
602 getNodeTextChildAsValue(), setNodeTextChildAsValue(): Handle the invalid type.
603 * src/test/java/org/glom/web/server/SelfHoster.java
604 createTextFile(): Make sure that the FileOutputStream is closed.
606 2012-06-22 Murray Cumming <murrayc@murrayc.com>
608 Added OnlineGlomPropertiesTest.
610 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
611 Make sure we never return a null string.
612 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
613 Added tests of the OnlineGlomProperties API, using our sample file.
615 2012-06-20 Murray Cumming <murrayc@murrayc.com>
617 Make OnlineGlomProperties be a normal class.
619 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
620 Move OnlineGlomProperties into its own file to be a regular class:
621 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
622 This makes testing simpler.
624 2012-06-15 Murray Cumming <murrayc@murrayc.com>
626 OnlineGlomServiceImpl.init(): Move some code into a new method.
628 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
629 Create addDocument().
631 2012-06-15 Murray Cumming <murrayc@murrayc.com>
633 OnlineGlomServiceImpl.OnlineGlomProperties: Improve getKey().
635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
636 OnlineGlomProperties.getKey(): Make this more robust by moving the
637 check for *.*.filename to here.
639 2012-06-15 Murray Cumming <murrayc@murrayc.com>
641 OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
643 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
644 init(): Move knowledge of the config file format into the
645 OnlineGlomProperties inner class.
647 2012-06-15 Murray Cumming <murrayc@murrayc.com>
649 SelfHostExampleTest: Make sure we cleanup on failure.
651 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
652 the use of cleanup() to a tearDown() JUnit method.
656 2012-06-12 Murray Cumming <murrayc@murrayc.com>
658 ConfiguredDocument: Add a primary key to portals at least once.
660 * src/main/java/org/glom/web/server/ConfiguredDocument.java
661 updatePortalsExtras): Fix a typo so that we add the primary key
662 column at least once.
663 This is a fix for the previous commit:
664 ConfiguredDocument: Do not add a primary key to portals each time.
666 2012-06-08 Murray Cumming <murrayc@murrayc.com>
668 SelfHoster: Avoid some compiler warnings.
670 * src/test/java/org/glom/web/server/SelfHoster.java
671 executeCommandLineAndWait():
672 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess(): Comment out
673 the now-unused streams for stdout and stderr from the command Processes.
674 These are not used because readln() hangs while waiting for a new line,
675 where there may be no next line. The commented out code is still there
676 to help us figure out how to do this properly.
678 2012-06-08 Murray Cumming <murrayc@murrayc.com>
680 LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
682 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
683 Make this actually test the cloning again, though it is not very useful
684 now that we do not use the part that had a problem with cloning before.
686 2012-06-08 Murray Cumming <murrayc@murrayc.com>
688 SelfHoster: Keep trying pg_ctl after starting postgres.
690 * src/test/java/org/glom/web/server/SelfHoster.java
691 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess():
692 Try pg_ctl repeatedly (for ever) until it succeeds, as we do in
693 regular Glom. This seems mad but it seems to work because the first
694 command would fail if pg_ctl would eventually fail.
696 2012-06-08 Murray Cumming <murrayc@murrayc.com>
698 SelfHoster: Wait until the server is really ready.
700 * src/test/java/org/glom/web/server/SelfHoster.java
701 selfHost(): Attempt the connection after starting the server, retrying
702 a few times if necessary, so that the server is really ready already when
703 we return from this method.
704 The regular Glom code does this too because pg_ctl reports success too soon.
706 2012-06-08 Murray Cumming <murrayc@murrayc.com>
708 ConfiguredDocument: Do not add a primary key to portals each time.
710 * src/main/java/org/glom/web/server/ConfiguredDocument.java
711 updatePortalsExtras(): Only add an extra primary key field if there is
712 none, to avoid adding one each time we retrieve the details layout from the
714 This should fix bug #676986 (Ben Konrath)
716 2012-05-25 Murray Cumming <murrayc@murrayc.com>
718 Document.load(): Support version 7 documents.
720 * src/main/java/org/glom/web/server/libglom/Document.java: Load the
721 database_title attribute if the title attribute is not there.
724 2012-05-24 Ben Konrath <ben@bagu.org>
726 Add configuration for auto-generating mvn:i18n from with Eclipse.
728 * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
730 2012-05-24 Murray Cumming <murrayc@murrayc.com>
732 Update translations, adding French.
734 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
735 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
736 Add a French translation, using the translation from Glom.
738 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
739 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
740 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
741 Update these based on the translations from Glom.
743 2012-05-24 Murray Cumming <murrayc@murrayc.com>
745 SelfHoster: Add some debug println messages to help when things fail.
747 * src/test/java/org/glom/web/server/SelfHoster.java: Add several
748 System.out.println() lines.
750 2012-05-23 Murray Cumming <murrayc@murrayc.com>
752 Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
754 * src/test/java/org/glom/web/server/SelfHoster.java:
755 getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for
756 instance) instead of just /usr/bin (as on Fedora). Check the result when
759 2012-05-23 Murray Cumming <murrayc@murrayc.com>
761 Remove LayoutItemPortal.get/setNavigationTable().
763 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
764 Remove get/setNavigationTable(), which is only a cache, because it is not
765 used, and does not need to be used, because that decision should be made on
767 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
768 updatePortalsExtras():
769 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
770 getNavigationRecord():
771 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
774 2012-05-21 Murray Cumming <murrayc@murrayc.com>
776 Initial self-hosting for tests.
778 * pom.xml: Change the scope for log4j, to hopefully make it
779 available to the test code which uses it indirectly via jOOQ.
780 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
781 self-hosting, though we only use it for testing.
783 * src/main/java/org/glom/web/server/libglom/Document.java:
784 example rows: Use a map instead of a list for each row of values,
785 so we know what field they are for, instead of relying on the sequence
786 being correct. This is not very efficient, but it does not really need
788 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
789 testReadTableExampleRows(): Adapted.
791 * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
792 that returns an Object, for generic use. Note that Object seems to be
793 the implicit base even of double.
794 * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
795 for use in CREATE TABLE SQL queries.
796 * src/test/java/org/glom/web/server/SelfHoster.java: Add this class
797 to do self-hosting of PostgreSQL databases via its command-line
798 utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
799 backends/postgres_self.cc. This is incomplete - it needs more
800 warnings about failures and it needs to clean up properly when things
802 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple
803 test of this new class.
805 2012-05-21 Murray Cumming <murrayc@murrayc.com>
807 Document: loading example data: Handle exceptions.
809 * src/main/java/org/glom/web/server/libglom/Document.java:
810 DateFormat.parse() and Double.valueOf() can throw exceptions, though
811 Eclipse did not warn about that.
813 2012-05-20 Murray Cumming <murrayc@murrayc.com>
815 Document: load(), save(): Handle the example rows.
817 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate()
819 * src/main/java/org/glom/web/server/libglom/Document.java:
820 load(), save(): Load and save the example rows, though the date, time
821 and image types are not handled properly yet.
822 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
823 Add testReadTableExampleRows() just to check that something is read.
825 2012-05-20 Murray Cumming <murrayc@murrayc.com>
827 Document: Add save().
829 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
830 Added getTranslationsMap() for use while saving.
831 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
832 Adedd getUseDefaultFormatting() for use while saving.
833 * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
834 and several private methods that it uses.
836 This will be useful while testing via self-hosting.
837 It is not complete, but should be complete enough for testing.
839 2012-05-17 Murray Cumming <murrayc@murrayc.com>
841 OnlineGlomService: Simplify the getList/RelatedViewData() methods.
843 * src/main/java/org/glom/web/client/OnlineGlomService.java
844 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
845 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
846 Remove getSortedListViewData() and getSortedRelatedListData(), adding
847 the sort column index and ascending bool to the regular method.
848 Instead, a sort column index of -1 now means no sort.
849 This is less explicit, but it's fairly simple, reduces the amount of
850 code, and makes the OnlineGlomService API slightly smaller.
851 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
852 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
854 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
855 getListViewData(), getRelatedListData():
856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
857 getListViewData(), getRelatedListData():
858 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
860 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
862 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
867 2012-05-16 Murray Cumming <murrayc@murrayc.com>
869 Use translations for top-level groups too.
871 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
872 updateTitlesForLocale(): Use the translation for the group
873 as well as for child items.
877 Just recompiled to fix a problem in the released .tar.gz file.
881 2012-05-15 Murray Cumming <murrayc@murrayc.com>
883 Corrections to navigation to related records.
885 * src/main/java/org/glom/web/client/OnlineGlomService.java:
886 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
887 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
888 getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
889 getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
890 relationship name, because the relationship name is not necessarily unique
892 TOOD: This is inefficient, because it passes the whole list of
893 child field items back to the server, but it is more correct, and happens
894 to fix a bug with the primary key being lost after a few navigations.
895 There is probably a chance to make this more efficient anyway in some
898 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
899 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
900 * src/main/java/org/glom/web/server/ConfiguredDocument.java
901 * src/main/java/org/glom/web/server/database/DBAccess.java
902 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
903 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
906 2012-05-15 Murray Cumming <murrayc@murrayc.com>
908 Fix the use of translations.
910 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
911 Add updateTitlesForLocale().
912 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
913 Call it to discard unwanted translations and to make getTitle() return
914 the wanted translation wihout the need for the client code to specify a locale.
915 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
916 getTitle(): Fallback to the original title, as libglom does.
918 2012-05-15 Murray Cumming <murrayc@murrayc.com>
920 Document: Correctly report the number of available translation locales.
922 * src/main/java/org/glom/web/server/libglom/Document.java: Fill
923 the available locale IDs list.
924 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
925 testLocales: Test this.
927 2012-05-15 Murray Cumming <murrayc@murrayc.com>
929 SqlUtils: Use camelCase.
931 * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
932 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
933 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
934 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
935 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
936 * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
938 2012-05-15 Murray Cumming <murrayc@murrayc.com>
940 Use jOOQ's tableByName() and fieldByName.
942 * pom.xml: Use jOOQ 2.3.1 to get the new API.
943 * src/main/java/org/glom/web/server/SqlUtils.java:
944 build_sql_select_step_with_where_clause(), .createField(),
945 builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
946 so we can get correct quoting and escaping. Thanks to Lukas Eder for
947 adding this, and other things, to jOOQ.
949 2012-05-15 Murray Cumming <murrayc@murrayc.com>
951 SqlUtils: Remove the Connection parameters.
953 * src/main/java/org/glom/web/server/SqlUtils.java:
954 build_sql_select_with_key(), build_sql_select_with_where_clause(),
955 createSelect(), build_sql_select_step_with_where_clause(),
956 build_sql_count_select_with_where_clause(),
957 build_sql_select_count_rows(): Remove the Connection parameter because
958 jOOQ does not actually need a connectionwhen it is just used to build
960 https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
962 * src/main/java/org/glom/web/server/ReportGenerator.java:
964 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
966 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
967 Constructor, getListData(), getResultSizeOfSQLQuery():
968 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
969 getSelectQuery(), getCountQuery():
970 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
971 getSelectQuery(), getCountQuery():
972 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
973 getNavigationRecord(): Adapted.
975 2012-05-14 Murray Cumming <murrayc@murrayc.com>
979 * src/main/java/org/glom/web/server/SqlUtils.java:
980 get_find_where_clause_quick(): Use a comparison of
981 lowercase values, instead of a simple equals. Regular Glom
982 uses the PostgreSQL ILIKE operator but jOOQ does not
983 support that just yet, though it will soon.
985 2012-05-14 Murray Cumming <murrayc@murrayc.com>
987 TableToViewDetails: Use a real serialization ID.
989 * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
990 Though this does not fix the serialization problem.
992 2012-05-12 Murray Cumming <murrayc@murrayc.com>
994 Added LayoutItemPortalDeepCloneTest.
996 2012-05-11 Murray Cumming <murrayc@murrayc.com>
998 Make navigation work again.
1000 * src/main/java/org/glom/web/server/libglom/Document.java:
1001 Add getLayoutItemFieldShouldHaveNavigation().
1002 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1003 Replace get/setAddNavigation() with the partly-existing
1004 get/setNavigationTableName(), with an empty string being no navigation,
1005 because this is simpler. Use the new
1006 Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
1008 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1009 Add updateFieldsExtras() and call setNavigationTableName in it.
1010 getDetailsLayoutGroup(),
1011 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1012 createLayout(): Adapted.
1013 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1014 Constructor: Adapted.
1016 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1017 Replace get/setAddNavigation() with get/setNavigation(), returning a
1018 TableToViewDetails class with both the table name and UsesRelationship,
1019 because both are need. The previous code used java-libglom's output
1020 variable (strangely, via sharedptr) to return both, but we cannot really
1022 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
1023 getNavigationRecord(): Adapt. However, we cannot actually use the cache
1024 here because it somehow gets set to null during deepCopy(). I must test this.
1025 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
1026 testGetSuitableTableToViewDetails(): Adapted.
1028 TODO: Find out why deepClone() is not quite working.
1030 2012-05-11 Murray Cumming <murrayc@murrayc.com>
1032 DBAccess: Simplify the retrievel of full field details.
1034 * src/main/java/org/glom/web/server/database/DBAccess.java
1035 getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
1036 because the Document loading should have done this.
1038 2012-05-11 Murray Cumming <murrayc@murrayc.com>
1040 Document: Correct loading of doubly-related layout fields.
1042 * src/main/java/org/glom/web/server/libglom/Document.java:
1043 loadUsesRelationship(): Actually set the related relationship, instead
1044 of only setting it if it's not found.
1046 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1048 Replace all appearances of Colour with color.
1050 Because US English is dominant.
1052 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1054 Use colors in HTML format, solving a warning about an unused function.
1056 * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
1057 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
1058 Add *asHTMLColor() versions of methods.
1059 TODO: However, we should create and cache the results on the server.
1060 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1061 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1062 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1063 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1064 Use the asHTMLcolor() versions.
1066 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1068 ListViewTable: Constructor: Take the table name as a parameter.
1070 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1071 Constructor: Take the tableName, and set the member variable, because
1073 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1074 setCellTable(): Pass the table name.
1075 This makes navigation to non-default tables work again. I don't know
1076 why it worked before in the master branch.
1078 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1080 ConfiguredDocument: Restore correct addition of hidden primary key items.
1082 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1083 (ListTable.createCellTable): Uncomment out the check for the hidden
1085 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
1086 add primary key items for top-level lists and portals, as before,
1087 instead of adding them to each group.
1088 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
1089 Actually implement the extra methods such as setHiddenPrimaryKey() and
1090 comment that these are used only for top-level list groups and in portals.
1091 This strangeness suggests even more that this should not be squeezed
1092 into the LayoutGroup class.
1094 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1096 Fix Formatting loading.
1098 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1099 getFormattingUsed(): Remove the duplicate Formatting member variable
1100 in favour of the one from the base class.
1101 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
1102 Initialize a new Formatting instead of using null by default, so we
1103 have some defaults, instead of having to initialize one later just to
1104 get the same defaults. This also makes loading of formatting from the
1105 document work, because that expected a non-null.
1107 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1109 RelatedListTable: Make sure that the tableName is set.
1111 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1112 Constructor: Take the tableName so it is available later. Otherwise,
1113 the server assumes that we mean the default table and cannot find the
1115 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1116 setData(): Pass the tableName to the RelatedListTable constructor.
1118 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1122 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1123 RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
1124 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1126 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1128 * src/main/java/org/glom/web/server/database/DBAccess.java:
1129 convertResultSetToDTO(), getPortal():
1130 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1132 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1133 Add checks for null objects and out of range access, with log messages to
1134 give hints so we can fix these properly.
1136 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1138 Portals: some corrections.
1140 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1142 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1143 constructor: Use getRelationshipNameUsed() instead of getName(), because
1144 that is what is meant.
1145 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1146 getFromField(): Fix a typo, to get the field name, not the table name.
1147 * src/main/java/org/glom/web/server/database/DBAccess.java:
1148 getPortal(): Fix a typo that stopped this from working.
1150 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1152 LayoutItemPortal: Also override getTitleOriginal().
1154 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1155 This lets the base getTitle() with no parameters work.
1156 TODO: Test this properly.
1158 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1160 LayoutItemPortal: getTitle*(): Use the relationship title.
1162 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1164 LayoutItemField: Fix loading of custom titles.
1166 * src/main/java/org/glom/web/server/libglom/Document.java
1167 loadDataLayoutItemField(): The title, if any, instead of the field
1168 title, is stored in a title_custom node. Load it from there.
1169 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
1171 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
1172 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
1173 getTitle*() overrides.
1174 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1177 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1179 LayoutItemField: Fall back to field titles, so some are really shown.
1181 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1182 Override getTitleOriginal() and getTitle(), as in java-libglom.
1183 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1184 Test this behaviour.
1186 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1188 Correct use of setExpectedResultSize().
1190 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1191 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
1192 Use setExpectedResultSize only on top-level groups (for instance, the
1193 list layout) or on child portals (in details views).
1194 Use the correct table name for portals to avoid SQL errors.
1195 Update the expected counts when returning cached layouts.
1197 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1199 Document: Interpret no group column count as 1.
1201 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
1202 default, though we now check for this in the UI code anyway.
1204 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1208 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1210 Translatable: Use Hashmap instead of Treemap because GWT supports it.
1212 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
1213 The use of Treemap lead to this error from async methods, with no
1215 "The response could not be deserialized"
1217 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1219 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
1221 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
1222 when using the Google -> GWT Compile, or
1223 g toolbar button -> GWT Compile Project... feature in Eclipse.
1225 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1227 ListTable.addColumn(): Protect against a null Formatting.
1229 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
1230 Create a default Formatting if it is null, because that is the simplest
1233 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1235 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
1237 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1238 updateLayoutGroup(): Check that the field is not null.
1240 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1242 ListViewImpl: Protected against a bad cast error.
1244 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1245 onEnterKeyDown(): Do not cast without an instanceof check.
1247 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1249 ListTable: Protect against an out of range error.
1251 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1252 createCellTable(): This is unlikely, but can happen while debugging.
1254 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1256 AsyncMessage onFailure() callbacks: Log the exception message.
1258 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1259 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1260 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1261 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1262 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1263 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1264 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1265 These are useful clues when something is wrong.
1267 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1269 ConfiguredDocument: Avoid a null dereference.
1271 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1272 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
1273 details maps are created.
1275 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1277 Document: Correct the port number parsing.
1279 * src/main/java/org/glom/web/server/libglom/Document.java:
1280 This lets us actually connect to the database and show the document.
1282 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1286 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
1287 user-interaction, asking us to load a temporary URL in a browser.s
1288 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
1289 which is apparently necessary for testing the service. See the comment.
1290 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1291 Show the exception, if any. This is how I saw the 404 in the HTML in
1294 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1296 DocumentTest: Move the .glom files into the resources directory.
1298 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
1299 URI via getResource().
1301 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1303 Document: Remove the FieldIdentifies inner class.
1305 * src/main/java/org/glom/web/server/libglom/Document.java: We only
1306 use the Relationship (though the same function in libglom is maybe
1307 used in other ways) and so this removes a compiler warning.
1309 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1311 Document.load() Remove the error code parameter.
1313 * src/main/java/org/glom/web/server/libglom/Document.java: load():
1314 Remove the parameter. We do not set it yet and it could never have
1315 worked as an output parameter (though maybe it did in java-libglom).
1316 We could use an exception if we really want the failure reason.
1317 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1319 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1320 setUp(), testGetSuitableTableToViewDetails(): Adapt.
1322 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1324 Make some inner classes static.
1326 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1327 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1328 * src/main/java/org/glom/web/server/ReportGenerator.java
1329 * src/main/java/org/glom/web/server/libglom/Document.java
1330 Make all inner classes static that can be static.
1332 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1334 OnlineGlomServiceImpl: Do not load and check for java-libglom.
1336 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1337 init(): We do not use java-libglom any more.
1339 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1341 Remove mentions of java-libglom.
1343 * README: Remove mention of java-libglom, because it no longer needed.
1344 * utils/build-onlineglom-war.sh:
1345 * utils/check-and-recover-tomcat.py:
1346 * utils/install-onlineglom-war.sh: Remove these as they are no longer
1347 useful. Building is now far easier, with no need for jhbuild.
1349 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1351 Fix the build (mvn package)
1353 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
1354 (LayoutGroup): Make the LayoutItemList inner class static and protected.
1355 Otherwise the GWT Java->Javascript compilation fails with just this
1356 error, during mvn package or when attempting to view in a browser,
1357 in the GWT developer mode in Eclipse.
1359 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
1360 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
1361 [INFO] Compiling module org.glom.web.OnlineGlom
1362 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
1363 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
1364 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1365 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
1366 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
1367 [INFO] [ERROR] Cannot proceed due to previous errors
1369 It has taken me 2 days to find out what was causing that. After reducing
1370 the code, the compiler eventually showed me the full error message.
1372 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1374 ConfiguredDocument: Cache the cloned and stripped layouts.
1376 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1377 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
1378 layout in a map, so we can retrieve it again without rebuilding it.
1380 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1382 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
1384 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1386 libglom classes: Implement some auto-generated emthods.
1388 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1390 Add GwtTestOnlineGlomService.
1392 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1393 However, this (and the other GwtTest*) does not seem to run during
1396 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1398 Remove use of unsupported features from client code.
1400 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
1401 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
1402 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
1403 Use our client version of StringUtils instead of the apache commons one.
1405 However, the GWT Javascript compliation still fails.
1407 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1409 Add a Field class and implement some loading of it in Document.
1411 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1413 Initial Document loading implementation, instead of libglom.
1415 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
1416 and Translatable classes, and adapt the rest of the code to use them.
1417 However, this is still missing Layout and Field classes and loading.
1419 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1421 Use of jOOQ: Move Field creation into a utility method.
1423 * src/main/java/org/glom/web/server/SqlUtils.java:
1424 This lets us improve it more easily.
1426 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1428 Use of jOOQ: Improve the code to COUNT a sub-select.
1430 * src/main/java/org/glom/web/server/SqlUtils.java:
1431 Move initial query creation into
1432 build_sql_select_step_with_where_clause().
1433 build_sql_select_count_rows(): Use the jOOQ API instead of
1434 concatentating text, because a jOOQ Select*Step is a TableLike,
1435 which is what from() takes.
1437 2012-04-23 Murray Cumming <murrayc@murrayc.com>
1439 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
1441 * pom.xml: Depend on jooq.
1442 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
1443 methods with jOOQ, based on the C++ implementations in libglom,
1444 with some changes to the logic required by jooQ.
1445 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
1447 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1448 * src/main/java/org/glom/web/server/ReportGenerator.java:
1449 * src/main/java/org/glom/web/server/SqlUtils.java:
1450 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1451 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1452 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1453 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1454 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
1455 Adapt. In particular, the SqlUtils methods now need to take a Connection,
1456 because jOOQ needs that, though it seems unnecessary.
1458 This is not quite finished. Ideally jOOQ would help us to build
1459 table_name.field_name names, quoting and escaping them properly.
1460 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
1462 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1464 Move use of Glom.build_sql*() into a new SqlUtils class.
1466 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
1467 to wrap Glom.build_sql*(). The parameter types are still Glom one,
1468 but this will make it easier to start using something other than
1469 libglom or SqlBuilder.
1471 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1473 Update the project URL.
1475 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
1477 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1479 Main layout: Use a FlowTable instead of absolute positioning.
1481 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
1482 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
1483 child panels/widgets must have an absolute position. But that is annoying, so
1484 this adds a FlowTable and puts the child panels in there.
1486 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1488 GwtTestOnlineGlom: Comment out unused code.
1490 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1491 Eclipse has started to say that some code is unused.
1493 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1495 Update to the latest versions of dependencies.
1497 * pom.xml: Update version numbers of dependencies to the latest
1499 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1500 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1501 * src/main/java/org/glom/web/server/ReportGenerator.java:
1502 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1503 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1504 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
1506 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1507 Modify the imports where necessary.
1509 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1511 Style: Remove overflow:hidden from searchbox
1513 * src/main/webapp/style.css: Because this pushes the Back To Link
1514 label/link on to the next row, which is then hidden due to the
1515 hard-coded (in ems) height.
1517 2012-04-20 Murray Cumming <murrayc@murrayc.com>
1519 Remove some duplicate code.
1521 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1522 getDocumentInfo(): This must have been duplicated during the merge from the
1527 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1529 Reports: Localize the waiting for report message.
1531 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1532 start(): Get the message from the contants.
1533 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1534 Add the string here.
1535 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1536 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1537 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1538 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1539 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1540 Update these files with the English text for newer strings for now.
1542 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1544 Reports: Show a message while waiting for the report.
1546 * src/main/java/org/glom/web/client/ui/ReportView.java
1547 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1548 Add setWaitingText(), to show a message saying that we are
1549 waiting for the report to be ready.
1550 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1551 start(): Call setWaitingText() before calling the async
1554 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1556 ReportGenerator: Specify date and time formats.
1558 * src/main/java/org/glom/web/server/ReportGenerator.java:
1559 createFieldValueElement(): Use the default (and localized)
1560 short formats, though we still need a way to show 4-digit
1561 years without providing the format for every locale.
1562 * src/main/java/org/glom/web/server/database/DBAccess.java:
1563 convertResultSetToDTO(): Use the short formats here too.
1565 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1567 ReportGenerator: Use the correct numeric formatting.
1569 * src/main/java/org/glom/web/server/ReportGenerator.java
1570 createFieldExpression(), createFieldValueElement(): Take the
1571 whole LayoutItem_Field instead of just the field name, so
1572 we have access to the formatting.
1573 createFieldValueElement(): Use JRTextField.setPattern() to
1574 specify the numeric formatting, with the help of a
1575 regular DecimalFormat.
1577 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1579 ReportGenerator: Avoid showing null for group by titles.
1581 * src/main/java/org/glom/web/server/ReportGenerator.java
1582 generateReport(): Use setBlankWhenNull() on the field title
1583 style too, because this is used for values in group by
1586 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1588 ReportGenerator: Add a colon to titles in vertical groups.
1590 * src/main/java/org/glom/web/server/ReportGenerator.java
1591 addFieldToDetailBandVertical(): Pass true for the withColon
1594 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1596 ReportGenerator: Simplify the code by using Position more.
1598 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1600 Reports: Support vertical groups, roughly.
1602 * src/main/java/org/glom/web/server/ReportGenerator.java:
1603 addToReport(): Rename to addGroupToReport() and, if necessary,
1604 call the new addVerticalGroupToReport() method.
1605 createFieldValueElement(): Let the caller specify the Y position
1608 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1610 Reports: Allow a second report to be shown.
1612 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1613 clear(): Do not remove the HTML widget, which broke the whole layout.
1615 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1617 Locales drop-down: Show that we use English by default.
1619 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1620 fillView(): When we use English, just because that is the default, when
1621 no locale is specified, show that in the Locales drop-down instead of
1622 just showing the first item.
1624 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1626 Unselect the Report/Locale/Table combo item when appropriate.
1628 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1629 setPlace(): clear reportName if this is not a ReportPlace.
1630 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1631 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
1632 When the provided name is empty, unselect all items, so that none are
1633 indicated. This uses a for loop because I cannot find a single method
1636 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1638 Report: Give the user a way to get back to the list.
1640 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1641 start(), setPlace(): Show the Back To List link on reports, and also
1642 interpret selecting the empty report item as back to list.
1644 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1646 Really show the selected Report name.
1648 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1649 setPlace(): Store the reportName here, if it is that kind of Place.
1650 fillView(): Set the selected Report after filling the list of reports.
1651 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1652 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
1653 null Strings, though we need some way to unselect all ListBox items
1656 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1658 ReportGenerator: Try to avoid some problems.
1660 * src/main/java/org/glom/web/server/ReportGenerator.java
1661 addField(): Try to avoid duplicates, and avoid using a null
1664 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1666 Reports: Use quickFind.
1668 * src/main/java/org/glom/web/client/OnlineGlomService.java;
1669 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1670 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1671 getReportHTML(): Add a quickFind parameter.
1672 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1673 start(): Pass the quickFind parameter.
1674 * src/main/java/org/glom/web/server/ReportGenerator.java
1675 generateReport(): Take a quickFind parameter.
1677 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1679 ReportPlace: Actually use the report name.
1681 * src/main/java/org/glom/web/client/place/ReportPlace.java
1682 getPlace(): Do not assign the report name to the quickfind.
1684 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1686 Show java.library.path when complaining.
1688 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1689 init(): When telling us to check java.library.path, show the
1692 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1694 ReportGenerator: Do not show nulls.
1696 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1698 ReportGenerator: Make the title font larger.
1700 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1702 ReportGenerator: Put field titles inside groups, if there are groups.
1704 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1706 ReportGenerator: Take the Report itself instead of the name and group.
1708 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1709 Remove getReportLayoutGroup().
1710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1711 getReportHTML(): Pass the report instead
1712 of its name and layout group.
1713 * src/main/java/org/glom/web/server/ReportGenerator.java
1714 generateReport(): Use the report object to use the title
1715 instead of the name.
1717 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1719 ReportGenerator: Remove designBand parameters.
1721 * src/main/java/org/glom/web/server/ReportGenerator.java:
1722 Make designBand a class member instead of passing it to all
1725 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1727 ReportGenerator: Add lines, a bit like in the desktop version.
1729 * src/main/java/org/glom/web/server/ReportGenerator.java
1730 addToReport(): Use JRDesignLine.
1732 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1734 ReportGenerator: Correct the title positions and use some bold style.
1736 * src/main/java/org/glom/web/server/ReportGenerator.java:
1737 Break the code up into reusable functions, correct the placement of
1738 titles, and use normal/bold styles as in the reports in the desktop
1741 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1743 ReportGenerator: Add a header band to show the field titles.
1745 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1746 getReportHTML(): Pass the localeId to the ReportGenerator
1748 * src/main/java/org/glom/web/server/ReportGenerator.java
1749 constructor: Take the localeID so we can get translated field
1751 generateReport(), addToReport(), addFieldToBand(): Add field
1752 titles in a column header band.
1754 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1756 Reports drop-down list: Some improvement.
1758 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1759 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1760 Adedd setSelectedReport(),
1761 setReportList(): Add a blank line so that the user can select the
1763 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1764 start(): Show the current report by calling setSelectedReport().
1765 This does not seem to work yet.
1767 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1769 DetailsActivity, ListActivity: Move some variables into a base class.
1771 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1772 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1773 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
1774 the clientFactory, documentID, tableName and authenticationPopup into
1775 a base class, to avoid duplication.
1777 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1779 Translate the Reports label.
1781 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1782 Get the "Reports" label string from the constants.
1783 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1784 perties: Add Reports to the constants.
1786 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1788 Reports: Implement grouping.
1790 * src/main/java/org/glom/web/server/ReportGenerator.java:
1791 Handle LayoutItem_GroupBy items and try to do the right thing
1792 with JRDesignGroup. It seems to work.
1794 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1796 Actually show some data with JasperReports.
1798 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1799 getReportHTML(): Move most code into a ReportGenerator class.
1800 * src/main/java/org/glom/web/server/ReportGenerator.java:
1801 Recurse into sub-groups, adding fields to the JasperDesign's details
1802 band. Note that we must set an arbitrary width and height, or it just
1803 will not show any data.
1805 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1807 Reports Chooser: Show the titles, not the names.
1809 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1810 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1811 and the names as the values.
1812 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1813 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1814 group now that we provide the report name, so it should always
1817 2012-02-15 Murray Cumming <murrayc@murrayc.com>
1819 Depend on jasperreports.
1821 * pom.xml: Add the dependency. My plan is to use this on the
1824 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1826 Implement navigation to report places.
1828 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1829 start(): Do not bother to handle all events here.
1830 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1831 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1832 Added getSelectedReport().
1833 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1834 .java: start(): When handling a change to the reports chooser,
1835 call getSelectedReport() and goTo() its ReportPlace.
1836 * src/main/java/org/glom/web/client/ui/ReportView.java
1837 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1838 Added setReportHTML() which puts the html in a gwt HTML widget.
1839 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1840 getReportHTML(): Return "TODO" just to show that this works.
1842 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1844 Make ReportPlace usable.
1846 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1847 Mention ReportPlace.
1848 * src/main/java/org/glom/web/client/place/ReportPlace.java:
1849 Correct the @prefix annotation.
1851 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1853 OnlineGlomService: Return report HTML rather than the LayoutGroup.
1855 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1856 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1857 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1858 Change getReportLayout() to getReportHMTL() because we will not need to
1859 parse or render the report layout on the client side.
1860 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1861 getReportLayout(): Return the libglom LayoutGroup type because we will
1862 not need to convert to a shared type, because this will not be used on
1864 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1867 Note that there is still no implementation for this.
1870 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1872 Add a (empty) Report Place, View, and Activity.
1874 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1876 * src/main/java/org/glom/web/client/place/HasTablePlace.java
1877 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1878 this into a superclass:
1879 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1880 and also use it as the base of this new ReportPlace:
1881 * src/main/java/org/glom/web/client/place/ReportPlace.java
1883 * src/main/java/org/glom/web/client/ui/ReportView.java
1884 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1885 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1886 Add these, containing mostly boiler-plate for now.
1888 * src/main/java/org/glom/web/client/OnlineGlomService.java
1889 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1890 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1891 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1892 Add API to get the LayoutGroup for the report.
1894 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1896 Add and fill a Reports drop-down list box.
1898 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1900 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1901 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1902 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1903 Added getReports(document, table, localeID), calling
1904 ConfiguredDocument.getReports().
1905 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1906 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1907 Added setReportsList() and a list widget.
1908 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1909 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1914 2012-04-12 Murray Cumming <murrayc@murrayc.com>
1916 Translations: Add Esperanto.
1918 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1919 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1920 properties: Add this translation because someone took the time to make it.
1922 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1924 Adapt to the java-libglom 1.21.7 API.
1926 * src/main/java/org/glom/web/server/ReportGenerator.java:
1927 addToReport(): get_group_secondary_fields() is now
1928 get_secondary_fields().
1931 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1933 Use the latest java-libglom version.
1935 * pom.xml: Use java-libglom 1.21.7.
1937 2012-03-03 Ben Konrath <ben@bagu.org>
1939 Display date and time in details view.
1941 https://bugzilla.gnome.org/show_bug.cgi?id=671257
1943 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1945 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1947 Require the latest java-libglom.
1949 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1951 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1953 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1955 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1956 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
1957 an empty quickfind string. I also corrected libglom to create only
1958 empty where clauses for empty quickfind strings, but this avoids the
1961 2012-02-24 Ben Konrath <ben@bagu.org>
1963 Improve the tabs in the Notebook widget.
1967 2012-01-30 Murray Cumming <murrayc@murrayc.com>
1969 Translations: Try to translate the strings.
1971 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1972 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1973 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1974 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1975 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1976 Take the Open translation from GTK+'s .po files.
1977 Take the Details translation from Glom's po files.
1978 I have added the other strings to Glom so we can get translations that way:
1979 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1981 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1983 TableSelectionViewImpl: Put the search label and entry in a div.
1985 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1986 Put the search widgets in a FlowTable so that the CSS can be used to
1987 style them while keeping them together.
1988 * src/main/webapp/style.css: Mention the new div.
1990 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1992 Translate more strings in more locales.
1994 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1995 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1996 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1997 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1998 Translate the "Details" and "Open" string too.
2000 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
2001 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
2002 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
2003 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
2004 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
2005 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
2006 Add these new locales as placeholders though they currently contain English.
2008 2012-01-27 Murray Cumming <murrayc@murrayc.com>
2010 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
2012 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
2013 Check the ConfiguredDocument* for null before using it.
2015 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2017 Tell Eclipse about the generated java files.
2019 * .classpath: This lets it find OnlineGlomConstants.java.
2020 It would be nice if Eclipse just used the maven build files.
2022 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2024 Prevent a crash when no locale is specified in the URL.
2026 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
2027 Avoid returning a null string, obtained from
2028 Window.Location.getParameter(). This caused a crash when it was
2029 later passed to libglom's API.
2030 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2031 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
2032 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
2033 guard against future null strings.
2035 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2037 Use the ?locale= query param instead of the &lang= token param.
2039 * src/main/java/org/glom/web/client/place/ListPlace.java
2040 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2041 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2042 Remove the lang token key and value.
2044 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2045 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2046 When the user selects a different locale from the chooser, use
2047 Window.Location.assign() to change the URL, which then causes a reload.
2049 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
2050 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2051 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
2052 * src/main/java/org/glom/web/client/activity/ListActivity.java
2053 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2054 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2055 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2056 * src/main/java/org/glom/web/client/ui/ListView.java:
2057 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2059 Remove localeID member variables and method/constructor parameters, instead
2060 using Utils.getCurrentLocaleID() when we need a localID to pass to
2063 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2065 Internationalize the UI strings.
2067 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
2068 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
2069 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
2070 because it is unused. Messages are apparently strings that can have
2071 parameters, but we do not need that yet, so Contants will be enough for now.
2072 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
2073 to say that we support the en and de locales.
2074 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
2075 The original English strings.
2076 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
2077 Some German translations of the English strings.
2078 The i18n goal then uses the .properties file to generate an
2079 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
2080 returns an implementation that returns the translated strings.
2081 The documentation suggests putting these in src/java/*/client/, but it seems
2082 best to put it in src/resources/*/client/.
2083 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2084 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
2085 instead of hard-coding them.
2086 Note that we cannot import OnlineGlomConstants because it does not exist yet,
2087 but that does not seem to stop the build, though it confuses Eclipse.
2089 You can see the translated string by adding ?locale=de to the URL, like so:
2090 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
2092 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2094 Improve null/empty String checks.
2096 * pom.xml: Add a dependency on commons-lang, to use
2097 org.apache.commons.lang.StringUtils.
2098 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2099 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2100 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
2101 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2102 Use StringUtils.isEmpty().
2104 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
2105 StringUtils class with a static isEmpty() function because we
2106 cannot use org.apache.commons.lang.StringUtils in client-side
2107 GWT code because it (apparently) cannot be compiled to javascript.
2108 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2109 * src/main/java/org/glom/web/client/activity/ListActivity.java
2110 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
2111 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2112 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2113 * src/main/java/org/glom/web/client/place/ListPlace.java
2114 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
2115 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
2116 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
2117 * src/main/java/org/glom/web/client/ui/details/Group.java
2118 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
2119 our StringUtils.isEmpty() function.
2121 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2123 Update to the latest java-libglom API.
2125 * pom.xml: Require java-libglom 1.21.4.
2126 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2127 getDocumentInfo(), getListViewLayoutGroup():
2128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2130 * src/main/java/org/glom/web/server/database/DBAccess.java
2131 getFieldsToShowForSQLQueryAddGroup(),
2132 getPrimaryKeyLayoutItemField(): Replace get_database_title()
2133 with either get_database_title_original() or
2134 get_database_title(localeID).
2136 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2138 ConfiguredDocument: Avoid a null pointer exception.
2140 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2141 Initialize localeID to "" to avoid returning a null String which
2142 causes a crash in java-libglom's swing-generated code.
2144 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2146 Some simple renaming.
2148 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2149 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
2150 for localeChooser. This seems more appropriate and is less ambiguous
2151 particularly in the .css file.
2153 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2155 ConfiguredDocument: Rename the localedID private member variable.
2157 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2159 Adapt to the latest java-libglom API from git master.
2161 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2162 libglom now uses only Vector instead of List, which uses add() instead of
2165 2012-01-22 Murray Cumming <murrayc@murrayc.com>
2167 ConfiguredDocument: Rename the localedID private member variable.
2169 2012-01-20 Murray Cumming <murrayc@murrayc.com>
2171 Build a source tarball with mvn assembly:single
2173 * assembly.xml: Add this file.
2174 * pom.xml: Use the maven-assembly-plugin and tell it to use
2175 our assembly.xml file.
2177 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2179 OnlineGlomServiceImpl: Get .glom files recursively.
2181 * pom.xml: Depend on commons-io from org.apache.commons.
2182 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2183 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
2184 files recursively, and with the easier filter for the extension.
2185 Use org.apache.commons.io.FilenameUtils.removeExtension() to
2186 simplify that code too.
2188 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2190 README: Mention that you must install java-libglom packages separately.
2192 But then it works, because java-libglom is now in the central maven
2195 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2197 locales drop-down: Show the correct selected locale when the URL changes.
2199 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2200 .java: setPlace(): Move some code into fillView().
2202 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2204 locales drop-down: Do not lose the primary key.
2206 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2207 start(): onLocaleChange(): Pass the current primary key value,
2208 instead of an empty value.
2210 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2212 locales drop-down: Do not lose the drop-down selection.
2214 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2215 .java (TableSelectionActivity.fillView): Set the selected locale
2216 after changing the drop-down items (though we do not really need
2217 to change them just because the locale changes.)
2219 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2221 locales drop-down: Change the tables list when this changes.
2223 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2224 .java: TableSelectionActivity.start(): Move the async table titles
2225 retrieval into a private fillView() method and also call this when
2226 the chosen locale changes.
2227 Note that the document title is not actually translatable yet, but
2228 that is a problem that I should fix soon in libglom.
2230 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2232 Improve the placement of the locales drop-down.
2234 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2235 Put the title and locales drop-down in a div (gwt.FlowTable).
2236 * src/main/webapp/style.css: Add magic css properties to make this work.
2237 Also remove the left margin from the title so that it lines up with the
2240 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2242 locales selector: Show human-readable locale titles.
2244 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2245 getDocumentInfo(): Use java.util.Locale to show a real title of
2246 each locale, in the locale's own language.
2248 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2250 Add a language/locale selector drop-down.
2252 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2253 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
2254 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
2255 getDocumentInfo(): Store the available Locales in the DocumentInfo.
2256 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2257 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2258 Add a ListBox to show the available locales. Add getLocaleSelector(),
2259 setLocaleList(), getSelectedLocale(), setSelectedLocale().
2260 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
2261 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
2262 java: Add these classes.
2263 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2264 start(): Fill the locales ListBox. Handle its change event, firing a
2266 setPlace(): Show the selected locale as specified by the URL token.
2267 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2268 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2269 Handle LocaleChangeEvent, going to a new *Place with that locale.
2271 The placement of the ListBox is not pretty, and it currently uses the ID
2272 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
2276 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2278 Search box: Show the search text from the URL token.
2280 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2281 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2282 Add setQuickFindText().
2283 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2284 .java: setPlace(): Store the queryText if the place is a ListPlace,
2285 and call TableSelectionView.setQuickFindText().
2287 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2289 Allow use of translations via, for instance, &lang=de in the URL.
2291 * pom.xml: Use the unstable java-libglom 1.21 version.
2293 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2294 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
2295 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2296 init(): Instead of calling TranslatableItem.set_current_locale()
2297 (now removed), call ConfiguredDocument.setDefaultLocaleID().
2298 However, this is only for default locales, which are not needed to
2299 change the locale in the URL.
2300 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
2301 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
2302 getSortedRelatedListData(): Add a localeID parameter, so we can get the
2303 layout for a particular locale.
2304 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2305 Add get/setDefaultLocaleID().
2306 getDocumentInfo(), getListViewData(), getRelatedListData(),
2307 getDetailsLayoutGroup(), getListViewLayoutGroup(),
2308 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
2309 localeID parameter, so we can get the layout for a particular locale.
2311 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2312 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2313 * src/main/java/org/glom/web/client/place/ListPlace.java:
2314 Parse and construct a lang parameter too.
2316 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2317 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
2318 passed to subsequent methods and constructors.
2319 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2320 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2321 Store the localeID from the *Place and pass it to other constructors
2322 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
2324 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2325 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2326 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2327 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2328 * src/main/java/org/glom/web/client/ui/ListView.java:
2329 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2330 Take localeID parameters and pass them to subsequent constructors and
2331 methods, so that the layout is always retrieved for that locale.
2333 This is rather repetitive.
2335 Note that "" means the original (default) locale of the Glom document,
2336 which is usually English.
2338 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2340 Documents: Remove final keyword to fix startup configuration.
2342 * src/main/java/org/glom/web/shared/Documents.java: Remove the
2343 final keywords on the private member variables because that breaks
2344 the startup, apparently (there are warnings) because it stops them
2345 from being serialized. I added these in the previous commit.
2347 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2349 Documents: Add some final keywords.
2351 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
2354 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2356 OnlineGlomServiceImpl: Add to overview comments.
2358 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2359 Note that this is where all the document are loaded. They are not
2360 loaded freshly for each page.
2362 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2366 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2367 Add a TextBox for the text of a quick find.
2368 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
2370 setBackLink(): Add a String quickFind parameter.
2371 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2372 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
2373 to the base interface, because that is how TableSelectionViewImpl is used.
2374 * src/main/webapp/style.css: Add style for the search box and its label.
2376 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
2377 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
2378 Add these files, based on the existing TableChangeEvent and
2379 TableChangeEventHandlers.
2380 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2381 start(): Handle QuickFindChangeEvent, passing its quickFind text to
2382 a ListPlace() that the user should be taken to.
2383 * src/main/java/org/glom/web/client/activity/ListActivity.java
2384 start(): Handle it here too and adapt the TableChangeEvent handler to
2385 pass the extra "" quickFind parameter to ListPlace.
2386 * src/main/java/org/glom/web/client/place/ListPlace.java:
2387 Constructor: Take an extra String quickFind parameter and store it,
2388 returning it from a new getQuickFind() method.
2389 getToken(): Put the quickFind text in the URL token.
2390 getPlace(): Parse the quickFind text from the URL token.
2391 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2392 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
2393 ListPlace constructor.
2394 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2395 .java: start(): Add a Change handler for the TableSelectionView's
2396 TextBox (via its base HasChangeHandlers interface), firing the new
2397 QuickFindChangeEvent.
2398 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
2399 pass the extra "" quickFind parameter.
2401 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2402 setCellTable(): Add a String quickFind parameter and pass it to
2403 the ListViewTable() constructor.
2404 * src/main/java/org/glom/web/client/ui/ListView.java: Change
2405 setCellTable() in the base interface, because that is how ListViewImpl
2408 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2409 Add a String quickFind member variable.
2410 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2411 Constructor: Add a String quickFind parameter, storing it in the
2412 base ListTable's member variable.
2413 onRangeChanged(): Pass quickFind to the
2414 OnlineGlomServiceAsync.getSortedListViewData() and
2415 OnlineGlomServiceAsync.getListViewData() methods.
2417 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2418 getListViewData(), getSortedListViewData(): Add a String quickFind
2419 parameter, passing it to ConfiguredDocument.getListViewData().
2420 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2421 Change getListViewData(), getSortedListViewData() in the base interface,
2422 because that is how OnlineGlomServiceImpl is used, via this:
2423 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2424 Change getListViewData(), getSortedListViewData() here too.
2425 This class can apparently be used to asynchronously call methods on
2426 OnlineGlomService, and GWT seems to implement that after recognizing
2427 just the *Async name convention and the extra AsyncCallback parameters.
2429 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2430 getListViewData(): Add a String quickFind parameter, and pass it to
2431 ListViewDBAccess.getData().
2432 * src/main/java/org/glom/web/server/database/ListDBAccess.java
2433 getListData(): Add a String quickFind parameter and pass it to
2435 getSelectQuery(): Add a String quickFind parameter.
2436 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
2437 getSelectQuery(): Add a String quickFind parameter and use it with
2438 Glom.get_find_where_clause_quick() to pass a where_clause to
2439 Glom.build_sql_select_with_where_clause(), to actually filter the
2441 getData(): Add a String quickFind parameter, passing it to getListData().
2442 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
2443 va: getData(): Pass an empty string to getListData() for the
2444 quickFind parameter.
2446 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2448 ListTable: Minor change.
2450 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2451 createCellTable(): Make this protected instead of public.
2453 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2455 Many files: Use final for the parameters and use the @override attribute.
2457 2012-01-22 Ben Konrath <ben@bagu.org>
2459 Add anchor links for single line text that starts with http, ftp and www.
2463 2012-01-22 Ben Konrath <ben@bagu.org>
2465 Add ellipsis to single line text in details view.
2469 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2471 Remove all javadoc author tags.
2473 Because they are awkward and meaningless when many people touch
2475 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
2477 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2479 Revert the COPYING.LESSER to COPYING rename.
2481 Apparently both should be there if it is LGPL.
2483 2012-01-03 Murray Cumming <murrayc@murrayc.com>
2485 *View: Remove unused imports.
2487 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2488 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2489 * src/main/java/org/glom/web/client/ui/ListView.java:
2490 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2491 Remove unused imports, as suggested by Eclipse.
2493 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2495 Move the *View::Presenter types, and some API into one base View.
2497 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2498 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2499 * src/main/java/org/glom/web/client/ui/ListView.java:
2500 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
2501 Presenter, setPresenter() and clear() into a shared base interface,
2502 to avoid the unnecessary duplicate Presenter types and to more clearly
2503 show how the *Views share the same structure, even if they are not
2504 used polymorphically.
2506 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2507 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2509 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2510 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2511 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
2513 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2516 Feel free to revert this if there is a good reason for the duplicate
2519 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2521 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
2523 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
2524 a class member instead of a local variable in the method.
2525 This lets us use it to get the view instances, for use in tests.
2526 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2527 beforeOnlineGlom(): Test some more details of the initial view.
2528 Again, this is not very useful.
2530 To really test gwt-glom we will need to start a local postgresql
2531 instance with local data, like the Glom tests in C++.
2533 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2535 pom.xml: Mention the LGPL license.
2537 * pom.xml: Add a licenses section.
2538 * COPYING.LESSER: Move this to COPYING, which
2539 previously contained the GPL. But gwt-glom is all LGPL.
2541 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2543 Add project information to README and pom.xml.
2545 * README: Add a brief description and mention some mvn
2547 * pom.xml: This extra information shows up in mvn site
2550 2011-01-02 Murray Cumming <murrayc@murrayc.com>
2552 Use the latest java-libglom version.
2554 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
2556 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2558 GwtTestOnlineGlom: Test a little more.
2560 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
2561 protected rather than private, as suggested by the gwt-test-utils
2563 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
2564 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
2565 Test the initial visibility of the panels.
2567 However, this is not a very useful test.
2568 And I wonder how we should generally test using this idea for an
2569 activity/places app like ours where the real changes happen implicitly
2570 based on the history token/URL.
2572 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2574 Slight modification to *Mapper comments.
2576 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
2577 (DataActivityMapper)
2578 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
2580 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
2582 Remove comments mentioning GIN because they are just copied from
2583 the example code and are apparently not helpful:
2584 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
2585 Also change the mention of a class that is only in the example code.
2587 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2589 GwtTestOnlineGlom test: Minor changes.
2591 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2592 Avoid the long qualified class name and modify the comment
2593 because it is now obvious to me that the mocked class is the only
2594 custom one created via GWT.create().
2596 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2598 Tests: Added the beginnings of a test using gwt-test-utils.
2600 * pom.xml: Add dependencies on gwt-test-utils and easymock.
2601 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
2602 which tells gwt-test-utils what class will be tested.
2603 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2604 Add a simple (but empty) test case. One class, used by the OnlineGlom
2605 class, is mocked so that it can be created. However, I am not sure
2606 why only this class needs to be mocked.
2608 Note that mockito seems more popular, and clearer, than easymock,
2609 but I have not got that working yet. It might be a matter of the
2612 This test is run during mvn integration-test.
2614 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2616 Tests: Use junit4-style syntax instead of junit3-style.
2618 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2619 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2620 * src/test/java/org/glom/web/shared/DataItemTest.java:
2621 Use the @Test annotation rather than relying on the test*() prefix.
2622 Also no longer implement TestCase, to avoid triggering support for
2623 the junit3-way, which stops the annotations from working.
2624 Change the imports from import junit.framework.* to
2625 import org.junit.*, which is apparently the new way.
2627 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2629 Added a test for ListPlace token parsing and creation.
2631 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2632 This is much the same as DetailsPlaceTest.
2634 I wonder how we could test the other parts of the *Place API.
2636 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2638 DetailsPlace test: Also test getToken() and recreation via getPlace().
2640 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2641 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
2642 recreate it, testing the recreated DetailsPlace for the same parameter
2645 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2647 Use the surefire-report plugin.
2649 * pom.xml: This generates a HTML report about the tests in
2650 target/site/surefire-report.html
2651 when you do mvn surefire-report:report. It seems to be popular/normal.
2653 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2655 Added a test for DetailsPlace.
2657 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2658 Test the getPlace() token parsing.
2660 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2662 Added a first unit test.
2664 * pom.xml: Add a test goal, and a dependency on junit in that scope.
2665 * src/test/java/org/glom/web/shared/DataItemTest.java:
2666 This is a silly test but it is just to get things started. Note that
2667 maven/junit finds the test because it looks in src/test by default.
2669 2011-12-22 Ben Konrath <ben@bagu.org>
2671 Change charsetName to "UTF-8" when replacing line breaks.
2673 JavaScript requires the charsetName to be "UTF-8". CharsetName values
2674 that work in Java (such as "UTF8") will not work when compiled to
2677 This fixes a problem with multi-line details view fields that have hard
2678 line breaks. The "License Text" field on this page demonstrates the
2681 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2683 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2685 2011-12-22 Ben Konrath <ben@bagu.org>
2687 Fix another bug with related list navigation.
2689 I've tested all the navigation buttons in all of the related lists
2690 so things should be good now.
2692 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2694 2011-12-22 Ben Konrath <ben@bagu.org>
2696 Fix a crasher when refreshing the list view with the default table.
2698 This crash will also happen when loading the list view with the default
2699 table from a link or bookmark.
2701 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
2702 to the main document selection page when the document id hasn't been
2704 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
2705 the main document selection page when the document id hasn't been
2707 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
2708 values for the details place when the document id hasn't been set.
2709 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
2710 values for the list place when the document id hasn't been set.
2712 2011-12-21 Ben Konrath <ben@bagu.org>
2714 Protect against NPE when glom.document.locale is not in config.
2716 This patch protects against an NPE when glom.document.locale is not in
2717 the config file. This NPE will also happen if glom.document.locale is
2720 The patch also updates the error message to display the class name when
2721 the getMessage() returns null. This was happening when the NPE was
2722 thrown and I had "Configuration Error: null". If an NPE is encountered
2723 with this patch, "Configuration Error: NullPointerException " will be
2726 This commit closes this bug:
2728 https://bugzilla.gnome.org/show_bug.cgi?id=666669
2730 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2732 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2734 Rename onlineglom.properties to onlineglom.properties.sample.
2736 * src/main/resources/onlineglom.properties: Rename to:
2737 * src/main/resources/onlineglom.properties.sample:
2738 * src/main/resources/README: And add this file explaining that people
2739 should rename it back when deploying.
2741 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2743 Allow choosing the translation in the .properties file.
2745 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2746 init(): Read a glom.document.locale value from the configuration file
2747 and call Glom's TransatableItem::set_current_locale() method.
2748 * src/main/resources/onlineglom.properties: Add a commented-out
2749 example of this new setting.
2751 It would be better to add &lang=de_DE to the URL, but the current
2752 libglom API does not allow us to do this easily. I am working on that.
2754 2011-12-19 Murray Cumming <murrayc@murrayc.com>
2756 Avoid a crash in parsing of token parameters.
2758 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2759 ava: getTokenParams(): Do not crash if a parameter has a key but no
2760 value, and ignore parameters with neither.
2762 2011-12-17 Murray Cumming <murrayc@murayc.com>
2764 History token building/handling: Improve use of token parameters.
2766 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2767 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2768 and buildParamsToken(HashMap), for use by derived classes.
2769 Make the separator private because it is no longer be needed.
2770 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2771 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2772 instead of manual string concatenation.
2773 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
2774 of hardcoded indices and awkward splitting code.
2775 * src/main/java/org/glom/web/client/place/ListPlace.java
2776 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2777 instead of manual string concatenation.
2778 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
2779 of hardcoded indices and awkward splitting code.
2780 This should fix bug #666420
2782 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2784 Fix a Navgiation->Navigation typo in the code.
2786 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2787 Rename processNavgiation() to processNavigation().
2789 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2791 Fix a seperator->separator typo in the code.
2793 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2794 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2795 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
2798 2011-12-15 Ben Konrath <ben@bagu.org>
2800 Cleanup some comments.
2802 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2804 2011-12-14 Ben Konrath <ben@bagu.org>
2806 Replace \n with <br/> for multiline text in the details view.
2808 Vertical scrollbars are added when needed as well.
2810 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2812 2011-12-14 Ben Konrath <ben@bagu.org>
2814 Specify the font for document selection links.
2816 * src/main/webapp/style.css:
2818 2011-12-14 Ben Konrath <ben@bagu.org>
2820 Fix bouncy CellTable while paging.
2822 This doesn't currently work with related list tables in unselected
2825 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2827 2011-12-14 Ben Konrath <ben@bagu.org>
2829 Revamp the appearance of the document selection page.
2831 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2832 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2833 * src/main/webapp/style.css:
2835 2011-12-13 Ben Konrath <ben@bagu.org>
2837 Set navigation button column to the smallest size possible.
2839 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2841 2011-12-13 Ben Konrath <ben@bagu.org>
2843 Change OpenButton nomenclature to NavigationButton.
2845 Using NavigtionButton makes things more generic. Classes, methods and
2846 variables have been changed.
2848 This is a rename-only refactor.
2850 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2851 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2852 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2853 Renamed from OpenButtonCell.
2854 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2855 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2856 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2858 2011-12-12 Ben Konrath <ben@bagu.org>
2860 Remove unnecessary String argument in RelatedListTable and ListViewTable.
2862 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2863 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2864 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2865 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2867 2011-12-12 Ben Konrath <ben@bagu.org>
2869 Update variable names and comments.
2871 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2872 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2874 2011-12-12 Ben Konrath <ben@bagu.org>
2876 Properly initialize numNonEmptyRows variable to zero.
2878 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2879 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2881 2011-12-05 Ben Konrath <ben@bagu.org>