Matt,
The tutorial source only seems to be available for the 2.0.2
(non-modular) version of AppFuse and I can't build it as
org.codehaus.mojo:appfuse-maven-plugin:2.0.2 does not seem to be
available from any repository I can find.
That said, I have my 2.1.0-M1 tutorial project working so it isn't a
problem.
Thanks for your help,
Anthony.
________________________________
On the 25 November 2010 at 15:31 Matt Raible Wrote:
The completed code for this tutorial doesn't seem to have a "formView"
property, so I don't think this is necessary.
http://www.google.com/codesearch/p?hl=en#WTe62-tihmk/tutorial-spring/src
/main/webapp/WEB-INF/dispatcher-servlet.xml&q=PersonFormController%20pac
kage:http://appfuse-demos\.googlecode\.com&sa=N&cd=3&ct=rc
On Nov 25, 2010, at 5:22 AM, Milbourne, Anthony wrote:
I think I have found an error in the tutorial again (I know the
last one wasn't strictly an error - but I think this one is :-).
As I mentioned, I am using the 2.1.0-M1 version of the modular
spring archetype and I have followed the tutorials with JPA and
SpringMVC. On the web stage of the tutorial
(http://appfuse.org/display/APF/Using+Spring+MVC
<http://appfuse.org/display/APF/Using+Spring+MVC> ) it looks like there
is an error in the spring config (dispatcher-servlet.xml) for the
PersonFormController. The snippet in the tutorial is:
<bean id="personFormController"
class="org.appfuse.tutorial.webapp.controller.PersonFormController">
<!--property name="validator" ref="beanValidator"/-->
<property name="successView" value="redirect:persons.html"/>
<property name="personManager" ref="personManager"/>
</bean>
But I think it should be:
<bean id="personFormController"
class="org.appfuse.tutorial.webapp.controller.PersonFormController">
<!--property name="validator" ref="beanValidator"/-->
<property name="formView" value="personForm"/>
<property name="successView" value="redirect:persons.html"/>
<property name="personManager" ref="personManager"/>
</bean>
Without this extra line the Canoo web tests fail with an error
something like:
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException:
404 Not Found for
http://localhost:18421/showcase-web-1.0-SNAPSHOT/personform.html?id=1
<http://localhost:18421/showcase-web-1.0-SNAPSHOT/personform.html?id=1>
Have I done something wrong or is this a genuine error in the
Tutorial?
Thanks,
Anthony.
===============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
===============================================================================