1 2012-12-02 Murray Cumming <murrayc@murrayc.com>
3 Add GwtTestReportPlace.
5 * src/test/java/org/glom/web/client/place/GwtTestReportPlace.java:
6 This is like the existing GwtTest*Place tests.
7 It would be nice if we could just test that all client and shared
8 code can be compiled to Javascript without creating a test for it.
9 Currently, we only discover problems when starting it in a browser.
11 2012-12-02 Murray Cumming <murrayc@murrayc.com>
13 Add GwtTestDetailsPlace to test the same code as client-side.
15 * src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java:
16 See the comment about the awkward client-side-only Date API.
17 Ignoring this Date API issue, it would be nice if we could test
18 the same code as both Java (server) and generated Javascript (client)
19 without duplicating most of the test code.
21 2012-12-02 Murray Cumming <murrayc@murrayc.com>
23 DataItemTest: Test the date type too, and improve the asserts.
25 * src/test/java/org/glom/web/shared/DataItemTest.java:
26 Add testdate(). See the comment about the awkward server-side-only
29 2012-12-02 Murray Cumming <murrayc@murrayc.com>
31 DetailsPlace: Use a date-formatting API available in GWT client code.
33 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
34 getStringForData(): Use DateTimeFormat.getFormat(), because that works
35 on the client side (but not the server side) instead of String.format()
36 with Date.getYear()/getMonth()/getDate(), because they work only on the
37 server side (but not on the client side). Rather annoying.
38 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java: Rename to
40 * src/test/java/org/glom/web/client/place/ListPlaceTest.java: Rename to
41 GwtTestListPlaceTest, so we can run these as client-side (generated
42 Javascript) code so we can catch these problems sooner.
43 It is unfortunate that the code cannot run on the server-side as Java,
44 but it does not need to.
46 2012-12-02 Murray Cumming <murrayc@murrayc.com>
48 In the UI, allow primary keys to be any type, and test it.
50 * src/main/java/org/glom/web/shared/TypedDataItem.java:
51 Added isUnknownType() for convenience.
52 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
53 getToken(): Move some code into getStringForData() and handle
55 * src/main/java/org/glom/web/server/Utils.java:
56 Added transformUnknownToActualType(), to parse the unknown string
57 as a particular type of data. This should correspond with
58 getStringForData() above.
59 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
60 Add setDataItemType() to set the type of data for primary
62 getDetailsData(), getSuitableRecordToViewDetails():
63 Call it, to have the correctly-typed primary key value.
64 We do it here, on the server, instead of before, because it
65 is only here that we can know the field type that is in the
67 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
68 Added testGetPlaceParametersNumericPrimaryKey(),
69 testGetPlaceParametersBooleanPrimaryKey() and
70 testGetPlaceParametersDatePrimaryKey).
72 2012-11-30 Murray Cumming <murrayc@murrayc.com>
74 Allow primary keys to be any type, and test it.
76 * src/main/java/org/glom/web/shared/TypedDataItem.java:
77 Add overrides for the other set*() methods, to set the type.
78 Added getValue() which returns a generic Object.
79 * src/main/java/org/glom/web/server/SqlUtils.java:
80 buildSimpleWhereExpression(): Use TypedDataItem.getValue() instead of
82 * src/test/java/org/glom/web/server/SelfHostExampleNonNumericPrimaryKeysTest.java:
83 Added this test, which is much like SelfHostExampleTest, but which uses this
84 test file, take from Glom:
85 * src/test/resources/org/glom/web/server/test_example_music_collection_text_pk_fields.glom:
86 which has all the primary keys changes to text instead of numbers.
88 However, parts of the UI code still assume that primary keys are numbers.
90 2012-11-28 Murray Cumming <murrayc@murrayc.com>
92 SelfHostExampleTest: Move some checks into a utility function.
94 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
95 Move the data checks into a new file:
96 * src/test/java/org/glom/web/server/SelfHostTestUtils.java:
97 SelfHostTestUtils.java: so we can use it in some other
98 tests, with different documents.
100 2012-11-28 Murray Cumming <murrayc@murrayc.com>
102 SelfHosting test: Also try using a relationship.
104 * src/main/java/org/glom/web/server/database/DBAccess.java:
105 convertResultSetToDTO(): Move some code into a public
107 * src/main/java/org/glom/web/server/SqlUtils.java:
108 fillDataItemFromResultSet(): This takes a DataItem and
109 sets it from a value from a datbase recordset.
110 * src/main/java/org/glom/web/server/libglom/Document.java:
111 Make getDocument() public, so we can use it in a test.
112 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
113 Add testExampleMusiccollectionDataRelated() and call it from
114 testExampleMusiccollectionData(), to do a basic test of using
117 2012-11-22 Murray Cumming <murrayc@murrayc.com>
119 Build: Specify the source encoding.
121 * pom.xml: Set project.build.sourceEncoding
122 This should fix this build problem on some systems:
123 [ERROR] /var/lib/jenkins/workspace/OnlineGlom/src/test/java/org/glom/web/server/libglom/DocumentTest.java:[139,72] error: unmappable character for encoding ASCII
127 2012-11-20 Murray Cumming <murrayc@murrayc.com>
129 Update the jasperreports version.
131 * pom.xml: This was shown by
132 mvn versions:display-dependency-updates
134 2012-11-20 Murray Cumming <murrayc@murrayc.com>
136 Eclipse: Reorder the Java Build Path to fix the build in Eclipse.
138 * .classpath: This prevents an error saying that getTextContent()
140 See http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
142 2012-11-20 Murray Cumming <murrayc@murrayc.com>
144 Explicitly declare some dependencies (and scopes) that we use.
146 * pom.xml: The dependency report showed what we use.
148 2012-11-20 Murray Cumming <murrayc@murrayc.com>
150 Update the gwt-test-utils version.
152 * pom.xml: gwt-test-utils 0.43 uses GWT 2.5.0, not GWT 2.4.0.
153 Using both in the same project was causing gwt-log to fail in GWTBrige,
155 testOutOfBounds(org.glom.web.server.libglom.DocumentLayoutPathTest):
156 (class: com/google/gwt/core/client/GWT, method: setBridge signature: (Lcom/google/gwt/core/client/GWTBridge;)V) Incompatible argument to function
158 2012-11-19 Murray Cumming <murrayc@murrayc.com>
160 DocumentTest: testLocales(): Update for the latest example version.
162 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
163 The .glom file, updated in the previous commit, now has more translations.
165 2012-11-19 Murray Cumming <murrayc@murrayc.com>
167 Update the .glom files used for tests.
169 * src/test/resources/org/glom/web/server/example_film_manager.glom:
170 * src/test/resources/org/glom/web/server/example_music_collection.glom:
171 * src/test/resources/org/glom/web/server/libglom/example_film_manager.glom:
172 * src/test/resources/org/glom/web/server/libglom/example_music_collection.glom:
173 Copy them from git master of Glom.
175 2012-11-18 Murray Cumming <murrayc@murrayc.com>
177 Update versions of dependencies.
179 * pom.xml: Increase some version numbers based on the output of
180 , using mvn versions:display-dependency-updates.
181 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
182 Use the annotation instead of getModuleName().
183 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
184 Do not use deprecated assert() classes/methods.
186 2012-11-18 Murray Cumming <murrayc@murrayc.com>
188 Document: Correct an import to use the correct Log API.
190 * src/main/java/org/glom/web/server/libglom/Document.java:
191 Use our Utils.Log API rather than the jfree one that Eclipse
192 must have suggested at some time.
194 2012-11-15 Murray Cumming <murrayc@murrayc.com>
196 Details: Get static image data from our images services.
198 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
199 Add constructors for LayoutItemText and LayoutItemImage and
200 deal with their common type instead of just LayoutItemField.
202 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
204 * src/main/java/org/glom/web/client/ui/details/Group.java:
205 createChildWidget(): Use the other DetailsCell constructors for
206 these layout items, and do not add them to the list of
207 cells with data from the database.
208 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
209 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
210 Remove the image data when cloning the layout and storing it in the
211 cache. Clients will instead get it via the URL, from
213 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
214 doGet(): Depending on the URI parameters, optionally get
215 image data from a layout_item_image in the document,
217 * src/main/java/org/glom/web/server/database/DBAccess.java:
218 convertResultSetToDTO(): Move some URIBuilder code to:
219 * src/main/java/org/glom/web/server/Utils.java:
220 Add buildImageDataUrl() taking the primary key, etc, to
221 get data from the database.
223 2012-11-15 Murray Cumming <murrayc@murrayc.com>
225 Document: Static image items: Store an image URL, using the layout path.
227 * src/main/java/org/glom/web/server/Utils.java: Add buildImageDataUrl().
228 * src/main/java/org/glom/web/server/libglom/Document.java:
229 Add a constructor that takes the documentID, for use in the
231 loadLayoutNode(): Pass a Path object to the helper methods, so we
232 can use it to create a URL for LayoutItemImage items.
233 This seems as good a way as any to specify a layout item in the document.
234 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
235 Pass the documentID to the constructor, for use in the LayoutItemImage
238 2012-11-15 Murray Cumming <murrayc@murrayc.com>
240 Document: Add getLayoutItemByPath().
242 * src/main/java/org/glom/web/server/Utils.java:
243 Add buildLayoutPath() and parseLayoutPath().
244 * src/test/java/org/glom/web/server/LayoutPathTest.java: Test that these
245 utility methods work.
246 * src/main/java/org/glom/web/server/libglom/Document.java:
247 Add Add getLayoutItemByPath().
248 * src/test/java/org/glom/web/server/libglom/DocumentLayoutPathTest.java: Test
251 This will be useful in subsequent commits.
253 2012-11-15 Murray Cumming <murrayc@murrayc.com>
255 Document: Use a better base64 decoder to read static image data.
257 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
258 getNodeTextChildAsValue(): Use the apache commons base64 decoder
259 instead of the gwt one, because it correctly decodes the strings
260 from g_base64_encode(). It is probably more correct.
261 The newlines might be confusing the gwt decoder.
263 2012-11-14 Murray Cumming <murrayc@murrayc.com>
265 Document: Do not use == to compare strings. Use equals().
267 * src/main/java/org/glom/web/server/libglom/Document.java:
268 == only checks that they are the same object, so it can
271 2012-11-14 Murray Cumming <murrayc@murrayc.com>
273 Document: Add and use public constants for layout names.
275 * src/main/java/org/glom/web/server/libglom/Document.java:
276 Make LAYOUT_NAME_DETAILS and LAYOUT_NAME_LIST public.
277 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
278 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
279 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
280 * src/test/java/org/glom/web/server/libglom/DocumentTest.java: Use
281 them here instead of hard-coded the strings repeatedly.
283 2012-11-13 Murray Cumming <murrayc@murrayc.com>
285 Document: Load static text and image items too.
287 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemImage.java:
288 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemText.java:
289 New LayoutItem classes to represent these layout items.
290 * src/main/java/org/glom/web/shared/libglom/layout/StaticText.java: The
291 main text of a LayoutItemText.
292 * src/main/java/org/glom/web/server/libglom/Document.java:
293 load_after_layout_group(): Handle the node types and instantiate the
295 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
296 Add testLayoutItemText() to check that the text is loaded properly.
298 2012-11-13 Murray Cumming <murrayc@murrayc.com>
300 Do not use client.GWT for shared code.
302 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
303 Import shared.GWT instead of client.GWT, which seems to be appropriate.
305 2012-11-12 Murray Cumming <murrayc@murrayc.com>
307 Use image data when recreating databases for testing.
309 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setImageData(),
310 for use locally (not acrosss the network) when recreating databases
312 getValue(): Use it here instead of getImageDataUrl(), noting that
313 this method is only for use when recreating databases.
314 * src/main/java/org/glom/web/server/libglom/Document.java:
315 getNodeTextChildAsValue(): Use it instead of setImageDataUrl().
317 2012-11-09 Murray Cumming <murrayc@murrayc.com>
319 OnlineGlomImages: Detect the mime-type (content type).
321 * src/main/java/org/glom/web/server/OnlineGlomImages.java:
322 doGet(): Instead of hard-coding image/png.
324 2012-11-09 Murray Cumming <murrayc@murrayc.com>
326 Eclipse project files: Use JDK 1.7 instead of JDK 1.6.
329 * .settings/org.eclipse.jdt.core.prefs: By changing the Eclipse
330 Java Compiler and Java Build path settings in the UI.
332 2012-11-09 Murray Cumming <murrayc@murrayc.com>
334 Use the latest (now stable) version of GWT.
336 * pom.xml: And the latest version of the gwt-maven-plugin.
338 2012-11-08 Murray Cumming <murrayc@murrayc.com>
340 Added an Indonesian translation.
342 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
343 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_id.properties:
344 This is from the new translation in Glom.
346 2012-07-23 Murray Cumming <murrayc@murrayc.com>
348 Details: Show images.
350 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
352 * src/main/java/org/glom/web/server/ConfiguredDocumentSet.java:
353 so it can be used in:
354 * src/main/java/org/glom/web/server/OnlineGlomImages.java: A new servlet just
355 for serving image data.
356 * src/main/webapp/WEB-INF/web.xml: Mention the new servlet.
358 * src/main/java/org/glom/web/shared/DataItem.java: Added get/setImageDataUrl().
359 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
360 setData(): For image field types, add a GWT Image widget,
361 with the URL that was set in the DataItem.
363 * pom.xml: Depend on org.apache.httpcomponents for UriBuilder.
364 * src/main/java/org/glom/web/server/database/DBAccess.java:
365 convertResultSetToDTO(): Set the URL for image data, so the client browser
366 can retrieve the image from our new servlet. This uses UriBuilder.
367 Move getPrimaryKeyField to:
368 * src/main/java/org/glom/web/server/libglom/Document.java:
369 Added getTablePrimaryKeyField().
371 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
372 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
373 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
376 2012-07-22 Murray Cumming <murrayc@murrayc.com>
380 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
381 * src/main/java/org/glom/web/client/OnlineGlomService.java:
382 * src/main/webapp/WEB-INF/web.xml: Change the servlet-name from libGlom
383 to gwtGlom, which is more appropriate.
384 This servlet name does not seem to be visible to the client side anyway.
386 2012-07-22 Murray Cumming <murrayc@murrayc.com>
388 Tests: Make the imports of assert*() consistent.
390 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
391 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
392 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
393 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
394 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
395 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
396 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
397 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
398 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
399 * src/test/java/org/glom/web/shared/DataItemTest.java:
401 import static org.junit.Assert.*;
402 which seems fairly common.
406 2012-07-21 Murray Cumming <murrayc@murrayc.com>
408 tests: Move a test that needs a database connection.
410 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
411 Move testGetListViewLayoutGroup() to
412 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
413 because it needs a database connection.
415 2012-07-21 Murray Cumming <murrayc@murrayc.com>
417 tests: Use @BeforeClass on tearDown().
419 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
420 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
421 This avoids leaking a postgres process in SelfHostExampleTest.
423 2012-07-21 Murray Cumming <murrayc@murrayc.com>
425 tests: Test translations more.
427 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
428 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
429 Test titles in the non-default locale.
431 2012-07-21 Murray Cumming <murrayc@murrayc.com>
433 tests: Add SelfHostConfiguredDocumentTest
435 * src/test/java/org/glom/web/server/SelfHoster.java: Add getters for the
436 username and password, for use by ConfiguredDocument.
437 * src/test/java/org/glom/web/server/SelfHostConfiguredDocumentTest.java:
438 This tests some of the ConfiguredDocument API that requires a database connection.
440 2012-07-21 Murray Cumming <murrayc@murrayc.com>
442 Document: Load title translations and test them.
444 * src/main/java/org/glom/web/server/libglom/Document.java: Load the translations
445 of titles. I am surprised that we do not do this yet.
446 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
447 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
448 Test translations more.
450 2012-07-20 Murray Cumming <murrayc@murrayc.com>
454 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
455 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
456 Set the timeout here too.
458 2012-07-20 Murray Cumming <murrayc@murrayc.com>
460 tests: ConfiguredDocumentTest: Make this pass.
462 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
463 Disable tests that need a database connection.
465 2012-07-20 Murray Cumming <murrayc@murrayc.com>
467 Use Java 1.7 instead of Java 1.6.
469 * pom.xml: Specify the 1.7 JDK, though I don't like how we seem to need
470 to do this twice, at least for Eclipse.
471 This seems OK because it is the current version.
473 2012-07-20 Murray Cumming <murrayc@murrayc.com>
477 * src/main/java/org/glom/web/server/Log.java: Avoid using null strings.
478 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
479 Avoid using a null Connection.
481 2012-07-20 Murray Cumming <murrayc@murrayc.com>
483 tests: Add a ConfiguredDocument test.
485 * src/test/java/org/glom/web/server/ConfiguredDocumentTest.java:
488 2012-07-20 Murray Cumming <murrayc@murrayc.com>
490 LayoutItemFIeld: getName(): Use the Field if it is set.
492 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
493 getName(): If the full field details have been set, return its name, so that
494 callers do not need to set the name separately.
495 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
496 testExampleMusiccollectionData): Do not use a TYPE_FORWARD_ONLY statement,
497 so we can count the rows.
499 2012-07-20 Murray Cumming <murrayc@murrayc.com>
501 tests: SelfHoster: Test SqlUtils too.
503 * src/test/java/org/glom/web/server/SelfHostExampleTest.java:
504 Retrieve some data and check it too, as in the regular Glom
505 test_selfhosting_new_from_example.cc test.
506 * src/test/java/org/glom/web/server/SelfHoster.java:
507 createConnection(): Make this public.
509 2012-07-20 Murray Cumming <murrayc@murrayc.com>
511 tests: SelfHoster: createConnection(): Do not warn about expected failures.
513 Let the caller say if the connection is expected to fail, to avoid
514 irrelevant error output.
516 2012-07-20 Murray Cumming <murrayc@murrayc.com>
518 tests: SelfHoster: createAndSelfHostNewEmpty(): Sleep after starting server.
520 * src/test/java/org/glom/web/server/SelfHoster.java:
521 createAndSelfHostNewEmpty(): Sleep initially, to avoid distracting errors
522 due to the inevitable need to retry the connection while the database server
525 2012-07-20 Murray Cumming <murrayc@murray.com>
527 tests: SelfHoster: createConnection(): Set a timeout.
529 * src/test/java/org/glom/web/server/SelfHoster.java:
530 createConnection(): Use setLoginTimeout() because it otherwise seems to take
531 ages to actually return when it fails.
533 2012-07-20 Murray Cumming <murrayc@murrayc.com>
535 tests: SelfHoster: selfHost(): Close the test connection.
537 * src/test/java/org/glom/web/server/SelfHoster.java: selfHost():
538 When we check that the connection works, close the connection. This seems
539 to not be closed automatically otherwise.
541 2012-07-20 Murray Cumming <murrayc@murrayc.com>
543 Use slf4j-simple to see JDBC errors.
545 * pom.xml: Depend on slf4j-simple so we can see errors from JDBC.
547 2012-07-19 Murray Cumming <murrayc@murrayc.com>
549 SelfHoster.discoverFirstFreePort(): Close the socket.
551 * src/test/java/org/glom/web/server/SelfHoster.java:
552 discoverFirstFreePort(): Close the socket. Eclipse Juno warns about this.
554 2012-07-19 Murray Cumming <murrayc@murrayc.com>
556 Avoid another code warning in Eclipse Juno.
558 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
559 Do instanceof checks on the FileUtils.listFiles() result and its
562 2012-07-13 Murray Cumming <murrayc@murrayc.com>
564 Avoid some code warnings in Eclipse Juno
566 * src/main/java/org/glom/web/server/libglom/Document.java:
567 getNodeTextChildAsValue(), setNodeTextChildAsValue(): Handle the invalid type.
568 * src/test/java/org/glom/web/server/SelfHoster.java
569 createTextFile(): Make sure that the FileOutputStream is closed.
571 2012-06-22 Murray Cumming <murrayc@murrayc.com>
573 Added OnlineGlomPropertiesTest.
575 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
576 Make sure we never return a null string.
577 * src/test/java/org/glom/web/server/OnlineGlomPropertiesTest.java:
578 Added tests of the OnlineGlomProperties API, using our sample file.
580 2012-06-20 Murray Cumming <murrayc@murrayc.com>
582 Make OnlineGlomProperties be a normal class.
584 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
585 Move OnlineGlomProperties into its own file to be a regular class:
586 * src/main/java/org/glom/web/server/OnlineGlomProperties.java:
587 This makes testing simpler.
589 2012-06-15 Murray Cumming <murrayc@murrayc.com>
591 OnlineGlomServiceImpl.init(): Move some code into a new method.
593 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
594 Create addDocument().
596 2012-06-15 Murray Cumming <murrayc@murrayc.com>
598 OnlineGlomServiceImpl.OnlineGlomProperties: Improve getKey().
600 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
601 OnlineGlomProperties.getKey(): Make this more robust by moving the
602 check for *.*.filename to here.
604 2012-06-15 Murray Cumming <murrayc@murrayc.com>
606 OnlineGlomServiceImpl: Improve the OnlineGlomProperties class.
608 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
609 init(): Move knowledge of the config file format into the
610 OnlineGlomProperties inner class.
612 2012-06-15 Murray Cumming <murrayc@murrayc.com>
614 SelfHostExampleTest: Make sure we cleanup on failure.
616 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: Move
617 the use of cleanup() to a tearDown() JUnit method.
621 2012-06-12 Murray Cumming <murrayc@murrayc.com>
623 ConfiguredDocument: Add a primary key to portals at least once.
625 * src/main/java/org/glom/web/server/ConfiguredDocument.java
626 updatePortalsExtras): Fix a typo so that we add the primary key
627 column at least once.
628 This is a fix for the previous commit:
629 ConfiguredDocument: Do not add a primary key to portals each time.
631 2012-06-08 Murray Cumming <murrayc@murrayc.com>
633 SelfHoster: Avoid some compiler warnings.
635 * src/test/java/org/glom/web/server/SelfHoster.java
636 executeCommandLineAndWait():
637 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess(): Comment out
638 the now-unused streams for stdout and stderr from the command Processes.
639 These are not used because readln() hangs while waiting for a new line,
640 where there may be no next line. The commented out code is still there
641 to help us figure out how to do this properly.
643 2012-06-08 Murray Cumming <murrayc@murrayc.com>
645 LayoutItemPortalDeepCloneTest: Test something to avoid warnings.
647 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
648 Make this actually test the cloning again, though it is not very useful
649 now that we do not use the part that had a problem with cloning before.
651 2012-06-08 Murray Cumming <murrayc@murrayc.com>
653 SelfHoster: Keep trying pg_ctl after starting postgres.
655 * src/test/java/org/glom/web/server/SelfHoster.java
656 executeCommandLineAndWaitUntilSecondCommandReturnsSuccess():
657 Try pg_ctl repeatedly (for ever) until it succeeds, as we do in
658 regular Glom. This seems mad but it seems to work because the first
659 command would fail if pg_ctl would eventually fail.
661 2012-06-08 Murray Cumming <murrayc@murrayc.com>
663 SelfHoster: Wait until the server is really ready.
665 * src/test/java/org/glom/web/server/SelfHoster.java
666 selfHost(): Attempt the connection after starting the server, retrying
667 a few times if necessary, so that the server is really ready already when
668 we return from this method.
669 The regular Glom code does this too because pg_ctl reports success too soon.
671 2012-06-08 Murray Cumming <murrayc@murrayc.com>
673 ConfiguredDocument: Do not add a primary key to portals each time.
675 * src/main/java/org/glom/web/server/ConfiguredDocument.java
676 updatePortalsExtras(): Only add an extra primary key field if there is
677 none, to avoid adding one each time we retrieve the details layout from the
679 This should fix bug #676986 (Ben Konrath)
681 2012-05-25 Murray Cumming <murrayc@murrayc.com>
683 Document.load(): Support version 7 documents.
685 * src/main/java/org/glom/web/server/libglom/Document.java: Load the
686 database_title attribute if the title attribute is not there.
689 2012-05-24 Ben Konrath <ben@bagu.org>
691 Add configuration for auto-generating mvn:i18n from with Eclipse.
693 * pom.xml: Add PluginExecution configuration for gwt-maven-plugin.
695 2012-05-24 Murray Cumming <murrayc@murrayc.com>
697 Update translations, adding French.
699 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
700 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_fr.properties:
701 Add a French translation, using the translation from Glom.
703 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
704 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
705 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
706 Update these based on the translations from Glom.
708 2012-05-24 Murray Cumming <murrayc@murrayc.com>
710 SelfHoster: Add some debug println messages to help when things fail.
712 * src/test/java/org/glom/web/server/SelfHoster.java: Add several
713 System.out.println() lines.
715 2012-05-23 Murray Cumming <murrayc@murrayc.com>
717 Tests: SelfHoster: Check other paths for PostgreSQL command-line tools.
719 * src/test/java/org/glom/web/server/SelfHoster.java:
720 getPathToPostgresExecutable(): Try some common paths (as on Ubuntu, for
721 instance) instead of just /usr/bin (as on Fedora). Check the result when
724 2012-05-23 Murray Cumming <murrayc@murrayc.com>
726 Remove LayoutItemPortal.get/setNavigationTable().
728 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
729 Remove get/setNavigationTable(), which is only a cache, because it is not
730 used, and does not need to be used, because that decision should be made on
732 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
733 updatePortalsExtras():
734 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
735 getNavigationRecord():
736 * src/test/java/org/glom/web/server/libglom/LayoutItemPortalDeepCloneTest.java:
739 2012-05-21 Murray Cumming <murrayc@murrayc.com>
741 Initial self-hosting for tests.
743 * pom.xml: Change the scope for log4j, to hopefully make it
744 available to the test code which uses it indirectly via jOOQ.
745 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Allow
746 self-hosting, though we only use it for testing.
748 * src/main/java/org/glom/web/server/libglom/Document.java:
749 example rows: Use a map instead of a list for each row of values,
750 so we know what field they are for, instead of relying on the sequence
751 being correct. This is not very efficient, but it does not really need
753 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
754 testReadTableExampleRows(): Adapted.
756 * src/main/java/org/glom/web/shared/DataItem.java: Added getValue()
757 that returns an Object, for generic use. Note that Object seems to be
758 the implicit base even of double.
759 * src/main/java/org/glom/web/shared/libglom/Field.java: Add getSqlType(),
760 for use in CREATE TABLE SQL queries.
761 * src/test/java/org/glom/web/server/SelfHoster.java: Add this class
762 to do self-hosting of PostgreSQL databases via its command-line
763 utilities, based on Glom's C++ code in test_selfhosting_utils.cc and
764 backends/postgres_self.cc. This is incomplete - it needs more
765 warnings about failures and it needs to clean up properly when things
767 * src/test/java/org/glom/web/server/SelfHostExampleTest.java: A simple
768 test of this new class.
770 2012-05-21 Murray Cumming <murrayc@murrayc.com>
772 Document: loading example data: Handle exceptions.
774 * src/main/java/org/glom/web/server/libglom/Document.java:
775 DateFormat.parse() and Double.valueOf() can throw exceptions, though
776 Eclipse did not warn about that.
778 2012-05-20 Murray Cumming <murrayc@murrayc.com>
780 Document: load(), save(): Handle the example rows.
782 * src/main/java/org/glom/web/shared/DataItem.java: Add get/setDate()
784 * src/main/java/org/glom/web/server/libglom/Document.java:
785 load(), save(): Load and save the example rows, though the date, time
786 and image types are not handled properly yet.
787 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
788 Add testReadTableExampleRows() just to check that something is read.
790 2012-05-20 Murray Cumming <murrayc@murrayc.com>
792 Document: Add save().
794 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
795 Added getTranslationsMap() for use while saving.
796 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
797 Adedd getUseDefaultFormatting() for use while saving.
798 * src/main/java/org/glom/web/server/libglom/Document.java: Added save()
799 and several private methods that it uses.
801 This will be useful while testing via self-hosting.
802 It is not complete, but should be complete enough for testing.
804 2012-05-17 Murray Cumming <murrayc@murrayc.com>
806 OnlineGlomService: Simplify the getList/RelatedViewData() methods.
808 * src/main/java/org/glom/web/client/OnlineGlomService.java
809 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
810 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
811 Remove getSortedListViewData() and getSortedRelatedListData(), adding
812 the sort column index and ascending bool to the regular method.
813 Instead, a sort column index of -1 now means no sort.
814 This is less explicit, but it's fairly simple, reduces the amount of
815 code, and makes the OnlineGlomService API slightly smaller.
816 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
817 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
819 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
820 getListViewData(), getRelatedListData():
821 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
822 getListViewData(), getRelatedListData():
823 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
825 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
827 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
832 2012-05-16 Murray Cumming <murrayc@murrayc.com>
834 Use translations for top-level groups too.
836 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
837 updateTitlesForLocale(): Use the translation for the group
838 as well as for child items.
842 Just recompiled to fix a problem in the released .tar.gz file.
846 2012-05-15 Murray Cumming <murrayc@murrayc.com>
848 Corrections to navigation to related records.
850 * src/main/java/org/glom/web/client/OnlineGlomService.java:
851 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
852 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
853 getRelatedListData(), getSortedRelatedListData)(), getRelatedListRowCount(),
854 getSuitableRecordToViewDetails(): Take a LayoutItemPortal instead of a
855 relationship name, because the relationship name is not necessarily unique
857 TOOD: This is inefficient, because it passes the whole list of
858 child field items back to the server, but it is more correct, and happens
859 to fix a bug with the primary key being lost after a few navigations.
860 There is probably a chance to make this more efficient anyway in some
863 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
864 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.jav
865 * src/main/java/org/glom/web/server/ConfiguredDocument.java
866 * src/main/java/org/glom/web/server/database/DBAccess.java
867 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
868 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
871 2012-05-15 Murray Cumming <murrayc@murrayc.com>
873 Fix the use of translations.
875 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
876 Add updateTitlesForLocale().
877 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
878 Call it to discard unwanted translations and to make getTitle() return
879 the wanted translation wihout the need for the client code to specify a locale.
880 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
881 getTitle(): Fallback to the original title, as libglom does.
883 2012-05-15 Murray Cumming <murrayc@murrayc.com>
885 Document: Correctly report the number of available translation locales.
887 * src/main/java/org/glom/web/server/libglom/Document.java: Fill
888 the available locale IDs list.
889 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
890 testLocales: Test this.
892 2012-05-15 Murray Cumming <murrayc@murrayc.com>
894 SqlUtils: Use camelCase.
896 * src/main/java/org/glom/web/server/SqlUtils.java: Use camelCase.
897 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
898 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
899 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
900 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
901 * src/main/java/org/glom/web/server/ReportGenerator.java: Adapt.
903 2012-05-15 Murray Cumming <murrayc@murrayc.com>
905 Use jOOQ's tableByName() and fieldByName.
907 * pom.xml: Use jOOQ 2.3.1 to get the new API.
908 * src/main/java/org/glom/web/server/SqlUtils.java:
909 build_sql_select_step_with_where_clause(), .createField(),
910 builder_add_join(): Use Factory.tableByName() and Factory.fieldByName()
911 so we can get correct quoting and escaping. Thanks to Lukas Eder for
912 adding this, and other things, to jOOQ.
914 2012-05-15 Murray Cumming <murrayc@murrayc.com>
916 SqlUtils: Remove the Connection parameters.
918 * src/main/java/org/glom/web/server/SqlUtils.java:
919 build_sql_select_with_key(), build_sql_select_with_where_clause(),
920 createSelect(), build_sql_select_step_with_where_clause(),
921 build_sql_count_select_with_where_clause(),
922 build_sql_select_count_rows(): Remove the Connection parameter because
923 jOOQ does not actually need a connectionwhen it is just used to build
925 https://groups.google.com/forum/#!topic/jooq-user/tIwobFOR2iM
927 * src/main/java/org/glom/web/server/ReportGenerator.java:
929 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
931 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
932 Constructor, getListData(), getResultSizeOfSQLQuery():
933 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
934 getSelectQuery(), getCountQuery():
935 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
936 getSelectQuery(), getCountQuery():
937 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
938 getNavigationRecord(): Adapted.
940 2012-05-14 Murray Cumming <murrayc@murrayc.com>
944 * src/main/java/org/glom/web/server/SqlUtils.java:
945 get_find_where_clause_quick(): Use a comparison of
946 lowercase values, instead of a simple equals. Regular Glom
947 uses the PostgreSQL ILIKE operator but jOOQ does not
948 support that just yet, though it will soon.
950 2012-05-14 Murray Cumming <murrayc@murrayc.com>
952 TableToViewDetails: Use a real serialization ID.
954 * src/main/java/org/glom/web/shared/libglom/layout/TableToViewDetails.java:
955 Though this does not fix the serialization problem.
957 2012-05-12 Murray Cumming <murrayc@murrayc.com>
959 Added LayoutItemPortalDeepCloneTest.
961 2012-05-11 Murray Cumming <murrayc@murrayc.com>
963 Make navigation work again.
965 * src/main/java/org/glom/web/server/libglom/Document.java:
966 Add getLayoutItemFieldShouldHaveNavigation().
967 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
968 Replace get/setAddNavigation() with the partly-existing
969 get/setNavigationTableName(), with an empty string being no navigation,
970 because this is simpler. Use the new
971 Document.getLayoutItemFieldShouldHaveNavigation() method to set this.
973 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
974 Add updateFieldsExtras() and call setNavigationTableName in it.
975 getDetailsLayoutGroup(),
976 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
977 createLayout(): Adapted.
978 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
979 Constructor: Adapted.
981 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
982 Replace get/setAddNavigation() with get/setNavigation(), returning a
983 TableToViewDetails class with both the table name and UsesRelationship,
984 because both are need. The previous code used java-libglom's output
985 variable (strangely, via sharedptr) to return both, but we cannot really
987 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
988 getNavigationRecord(): Adapt. However, we cannot actually use the cache
989 here because it somehow gets set to null during deepCopy(). I must test this.
990 * src/test/java/org/glom/web/server/libglom/DocumentTest.java
991 testGetSuitableTableToViewDetails(): Adapted.
993 TODO: Find out why deepClone() is not quite working.
995 2012-05-11 Murray Cumming <murrayc@murrayc.com>
997 DBAccess: Simplify the retrievel of full field details.
999 * src/main/java/org/glom/web/server/database/DBAccess.java
1000 getFieldsToShowForSQLQueryAddGroup(). This might be unnecessary anyway,
1001 because the Document loading should have done this.
1003 2012-05-11 Murray Cumming <murrayc@murrayc.com>
1005 Document: Correct loading of doubly-related layout fields.
1007 * src/main/java/org/glom/web/server/libglom/Document.java:
1008 loadUsesRelationship(): Actually set the related relationship, instead
1009 of only setting it if it's not found.
1011 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1013 Replace all appearances of Colour with color.
1015 Because US English is dominant.
1017 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1019 Use colors in HTML format, solving a warning about an unused function.
1021 * src/main/java/org/glom/web/shared/libglom/NumericFormat.java
1022 * src/main/java/org/glom/web/shared/libglom/layout/Formatting.java:
1023 Add *asHTMLColor() versions of methods.
1024 TODO: However, we should create and cache the results on the server.
1025 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1026 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1027 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1028 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1029 Use the asHTMLcolor() versions.
1031 2012-05-09 Murray Cumming <murrayc@murrayc.com>
1033 ListViewTable: Constructor: Take the table name as a parameter.
1035 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1036 Constructor: Take the tableName, and set the member variable, because
1038 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1039 setCellTable(): Pass the table name.
1040 This makes navigation to non-default tables work again. I don't know
1041 why it worked before in the master branch.
1043 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1045 ConfiguredDocument: Restore correct addition of hidden primary key items.
1047 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1048 (ListTable.createCellTable): Uncomment out the check for the hidden
1050 * src/main/java/org/glom/web/server/ConfiguredDocument.java: Only
1051 add primary key items for top-level lists and portals, as before,
1052 instead of adding them to each group.
1053 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java:
1054 Actually implement the extra methods such as setHiddenPrimaryKey() and
1055 comment that these are used only for top-level list groups and in portals.
1056 This strangeness suggests even more that this should not be squeezed
1057 into the LayoutGroup class.
1059 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1061 Fix Formatting loading.
1063 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1064 getFormattingUsed(): Remove the duplicate Formatting member variable
1065 in favour of the one from the base class.
1066 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemWithFormatting.java:
1067 Initialize a new Formatting instead of using null by default, so we
1068 have some defaults, instead of having to initialize one later just to
1069 get the same defaults. This also makes loading of formatting from the
1070 document work, because that expected a non-null.
1072 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1074 RelatedListTable: Make sure that the tableName is set.
1076 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1077 Constructor: Take the tableName so it is available later. Otherwise,
1078 the server assumes that we mean the default table and cannot find the
1080 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1081 setData(): Pass the tableName to the RelatedListTable constructor.
1083 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1087 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1088 RelatedListNavigationButtonCell.onEnterKeyDown(), setData():
1089 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1091 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
1093 * src/main/java/org/glom/web/server/database/DBAccess.java:
1094 convertResultSetToDTO(), getPortal():
1095 * src/main/java/org/glom/web/server/database/ListDBAccess.java
1097 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1098 Add checks for null objects and out of range access, with log messages to
1099 give hints so we can fix these properly.
1101 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1103 Portals: some corrections.
1105 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1107 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1108 constructor: Use getRelationshipNameUsed() instead of getName(), because
1109 that is what is meant.
1110 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1111 getFromField(): Fix a typo, to get the field name, not the table name.
1112 * src/main/java/org/glom/web/server/database/DBAccess.java:
1113 getPortal(): Fix a typo that stopped this from working.
1115 2012-05-07 Murray Cumming <murrayc@murrayc.com>
1117 LayoutItemPortal: Also override getTitleOriginal().
1119 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemPortal.java:
1120 This lets the base getTitle() with no parameters work.
1121 TODO: Test this properly.
1123 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1125 LayoutItemPortal: getTitle*(): Use the relationship title.
1127 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1129 LayoutItemField: Fix loading of custom titles.
1131 * src/main/java/org/glom/web/server/libglom/Document.java
1132 loadDataLayoutItemField(): The title, if any, instead of the field
1133 title, is stored in a title_custom node. Load it from there.
1134 * src/main/java/org/glom/web/shared/libglom/CustomTitle.java: Add this
1136 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField:
1137 Add getCustomTitle() and use it, instead of super.getTitle*(), in the
1138 getTitle*() overrides.
1139 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1142 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1144 LayoutItemField: Fall back to field titles, so some are really shown.
1146 * src/main/java/org/glom/web/shared/libglom/layout/LayoutItemField.java:
1147 Override getTitleOriginal() and getTitle(), as in java-libglom.
1148 * src/test/java/org/glom/web/server/libglom/LayoutItemFieldTest.java:
1149 Test this behaviour.
1151 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1153 Correct use of setExpectedResultSize().
1155 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1156 getValidListViewLayoutGroup(), getDetailsLayoutGroup():
1157 Use setExpectedResultSize only on top-level groups (for instance, the
1158 list layout) or on child portals (in details views).
1159 Use the correct table name for portals to avoid SQL errors.
1160 Update the expected counts when returning cached layouts.
1162 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1164 Document: Interpret no group column count as 1.
1166 * src/main/java/org/glom/web/server/libglom/Document.java: Use a sane
1167 default, though we now check for this in the UI code anyway.
1169 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1173 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1175 Translatable: Use Hashmap instead of Treemap because GWT supports it.
1177 * src/main/java/org/glom/web/shared/libglom/Translatable.java:
1178 The use of Treemap lead to this error from async methods, with no
1180 "The response could not be deserialized"
1182 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1184 OnlineGlom.gwt.xml: Add exludes to fix explicit gwt compilation in Eclipse.
1186 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: This is necessary
1187 when using the Google -> GWT Compile, or
1188 g toolbar button -> GWT Compile Project... feature in Eclipse.
1190 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1192 ListTable.addColumn(): Protect against a null Formatting.
1194 * src/main/java/org/glom/web/client/ui/list/ListTable.java: addColumn():
1195 Create a default Formatting if it is null, because that is the simplest
1198 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1200 ConfiguredDocument.updateLayoutGroup(): Protect against a null dereference.
1202 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1203 updateLayoutGroup(): Check that the field is not null.
1205 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1207 ListViewImpl: Protected against a bad cast error.
1209 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
1210 onEnterKeyDown(): Do not cast without an instanceof check.
1212 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1214 ListTable: Protect against an out of range error.
1216 * src/main/java/org/glom/web/client/ui/list/ListTable.java
1217 createCellTable(): This is unlikely, but can happen while debugging.
1219 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1221 AsyncMessage onFailure() callbacks: Log the exception message.
1223 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
1224 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
1225 * src/main/java/org/glom/web/client/activity/ListActivity.java:
1226 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1227 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1228 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1229 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1230 These are useful clues when something is wrong.
1232 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1234 ConfiguredDocument: Avoid a null dereference.
1236 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1237 TableLayoutsForLocale.getMapWithAdd(): Make sure that the list and
1238 details maps are created.
1240 2012-05-06 Murray Cumming <murrayc@murrayc.com>
1242 Document: Correct the port number parsing.
1244 * src/main/java/org/glom/web/server/libglom/Document.java:
1245 This lets us actually connect to the database and show the document.
1247 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1251 * pom.xml: Use htmlunit mode for gwt:test, because the default demands
1252 user-interaction, asking us to load a temporary URL in a browser.s
1253 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add a servlet node,
1254 which is apparently necessary for testing the service. See the comment.
1255 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1256 Show the exception, if any. This is how I saw the 404 in the HTML in
1259 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1261 DocumentTest: Move the .glom files into the resources directory.
1263 * src/test/java/org/glom/web/server/libglom/DocumentTest: And get the
1264 URI via getResource().
1266 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1268 Document: Remove the FieldIdentifies inner class.
1270 * src/main/java/org/glom/web/server/libglom/Document.java: We only
1271 use the Relationship (though the same function in libglom is maybe
1272 used in other ways) and so this removes a compiler warning.
1274 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1276 Document.load() Remove the error code parameter.
1278 * src/main/java/org/glom/web/server/libglom/Document.java: load():
1279 Remove the parameter. We do not set it yet and it could never have
1280 worked as an output parameter (though maybe it did in java-libglom).
1281 We could use an exception if we really want the failure reason.
1282 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1284 * src/test/java/org/glom/web/server/libglom/DocumentTest.java:
1285 setUp(), testGetSuitableTableToViewDetails(): Adapt.
1287 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1289 Make some inner classes static.
1291 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1292 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1293 * src/main/java/org/glom/web/server/ReportGenerator.java
1294 * src/main/java/org/glom/web/server/libglom/Document.java
1295 Make all inner classes static that can be static.
1297 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1299 OnlineGlomServiceImpl: Do not load and check for java-libglom.
1301 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1302 init(): We do not use java-libglom any more.
1304 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1306 Remove mentions of java-libglom.
1308 * README: Remove mention of java-libglom, because it no longer needed.
1309 * utils/build-onlineglom-war.sh:
1310 * utils/check-and-recover-tomcat.py:
1311 * utils/install-onlineglom-war.sh: Remove these as they are no longer
1312 useful. Building is now far easier, with no need for jhbuild.
1314 2012-05-05 Murray Cumming <murrayc@murrayc.com>
1316 Fix the build (mvn package)
1318 * src/main/java/org/glom/web/shared/libglom/layout/LayoutGroup.java
1319 (LayoutGroup): Make the LayoutItemList inner class static and protected.
1320 Otherwise the GWT Java->Javascript compilation fails with just this
1321 error, during mvn package or when attempting to view in a browser,
1322 in the GWT developer mode in Eclipse.
1324 [INFO] --- gwt-maven-plugin:2.4.0:compile (default) @ gwt-glom ---
1325 [INFO] auto discovered modules [org.glom.web.OnlineGlom]
1326 [INFO] Compiling module org.glom.web.OnlineGlom
1327 [INFO] [ERROR] Errors in 'file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java'
1328 [INFO] [ERROR] Line 46: Failed to resolve 'org.glom.web.client.OnlineGlomService' via deferred binding
1329 [INFO] Scanning for additional dependencies: file:/home/murrayc/checkouts/gnome/gwt-glom/src/main/java/org/glom/web/client/ui/details/DetailsCell.java
1330 [INFO] [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)
1331 [INFO] [WARN] org.glom.web.client.OnlineGlomService_Proxy
1332 [INFO] [ERROR] Cannot proceed due to previous errors
1334 It has taken me 2 days to find out what was causing that. After reducing
1335 the code, the compiler eventually showed me the full error message.
1337 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1339 ConfiguredDocument: Cache the cloned and stripped layouts.
1341 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1342 getValidListViewLayoutGroup(), .getDetailsLayoutGroup(): Store the cloned
1343 layout in a map, so we can retrieve it again without rebuilding it.
1345 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1347 UsesRelationshipImpl: Complete the relationshipEquals() implementation.
1349 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1351 libglom classes: Implement some auto-generated emthods.
1353 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1355 Add GwtTestOnlineGlomService.
1357 * src/test/java/org/glom/web/client/GwtTestOnlineGlomService.java:
1358 However, this (and the other GwtTest*) does not seem to run during
1361 2012-05-04 Murray Cumming <murrayc@murrayc.com>
1363 Remove use of unsupported features from client code.
1365 * src/main/java/org/glom/web/client/StringUtils.java: Add equals().
1366 * src/main/java/org/glom/web/shared/libglom/layout/UsesRelationshipImpl.java:
1367 * src/main/java/org/glom/web/shared/libglom/layout/reportparts/LayoutItemGroupBy.java:
1368 Use our client version of StringUtils instead of the apache commons one.
1370 However, the GWT Javascript compliation still fails.
1372 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1374 Add a Field class and implement some loading of it in Document.
1376 2012-04-25 Murray Cumming <murrayc@murrayc.com>
1378 Initial Document loading implementation, instead of libglom.
1380 * src/test/java/org/glom/web/shared/libglom/: Add Document, Report,
1381 and Translatable classes, and adapt the rest of the code to use them.
1382 However, this is still missing Layout and Field classes and loading.
1384 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1386 Use of jOOQ: Move Field creation into a utility method.
1388 * src/main/java/org/glom/web/server/SqlUtils.java:
1389 This lets us improve it more easily.
1391 2012-04-24 Murray Cumming <murrayc@murrayc.com>
1393 Use of jOOQ: Improve the code to COUNT a sub-select.
1395 * src/main/java/org/glom/web/server/SqlUtils.java:
1396 Move initial query creation into
1397 build_sql_select_step_with_where_clause().
1398 build_sql_select_count_rows(): Use the jOOQ API instead of
1399 concatentating text, because a jOOQ Select*Step is a TableLike,
1400 which is what from() takes.
1402 2012-04-23 Murray Cumming <murrayc@murrayc.com>
1404 Use jOOQ instead of Glom.build_sql*(), to avoid native calls.
1406 * pom.xml: Depend on jooq.
1407 * src/main/java/org/glom/web/server/SqlUtils.java: Reimplement the
1408 methods with jOOQ, based on the C++ implementations in libglom,
1409 with some changes to the logic required by jooQ.
1410 Take a jOOQ Condition rather than a Glom.SqlExpr (GdaSqlExpr) for the
1412 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1413 * src/main/java/org/glom/web/server/ReportGenerator.java:
1414 * src/main/java/org/glom/web/server/SqlUtils.java:
1415 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
1416 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
1417 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1418 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1419 * src/main/java/org/glom/web/server/database/RelatedListNavigation:
1420 Adapt. In particular, the SqlUtils methods now need to take a Connection,
1421 because jOOQ needs that, though it seems unnecessary.
1423 This is not quite finished. Ideally jOOQ would help us to build
1424 table_name.field_name names, quoting and escaping them properly.
1425 See http://stackoverflow.com/questions/10264001/instantiating-a-jooq-field-by-name
1427 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1429 Move use of Glom.build_sql*() into a new SqlUtils class.
1431 * src/main/java/org/glom/web/server/SqlUtils.java: Add static methods
1432 to wrap Glom.build_sql*(). The parameter types are still Glom one,
1433 but this will make it easier to start using something other than
1434 libglom or SqlBuilder.
1436 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1438 Update the project URL.
1440 * pom.xml: Use an OnlineGlom-specific URL for the project URL.
1442 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1444 Main layout: Use a FlowTable instead of absolute positioning.
1446 * src/main/java/org/glom/web/client/OnlineGlom.java: onModuleLoad():
1447 The RootLayoutPanel is a (extends) AbsolutePanel, so each of its
1448 child panels/widgets must have an absolute position. But that is annoying, so
1449 this adds a FlowTable and puts the child panels in there.
1451 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1453 GwtTestOnlineGlom: Comment out unused code.
1455 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1456 Eclipse has started to say that some code is unused.
1458 2012-04-21 Murray Cumming <murrayc@murrayc.com>
1460 Update to the latest versions of dependencies.
1462 * pom.xml: Update version numbers of dependencies to the latest
1464 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1465 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1466 * src/main/java/org/glom/web/server/ReportGenerator.java:
1467 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
1468 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java:
1469 * src/main/java/org/glom/web/server/database/RelatedListNavigation.
1471 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
1472 Modify the imports where necessary.
1474 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1476 Style: Remove overflow:hidden from searchbox
1478 * src/main/webapp/style.css: Because this pushes the Back To Link
1479 label/link on to the next row, which is then hidden due to the
1480 hard-coded (in ems) height.
1482 2012-04-20 Murray Cumming <murrayc@murrayc.com>
1484 Remove some duplicate code.
1486 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1487 getDocumentInfo(): This must have been duplicated during the merge from the
1492 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1494 Reports: Localize the waiting for report message.
1496 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1497 start(): Get the message from the contants.
1498 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1499 Add the string here.
1500 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1501 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1502 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1503 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1504 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1505 Update these files with the English text for newer strings for now.
1507 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1509 Reports: Show a message while waiting for the report.
1511 * src/main/java/org/glom/web/client/ui/ReportView.java
1512 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1513 Add setWaitingText(), to show a message saying that we are
1514 waiting for the report to be ready.
1515 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1516 start(): Call setWaitingText() before calling the async
1519 2012-04-19 Murray Cumming <murrayc@murrayc.com>
1521 ReportGenerator: Specify date and time formats.
1523 * src/main/java/org/glom/web/server/ReportGenerator.java:
1524 createFieldValueElement(): Use the default (and localized)
1525 short formats, though we still need a way to show 4-digit
1526 years without providing the format for every locale.
1527 * src/main/java/org/glom/web/server/database/DBAccess.java:
1528 convertResultSetToDTO(): Use the short formats here too.
1530 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1532 ReportGenerator: Use the correct numeric formatting.
1534 * src/main/java/org/glom/web/server/ReportGenerator.java
1535 createFieldExpression(), createFieldValueElement(): Take the
1536 whole LayoutItem_Field instead of just the field name, so
1537 we have access to the formatting.
1538 createFieldValueElement(): Use JRTextField.setPattern() to
1539 specify the numeric formatting, with the help of a
1540 regular DecimalFormat.
1542 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1544 ReportGenerator: Avoid showing null for group by titles.
1546 * src/main/java/org/glom/web/server/ReportGenerator.java
1547 generateReport(): Use setBlankWhenNull() on the field title
1548 style too, because this is used for values in group by
1551 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1553 ReportGenerator: Add a colon to titles in vertical groups.
1555 * src/main/java/org/glom/web/server/ReportGenerator.java
1556 addFieldToDetailBandVertical(): Pass true for the withColon
1559 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1561 ReportGenerator: Simplify the code by using Position more.
1563 2012-04-18 Murray Cumming <murrayc@murrayc.com>
1565 Reports: Support vertical groups, roughly.
1567 * src/main/java/org/glom/web/server/ReportGenerator.java:
1568 addToReport(): Rename to addGroupToReport() and, if necessary,
1569 call the new addVerticalGroupToReport() method.
1570 createFieldValueElement(): Let the caller specify the Y position
1573 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1575 Reports: Allow a second report to be shown.
1577 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1578 clear(): Do not remove the HTML widget, which broke the whole layout.
1580 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1582 Locales drop-down: Show that we use English by default.
1584 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1585 fillView(): When we use English, just because that is the default, when
1586 no locale is specified, show that in the Locales drop-down instead of
1587 just showing the first item.
1589 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1591 Unselect the Report/Locale/Table combo item when appropriate.
1593 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1594 setPlace(): clear reportName if this is not a ReportPlace.
1595 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1596 setSelectedTableName(), setSelectedLocale(), setSelectedReport():
1597 When the provided name is empty, unselect all items, so that none are
1598 indicated. This uses a for loop because I cannot find a single method
1601 2012-04-17 Murray Cumming <murrayc@murrayc.com>
1603 Report: Give the user a way to get back to the list.
1605 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
1606 start(), setPlace(): Show the Back To List link on reports, and also
1607 interpret selecting the empty report item as back to list.
1609 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1611 Really show the selected Report name.
1613 * src/main/java/org/glom/web/client/activity/TableSelectionActivity:
1614 setPlace(): Store the reportName here, if it is that kind of Place.
1615 fillView(): Set the selected Report after filling the list of reports.
1616 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1617 setSelectedLocale(), setSelectedReport(): Avoid possible uses of
1618 null Strings, though we need some way to unselect all ListBox items
1621 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1623 ReportGenerator: Try to avoid some problems.
1625 * src/main/java/org/glom/web/server/ReportGenerator.java
1626 addField(): Try to avoid duplicates, and avoid using a null
1629 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1631 Reports: Use quickFind.
1633 * src/main/java/org/glom/web/client/OnlineGlomService.java;
1634 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1635 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1636 getReportHTML(): Add a quickFind parameter.
1637 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1638 start(): Pass the quickFind parameter.
1639 * src/main/java/org/glom/web/server/ReportGenerator.java
1640 generateReport(): Take a quickFind parameter.
1642 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1644 ReportPlace: Actually use the report name.
1646 * src/main/java/org/glom/web/client/place/ReportPlace.java
1647 getPlace(): Do not assign the report name to the quickfind.
1649 2012-04-13 Murray Cumming <murrayc@murrayc.com>
1651 Show java.library.path when complaining.
1653 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1654 init(): When telling us to check java.library.path, show the
1657 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1659 ReportGenerator: Do not show nulls.
1661 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1663 ReportGenerator: Make the title font larger.
1665 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1667 ReportGenerator: Put field titles inside groups, if there are groups.
1669 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1671 ReportGenerator: Take the Report itself instead of the name and group.
1673 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1674 Remove getReportLayoutGroup().
1675 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1676 getReportHTML(): Pass the report instead
1677 of its name and layout group.
1678 * src/main/java/org/glom/web/server/ReportGenerator.java
1679 generateReport(): Use the report object to use the title
1680 instead of the name.
1682 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1684 ReportGenerator: Remove designBand parameters.
1686 * src/main/java/org/glom/web/server/ReportGenerator.java:
1687 Make designBand a class member instead of passing it to all
1690 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1692 ReportGenerator: Add lines, a bit like in the desktop version.
1694 * src/main/java/org/glom/web/server/ReportGenerator.java
1695 addToReport(): Use JRDesignLine.
1697 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1699 ReportGenerator: Correct the title positions and use some bold style.
1701 * src/main/java/org/glom/web/server/ReportGenerator.java:
1702 Break the code up into reusable functions, correct the placement of
1703 titles, and use normal/bold styles as in the reports in the desktop
1706 2012-03-06 Murray Cumming <murrayc@murrayc.com>
1708 ReportGenerator: Add a header band to show the field titles.
1710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1711 getReportHTML(): Pass the localeId to the ReportGenerator
1713 * src/main/java/org/glom/web/server/ReportGenerator.java
1714 constructor: Take the localeID so we can get translated field
1716 generateReport(), addToReport(), addFieldToBand(): Add field
1717 titles in a column header band.
1719 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1721 Reports drop-down list: Some improvement.
1723 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1724 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1725 Adedd setSelectedReport(),
1726 setReportList(): Add a blank line so that the user can select the
1728 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1729 start(): Show the current report by calling setSelectedReport().
1730 This does not seem to work yet.
1732 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1734 DetailsActivity, ListActivity: Move some variables into a base class.
1736 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
1737 * src/main/java/org/glom/web/client/activity/HasTableActivity.java:
1738 * src/main/java/org/glom/web/client/activity/ListActivity.java: Move
1739 the clientFactory, documentID, tableName and authenticationPopup into
1740 a base class, to avoid duplication.
1742 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1744 Translate the Reports label.
1746 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1747 Get the "Reports" label string from the constants.
1748 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.pro
1749 perties: Add Reports to the constants.
1751 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1753 Reports: Implement grouping.
1755 * src/main/java/org/glom/web/server/ReportGenerator.java:
1756 Handle LayoutItem_GroupBy items and try to do the right thing
1757 with JRDesignGroup. It seems to work.
1759 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1761 Actually show some data with JasperReports.
1763 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1764 getReportHTML(): Move most code into a ReportGenerator class.
1765 * src/main/java/org/glom/web/server/ReportGenerator.java:
1766 Recurse into sub-groups, adding fields to the JasperDesign's details
1767 band. Note that we must set an arbitrary width and height, or it just
1768 will not show any data.
1770 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1772 Reports Chooser: Show the titles, not the names.
1774 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
1775 (TableSelectionViewImpl.setReportList): Show the titles in the UI,
1776 and the names as the values.
1777 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1778 (ConfiguredDocument.getReportLayoutGroup): Do not return a default
1779 group now that we provide the report name, so it should always
1782 2012-02-15 Murray Cumming <murrayc@murrayc.com>
1784 Depend on jasperreports.
1786 * pom.xml: Add the dependency. My plan is to use this on the
1789 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1791 Implement navigation to report places.
1793 * src/main/java/org/glom/web/client/activity/ReportActivity.java
1794 start(): Do not bother to handle all events here.
1795 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
1796 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1797 Added getSelectedReport().
1798 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1799 .java: start(): When handling a change to the reports chooser,
1800 call getSelectedReport() and goTo() its ReportPlace.
1801 * src/main/java/org/glom/web/client/ui/ReportView.java
1802 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java:
1803 Added setReportHTML() which puts the html in a gwt HTML widget.
1804 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
1805 getReportHTML(): Return "TODO" just to show that this works.
1807 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1809 Make ReportPlace usable.
1811 * src/main/java/org/glom/web/client/mvp/AppPlaceHistoryMapper.java:
1812 Mention ReportPlace.
1813 * src/main/java/org/glom/web/client/place/ReportPlace.java:
1814 Correct the @prefix annotation.
1816 2012-01-31 Murray Cumming <murrayc@murrayc.com>
1818 OnlineGlomService: Return report HTML rather than the LayoutGroup.
1820 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1821 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1822 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1823 Change getReportLayout() to getReportHMTL() because we will not need to
1824 parse or render the report layout on the client side.
1825 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1826 getReportLayout(): Return the libglom LayoutGroup type because we will
1827 not need to convert to a shared type, because this will not be used on
1829 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1832 Note that there is still no implementation for this.
1835 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1837 Add a (empty) Report Place, View, and Activity.
1839 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
1841 * src/main/java/org/glom/web/client/place/HasTablePlace.java
1842 * src/main/java/org/glom/web/client/place/ListPlace.java: Move some of
1843 this into a superclass:
1844 * src/main/java/org/glom/web/client/place/HasRecordsPlace.java
1845 and also use it as the base of this new ReportPlace:
1846 * src/main/java/org/glom/web/client/place/ReportPlace.java
1848 * src/main/java/org/glom/web/client/ui/ReportView.java
1849 * src/main/java/org/glom/web/client/ui/ReportViewImpl.java
1850 * src/main/java/org/glom/web/client/activity/ReportActivity.java:
1851 Add these, containing mostly boiler-plate for now.
1853 * src/main/java/org/glom/web/client/OnlineGlomService.java
1854 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
1855 * src/main/java/org/glom/web/server/ConfiguredDocument.java
1856 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1857 Add API to get the LayoutGroup for the report.
1859 2012-01-23 Murray Cumming <murrayc@murrayc.com>
1861 Add and fill a Reports drop-down list box.
1863 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
1865 * src/main/java/org/glom/web/client/OnlineGlomService.java:
1866 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
1867 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1868 Added getReports(document, table, localeID), calling
1869 ConfiguredDocument.getReports().
1870 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
1871 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1872 Added setReportsList() and a list widget.
1873 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
1874 .java (TableSelectionActivity.fillView(): Fill the view's reports list.
1879 2012-04-12 Murray Cumming <murrayc@murrayc.com>
1881 Translations: Add Esperanto.
1883 * src/main/java/org/glom/web/OnlineGlom.gwt.xml
1884 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_eo.
1885 properties: Add this translation because someone took the time to make it.
1887 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1889 Adapt to the java-libglom 1.21.7 API.
1891 * src/main/java/org/glom/web/server/ReportGenerator.java:
1892 addToReport(): get_group_secondary_fields() is now
1893 get_secondary_fields().
1896 2012-03-15 Murray Cumming <murrayc@murrayc.com>
1898 Use the latest java-libglom version.
1900 * pom.xml: Use java-libglom 1.21.7.
1902 2012-03-03 Ben Konrath <ben@bagu.org>
1904 Display date and time in details view.
1906 https://bugzilla.gnome.org/show_bug.cgi?id=671257
1908 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1910 2012-03-05 Murray Cumming <murrayc@murrayc.com>
1912 Require the latest java-libglom.
1914 * pom.xml: java-libglom 1.21.5 has LayoutItem_GroupBy.
1916 2012-03-04 Murray Cumming <murrayc@murrayc.com>
1918 ListViewDbAccess.getSelectQuery(): Avoid using empty quickfind strings.
1920 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
1921 ListViewDBAccess.getSelectQuery(): Do not create a where clause for
1922 an empty quickfind string. I also corrected libglom to create only
1923 empty where clauses for empty quickfind strings, but this avoids the
1926 2012-02-24 Ben Konrath <ben@bagu.org>
1928 Improve the tabs in the Notebook widget.
1932 2012-01-30 Murray Cumming <murrayc@murrayc.com>
1934 Translations: Try to translate the strings.
1936 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1937 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
1938 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1939 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1940 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1941 Take the Open translation from GTK+'s .po files.
1942 Take the Details translation from Glom's po files.
1943 I have added the other strings to Glom so we can get translations that way:
1944 http://git.gnome.org/browse/glom/commit/?id=c3cefe607428a84bdf8de1b04e8bef6f70b04564
1946 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1948 TableSelectionViewImpl: Put the search label and entry in a div.
1950 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
1951 Put the search widgets in a FlowTable so that the CSS can be used to
1952 style them while keeping them together.
1953 * src/main/webapp/style.css: Mention the new div.
1955 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1957 Translate more strings in more locales.
1959 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1960 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
1961 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
1962 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
1963 Translate the "Details" and "Open" string too.
1965 * src/main/java/org/glom/web/OnlineGlom.gwt.xml:
1966 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
1967 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_cs.properties:
1968 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_es.properties:
1969 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_sl.properties:
1970 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_zh_CN.properties:
1971 Add these new locales as placeholders though they currently contain English.
1973 2012-01-27 Murray Cumming <murrayc@murrayc.com>
1975 OnlineGlomServiceImpl: Avoid (unlikely) null object dereferences.
1977 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: get*():
1978 Check the ConfiguredDocument* for null before using it.
1980 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1982 Tell Eclipse about the generated java files.
1984 * .classpath: This lets it find OnlineGlomConstants.java.
1985 It would be nice if Eclipse just used the maven build files.
1987 2012-01-26 Murray Cumming <murrayc@murrayc.com>
1989 Prevent a crash when no locale is specified in the URL.
1991 * src/main/java/org/glom/web/client/Utils.java: getCurrentLocaleID():
1992 Avoid returning a null string, obtained from
1993 Window.Location.getParameter(). This caused a crash when it was
1994 later passed to libglom's API.
1995 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
1996 init(), getDocumentInfo(), getListViewLayout(), getDocuments(),
1997 getDetailsLayoutAndData(): Use StringUtils.defaultString() to
1998 guard against future null strings.
2000 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2002 Use the ?locale= query param instead of the &lang= token param.
2004 * src/main/java/org/glom/web/client/place/ListPlace.java
2005 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2006 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2007 Remove the lang token key and value.
2009 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2010 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2011 When the user selects a different locale from the chooser, use
2012 Window.Location.assign() to change the URL, which then causes a reload.
2014 * src/main/java/org/glom/web/client/Utils.java: Added getCurrentLocaleID().
2015 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2016 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
2017 * src/main/java/org/glom/web/client/activity/ListActivity.java
2018 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2019 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2020 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2021 * src/main/java/org/glom/web/client/ui/ListView.java:
2022 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2024 Remove localeID member variables and method/constructor parameters, instead
2025 using Utils.getCurrentLocaleID() when we need a localID to pass to
2028 2012-01-26 Murray Cumming <murrayc@murrayc.com>
2030 Internationalize the UI strings.
2032 * pom.xml: gwt-maven-plugin: Add the i18n goal and specify a
2033 <i18nConstantsBundle>, removing the unused <i18nMessagesBundle>.
2034 * src/main/resources/org/glom/web/client/Messages.properties: Remove this
2035 because it is unused. Messages are apparently strings that can have
2036 parameters, but we do not need that yet, so Contants will be enough for now.
2037 * src/main/java/org/glom/web/OnlineGlom.gwt.xml: Add extend-property lines
2038 to say that we support the en and de locales.
2039 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants.properties:
2040 The original English strings.
2041 * src/main/resources/org/glom/web/client/ui/OnlineGlomConstants_de.properties:
2042 Some German translations of the English strings.
2043 The i18n goal then uses the .properties file to generate an
2044 OnlineGlomConstants.java file in target/ and somehow GWT.create() magically
2045 returns an implementation that returns the translated strings.
2046 The documentation suggests putting these in src/java/*/client/, but it seems
2047 best to put it in src/resources/*/client/.
2048 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2049 Instantiate OnlineGlomConstants via GWT.create() and use it to get the strings
2050 instead of hard-coding them.
2051 Note that we cannot import OnlineGlomConstants because it does not exist yet,
2052 but that does not seem to stop the build, though it confuses Eclipse.
2054 You can see the translated string by adding ?locale=de to the URL, like so:
2055 http://127.0.0.1:8888/OnlineGlom.html?gwt.codesvr=127.0.0.1:9997?locale=de#list:document=film_manager
2057 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2059 Improve null/empty String checks.
2061 * pom.xml: Add a dependency on commons-lang, to use
2062 org.apache.commons.lang.StringUtils.
2063 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2064 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2065 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.java
2066 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2067 Use StringUtils.isEmpty().
2069 * src/main/java/org/glom/web/client/StringUtils.java: Add a tiny
2070 StringUtils class with a static isEmpty() function because we
2071 cannot use org.apache.commons.lang.StringUtils in client-side
2072 GWT code because it (apparently) cannot be compiled to javascript.
2073 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2074 * src/main/java/org/glom/web/client/activity/ListActivity.java
2075 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java
2076 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2077 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2078 * src/main/java/org/glom/web/client/place/ListPlace.java
2079 * src/main/java/org/glom/web/client/ui/cell/NumericCell.java
2080 * src/main/java/org/glom/web/client/ui/cell/TextCell.java
2081 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java
2082 * src/main/java/org/glom/web/client/ui/details/Group.java
2083 * src/main/java/org/glom/web/client/ui/details/Notebook.java: Use
2084 our StringUtils.isEmpty() function.
2086 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2088 Update to the latest java-libglom API.
2090 * pom.xml: Require java-libglom 1.21.4.
2091 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2092 getDocumentInfo(), getListViewLayoutGroup():
2093 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2095 * src/main/java/org/glom/web/server/database/DBAccess.java
2096 getFieldsToShowForSQLQueryAddGroup(),
2097 getPrimaryKeyLayoutItemField(): Replace get_database_title()
2098 with either get_database_title_original() or
2099 get_database_title(localeID).
2101 2012-01-24 Murray Cumming <murrayc@murrayc.com>
2103 ConfiguredDocument: Avoid a null pointer exception.
2105 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2106 Initialize localeID to "" to avoid returning a null String which
2107 causes a crash in java-libglom's swing-generated code.
2109 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2111 Some simple renaming.
2113 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2114 * src/main/webapp/style.css: Rename, tableChooser to tablesChooser. Likewise
2115 for localeChooser. This seems more appropriate and is less ambiguous
2116 particularly in the .css file.
2118 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2120 ConfiguredDocument: Rename the localedID private member variable.
2122 2012-01-23 Murray Cumming <murrayc@murrayc.com>
2124 Adapt to the latest java-libglom API from git master.
2126 * src/main/java/org/glom/web/server/database/ListDBAccess.java:
2127 libglom now uses only Vector instead of List, which uses add() instead of
2130 2012-01-22 Murray Cumming <murrayc@murrayc.com>
2132 ConfiguredDocument: Rename the localedID private member variable.
2134 2012-01-20 Murray Cumming <murrayc@murrayc.com>
2136 Build a source tarball with mvn assembly:single
2138 * assembly.xml: Add this file.
2139 * pom.xml: Use the maven-assembly-plugin and tell it to use
2140 our assembly.xml file.
2142 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2144 OnlineGlomServiceImpl: Get .glom files recursively.
2146 * pom.xml: Depend on commons-io from org.apache.commons.
2147 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2148 init(): Use org.apache.commons.io.FileUtils.listFiles() to get the
2149 files recursively, and with the easier filter for the extension.
2150 Use org.apache.commons.io.FilenameUtils.removeExtension() to
2151 simplify that code too.
2153 2012-01-19 Murray Cumming <murrayc@murrayc.com>
2155 README: Mention that you must install java-libglom packages separately.
2157 But then it works, because java-libglom is now in the central maven
2160 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2162 locales drop-down: Show the correct selected locale when the URL changes.
2164 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2165 .java: setPlace(): Move some code into fillView().
2167 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2169 locales drop-down: Do not lose the primary key.
2171 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2172 start(): onLocaleChange(): Pass the current primary key value,
2173 instead of an empty value.
2175 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2177 locales drop-down: Do not lose the drop-down selection.
2179 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2180 .java (TableSelectionActivity.fillView): Set the selected locale
2181 after changing the drop-down items (though we do not really need
2182 to change them just because the locale changes.)
2184 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2186 locales drop-down: Change the tables list when this changes.
2188 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2189 .java: TableSelectionActivity.start(): Move the async table titles
2190 retrieval into a private fillView() method and also call this when
2191 the chosen locale changes.
2192 Note that the document title is not actually translatable yet, but
2193 that is a problem that I should fix soon in libglom.
2195 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2197 Improve the placement of the locales drop-down.
2199 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2200 Put the title and locales drop-down in a div (gwt.FlowTable).
2201 * src/main/webapp/style.css: Add magic css properties to make this work.
2202 Also remove the left margin from the title so that it lines up with the
2205 2012-01-18 Murray Cumming <murrayc@murrayc.com>
2207 locales selector: Show human-readable locale titles.
2209 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2210 getDocumentInfo(): Use java.util.Locale to show a real title of
2211 each locale, in the locale's own language.
2213 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2215 Add a language/locale selector drop-down.
2217 * src/main/java/org/glom/web/shared/DocumentInfo.java:
2218 Add getLocaleIDs(), setLocaleIDs(), getLocaleTitles(), setLocaleTitles().
2219 * /src/main/java/org/glom/web/server/ConfiguredDocument.java:
2220 getDocumentInfo(): Store the available Locales in the DocumentInfo.
2221 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2222 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2223 Add a ListBox to show the available locales. Add getLocaleSelector(),
2224 setLocaleList(), getSelectedLocale(), setSelectedLocale().
2225 * src/main/java/org/glom/web/client/event/LocaleChangeEvent.java
2226 * src/main/java/org/glom/web/client/event/LocaleChangeEventHandler.
2227 java: Add these classes.
2228 * src/main/java/org/glom/web/client/activity/TableSelectionActivity.java:
2229 start(): Fill the locales ListBox. Handle its change event, firing a
2231 setPlace(): Show the selected locale as specified by the URL token.
2232 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2233 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2234 Handle LocaleChangeEvent, going to a new *Place with that locale.
2236 The placement of the ListBox is not pretty, and it currently uses the ID
2237 as a title, instead of "English", "Deutsch", "Espanola", etc, but it
2241 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2243 Search box: Show the search text from the URL token.
2245 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2246 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2247 Add setQuickFindText().
2248 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2249 .java: setPlace(): Store the queryText if the place is a ListPlace,
2250 and call TableSelectionView.setQuickFindText().
2252 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2254 Allow use of translations via, for instance, &lang=de in the URL.
2256 * pom.xml: Use the unstable java-libglom 1.21 version.
2258 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2259 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
2260 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2261 init(): Instead of calling TranslatableItem.set_current_locale()
2262 (now removed), call ConfiguredDocument.setDefaultLocaleID().
2263 However, this is only for default locales, which are not needed to
2264 change the locale in the URL.
2265 getDocumentInfo(), getListViewLayout(), getSortedListViewData(),
2266 getDetailsData(), getDetailsLayoutAndData(), getRelatedListData(),
2267 getSortedRelatedListData(): Add a localeID parameter, so we can get the
2268 layout for a particular locale.
2269 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2270 Add get/setDefaultLocaleID().
2271 getDocumentInfo(), getListViewData(), getRelatedListData(),
2272 getDetailsLayoutGroup(), getListViewLayoutGroup(),
2273 createLayoutItemPortalDTO(), convertToGWTGlomLayoutItemField(): Add a
2274 localeID parameter, so we can get the layout for a particular locale.
2276 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java:
2277 * src/main/java/org/glom/web/client/place/DetailsPlace.java:
2278 * src/main/java/org/glom/web/client/place/ListPlace.java:
2279 Parse and construct a lang parameter too.
2281 * src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
2282 start(): Pass the defaultLocaleID to addDocumentLink(). It is then
2283 passed to subsequent methods and constructors.
2284 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2285 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2286 Store the localeID from the *Place and pass it to other constructors
2287 and methods, such as OnlineGlomServiceAsync.getDetailsLayoutAndData().
2289 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2290 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2291 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2292 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java
2293 * src/main/java/org/glom/web/client/ui/ListView.java:
2294 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2295 Take localeID parameters and pass them to subsequent constructors and
2296 methods, so that the layout is always retrieved for that locale.
2298 This is rather repetitive.
2300 Note that "" means the original (default) locale of the Glom document,
2301 which is usually English.
2303 2012-01-17 Murray Cumming <murrayc@murrayc.com>
2305 Documents: Remove final keyword to fix startup configuration.
2307 * src/main/java/org/glom/web/shared/Documents.java: Remove the
2308 final keywords on the private member variables because that breaks
2309 the startup, apparently (there are warnings) because it stops them
2310 from being serialized. I added these in the previous commit.
2312 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2314 Documents: Add some final keywords.
2316 * src/main/java/org/glom/web/shared/Documents.java: Eclipse suggested
2319 2012-01-13 Murray Cumming <murrayc@murrayc.com>
2321 OnlineGlomServiceImpl: Add to overview comments.
2323 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2324 Note that this is where all the document are loaded. They are not
2325 loaded freshly for each page.
2327 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2331 * src/main/java/org/glom/web/client/ui/TableSelectionViewImpl.java:
2332 Add a TextBox for the text of a quick find.
2333 Add getQuickFindBox(), to get the widget, and getQuickFindText() to
2335 setBackLink(): Add a String quickFind parameter.
2336 * src/main/java/org/glom/web/client/ui/TableSelectionView.java
2337 (TableSelectionView): Add getQuickFindBox() and getQuickFindText()
2338 to the base interface, because that is how TableSelectionViewImpl is used.
2339 * src/main/webapp/style.css: Add style for the search box and its label.
2341 * src/main/java/org/glom/web/client/event/QuickFindChangeEvent.java:
2342 * src/main/java/org/glom/web/client/event/QuickFindChangeEventHandler.java:
2343 Add these files, based on the existing TableChangeEvent and
2344 TableChangeEventHandlers.
2345 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2346 start(): Handle QuickFindChangeEvent, passing its quickFind text to
2347 a ListPlace() that the user should be taken to.
2348 * src/main/java/org/glom/web/client/activity/ListActivity.java
2349 start(): Handle it here too and adapt the TableChangeEvent handler to
2350 pass the extra "" quickFind parameter to ListPlace.
2351 * src/main/java/org/glom/web/client/place/ListPlace.java:
2352 Constructor: Take an extra String quickFind parameter and store it,
2353 returning it from a new getQuickFind() method.
2354 getToken(): Put the quickFind text in the URL token.
2355 getPlace(): Parse the quickFind text from the URL token.
2356 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2357 va: addDocumentLink(): Pass an extra "" quickFind parameter to the
2358 ListPlace constructor.
2359 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2360 .java: start(): Add a Change handler for the TableSelectionView's
2361 TextBox (via its base HasChangeHandlers interface), firing the new
2362 QuickFindChangeEvent.
2363 setPlace(): Adapt the call to TableSelectionView.setbackLink(), to
2364 pass the extra "" quickFind parameter.
2366 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2367 setCellTable(): Add a String quickFind parameter and pass it to
2368 the ListViewTable() constructor.
2369 * src/main/java/org/glom/web/client/ui/ListView.java: Change
2370 setCellTable() in the base interface, because that is how ListViewImpl
2373 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2374 Add a String quickFind member variable.
2375 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2376 Constructor: Add a String quickFind parameter, storing it in the
2377 base ListTable's member variable.
2378 onRangeChanged(): Pass quickFind to the
2379 OnlineGlomServiceAsync.getSortedListViewData() and
2380 OnlineGlomServiceAsync.getListViewData() methods.
2382 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2383 getListViewData(), getSortedListViewData(): Add a String quickFind
2384 parameter, passing it to ConfiguredDocument.getListViewData().
2385 * src/main/java/org/glom/web/client/OnlineGlomService.java:
2386 Change getListViewData(), getSortedListViewData() in the base interface,
2387 because that is how OnlineGlomServiceImpl is used, via this:
2388 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
2389 Change getListViewData(), getSortedListViewData() here too.
2390 This class can apparently be used to asynchronously call methods on
2391 OnlineGlomService, and GWT seems to implement that after recognizing
2392 just the *Async name convention and the extra AsyncCallback parameters.
2394 * src/main/java/org/glom/web/server/ConfiguredDocument.java
2395 getListViewData(): Add a String quickFind parameter, and pass it to
2396 ListViewDBAccess.getData().
2397 * src/main/java/org/glom/web/server/database/ListDBAccess.java
2398 getListData(): Add a String quickFind parameter and pass it to
2400 getSelectQuery(): Add a String quickFind parameter.
2401 * src/main/java/org/glom/web/server/database/ListViewDBAccess.java
2402 getSelectQuery(): Add a String quickFind parameter and use it with
2403 Glom.get_find_where_clause_quick() to pass a where_clause to
2404 Glom.build_sql_select_with_where_clause(), to actually filter the
2406 getData(): Add a String quickFind parameter, passing it to getListData().
2407 * src/main/java/org/glom/web/server/database/RelatedListDBAccess.ja
2408 va: getData(): Pass an empty string to getListData() for the
2409 quickFind parameter.
2411 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2413 ListTable: Minor change.
2415 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2416 createCellTable(): Make this protected instead of public.
2418 2012-01-12 Murray Cumming <murrayc@murrayc.com>
2420 Many files: Use final for the parameters and use the @override attribute.
2422 2012-01-22 Ben Konrath <ben@bagu.org>
2424 Add anchor links for single line text that starts with http, ftp and www.
2428 2012-01-22 Ben Konrath <ben@bagu.org>
2430 Add ellipsis to single line text in details view.
2434 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2436 Remove all javadoc author tags.
2438 Because they are awkward and meaningless when many people touch
2440 See https://gitorious.org/online-glom/gwt-glom/commit/7628b732cb90cbc6d5635420a75568504e8b3655#comment_81164
2442 2012-01-04 Murray Cumming <murrayc@murrayc.com>
2444 Revert the COPYING.LESSER to COPYING rename.
2446 Apparently both should be there if it is LGPL.
2448 2012-01-03 Murray Cumming <murrayc@murrayc.com>
2450 *View: Remove unused imports.
2452 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2453 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java
2454 * src/main/java/org/glom/web/client/ui/ListView.java:
2455 * src/main/java/org/glom/web/client/ui/TableSelectionView.java:
2456 Remove unused imports, as suggested by Eclipse.
2458 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2460 Move the *View::Presenter types, and some API into one base View.
2462 * src/main/java/org/glom/web/client/ui/DetailsView.java:
2463 * src/main/java/org/glom/web/client/ui/DocumentSelectionView.java:
2464 * src/main/java/org/glom/web/client/ui/ListView.java:
2465 * src/main/java/org/glom/web/client/ui/TableSelectionView.java: Move
2466 Presenter, setPresenter() and clear() into a shared base interface,
2467 to avoid the unnecessary duplicate Presenter types and to more clearly
2468 show how the *Views share the same structure, even if they are not
2469 used polymorphically.
2471 * src/main/java/org/glom/web/client/ui/DetailsViewImpl.java:
2472 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ja
2474 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2475 * src/main/java/org/glom/web/client/activity/ListActivity.java:
2476 * src/main/java/org/glom/web/client/activity/DocumentSelectionActiv
2478 * src/main/java/org/glom/web/client/activity/TableSelectionActivity
2481 Feel free to revert this if there is a good reason for the duplicate
2484 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2486 OnlineGlom: Make clientFactory a (protected) member, and test it a bit.
2488 * src/main/java/org/glom/web/client/OnlineGlom.java: Make clientFactory
2489 a class member instead of a local variable in the method.
2490 This lets us use it to get the view instances, for use in tests.
2491 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2492 beforeOnlineGlom(): Test some more details of the initial view.
2493 Again, this is not very useful.
2495 To really test gwt-glom we will need to start a local postgresql
2496 instance with local data, like the Glom tests in C++.
2498 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2500 pom.xml: Mention the LGPL license.
2502 * pom.xml: Add a licenses section.
2503 * COPYING.LESSER: Move this to COPYING, which
2504 previously contained the GPL. But gwt-glom is all LGPL.
2506 2012-01-02 Murray Cumming <murrayc@murrayc.com>
2508 Add project information to README and pom.xml.
2510 * README: Add a brief description and mention some mvn
2512 * pom.xml: This extra information shows up in mvn site
2515 2011-01-02 Murray Cumming <murrayc@murrayc.com>
2517 Use the latest java-libglom version.
2519 * pom.xml: Use java-libglom 1.19.2 instead of 1.19.1.
2521 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2523 GwtTestOnlineGlom: Test a little more.
2525 * src/main/java/org/glom/web/client/OnlineGlom.java: Make the panels
2526 protected rather than private, as suggested by the gwt-test-utils
2528 http://stackoverflow.com/questions/7931724/gwt-testcase-simulating-clicking-a-button-on-my-page
2529 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java
2530 Test the initial visibility of the panels.
2532 However, this is not a very useful test.
2533 And I wonder how we should generally test using this idea for an
2534 activity/places app like ours where the real changes happen implicitly
2535 based on the history token/URL.
2537 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2539 Slight modification to *Mapper comments.
2541 * src/main/java/org/glom/web/client/mvp/DataActivityMapper.java
2542 (DataActivityMapper)
2543 * src/main/java/org/glom/web/client/mvp/DocumentSelectionActivityMa
2545 * src/main/java/org/glom/web/client/mvp/TableSelectionActivityMappe
2547 Remove comments mentioning GIN because they are just copied from
2548 the example code and are apparently not helpful:
2549 http://groups.google.com/group/google-web-toolkit/msg/82f0098b20669a73
2550 Also change the mention of a class that is only in the example code.
2552 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2554 GwtTestOnlineGlom test: Minor changes.
2556 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2557 Avoid the long qualified class name and modify the comment
2558 because it is now obvious to me that the mocked class is the only
2559 custom one created via GWT.create().
2561 2012-01-01 Murray Cumming <murrayc@murrayc.com>
2563 Tests: Added the beginnings of a test using gwt-test-utils.
2565 * pom.xml: Add dependencies on gwt-test-utils and easymock.
2566 * src/test/resources/META-INF/gwt-test-utils.properties: Add this file
2567 which tells gwt-test-utils what class will be tested.
2568 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
2569 Add a simple (but empty) test case. One class, used by the OnlineGlom
2570 class, is mocked so that it can be created. However, I am not sure
2571 why only this class needs to be mocked.
2573 Note that mockito seems more popular, and clearer, than easymock,
2574 but I have not got that working yet. It might be a matter of the
2577 This test is run during mvn integration-test.
2579 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2581 Tests: Use junit4-style syntax instead of junit3-style.
2583 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2584 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2585 * src/test/java/org/glom/web/shared/DataItemTest.java:
2586 Use the @Test annotation rather than relying on the test*() prefix.
2587 Also no longer implement TestCase, to avoid triggering support for
2588 the junit3-way, which stops the annotations from working.
2589 Change the imports from import junit.framework.* to
2590 import org.junit.*, which is apparently the new way.
2592 2011-12-31 Murray Cumming <murrayc@murrayc.com>
2594 Added a test for ListPlace token parsing and creation.
2596 * src/test/java/org/glom/web/client/place/ListPlaceTest.java:
2597 This is much the same as DetailsPlaceTest.
2599 I wonder how we could test the other parts of the *Place API.
2601 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2603 DetailsPlace test: Also test getToken() and recreation via getPlace().
2605 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2606 testGetPlaceParameters(): Get the tokens from the DetailsPlace and
2607 recreate it, testing the recreated DetailsPlace for the same parameter
2610 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2612 Use the surefire-report plugin.
2614 * pom.xml: This generates a HTML report about the tests in
2615 target/site/surefire-report.html
2616 when you do mvn surefire-report:report. It seems to be popular/normal.
2618 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2620 Added a test for DetailsPlace.
2622 * src/test/java/org/glom/web/client/place/DetailsPlaceTest.java:
2623 Test the getPlace() token parsing.
2625 2011-12-30 Murray Cumming <murrayc@murrayc.com>
2627 Added a first unit test.
2629 * pom.xml: Add a test goal, and a dependency on junit in that scope.
2630 * src/test/java/org/glom/web/shared/DataItemTest.java:
2631 This is a silly test but it is just to get things started. Note that
2632 maven/junit finds the test because it looks in src/test by default.
2634 2011-12-22 Ben Konrath <ben@bagu.org>
2636 Change charsetName to "UTF-8" when replacing line breaks.
2638 JavaScript requires the charsetName to be "UTF-8". CharsetName values
2639 that work in Java (such as "UTF8") will not work when compiled to
2642 This fixes a problem with multi-line details view fields that have hard
2643 line breaks. The "License Text" field on this page demonstrates the
2646 http://onlineglom.openismus.com/OnlineGlom/#details:document=debian_repository_analyzer&table=licenses&value=197
2648 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2650 2011-12-22 Ben Konrath <ben@bagu.org>
2652 Fix another bug with related list navigation.
2654 I've tested all the navigation buttons in all of the related lists
2655 so things should be good now.
2657 * src/main/java/org/glom/web/server/ConfiguredDocument.java:
2659 2011-12-22 Ben Konrath <ben@bagu.org>
2661 Fix a crasher when refreshing the list view with the default table.
2663 This crash will also happen when loading the list view with the default
2664 table from a link or bookmark.
2666 * src/main/java/org/glom/web/client/activity/DetailsActivity.java: Go
2667 to the main document selection page when the document id hasn't been
2669 * src/main/java/org/glom/web/client/activity/ListActivity.java: Go to
2670 the main document selection page when the document id hasn't been
2672 * src/main/java/org/glom/web/client/place/DetailsPlace.java: Use empty
2673 values for the details place when the document id hasn't been set.
2674 * src/main/java/org/glom/web/client/place/ListPlace.java: Use empty
2675 values for the list place when the document id hasn't been set.
2677 2011-12-21 Ben Konrath <ben@bagu.org>
2679 Protect against NPE when glom.document.locale is not in config.
2681 This patch protects against an NPE when glom.document.locale is not in
2682 the config file. This NPE will also happen if glom.document.locale is
2685 The patch also updates the error message to display the class name when
2686 the getMessage() returns null. This was happening when the NPE was
2687 thrown and I had "Configuration Error: null". If an NPE is encountered
2688 with this patch, "Configuration Error: NullPointerException " will be
2691 This commit closes this bug:
2693 https://bugzilla.gnome.org/show_bug.cgi?id=666669
2695 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2697 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2699 Rename onlineglom.properties to onlineglom.properties.sample.
2701 * src/main/resources/onlineglom.properties: Rename to:
2702 * src/main/resources/onlineglom.properties.sample:
2703 * src/main/resources/README: And add this file explaining that people
2704 should rename it back when deploying.
2706 2011-12-20 Murray Cumming <murrayc@murrayc.com>
2708 Allow choosing the translation in the .properties file.
2710 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
2711 init(): Read a glom.document.locale value from the configuration file
2712 and call Glom's TransatableItem::set_current_locale() method.
2713 * src/main/resources/onlineglom.properties: Add a commented-out
2714 example of this new setting.
2716 It would be better to add &lang=de_DE to the URL, but the current
2717 libglom API does not allow us to do this easily. I am working on that.
2719 2011-12-19 Murray Cumming <murrayc@murrayc.com>
2721 Avoid a crash in parsing of token parameters.
2723 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.j
2724 ava: getTokenParams(): Do not crash if a parameter has a key but no
2725 value, and ignore parameters with neither.
2727 2011-12-17 Murray Cumming <murrayc@murayc.com>
2729 History token building/handling: Improve use of token parameters.
2731 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2732 (HasSelectableTablePlace.Tokenizer): Add getTokenParams(String)
2733 and buildParamsToken(HashMap), for use by derived classes.
2734 Make the separator private because it is no longer be needed.
2735 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2736 (DetailsPlace.Tokenizer.getToken): Use buildParamsToken()
2737 instead of manual string concatenation.
2738 (DetailsPlace.Tokenizer.getPlace): Use getTokenParams() instead
2739 of hardcoded indices and awkward splitting code.
2740 * src/main/java/org/glom/web/client/place/ListPlace.java
2741 (ListPlace.Tokenizer.getToken): Use buildParamsToken()
2742 instead of manual string concatenation.
2743 (ListPlace.Tokenizer.getPlace): Use getTokenParams() instead
2744 of hardcoded indices and awkward splitting code.
2745 This should fix bug #666420
2747 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2749 Fix a Navgiation->Navigation typo in the code.
2751 * src/main/java/org/glom/web/client/activity/DetailsActivity.java
2752 Rename processNavgiation() to processNavigation().
2754 2011-12-16 Murray Cumming <murrayc@murrayc.com>
2756 Fix a seperator->separator typo in the code.
2758 * src/main/java/org/glom/web/client/place/DetailsPlace.java
2759 * src/main/java/org/glom/web/client/place/HasSelectableTablePlace.java
2760 * src/main/java/org/glom/web/client/place/ListPlace.java: Just a
2763 2011-12-15 Ben Konrath <ben@bagu.org>
2765 Cleanup some comments.
2767 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
2769 2011-12-14 Ben Konrath <ben@bagu.org>
2771 Replace \n with <br/> for multiline text in the details view.
2773 Vertical scrollbars are added when needed as well.
2775 * src/main/java/org/glom/web/client/ui/details/DetailsCell.java:
2777 2011-12-14 Ben Konrath <ben@bagu.org>
2779 Specify the font for document selection links.
2781 * src/main/webapp/style.css:
2783 2011-12-14 Ben Konrath <ben@bagu.org>
2785 Fix bouncy CellTable while paging.
2787 This doesn't currently work with related list tables in unselected
2790 * src/main/java/org/glom/web/client/ui/list/ListTable.java
2792 2011-12-14 Ben Konrath <ben@bagu.org>
2794 Revamp the appearance of the document selection page.
2796 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.java:
2797 * src/main/java/org/glom/web/client/ui/DocumentSelectionViewImpl.ui.xml:
2798 * src/main/webapp/style.css:
2800 2011-12-13 Ben Konrath <ben@bagu.org>
2802 Set navigation button column to the smallest size possible.
2804 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2806 2011-12-13 Ben Konrath <ben@bagu.org>
2808 Change OpenButton nomenclature to NavigationButton.
2810 Using NavigtionButton makes things more generic. Classes, methods and
2811 variables have been changed.
2813 This is a rename-only refactor.
2815 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2816 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2817 * src/main/java/org/glom/web/client/ui/cell/NavigationButtonCell.java:
2818 Renamed from OpenButtonCell.
2819 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2820 * src/main/java/org/glom/web/client/ui/list/ListTable.java:
2821 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2823 2011-12-12 Ben Konrath <ben@bagu.org>
2825 Remove unnecessary String argument in RelatedListTable and ListViewTable.
2827 * src/main/java/org/glom/web/client/activity/DetailsActivity.java:
2828 * src/main/java/org/glom/web/client/ui/ListViewImpl.java:
2829 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2830 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2832 2011-12-12 Ben Konrath <ben@bagu.org>
2834 Update variable names and comments.
2836 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2837 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2839 2011-12-12 Ben Konrath <ben@bagu.org>
2841 Properly initialize numNonEmptyRows variable to zero.
2843 * src/main/java/org/glom/web/client/ui/details/RelatedListTable.java:
2844 * src/main/java/org/glom/web/client/ui/list/ListViewTable.java:
2846 2011-12-05 Ben Konrath <ben@bagu.org>
2848 Add latest mockup with HTML tables.
2850 Features of this mockup:
2852 -> HTML table for flowtable
2853 -> HTML table for flowtable column
2854 -> Example of how related lists would look
2855 -> Not using text entries for data items
2857 The current version of Online Glom doesn't use HTML tables for the
2860 This mockup has been sent to the glom-devel mailing list but it's good
2861 to have it here as well.
2863 * mockups/details-view-html-tables.html:
2865 2011-12-05 Ben Konrath <ben@bagu.org>
2867 Remove unnecessary getPrimaryKeyField() method.
2869 getPrimaryKeyFieldForTable(String) has been renamed to
2870 getPrimaryKeyField(String).
2872 * src/main/java/org/glom/web/server/database/DBAccess.java:
2873 * src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
2874 * src/main/java/org/glom/web/server/database/RelatedListNavigation.java:
2876 2011-12-05 Ben Konrath <ben@bagu.org>
2878 Add string representation of TypedDataItem value to conversion error message.
2880 * src/main/java/org/glom/web/server/Utils.java: Logging the error
2881 message was extracted into its own method to avoid duplication.