Hi everybody,
=20
I'm having a tc:selectOnceChoce-component that contains a list of years =
as string. I'd like to set a select year in the bean as a Date-Object by =
using a converter. The converter runs without an error but the =
Tobago-Framework throws a ValidationException.=20
In the log I find this message: 2007-11-16 15:10:17 ERROR - =
org.apache.myfaces.tobago.context.ResourceManagerImpl:292 - Path not =
found, and no fallback. Using empty string.
=20
I tried to fix the problem with my own Validator, but I still get the =
same Problem. When I use a string instead of a date in the bean it =
works. But I don't want a String since this will cause problems =
somewhere else.=20
What can I do? Who can help me?
=20
Partial source code:
=20
...
<tc:selectOneChoice value=3D"#{controller.currentMedia.yearOfPubl}" =
id=3D"year"
disabled=3D"#{not controller.editor}" >
<f:converter converterId=3D"books.YearListConverter" />
<f:selectItems value=3D"#{controller.yearList}" />
</tc:selectOneChoice>
=20
=20
This is the bean with the date:
...
@Entity
public class Book extends Hardware {
private static final long serialVersionUID =3D =
-1766787777560262298L;
=20
private URL url;
private Date yaerOfPubl;
=20
/** Creates a new instance of Book */
public Book() {
super();
}
=20
public URL getUrl() {
return url;
}
=20
public void setUrl(URL url) {
this.url =3D url;
}
=20
@Temporal(value =3D TemporalType.DATE)
public Date getYearOfPubl() {
return yaerOfPubl;
}
=20
public void setYearOfPubl(Date yearOfPubl) {
this.yaerOfPubl =3D yearOfPubl;
}
}
...
=20
=20
Regards,
Mario
=20
|