Update the Java-Backed Web Scripts Samples

157 views
Skip to first unread message

Piergiorgio Lucidi

unread,
Feb 9, 2012, 11:49:32 AM2/9/12
to Alfresco Wiki Gardeners
Hi gardeners,

after a chat session in the #alfresco IRC channel with mastro and
other guys, many developers complain that some pages of the wiki are
out of date, especially on the Java examples WebScripts.

I would like to spend some time on updating the following wiki page:
http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples

They also need a complete example about a generic DeclarativeWebScript
(Java+FTL templates) that is only mentioned in the page.

I will use Alfresco 4.0 Enterprise to test all the implementations.
I hope to start and finish tomorrow, just some hours.

Hope this helps.
Piergiorgio

Jeff Potts

unread,
Feb 9, 2012, 11:57:45 AM2/9/12
to alfresco-wi...@googlegroups.com
Sounds great. Please make sure your examples work on both Alfresco Community 4.0.d and Alfresco Enterprise 4.0.

Jeff

esp...@gmail.com

unread,
Feb 9, 2012, 12:08:54 PM2/9/12
to alfresco-wi...@googlegroups.com, Piergiorgio Lucidi
Thank you!

The IRC channel discussion had a lot of confusion between the wiki and the official docs. It seems people are still going to the wiki first, instead of using it to supplement the official documentation. I'm not sure what to do to improve that though. It will help when the docs team rolls out commenting on the official docs.

Perhaps you should coordinate with mastro in IRC to incorporate the howto he posted in the forums:

https://forums.alfresco.com/en/viewtopic.php?f=36&t=43013

If you add your new wiki page as a comment to his documentation issue, then the Docs team will use it as they look at improving the official documentation.

Thank you again for the help! It's fun to see valuable conversations turning into real improvements, and it's because people like you share your knowledge.

Thank you!

Richard

Piergiorgio Lucidi

unread,
Feb 9, 2012, 12:10:05 PM2/9/12
to Alfresco Wiki Gardeners
Ok, I'll let you know when I finish :)

Piergiorgio

Piergiorgio Lucidi

unread,
Feb 12, 2012, 10:51:48 AM2/12/12
to Alfresco Wiki Gardeners
Hi guys,

I fixed some issues about special characters in the page, that maybe
mastro introduced with his new section about the DeclarativeWebScript.
I tested the first and the second WebScript with Alfresco 4 Enterprise
and it works fine.

I'm continue to re-test and fixing all the examples.

For all these WebScripts there are both implementation example: the
first with alfresco.web.scripts package and the second with
springframework.extensions.webscript package.
I think that now we could remove the old example that uses the
alfresco.web.scripts package, what do you think?

Piergiorgio


On 9 Feb, 18:10, Piergiorgio Lucidi <piergiorgioluc...@gmail.com>
wrote:

Piergiorgio Lucidi

unread,
Feb 13, 2012, 1:14:34 PM2/13/12
to Alfresco Wiki Gardeners
Today I finished to re-implement and test all the WebScripts
implementation on Alfresco 4 Enterprise and Alfresco 4.0.d Community.

I re-implemented all the WebScripts completely with also content
models and Spring context.
During these days, I hope tomorrow I'll update the wiki page removing
the old snippets, but leaving the notice about the package migration
for Spring WebScripts.

I suggest to share on Google Code a standard AMP project based on the
Alfresco Maven archetype to help developers on this topic.
I can share the project during this week if it is ok for all of you.

Please let me know WDYT.
Thank you.

Piergiorgio

On 12 Feb, 16:51, Piergiorgio Lucidi <piergiorgioluc...@gmail.com>
wrote:

Piergiorgio Lucidi

unread,
Feb 17, 2012, 6:02:43 AM2/17/12
to Alfresco Wiki Gardeners
Here my last update about Java-Backed WebScripts :D

- I shared a new Maven project on Google Code with all the
implementations tested with Alfresco 4 (Community and Enterprise):
http://code.google.com/p/alfresco-java-backed-webscripts-demo/

- I updated the Java-Backed page on the wiki and I also added a
reference for this new Maven module:
http://wiki.alfresco.com/wiki/Java-backed_Web_Scripts_Samples#The_Demo_Web_Scripts

The new Maven module allows developers to download the code and run
with an unique Maven command an Alfresco instance based on H2 database
with the samples AMP installed.
It also is possible to build the AMP from the source code. Or they can
download the precompiled AMP from the Downloads page of the project
website.

I think that I could migrate all the standard samples that are in the
official Alfresco SDK in the same way using the Maven Alfresco
Lifecycle.
I think that it could be very cool to provide a similar alternative
way instead to only have the legacy SDK based on Ant.

Please let me know what do you think about this.
Piergiorgio

On 13 Feb, 19:14, Piergiorgio Lucidi <piergiorgioluc...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages