Hi Janos,
take a look at the upgrade notes. Close to the bottom the change of the
BeanModel signature is documented. Now you need mode.exlude(..) instead
of model.remove(..).
Regards,
Michael
[1] http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html
János Jarecsni schrieb:
Hi,
I have upgraded from 5.0.10 to 5.0.11 and a .TML which worked before now
throws this:
An unexpected application exception has occurred.
Render queue error in SetupRender[AddCelebrity:celebrity.editor]: Exception
instantiating instance of com.packtpub.celebrities.model.Celebrity (for
component 'AddCelebrity:celebrity.editor'): Error invoking constructor
com.packtpub.celebrities.model.Celebrity(String, String, Date, Occupation)
(at Celebrity.java:18) (for service 'BeanModelSource'): No service
implements the interface java.util.Date.
The .TML code:
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>Celebrity Collector: Adding New Celebrity</title>
<link rel="stylesheet" href="${styles}" type="text/css"/>
</head>
<body>
<h1>Adding New Celebrity</h1>
<t:beaneditform t:id="celebrity" t:submitLabel="Save"
remove="id"
reorder="firstName,lastName,dateOfBirth,birthDateVerified,occupation,biography">
<t:parameter name="biography">
<table cellpadding="0" cellspacing="0"><tr>
<td><t:t5components.editor t:id="biography"
t:value="celebrity.biography"
t:toolbarSet="Medium" t:width="350"
t:height="200"/></td></tr>
</table>
</t:parameter>
</t:beaneditform>
</body>
</html>
and the model class (Celebrity):
package com.packtpub.celebrities.model;
import java.util.Date;
public class Celebrity {
private Date dateOfBirth;
// some fields omitted
public Celebrity() {
}
public Celebrity(String firstName, String lastName,
Date dateOfBirth, Occupation occupation) {
this.firstName = firstName;
this.lastName = lastName;
this.dateOfBirth = dateOfBirth;
this.occupation = occupation;
}
public Date getDateOfBirth() {
return dateOfBirth;
}
public void setDateOfBirth(Date dateOfBirth) {
this.dateOfBirth = dateOfBirth;
}
// more methods follow
}
Can you tell me what am I doing wrong?
thx
janos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]