Author: chatellier Date: 2009-08-27 12:10:35 +0000 (Thu, 27 Aug 2009) New Revision: 2549 Modified: isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl Log: En bsh, on ne peut pas definir plusieurs fois un variable avec des types differents. Ajout de l'unicite des noms de variables Modified: isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl =================================================================== --- isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl 2009-08-27 11:44:50 UTC (rev 2548) +++ isis-fish/trunk/src/main/resources/templates/prescript/factorprescript.ftl 2009-08-27 12:10:35 UTC (rev 2549) @@ -47,9 +47,9 @@ <#assign path=factor.path /> <#assign topiaId=path?substring(0, path?last_index_of("#"))/> <#assign propertyName=path?substring(path?last_index_of("#") + 1)/> - ${value.class.name} value = (${value.class.name})beanUtils.convert("${serializedValue}", ${value.class.name}.class); - TopiaEntity entity = db.findByTopiaId("${topiaId}"); - BeanUtils.setProperty(entity, "${propertyName}", value); + ${value.class.name} value${factor_index} = (${value.class.name})beanUtils.convert("${serializedValue}", ${value.class.name}.class); + TopiaEntity entity${factor_index} = db.findByTopiaId("${topiaId}"); + BeanUtils.setProperty(entity${factor_index}, "${propertyName}", value${factor_index}); </#if> </#list>
participants (1)
-
chatellierï¼ users.labs.libre-entreprise.org