1 2011-03-08 Ben Konrath <ben@bagu.org>
3 Remove test classes, launch configurations and configuration.
5 The test stuff was getting in the way when creating the war. To make
6 the war file you can now do 'mvn clean package'. The packaged war file
7 will be in the target directory.
9 * .classpath: Remove unused classpathentry for tests and i18n.
10 * pom.xml: Remove junit.jar dependency. Properly use gwt.version
11 property. Don't run test or i18n goals when packaging the war.
12 * src/main/webapp/WEB-INF/web.xml: Add xml name space. Correct
17 * OnlineGlomTest-dev.launch:
18 * OnlineGlomTest-prod.launch:
19 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java:
20 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
22 2011-03-07 Ben Konrath <ben@bagu.org>
24 Update gwt-maven plugin to 2.2.0 and fix other configuation problems.
26 These fixes allow me to use 'mvn deploy' to create the war file.
28 * .classpath: This generated config has been updated by Eclipse. This
29 change was probably triggered by me updating from Eclipse 3.6.1 to
31 * .gitignore: Add entry to ignore the directory
32 src/main/webapp/WEB-INF/deploy. This directory is generated by Eclipse.
33 * .project: The generated config has been updated by Eclipse. This
34 change was probably triggered by me updating from Eclipse 3.6.1 to
36 * .settings/com.google.appengine.eclipse.core.prefs: Add empty config
37 so that Eclipse doesn't complain
38 * pom.xml: Update to gwt-maven-plugin 2.2.0.
39 * src/test/java/org/glom/web/client/GwtTestOnlineGlom.java: Move from
40 'tests' directory to 'client' directory. This is the new
41 gwt-maven-plugin convension.
42 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml: Correctly
43 refer to org.glom.web.OnlineGlom gwt module and OnlineGlomServiceImpl.
45 2011-03-07 Ben Konrath <ben@bagu.org>
47 Add support for horizontal alignment in the LayoutList columns.
49 * TODO: Remove item about horizontal alignment. Add item about
50 improvements to ColumnInfo.
51 * src/main/java/org/glom/web/client/LayoutListView.java: Set horizontal
52 alignment on the columns. Use ColumnInfo RPC object get the column
53 title and horizontal alignment.
54 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
55 LayoutListView creation with ColumnInfo RPC object.
56 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Create
57 a ColumnInfo object for every LayoutList columnn. Convert the
58 FieldFormatting.HorizontalAlignment to the correct
59 ColumnnInfo.HorizontatlAlignment with the new
60 getColumnInfoHorizontalAlignment helper method.
61 * src/main/java/org/glom/web/shared/ColumnInfo.java: New RPC object
62 to encapsulate column information like alignment and title. This
63 could be used to set the colour instead of on a per cell field basis.
64 * src/main/java/org/glom/web/shared/LayoutListTable.java: Replace
65 column title storage and retrieval with ColumnInfo.
67 2011-03-04 Ben Konrath <ben@bagu.org>
69 Add support for column sorting.
71 * src/main/java/org/glom/web/client/LayoutListView.java: Change
72 AsynDataProvider to be an anonymous inner class. Use new
73 getSortedTableData RPC method when column sort is requested. Set all
74 columns sortable and add an AsyncHandler to activate sorting in the
76 * src/main/java/org/glom/web/client/OnlineGlomService.java: Add new
77 method getSortedTableData(). Cleanup other method signatures.
78 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Add
79 new method getSortedTableData(). Cleanup other method signatures.
80 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
81 Implement getSortedTableData() and getTableData() methods by using a
82 private helper method with the appropriate parameters filled in. Use
83 user supplied sort clause when supplied, otherwise fall back to
84 sorting by the primary key. Move destroy() method to be underneath
85 constructor for readability. Cleanup comments.
87 2011-03-03 Ben Konrath <ben@bagu.org>
89 Add support for colour text and colour backgrounds to the layout list cells.
91 Only the cell backgrounds are coloured which leaves a gap between the
92 cells that isn't coloured. I need to figure out a way to set
93 'style=background-colour:' on the whole column rather than just the
96 * TODO: Add a note about colouring the background of the whole column.
97 * src/main/java/org/glom/web/client/LayoutListView.java: Add a custom
98 column type (GlomFieldColumn) and a custom cell type (GlomFieldCell) to
99 render the coloured text and backgrounds. Use GlomField[] for the row type.
100 * src/main/java/org/glom/web/client/OnlineGlomService.java: Use GlomField[]
102 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Use
103 GlomField[] for the row type.
104 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Use
105 GlomField[] for the row type. Set the text, text colour and background
106 colour in the GlomField objects as specified in the glom document. Add
107 method to convert from Gdk::Color to HTML colour string. Cleanup comments.
108 * src/main/java/org/glom/web/shared/GlomField.java: New file to encapulate
109 the glom field text, foreground colour and background colour.
111 2011-03-02 Ben Konrath <ben@bagu.org>
113 Don't display hidden tables in the combo box.
115 * src/main/java/org/glom/web/client/OnlineGlom.java: Update code to use
117 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
118 code to ignore hidden tables using ArrayLists for the table names and
120 * src/main/java/org/glom/web/shared/GlomDocument.java: Change tableTitles and
121 tableNames to use ArrayLists instead of String[]. Update getter and setter
124 2011-03-01 Ben Konrath <ben@bagu.org>
126 Add support for Date and Time number types.
128 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
129 Implement formatting for Date and Time values. Change the default glom
130 file to small business example.
132 2011-03-01 Ben Konrath <ben@bagu.org>
134 Add support for formatting glom types as specified in the glom file.
136 Formatting isn't finished yet - I still need to add support for Date
139 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Add
140 formatting support for TYPE_TEXT, TYPE_BOOLEAN and TYPE_NUMERIC. Remove
141 checks for null values in JDBC cleanup code and catch all exceptions
142 instead of just SQLExceptions.
143 * src/main/java/org/glom/web/shared/LayoutListTable.java: Fix incorrect
146 2011-03-01 Ben Konrath <ben@bagu.org>
148 Use GWT 2.2.0 instead of 2.1.1.
150 * pom.xml: Change GWT version numbers.
152 2011-03-01 Ben Konrath <ben@bagu.org>
154 A few small code cleanups.
156 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Remove
158 * src/main/java/org/glom/web/shared/GlomDocument.java: Remove
159 unnecessary object creation in constructor.
160 * src/main/java/org/glom/web/shared/LayoutListTable.java: Remove
161 unnecessary object creation in constructor.
163 2011-02-28 Ben Konrath <ben@bagu.org>
165 Add file for TODO list.
169 2011-02-18 Ben Konrath <ben@bagu.org>
171 Enable the CellTable Pager when more than 20 rows need to be viewed.
173 The Pager will automatically become active when the results are larger
174 than the CellTable size which is currently set to 20 lines.
176 * src/main/java/org/glom/web/client/LayoutListView.java: Correct class
177 name on debug statment in RPC call in LayoutListDataProvider, add
178 numRows parameter to LayoutListView constructor, propperly set rowCount
180 * src/main/java/org/glom/web/client/OnlineGlom.java: Correct class
181 name on debug statment in RPC call, use LayoutListTable object in RPC
182 calls, pass rowCount to LayoutListView.
183 * src/main/java/org/glom/web/client/OnlineGlomService.java: Change
184 getLayoutListHeaders to getLayoutListTable and return LayoutListTable
186 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Update
187 interface for changes in OnlineGlomService.
188 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Change
189 getLayoutListHeaders() to getLayoutListTable() and return
190 LayoutListTable. Using this object allows me to pass other information
191 about the LayoutList like the expected number of rows in the result set.
192 The Connection object from the connection pool is now propperly closed.
193 Only the requested number of lines are returned to the client in
195 * src/main/java/org/glom/web/shared/LayoutListTable.java: Move from
196 GlomTable and add columnTitles and numRows.
198 2011-02-18 Ben Konrath <ben@bagu.org>
200 Use String arrays instead of GlomTable objects in GlomDocument GWT-RPC object.
202 This is a small performance boost. I'll use GlomTable to get the required
203 layoutlist information.
205 * src/main/java/org/glom/web/client/OnlineGlom.java:
206 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
207 * src/main/java/org/glom/web/shared/GlomDocument.java:
209 2011-02-18 Ben Konrath <ben@bagu.org>
211 Add option to turn off formatting in JDT formatter preferences.
213 * .settings/org.eclipse.jdt.core.prefs:
215 2011-02-18 Ben Konrath <ben@bagu.org>
217 Rename LayoutList to LayoutListView.
219 I'm working towards setting things up to easily use MVP when the time
222 * src/main/java/org/glom/web/client/LayoutListView.java: Rename from
224 * src/main/java/org/glom/web/client/OnlineGlom.java: Update
227 2011-02-17 Ben Konrath <ben@bagu.org>
229 Move LayoutListDataProvider class into LayoutList.java.
231 * src/main/java/org/glom/web/client/LayoutList.java:
233 2011-02-17 Ben Konrath <ben@bagu.org>
235 Rename RPC service classes from LibGlomService* to OnlineGlomService*.
237 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Update
239 * src/main/java/org/glom/web/client/OnlineGlom.java: Update references.
240 * src/main/java/org/glom/web/client/OnlineGlomService.java: Rename
241 from LibGlomServer.java.
242 * src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java:
243 Rename from LibGlomServiceAsync.java.
244 * src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
245 Rename from LibGlomServiceImpl.java.
246 * src/main/webapp/WEB-INF/web.xml: Update configuration.
248 2011-02-17 Ben Konrath <ben@bagu.org>
252 * .settings/org.eclipse.jdt.core.prefs:
254 2011-02-17 Ben Konrath <ben@bagu.org>
256 Move GWT-RPC objects to shared package (where they should be).
258 * src/main/java/org/glom/web/client/LibGlomService.java: Update imports.
259 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Update imports.
260 * src/main/java/org/glom/web/client/OnlineGlom.java: Update imports.
261 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Update imports.
262 * src/main/java/org/glom/web/shared/GlomDocument.java: Move to
263 org.glom.web.shared package.
264 * src/main/java/org/glom/web/shared/GlomTable.java: Move to
265 org.glom.web.shared package.
266 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml: Included shared
267 directory in compilation to javascript.
269 2011-02-16 Ben Konrath <ben@bagu.org>
271 Add sort clause to the sql query that grabs table information.
273 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add sort clause
274 if one of the columns is a primary key.
276 2011-02-16 Ben Konrath <ben@bagu.org>
278 Disable generateAsync feature of gwt-maven.
280 The generated interface does not correctly match the methods in LibGlomService
281 and the generated singleton Util inner-class doesn't respect the servlet
284 * pom.xml: Turn off generateAsync feature.
285 * src/main/java/org/glom/web/client/LibGlomServiceAsync.java: Re-add file
286 with singleton Util inner-class.
288 2011-02-14 Ben Konrath <ben@bagu.org>
290 Add LGPL v3 licence notices.
292 Followed directions listed here:
293 http://www.gnu.org/licenses/gpl-howto.html
295 * COPYING: This file is a copy of the GPL v3.
296 * COPYING.LESSER: This file is a copy of the LGPL v3.
297 * src/main/java/org/glom/web/client/GlomDocument.java: Add licence
299 * src/main/java/org/glom/web/client/GlomTable.java: Add licence
301 * src/main/java/org/glom/web/client/LayoutList.java: Add licence
303 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Add
305 * src/main/java/org/glom/web/client/LibGlomService.java: Add licence
307 * src/main/java/org/glom/web/client/OnlineGlom.java: Add licence
309 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
312 2011-02-14 Ben Konrath <ben@bagu.org>
314 Use ArrayList instead of Array in GWT-RPC calls.
316 Apparently this gives a slight performance boost to the compiled
319 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use ArrayList
321 * src/main/java/org/glom/web/client/LibGlomService.java: Use ArrayList instead
324 2011-02-14 Ben Konrath <ben@bagu.org>
326 Access data from a postgres db rather than the example glom file.
328 * .settings/com.google.gwt.eclipse.core.prefs: Change GWT setting to
329 compile down to obfuscated javascript.
330 * pom.xml: Add c3p0 and postgres JDBC libraries.
331 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Return data
332 using a postgres db accessed through the c3p0 connection pooling library.
334 2011-02-14 Ben Konrath <ben@bagu.org>
336 Update Java formatter settings.
338 * .settings/org.eclipse.jdt.core.prefs: Change comment length to 120.
340 2011-02-02 Ben Konrath <ben@bagu.org>
342 Update Eclipse and Maven configs to in preparation for the postgres JDBC jar.
344 * .classpath: Change JRE to Java 1.6, remove GWT configuration as we're now
346 * .settings/com.google.gwt.eclipse.core.prefs: Don't copy gwt-servlet.jar to
347 the compiled webapp directory that Eclipse uses as we're using Maven now.
348 * .settings/org.eclipse.jdt.core.prefs: Change target platform to Java 1.6.
349 * .settings/org.eclipse.wst.common.project.facet.core.xml: Change Java version
351 * pom.xml: Format file, change target Java version to 1.6.
353 2011-02-02 Ben Konrath <ben@bagu.org>
355 Add information about a deployment related issue.
357 * README: Add Notes section with the problem outlined.
359 2011-02-02 Ben Konrath <ben@bagu.org>
361 Call Glom.libglom_deinit() when the servlet is shutdown.
363 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java: Add
364 Glom.libglom_deinit() to destroy() method.
366 2011-01-28 Ben Konrath <ben@bagu.org>
368 Use generated Util class to get the RPC Async interface.
370 * .settings/com.google.gwt.eclipse.core.prefs: Update generated Eclipse config
372 * src/main/java/org/glom/web/client/LayoutListDataProvider.java: Use generated
373 getInstance() method to get a reference to the RPC Async interface.
374 * src/main/java/org/glom/web/client/OnlineGlom.java: Use generated
375 getInstance() method to get a reference to the RPC Async interface, remove
376 the now unused getLibGlomServiceProxy() method.
378 2011-01-27 Ben Konrath <ben@bagu.org>
380 Cleanup ChangeLog entry from previous commit.
382 * ChangeLog: Group logical changes together and add comments.
384 2011-01-25 Ben Konrath <ben@bagu.org>
386 Convert to gwt-maven project.
388 * .gitignore: Update for new project structure.
389 * README: New file with a link to the online documentation.
390 * pom.xml: The generated maven configuration file with some tweaks.
392 Add / update Eclipse settings. These files are a merge of the files that
393 were generated with the gwt-maven plugin and the files we were previously
397 * .settings/.jsdtscope:
398 * .settings/com.google.gdt.eclipse.core.prefs:
399 * .settings/com.google.gwt.eclipse.core.prefs:
400 * .settings/org.eclipse.jdt.core.prefs:
401 * .settings/org.eclipse.wst.common.component:
402 * .settings/org.eclipse.wst.common.project.facet.core.xml:
403 * .settings/org.eclipse.wst.jsdt.ui.superType.container:
404 * .settings/org.maven.ide.eclipse.prefs:
405 * OnlineGlomTest-dev.launch:
406 * OnlineGlomTest-prod.launch:
408 Java source files moved from the 'src' directory to the directory structure
410 * src/main/java/org/glom/web/client/GlomDocument.java:
411 * src/main/java/org/glom/web/client/GlomTable.java:
412 * src/main/java/org/glom/web/client/LayoutList.java:
413 * src/main/java/org/glom/web/client/LayoutListDataProvider.java:
414 * src/main/java/org/glom/web/client/LibGlomService.java:
415 * src/main/java/org/glom/web/client/OnlineGlom.java:
416 * src/main/java/org/glom/web/server/LibGlomServiceImpl.java:
418 Non-functional property file used for translations. I included this as
419 reminder that it's something I need to sort out.
420 * src/main/resources/org/glom/web/client/Messages.properties:
422 The OnlineGlom GWT config file moved from the 'src/org/glom/web' directory.
423 * src/main/resources/org/glom/web/OnlineGlom.gwt.xml:
425 The servlet configuration files moved from the 'war' directory.
426 * src/main/webapp/OnlineGlom.css:
427 * src/main/webapp/OnlineGlom.html:
428 * src/main/webapp/WEB-INF/web.xml:
430 Generated test files with most of the code commented out. I included these
431 so that it's easy to add tests when we're ready for them.
432 * src/test/java/org/glom/web/tests/GwtTestOnlineGlom.java:
433 * src/test/resources/org/glom/web/OnlineGlomJUnit.gwt.xml:
435 2011-01-25 Ben Konrath <ben@bagu.org>
437 Remove unused println.
439 * src/org/glom/web/server/LibGlomServiceImpl.java:
441 2011-01-25 Ben Konrath <ben@bagu.org>
443 Add project specific JDT settings.
445 * .settings/org.eclipse.jdt.core.prefs: Generated by Eclipse.
446 * .settings/org.eclipse.jdt.ui.prefs: Generated by Eclipse.
448 2011-01-25 Ben Konrath <ben@bagu.org>
450 Populate celltable with example data.
452 * src/org/glom/web/client/GlomDocument.java: Correct formatting.
453 * src/org/glom/web/client/GlomTable.java: Correct formatting.
454 * src/org/glom/web/client/LayoutList.java: Renamed from ListLayoutTable.java,
455 add LayoutListDataProvider to CellTable, add simpler pager (not working yet).
456 * src/org/glom/web/client/LayoutListDataProvider.java: New file,
457 asynchronously gets the example data.
458 * src/org/glom/web/client/LibGlomService.java: Add getTableData() method.
459 * src/org/glom/web/client/LibGlomServiceAsync.java: Add getTableData() method.
460 * src/org/glom/web/client/OnlineGlom.java: Allow service proxy object and
461 curently selected table to be retrieved by other widgets.
462 * src/org/glom/web/server/LibGlomServiceImpl.java: Correct formatting,
463 implement getTableData() in a hacky way. This method needs to be updated
464 to grab information from the database when database creating is
467 2011-01-20 Ben Konrath <ben@bagu.org>
469 Set table headers when table dropBox changes.
471 * src/org/glom/web/client/GlomDocument.java: Correct some method
473 * src/org/glom/web/client/LibGlomService.java: Add method
474 to get list layout field names.
475 * src/org/glom/web/client/LibGlomServiceAsync.java: Add method
476 to get list layout field names.
477 * src/org/glom/web/client/ListLayoutTable.java: New file - composite
478 widget for list layout table.
479 * src/org/glom/web/client/OnlineGlom.java: Add a change handler for
480 the table drop box and add new updateTable() method to asynchronously
481 get the layout list field names for the currently selected table.
482 * src/org/glom/web/server/LibGlomServiceImpl.java: Add server side
483 implementation of getLayoutListHeaders() method.
484 * war/OnlineGlom.html: Remove GlomWebApp div tag as it is not required.
486 2011-01-18 Ben Konrath <ben@bagu.org>
488 Make a listBox with table titles instead of the flexTable demo.
490 This is the start of something more useful.
492 * .classpath: Exclude a bunch of packages from the JVM that are
493 getting in the way of the Eclipse content assist.
494 * src/org/glom/web/client/GlomDocument.java:
495 * src/org/glom/web/client/GlomTable.java:
496 * src/org/glom/web/client/LibGlomService.java:
497 * src/org/glom/web/client/LibGlomServiceAsync.java:
498 * src/org/glom/web/client/OnlineGlom.java:
499 * src/org/glom/web/server/LibGlomServiceImpl.java:
500 * war/OnlineGlom.html:
501 * war/WEB-INF/web.xml:
503 211-01-13 Ben Konrath <ben@bagu.org>
505 Update to new java-libglom API.
507 * .gitignore: Ignore OnlineGlom.war.
508 * src/org/glom/web/server/TableNamesServiceImpl.java: Update to new java-libglom API.
510 2010-12-20 Ben Konrath <ben@bagu.org>
512 Add some basic style to the table listing.
514 * src/org/glom/web/client/OnlineGlom.java: Add style to the table
515 header, print useful error message on async callback failure.
516 * war/OnlineGlom.css: Add style for table header, remove defaults
517 provided by the Eclipse project wizard.
519 2010-12-20 Ben Konrath <ben@bagu.org>
521 Load example file from installed glom dir.
523 * src/org/glom/web/server/TableNamesServiceImpl.java: Use the Java API
524 provided by java-libglom to find the example file.
526 2010-12-20 Ben Konrath <ben@bagu.org>
528 Update Eclipse settings.
531 * .settings/com.google.gdt.eclipse.core.prefs:
532 * .settings/com.google.gwt.eclipse.core.prefs:
534 2010-12-17 Ben Konrath <ben@bagu.org>
538 * .classpath: New file.
539 * .gitignore: New file.
540 * .project: New file.
541 * .settings/com.google.gdt.eclipse.core.prefs: New file.
542 * .settings/com.google.gwt.eclipse.core.prefs: New file.
543 * src/org/glom/web/OnlineGlom.gwt.xml: New file.
544 * src/org/glom/web/client/GlomTable.java: New file.
545 * src/org/glom/web/client/OnlineGlom.java: New file.
546 * src/org/glom/web/client/TableNameService.java: New file.
547 * src/org/glom/web/client/TableNameServiceAsync.java: New file.
548 * src/org/glom/web/server/TableNamesServiceImpl.java: New file.
549 * war/OnlineGlom.css: New file.
550 * war/OnlineGlom.html: New file.
551 * war/WEB-INF/web.xml: New file.
552 * war/images/glom.png: New file.