Author: chatellier Date: 2009-08-27 10:49:56 +0000 (Thu, 27 Aug 2009) New Revision: 2547 Modified: isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl Log: Blinde le prescript pour que si la conversion ne fonctionne pas, il y ai un classcastexception Modified: isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl =================================================================== --- isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl 2009-08-27 10:45:41 UTC (rev 2546) +++ isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl 2009-08-27 10:49:56 UTC (rev 2547) @@ -47,7 +47,7 @@ <#assign path=factor.path /> <#assign topiaId=path?substring(0, path?last_index_of("#"))/> <#assign propertyName=path?substring(path?last_index_of("#") + 1)/> - Object value = beanUtils.convert("${serializedValue}", ${value.class.name}.class); + ${value.class.name} value = (${value.class.name})beanUtils.convert("${serializedValue}", ${value.class.name}.class); TopiaEntity entity = db.findByTopiaId("${topiaId}"); BeanUtils.setProperty(entity, "${propertyName}", value); </#if>