ECM, BI, and AI / Semantic Tech Open Source, HTML5/JS, Angular, Alfresco, CMIS, BI, Visualization, AI, Semantic Search, SPARQL/RDF/OWL

5. January 2009

FlexSpaces now refactored to use the presentation model pattern

Filed under: AIR,Alfresco,Flex,FlexSpaces,LiveCycle — admin @ 22:59

The  flexspaces google code svn now has flexspaces+browser and flexspaces+air refactored to use the “presentation model” presentation design pattern. This will be in flexspaces 0.9.

Presentation model links:
Paul Williams: Presentation Patterns – Presentation Model
Max Milan Presentation – Flex Development with Cairngorm

Previously the component dir of FlexSpaces had components using either the Supervising Presenter design pattern or the Passive View design pattern (this is still available in the Alfresco forge in the 0.8 flexspaces source downloads). With the refactoring, the component package dir has been replaced with “presmodel” and “view” package directories. Still use Cairngorm with UM extensions in the control dir as before.

The flexspaces google code now also has some some cleanup work done: 1. model locator modularized to  just be a locator of model classes. 2. The xml parsing of data coming back from web scripts has been moved to the delegates. These now return models and/or value objects.

I am finally getting around to adding support for Prana (now Spring ActionScript) to allow xml configuration of various things in flexspaces (attributes to show in properties / folder grids / advanced search, etc.) This is not in google code yet (will be in flexspaces 0.9).

Steve

14. November 2008

FlexSpaces Thumbnails/CoverFlow on Alfresco 2.x and LiveCycle CS ES

Filed under: AIR,Alfresco,DAM,Flex,FlexSpaces,LiveCycle — admin @ 21:05

HOW TO: Add support for Thumbnails and CoverFlow in FlexSpaces on Alfresco 2.x and  Adobe LiveCycle Content Services ES using the Thumbnails project from the Alfresco Forge

FlexSpaces show thumbnails LC CS

DocLib Icon view with Show Thumbnails checked (modified FlexSpacesAir 0.7 running on LC CS with Thumbnails 0.5)
(these would look better with larger image files rather than just icon files)

FlexSpaces CoverFlow on LC CS

DocLib CoverFlow view (modified FlexSpacesAir 0.7 running on LC CS with Thumbnails 0.5)

Currently FlexSpaces+AIR 0.7 and FlexSpaces+Browser 0.7 uses the thumbnail service added to Alfresco in 3.0  for thumbnails in its main icon view and in its coverflow view. The “View / Show Thumbnails” menu turns showing them on.  These views are support int the DocLib view, search results, tasks attachments, and in the WCM view.  If the version is less than 3.0 these features are disabled (LiveCycle Content Services is seen by the code as 2.1).   (Note currently creating is thumbnails on upload is disabled FlexSpaces in UploadFilesDelegate.as until I can get this to work better). FlexSpaces will show thumbnails created on upload in Share (did not see any action in the newly named Explorer JSF web client 3.0 for thumb-nailing).

I added 2.x thumbnails sample code to flexspaces google code that make use of the Thumbnails 0.5 project in the Alfresco Forge.  Swap in the 4 modified flex files into the 0.7 FlexSpaces source or FlexSpaces part of the FlexSpacesAir source and rebuild the flex builder project(s). (See the readme there).  There is also a modification to the folderlist web script that you need to update the version of in /Company Home/ Data Dictionary / Web Scripts Extensions / integratedsemantics / folderlist.

Then install the Thumbnails 0.5. Its readme has instructions for installing on Alfresco 2.x.  My readme has some additional install notes for the Thumbnails 0.5 project when installing it on LiveCycle Content Services (LC CS). Also if you want the modifications the thumbnails project did to the Alfresco jsp files you would have to manually merge in the changes to the LC CS contentspace versions of the files (don’t over-write the contentspace jsp files) Since I was just trying to get FlexSpaces work, I skipped this step. You will still have the “Create thumbnails of the item” action available in the contentspace app even if you skip merging the jsps.

