掲示板

good tutorial to build a CRUD portlet

13年前 に David Peng によって更新されました。

good tutorial to build a CRUD portlet

New Member 投稿: 21 参加年月日: 10/05/18 最新の投稿
I am try to learn how to build the liferay portlet, and the good example I can found is "from DB to simple UI", but it didn't work very well.
The best example I am looking for should show me at least how to build the CRUD around one new table (such as friends), and show me how to create / remove / update / delete the entity (such as friend), better with the explain of how to use liferay taglib.
Any good suggestion, thanks.
13年前 に Pushpinder Singh によって更新されました。

RE: good tutorial to build a CRUD portlet

Junior Member 投稿: 84 参加年月日: 10/07/21 最新の投稿
David Peng,
Steps I generally do for CRUD in portlet is:
1. Create a normal JSP CRUD application, so you development speed is quick.
Using portlet from start is time consuming when degugging.
I use database facade to hide all CRUD functionality.

2. Now cut paste your jsp code in yourportlet_view.jsp and any CRUD calls in
public void processEditAction(ActionRequest request, ActionResponse response) throws PortletException,IOException

I hope that will help.
13年前 に David Peng によって更新されました。

RE: good tutorial to build a CRUD portlet

New Member 投稿: 21 参加年月日: 10/05/18 最新の投稿
Sounds like a very good idea, I am just at the beginner level of liferay portlet development, would you mind to offer a little bit more details of how to implement the processEditAction to handle the CRUD along with JSP. I google it, but no sample or even detailed explaination about it.
Thanks.
thumbnail
13年前 に Jerry Niu によって更新されました。

RE: good tutorial to build a CRUD portlet

Expert 投稿: 451 参加年月日: 06/06/21 最新の投稿
Before you go down the portlet path, try looking into doing this in the WCM.

Bruno gave a great write up of what's possible, Building simple applications with Liferay WCM.

When developing portlets, I normally rely on Liferay's ServiceBuilder.
thumbnail
13年前 に Nishikant sapkal によって更新されました。

RE: good tutorial to build a CRUD portlet

Junior Member 投稿: 80 参加年月日: 10/02/16 最新の投稿
This might help you for beginers
thumbnail
12年前 に Jack A. Rider によって更新されました。

RE: good tutorial to build a CRUD portlet

Regular Member 投稿: 139 参加年月日: 07/03/26 最新の投稿
Hello David,

Maybe a little late, but, you can build a CRUD portlet around one (or more) table, with all source code using XMLPortletFactory project. Be aware that this is a very new open source project that just came out of the oven, and althought it is very solid, is not full proof, but seems to support all your requirements .


Saludos, Jack.