cancel
Showing results for 
Search instead for 
Did you mean: 

UI Integration

kapilavasthi
Champ in-the-making
Champ in-the-making
Hi Friends,
              I am using Alfresco in my Content management project, now If i want to make a simple UI page from where a user can enter some of his details & can upload some files after that I am redirecting this page to the success page where I am giving a success msg that all files are uploaded.
       Now how can I make this UI page according to my requirement.
      Please Reply,
      Regards
         Kapil
5 REPLIES 5

pmonks
Star Contributor
Star Contributor
Web scripts (possibly a dashlet web script that can be integrated into a user's  "My Alfresco" page) are likely to be the best way to do this kind of thing.  That being said it does depend somewhat on your specific requirements (does this UI need to be integrated into the Alfresco web client UI, is it part of an external application, etc. etc.).

mikef
Champ in-the-making
Champ in-the-making
There's an example Web Script on the wiki that does almost exactly what you describe. See http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload for details.

General information on Web Scripts is available here: http://wiki.alfresco.com/wiki/Web_Scripts

davidturner90
Champ in-the-making
Champ in-the-making
How about unpacking a zip file? Would this require a Java command processor rather than a simple web script solution?

pmonks
Star Contributor
Star Contributor
Web Scripts can be implemented in Java (instead of or in addition to Javascript + Freemarker), so they're still an appropriate solution - see http://wiki.alfresco.com/wiki/Web_Scripts#Java-backed_Web_Scripts for more details.  Another option (if you prefer doing the bulk of development work in Javascript) is to call native Java APIs (java.util.zip specifically) directly - this is described at http://wiki.alfresco.com/wiki/JavaScript_API#Native_Java_API_Access.

Either way, you'd still use a Web Script to do this.

Cheers,
Peter

davidturner90
Champ in-the-making
Champ in-the-making
Thanks for the reply Peter.

I'm favouring the first approach of having a Java backed web script - as I would prefer to handle my customisation in Java code and keep the JavaScript as light as possible.

What's your experience with this - what is the preferred approach?