Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
wei tang
Overriding class in ext
December 4, 2012 11:57 AM
Answer

wei tang

Rank: Junior Member

Posts: 36

Join Date: December 3, 2012

Recent Posts

I modify com.liferay.portal.util.PortletCategroyKeys in my ext-plugin, but my class not work. The ext-web or hook jsp's use liferay PortletCategroyKeys still, how to fixed the problem? I am sure that ext-impl.jar is be updated in /lib.
Hitoshi Ozawa
RE: Overriding class in ext
December 4, 2012 2:25 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Did you restart liferay?
wei tang
RE: Overriding class in ext
December 4, 2012 7:41 PM
Answer

wei tang

Rank: Junior Member

Posts: 36

Join Date: December 3, 2012

Recent Posts

Hitoshi Ozawa:
Did you restart liferay?

restart server again and again!
Hari Dobbala
RE: Overriding class in ext
December 4, 2012 8:56 PM
Answer

Hari Dobbala

Rank: Junior Member

Posts: 29

Join Date: November 17, 2012

Recent Posts

Hi Wei,

com.liferay.portal.util.PortletCategoryKeys file is in portal-service.jar not in imp jar. After plugin-ext deployment please check in ext-serivce jar which is on global ext folder to check whether your modified class is existed if exist restart the server and check the changes.

Hope this may help you.
wei tang
RE: Overriding class in ext
December 5, 2012 10:42 AM
Answer

wei tang

Rank: Junior Member

Posts: 36

Join Date: December 3, 2012

Recent Posts

com.liferay.portal.util.PortletCategroyKeys is spelled. It's "PortletCategoryKeys" not "PortletCategroyKeys". It's work in ext-impl.jar ext-service.jar both. thank for your response
Sushil Saini
RE: Overriding class in ext
December 7, 2012 4:01 PM
Answer

Sushil Saini

Rank: Regular Member

Posts: 104

Join Date: July 27, 2011

Recent Posts

Hi Wei,

Have your problem sorted?
I also want to do the similar thing. wanted to override a class in the portal-impl.jar through ext plugin.

Thanks