Dear Tapestry Users,
I hope someone can help me with that issue, it's bugging me for a while
now and I may not be able to see the obvious.
In an edit page I am taking the user id as argument, but when calling
the url with proper value "/user/edit/2" I am getting an exception:
"Caused by: java.lang.IllegalArgumentException: Exception in method
de.matchpatch.pages.user.UserEdit.onActivate(long) (at
UserEdit.java:25), parameter #1: Coercion of layout to type
java.lang.Long (via String --> Long) failed: For input string: "layout""
I found a mail from Uli Staerk
(http://osdir.com/ml/users-tapestry-apache/2009-01/msg00170.html) where
he figured it was due to a hardcoded CSS file, but that's not the case
here (using @IncludeStylesheet annotation). But I do use a Template
(based on YAML) in a layout component.
My UserEdit.tml looks like this:
<t:layout title="matchpatch User"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
xmlns:p="tapestry:parameter">
<t:beaneditform object="user"/>
</t:layout>
I hope someone has got a hint for me. If more code is required, please
let me know.
Thanks in advance
Daniel