liferay 7 Ext Module cannot add new portlet?

تم تعديل sunny huang منذ 5 سنوات من الدقائق. Junior Member المشاركات: 56 تاريخ الإنضمام: 17‏/1‏/11 المشاركات الحديثة

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 منذ 5 سنوات من الدقائق. Liferay Legend المشاركات: 6441 تاريخ الإنضمام: 23‏/9‏/08 المشاركات الحديثة

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 منذ 5 سنوات من الدقائق. Junior Member المشاركات: 56 تاريخ الإنضمام: 17‏/1‏/11 المشاركات الحديثة

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 منذ 5 سنوات من الدقائق. Liferay Legend المشاركات: 6441 تاريخ الإنضمام: 23‏/9‏/08 المشاركات الحديثة

"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.