I have solved a problem. In Team changed setId(String id) to
setId(Object id) when ok.
F> In the project there is a following:
F> public interface ISimpDesc {
F>public getId();
F> }
F> public class Team implements ISimpDesc {
F> // hibernate annotations
F> @DocumentId
F>
I see two problems:
1) setId(T) should be type void, not String.
2) Tapestry is not currently aware of generics, so everywhere you see
type T in your class, Tapestry sees java.lang.Object. There's an
issue about handling this better, but its very tricky.
On Jan 15, 2008 2:27 AM, Davor Hrg <[EMA
it happens after submit bacuse
when renderring filed needs getter to render value,
after submit the binding expression "team.id" is evaluated
to populate value received through form submit
it is then that setter is needed, hence error only then
you probabla should add
public void setId(T id);
to
In the project there is a following:
public interface ISimpDesc {
public getId();
}
public class Team implements ISimpDesc {
// hibernate annotations
@DocumentId
@Id
@MinLength(min=2)
@MaxLength(max=50)
@Pattern(regex="[\\w-]+")
private Stri