Message Boards

liferay 7 Ext Module cannot add new portlet?

sunny huang, modified 3 Years ago.

liferay 7 Ext Module cannot add new portlet?

Junior Member Posts: 56 Join Date: 1/17/11 Recent Posts

HI,

Is the development of new portlets not supported by ext module?

The portlet created in the ext module cannot be displayed normally. Not found in the app.

thumbnail
Olaf Kock, modified 3 Years ago.

RE: liferay 7 Ext Module cannot add new portlet?

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

You should minimize the use of ext at all cost. If you need to change some implementation: Most likely you just found the wrong solution for the underlying problem. In the few cases where you actually need to change the implementation (through ext): Go ahead, but minimize the size of the ext. Then add whatever you need on top, in regular modules.

Your future self will thank you when they'll have to upgrade that code to the next version.

And if you don't have to upgrade the code yourself: Assume those who will need to do it know where you live.

Seriously: Ext can easily introduce a maintenance burden, which should be minimized at all cost. It's Liferay's business to change their implementation. If you interfere with that, you'll have to do the three-way-merges on every individual upgrade - worst case even on minor upgrades or, in case of DXP, from Fixpack to Fixpack. Don't go there if you don't absolutely have to.

sunny huang, modified 3 Years ago.

RE: RE: liferay 7 Ext Module cannot add new portlet?

Junior Member Posts: 56 Join Date: 1/17/11 Recent Posts

Yes , You are right. thank you for reply. At first, i want to rebuild document library web module and modify src codes to implement some funtions.

But there are same errors like that.

liferay-npm-bundler build error

So I tried to use EXT. It work well but cannot create new portlet I need. Just like you said, It 's not a good idea to implement my need. But I can't find a solution to the error in the thread above. Are there any good suggestions?

thumbnail
Olaf Kock, modified 3 Years ago.

RE: RE: liferay 7 Ext Module cannot add new portlet?

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

"and modify src codes to implement some functions"

 

I'm wondering what you're implementing. Since everything is on OSGi now, there's often no more need to modify source in order to achieve a certain behavior.

You might want to rephrase your question and let us know about your actual plan: What's the feature you're trying to implement this way?

Solving X-Y-problems can be hard (and this sounds like one), even though the underlying problem might be easy.