Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Seeya S Kudtarker
Service builder doesn't build services for new entities added
April 25, 2013 2:20 AM
Answer

Seeya S Kudtarker

Rank: Regular Member

Posts: 187

Join Date: January 15, 2013

Recent Posts

I have a service builder and there are few entitties.
Now when I try to add more entities to the service builder and try to build services, the services for this new entity are not getting created.

What should possibly be the problem and how to tackle it?
Apoorva Prakash
RE: Service builder doesn't build services for new entities added
April 25, 2013 2:59 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Seeya S Kudtarker:
I have a service builder and there are few entitties.
Now when I try to add more entities to the service builder and try to build services, the services for this new entity are not getting created.

What should possibly be the problem and how to tackle it?


Hello Seeya,
  1. You can remove all services (after taking backup of XXXLocalServiceImpl), clean up all service related classes and try again
  2. you can try XMP Portlet Factory also

HTH.

Thanks and Regards,
Apoorva Prakash
Seeya S Kudtarker
RE: Service builder doesn't build services for new entities added
April 25, 2013 3:05 AM
Answer

Seeya S Kudtarker

Rank: Regular Member

Posts: 187

Join Date: January 15, 2013

Recent Posts

Apoorva Prakash:

I will try it out and let you know.
Is this the way every time if I get it again? emoticon

And I have another problem where newly created portlets aren't getting displayed in the Control Panel..
Any solution for this?

Regards

Seeya
Apoorva Prakash
RE: Service builder doesn't build services for new entities added
April 25, 2013 4:09 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello Seeya,

Seeya S Kudtarker:

Is this the way every time if I get it again? emoticon

Nope, this is not the right way, sometimes this works as a solution.

Seeya S Kudtarker:

And I have another problem where newly created portlets aren't getting displayed in the Control Panel..

You haven't mentioned how you are adding portlets in control panel. You have to add the following in liferay-portlet.xml
1<control-panel-entry-category>portal</control-panel-entry-category>
2<control-panel-entry-weight>13.0</control-panel-entry-weight>
where the first entry tells in which category of control panel, your portlet will come where the second entry tells the order.

HTH.

Thanks and Regards,
Apoorva Prakash
Seeya S Kudtarker
RE: Service builder doesn't build services for new entities added
April 25, 2013 4:10 AM
Answer

Seeya S Kudtarker

Rank: Regular Member

Posts: 187

Join Date: January 15, 2013

Recent Posts

The following are the lines I have been using so far and they have worked and my portlets are seen in the control panel.

<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight>1.5</control-panel-entry-weight>


The above lines work.
But now for the new portlets when I used the above lines, the portlets aren't getting displayed.
David H Nebinger
RE: Service builder doesn't build services for new entities added
April 25, 2013 5:22 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6699

Join Date: September 1, 2006

Recent Posts

Seeya S Kudtarker:
I have a service builder and there are few entitties.
Now when I try to add more entities to the service builder and try to build services, the services for this new entity are not getting created.

What should possibly be the problem and how to tackle it?


Are there any errors in the console when you build services indicating why they are not getting created?

Or are you saying the code is getting generated but the corresponding tables are not getting created?
Apoorva Prakash
RE: Service builder doesn't build services for new entities added
April 25, 2013 5:41 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Seeya S Kudtarker:
The following are the lines I have been using so far and they have worked and my portlets are seen in the control panel.

<control-panel-entry-category>content</control-panel-entry-category>
<control-panel-entry-weight>1.5</control-panel-entry-weight>


The above lines work.
But now for the new portlets when I used the above lines, the portlets aren't getting displayed.


All seems fine, Just one point, hopefully you will be using different weight value...
Seeya S Kudtarker
RE: Service builder doesn't build services for new entities added
April 25, 2013 9:51 PM
Answer

Seeya S Kudtarker

Rank: Regular Member

Posts: 187

Join Date: January 15, 2013

Recent Posts

Apoorva,
Building services for an entity worked successfully!! emoticon
But as far as showing portlets in Control Panel is concerned, should I assign different weights for each portlet? I have been assigning the same weight 1.5
But even though I changed it the new portlets are not shown..
Just curious.. Is there any limit to adding portlet in the control panel section?