on 09-27-2016 2:24 AM
Hi ,
How can we customize the AbstractPageController in 6.1v , I can see this class is part of acceleratorstorefrontcommons.
create a new extensions myacceleratorstorefrontcommons using the yaddon template
edit the extensioninfo.xml and add a required extensions acceleratorstorefrontcommons
go to your storefront extension. edit the extensioninfo.xml and replace the existing dependency to the acceleratorstorefrontcommons with your version (myacceleratorstorefrontcommons).
you could now add below myaccleratorstorefrontcommons below: acceleratoraddon/web/src/PackageOfYourStorefront/commons/controllers/pages/AbstractPageController.java
ant clean all
and there you go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think may be this is the solution: https://wiki.hybris.com/pages/viewpage.action?spaceKey=forum&title=Issue+while+customization+addons
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Why this strong limit? Previous versions don't have it !!
I need to extend AbstracPageController but because this class is into the "acceleratorstorefrontcommons" extension with de.hybris... package (and not in my custom estension with my custom package) and because all my Controller extend this class, I should extend all custom and not-custom controllers.
Are there other ways ??
Many thanks, Diego
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Simple answer is that you can't because it is OOB class. You will have to create a new abstract class which will extends AbstractPageController and then in your custom class you will override methods as you want.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.