result = pageResources.coerce(boundValue, expectedType);
}
catch (Exception ex)
{
throw new TapestryException(StructureMessages.getParameterFailure(parameterName, getCompleteId(), ex), b,
ex);
}
if (result == null && !isAllowNull(parameterName))
throw new TapestryException(String.format(
"Parameter '%s' of component %s is bound to null. This parameter is not allowed to be null.",
parameterName,
getCompleteId()), b, null);
return result;