cancel
Showing results for 
Search instead for 
Did you mean: 

Surf app layout

olga_k
Champ in-the-making
Champ in-the-making
Hi,

I am trying to build out a website as a surf app.   I have developed the webscripts that will be called by page components.  The next step for me would be to define pages and template instances to build up the webapp as a surf app.  Can anyone tell me where I should put these items within the webapp.  Appart from putting them into the webapp folder structure do I need to wire them into the webapp with any config files?

I have followed Erik Winlof's Spring Surf Development#1 tutorial (http://blogs.alfresco.com/wp/ewinlof/2010/06/04/spring-surf-development-1-creating-a-rest-api-with-s...) and got the structure for web scripts ${path_to_the_webapp}/WEB-INF/classes/webscripts/com/safari.  I want to keep using the mvn project defined by this tutorial but cant figure out where to put the surf pages etc as stated above.


Regards
Olga
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
The best way is to look at Share, which is itself a Surf application.

Thanks,
Mike

kevinr
Star Contributor
Star Contributor
I assume you have downloaded the SpringSurf example applications? There is an "empty" one which has the basic folder structure in place, and there is the Quick Start web application which has a couple of simple pages and components to give you a starting point: http://springsurf.org/downloads.html

If you see my recent blog post, it show you how to quickly wire up the Quick Start application to authenticate users against an Alfresco repository: http://blogs.alfresco.com/wp/kevinr/2010/11/01/springsurf-authenticating-users-against-an-alfresco-r...

Cheers,

Kev

chris1313
Champ in-the-making
Champ in-the-making
I found the folders and the Quick Start web application. Thanks for the help Kev.

Chris