On LC CS, you will get some extra authentication dialogs initially when viewing thumbnails.  There is a Catch-22 of LC CS only having a saml “ticket” http header and not “alf_ticket” url arg that regular Alfresco has, coupled with the restrictions on the use of http headers with various Flex/Flash apis (HTTPService api, FileReference upload/download, and viewing with URLRequest navigateToURL). (For HTTPService used flex proxy as a workaround,  FileReference upload/download and navigateToURL still looking for answers )

Note:  FlexSpaces with LiveCycle CS on non localhost:  for now, with the built 0.7 FlexSpaces / FlexSpacesAir will only work when setup on run with LC CS on a localhost test system.   For instructions on how to rebuild it and configure for non local host config see this forum topic.

4. November 2008

FlexSpaces 0.7 released

Filed under: AIR,Alfresco,Flex,FlexSpaces,LiveCycle — admin @ 23:10

FlexSpaces 0.7 released

http://forge.alfresco.com/projects/flexspaces/

1. UI strings in resources, Spanish translation (thanks Nuno Barrocas / OKHA Networks), German translation (thanks May Computer), Japanese translation (thanks Tetsuya Suga). (Flexspaces currently only built with English set of resource bundles. source code has all four languages)

2. The locale specific dir for a set of menu xml files to load can be configured (without recompile) by setting default-locale in alfresco-config.xml

3. Added paging support in folder views, search results

4. Added play video support (only avail from context menu, which is always enabled) will launch video in a new tab view with play, stop, pause buttons

5. Added support for Adobe LiveCycle Content Services ES

6. Added version history panel in doclib view (no wcm support) which shows versions of selected doc (if made versionable). View / Version History menu toggle panel on/off

7. tree fixes (select by path not name), refresh when add or delete folder

8. friendlier error msg dialog (stack details collapsed down), Friendlier login error message.

9. Although mainly support flash 9.x player, did some testing with flash 10 player. Only issue: edit does checkout + download with flash 9.x player. With flash 10.x player, edit will only do the checkout. Can still do the download as a separate step with flash 10.x player.

10. Tested with released version of Alfresco Enterprise 3.0

11. FlexSpacesAir has added browser tab running Share (can also be used for running other web page). Previously this feature was a separate experimental download

21. October 2008

FlexSpaces support for Adobe LiveCycle Content Services ES

Filed under: AIR,Alfresco,Flex,FlexSpaces,LiveCycle — admin @ 23:36

The latest source in the flexspaces googlecode project svn now has support for Adobe LiveCycle Content Services ES in addition to regular Alfresco.

http://code.google.com/p/flexspaces/
http://code.google.com/p/flexspaces/source/checkout

livecycle flexspaces readme: readmeLiveCycleContentServices.txt  http://code.google.com/p/flexspaces/source/browse/#svn/trunk/doc/livecycle

Both the flexspaces and flexspacesair flex/actionscript code has changed from 0.6 flexspaces for livecycle support (in addition to changes beyond 0.6 for paging and strings in resource bundles).

 For webscripts, only change from 0.6 was the addition of a start workflow webscript in livecycle/tasks
http://code.google.com/p/flexspaces/source/browse/#svn/trunk/WebScripts/integratedsemantics/livecycle/tasks
(calls the action process-action that calls the Review and Approve LiveCycle sample process)

Make PDF didn’t require anything special (existing web script worked). (will get watermark with livecycle trial)

Have a transform config file for make flash preview (uses livecycle for pdf generation then pdf2swf) and existng webscript works (see readmeLiveCycleContentServices.txt)

I was able to use the flex proxy and basic auth to avoid auth prompts for HTTPService calls to web scripts (see readmeLiveCycleContentServices.txt for services-config.xml change)

The first time you use upload, view, or download, you will get an auth prompt. Been trying to use a ticket header to avoid this, but must be running into flex/flash not allowing http headers for security reasons.
(tried crossdomain.xml with allow headers, didn’t help)
http://forums.alfresco.com/en/viewtopic.php?f=36&t=14800

LiveCycle download (1 year trial)  http://www.adobe.com/devnet/livecycle/trial/

« Newer Posts

Powered by WordPress