{
IComponent component = event.getComponent();
String propertyName = event.getPropertyName();
if (_locked)
throw new ApplicationRuntimeException(
Tapestry.format(
"PageRecorder.change-after-lock",
component.getPage().getPageName(),
propertyName,
component.getExtendedId()));
if (propertyName == null)
throw new ApplicationRuntimeException(
Tapestry.format("PageRecorder.null-property-name", component.getExtendedId()));
Object activeValue = event.getNewValue();
try
{
recordChange(component.getIdPath(), propertyName, activeValue);
}
catch (Throwable t)
{
t.printStackTrace();
throw new ApplicationRuntimeException(
Tapestry.format(
"PageRecorder.unable-to-persist",
propertyName,
component.getExtendedId(),
activeValue),