cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize AbstractPageController in 6.1

Former Member
0 Kudos

Hi ,

How can we customize the AbstractPageController in 6.1v , I can see this class is part of acceleratorstorefrontcommons.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos
Former Member
0 Kudos

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

krishn_signet
Participant
0 Kudos

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.