How can I write the custom classes for script or template objects?
Is there any sample I can look at, or does a particular class has to be extended?
Type: Posts; User: psvent; Keyword(s):
How can I write the custom classes for script or template objects?
Is there any sample I can look at, or does a particular class has to be extended?
Hi!
I would like to know if ScriptRemoteConnector.post can handle a multipart/form-data post? Ie. I am interested if the body can be written in url encoded way, or do I have to create a...
I second the Alfresco point!
I think many of us Alfresco freaks, will be using SpringSurf to create custom client apps, on top of Alfresco, so a good example/tutorial base would be a great...
I think, that even if you are using the integrated Tomcat, you still have to deploy the project(s) from the command line.
A did not see a "deploy" Maven task in STS.
That is what I am thinking?
Cool, nice going Micheal!
I ll take a look at this today, and try it out.
For the project I followed these steps: http://www.springsurf.org/sites/1.0.0.M2/spring-surf-devtools/spring-surf-roo-addon/reference/html/intro.html#intro-first-steps
And I am using the projects...
What I am doing is this, I modify the code in STS, and then I am just calling these command from the command line, in the folder, where the sources for the Spring Surf project are.
# mvn clean
#...
In my case I created a "com.aos.factory.user".
So basicaly src/main/java in STS.
The package/class has to be in WEB-INF/classes, and you have to conigure the bean (surf-config.xml):
<bean...
3. The Alfresco User Factory class (just a quick fix, I commented out the stuff that was making problems)
Copy the code from org.springframework.extensions.surf.support.AlfrescoUserFactory, and...
OK, this is the quick and dirty version, which enable login/logout, based on the setup, previously in this thread.
The setup:
1. Alfresco 3.2r2 / localhost:8080
2. Spring Surf from trunk
3. A...
Eureka! It works! :)
I now have the capability to authenticate against Alfresco 3.2r2 from Spring Surf Webapp (checked out from trunk).
I will sum up the process, and post the code here in a...
OK I think I got it!
Actually authentication works, the problem is the user prop fetch method: AlfrescoUserFactory.loadUser, which expects different data.
What it actually calls it this...
OK, we are getting there :).
I changed the form action to:
<form method="POST" action="${url.context}/dologin">
...and now I get this:
FIY
Putting the files unser WEB-INF/classes/page-types is OK, it was just my messed up surf.xml...
Cool, I got further :) My surf.xml was messed up.
Now I am getting this:
Could not resolve view with name 'page/dologin' in servlet with name 'Spring MVC Dispatcher Servlet'
OK, will try...
I am trying to put up this against the trunk and Alfresco 3.2r2.
I am getting this: No 'login' page type configured - but page auth required it.
I created the page-types under...
I am playing with the "spring-surf-application-test" example from the trunk, against an Alfresco 3.2r2 repository.
This is the config:
<config evaluator="string-compare" condition="Remote">
...
Hi!
Just wanted to ask, what is the difference between the different "runtime" settings?
It seems there are these options: classpath, webapp, local, alfresco
Can someone elaborate on this? (...
Yes, I thought of the Tomcat/JDK6 combo to. Will give a try.
Yes, I am using the stuff from trunk.
Hi!
I created a simple Surf project with Roo, and it works OK on Tomcat 6.0, but not on Tomcat 5.5.
Deployment is OK but when I try to visite the app I get this exception:
...