cancel
Showing results for 
Search instead for 
Did you mean: 

Problem extending UpdateProfileForm from Acceleratorstorefrontcommons

Former Member
0 Kudos

Hello,

I am trying to add 2 new attributes in the accountProfileEditPage.jsp binding with UpdateProfileForm. I've created CustomUpdateProfileForm in my storefront extending from UpdateProfileForm (which is in acceleratorstorefrontcommons extension). After doing that, my project starts failing while generating Data objects and I get this compilling error:

     [echo] Found commonweb extension:  acceleratorstorefrontcommons
     [echo] copyCommonWebToExtension CommonWebExtension=acceleratorstorefrontcommons CommonWebResource=/src target=mystorefront
     [echo] Synchronizing <acceleratorstorefrontcommons>/commonweb with <mystorefront>/web/commonwebsrc/
     [sync] Copying 101 files to C:\hybris\hybris\bin\custom\my\mystorefront\web\commonwebsrc\acceleratorstorefrontcommons
     [copy] Copying 3 files to C:\hybris\hybris\bin\custom\my\mystorefront\web\webroot\WEB-INF\lib
     [copy] Copying C:\hybris\hybris\bin\ext-accelerator\acceleratorstorefrontcommons\commonweb\webroot\WEB-INF\lib\json-taglib-0.4.1.jar to C:\hybris\hybris\bin\custom\my\mystorefront\web\webroot\WEB-INF\lib\json-taglib-0.4.1.jar
     [copy] Copying C:\hybris\hybris\bin\ext-accelerator\acceleratorstorefrontcommons\commonweb\webroot\WEB-INF\lib\jsoup-1.6.1.jar to C:\hybris\hybris\bin\custom\my\mystorefront\web\webroot\WEB-INF\lib\jsoup-1.6.1.jar
     [copy] Copying C:\hybris\hybris\bin\ext-accelerator\acceleratorstorefrontcommons\commonweb\webroot\WEB-INF\lib\jstl-impl-1.2.jar to C:\hybris\hybris\bin\custom\my\mystorefront\web\webroot\WEB-INF\lib\jstl-impl-1.2.jar
     [echo] KOMP mystorefront - acceleratorstorefrontcommons   
 [yjavac] Compiling 1 source file to C:\hybris\hybris\bin\custom\my\mystorefront\web\webroot\WEB-INF\classes
  [yjavac] ----------   
 [yjavac] 1. ERROR in C:\hybris\hybris\bin\custom\my\mystorefront\web\src\com\mysport\storefront\controllers\pages\AccountPageController.java (at line 255)  
  [yjavac]     for (final AddressData addressData : userFacade.getAddressBook())   [yjavac]                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^   
 [yjavac] Type mismatch: cannot convert from element type de.hybris.platform.commercefacades.user.data.AddressData to de.hybris.platform.storelocator.data.AddressData 
 [yjavac] ----------  
  [yjavac] 2. ERROR in C:\hybris\hybris\bin\custom\my\mystorefront\web\src\com\mysport\storefront\controllers\pages\AccountPageController.java (at line 257)   [yjavac]     if (addressData.getId() != null && addressData.getId().equals(addressCode) [yjavac]                     ^^^^^   [yjavac] The method getId() is undefined for the type AddressData  
  [yjavac] ----------

Do you know what is the problem? How can I extend Forms?

I've also tried to create a new addon to overwrite the form object and a new extension with acceleratorstorefrontcommons as a template. But I always end up getting different errors.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

It was a problem with ee Organize imports and the clean process. I had the option disabled in general preferences but not for de storefront project.