5 Feb 2009
Alfresco Surf Code Camp: Do-It-Yourself
Did you miss the Alfresco Surf Code Camps? I’ve got you covered. With Alfresco’s blessing (they wrote most of the content, after all) I’ve uploaded the Optaros Alfresco 3.0 Surf Code Camp instructor presentations and class labs to slideshare.net.
You might start by looking at the agenda to get an idea of the order you should progress through the lecture and labs. Then, move on to the introduction. Use the agenda to guide you through the rest.
The labs will be a little bit more painful than they were in-person. That’s because for the in-person camps, we used a virtual machine image that had everything pre-installed. For the DIY Code Camp, you’ll need to set this up yourself. To approximate what was on the image:
- Install the Alfresco-Tomcat bundle.
- Install a second Tomcat instance. This will be your Surf tier.
- Build a fresh Surf war. It’s in the “web framework” project in the source code. It will produce a WAR called alfwf.war.
- The labs will refer to “assets.zip”. I had an assets.zip file for just about every lab. For this setup, I’ve just got one zip, which is the entire solution source available for download. So when you see that, you’ll have to pick through the solution to find the file dependencies. Sorry.
The image we used for the class ran on 3.0 Labs from head circa mid-November. I believe people have had success running on 3.0 Enterprise. I haven’t tested on Labs 3 Stable. If someone tries it please post a comment here to let us know your degree of success.
The Code Camp doesn’t cover Web Studio. I’ll leave that up to someone else–I’ll be happy to link to it.
UPDATE: Making you find your own dependencies for the labs was lame. I had a few extra minutes so I pulled them into a Code Camp Assets file organized by lab/walkthrough. Now you’ve got no excuse.


Couldn’t make it to the Code Camp… and was waiting for this! Now I can Surf!!!!
Get on it!
Jeff, the Chicago Code Camp this week covered Web Studio, so we will make the exercises and materials posted ASAP as well and get you the link.
Far out! Thanks.
[...] Alfresco Surf Code Camp: Do-It-Yourself | ecmarchitect.com – Ressources sur le framework surf Tags : ALFRESCO, internet, javascript, outilsenligne, photo, prototype, wordpress Navigate [...]
[...] the spirit of Jeff Pott’s code camp at home blog post, I thought I would post the application the Chicago code campers walked away with. Please note, if [...]
[...] site which is part of the Alfresco Surf Code Camp material. Jeff Potts has kindly made this available for download, and I would recommend taking a look to learn more about Surf in general (including an example of [...]
Hey Jeff, I ran ran the code camp in London. I upgraded the appliance to 3d stable and didn’t find any problems to do with the version.
One problem we had with Lab 2 was the url, I notice you have added a comment to it
model.link = user.url; //does this come back /person?
We got an error when clicking on the url. It seemed to be trying to do a call that should have gone direct to Alfresco rather than through Share. Don’t know if anyone got a fix for this?
@Chris,
The problem is that Alfresco returns the wrong URL. It should be people, not person. Do a replace on that and you should see it work.
Jeff
[...] Option 2: Use Alfresco’s Surf framework. Alfresco’s Surf framework is just that–it’s a framework. Don’t confuse it with Alfresco Share which is a team-centric collaboration client built on top of Surf. And, don’t assume that just because a piece of functionality is in Share it is available to you in the lower-level Surf framework. You may have to do some extra work to get some of the cool stuff in Share to work in your pure Surf app. Also realize that Surf is brand new and still maturing. You’ll be quickly disappointed if you hold it to the same standard as a more widely-used, well-established framework like Seam or Django. Surf is a good option for quick, Alfresco-centric solutions, especially if you think you might want to leverage Alfresco’s browser-based site assembly tool, Web Studio, at some point in the future. (See Do-it-yourself Alfresco Surf Code Camp). [...]
where is the link to download web studio
http://wiki.alfresco.com/wiki/Community_Edition_file_list_32r2
does not contain web studio download
Web Studio, along with Surf, has moved to the Spring Incubator. Take a look at http://www.springsource.org/extensions/se-surf and see if they’ve got what you are looking for.
Jeff
[...] add-ons and integrations and released those as open source projects. I wrote a book. I conducted code camps. I attended every event Alfresco ever put on and gave talks at most of those. I didn’t set [...]
[...] Optaros at the time. Our add-on was the Alfresco Share microblogging component and we also did some Surf Code Camps. The goal, of course, was to get the word out about Surf and encourage others to develop and [...]