From: juergen.hartler (A. F. <fo...@an...> - 2008-08-20 09:28:57
|
Hi Walter! It is a similar problem like before! Without the <<Manageable>> the attribute of the entity is regarded as JSFAttribute and with it it is JSFManageableEntityAttribute! The problem is caused from the templates/jsf2/views/facelets/view-action.xhtml.vsl when it calls the macro renderActionInput of the templates/jsf2/views/renderActionFormInput.vm The following section is causing the problem: #if ($parameter.backingListName) #set ($propertyId = $parameter.name) #set ($valuePropertyName = $parameter.name) #set ($backingListName = $parameter.backingListName) #set ($backingValueName = $parameter.backingValueName) #else #set ($propertyId = $parameter.getFormPropertyId($ownerParameter)) #set ($valuePropertyName = ${parameter.getFormPropertyName($ownerParameter)}) #set ($backingListName = ${parameter.getBackingListName($ownerParameter)}) #set ($backingValueName = ${parameter.getBackingValueName($ownerParameter)}) #end Here the JSFManageableEntityAttribute has an $parameter.backingListName and it is rendered differently! I have changed this section to: #if ($parameter.backingListName) #if ($ownerParameter.type.hasStereotype('Entity')) #set ($propertyId = $parameter.getFormPropertyId($ownerParameter)) #set ($valuePropertyName = ${parameter.getFormPropertyName($ownerParameter)}) #else #set ($propertyId = $parameter.name) #set ($valuePropertyName = $parameter.name) #end #set ($backingListName = $parameter.backingListName) #set ($backingValueName = $parameter.backingValueName) #else #set ($propertyId = $parameter.getFormPropertyId($ownerParameter)) #set ($valuePropertyName = ${parameter.getFormPropertyName($ownerParameter)}) #set ($backingListName = ${parameter.getBackingListName($ownerParameter)}) #set ($backingValueName = ${parameter.getBackingValueName($ownerParameter)}) #end and since the JSFManageableEntityAttribute does not have the methods $parameter.getFormPropertyId($ownerParameter) and ${parameter.getFormPropertyName($ownerParameter)} I have added them to the model und just copied the implemenation methods from the JSFAttributeLogicImpl.java to the JSFManageableEntityLogicImpl.java. Then it works pretty fine! If you want I can send you the changed files! Best regards, Juergen _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=26298#26298 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! |