Combination View Flat View Tree View
Threads [ Previous | Next ]
Charmaine Rebollido
Connecting to mysql liferay database using Icefaces portlet
February 21, 2010 7:39 PM
Answer

Charmaine Rebollido

Rank: Junior Member

Posts: 28

Join Date: December 11, 2009

Recent Posts

Hello,

Can anyone help me on connecting to liferay's databse using Icefaces..
I have learn to connect using JSP using service builder but now, I have to connect to it using Icefaces, can anybody help me with this?

Thanks in advance!
Charmaine Rebollido
Pravin Pawar
RE: Connecting to mysql liferay database using Icefaces portlet
February 22, 2010 6:38 AM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

You can use Service Builder in Icefaces too.
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
February 23, 2010 5:18 PM
Answer

Charmaine Rebollido

Rank: Junior Member

Posts: 28

Join Date: December 11, 2009

Recent Posts

Hi Pravin, thanks for letting me know..
It's just that I don't know how to use the service builder with Icefaces,
can you guide me with this or give me a sample?

Thanks again..
Charmaine
Pravin Pawar
RE: Connecting to mysql liferay database using Icefaces portlet
March 2, 2010 2:25 AM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

Please refer sample-icefaces-jsf-1.1-myfaces-jsp-portlet & add service.xml file for fields specified in JobApplication.jspx file. Generate service layer for this using service builder build-service Ant task.
Please let me know if you have any questions.
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
March 8, 2010 6:57 PM
Answer

Charmaine Rebollido

Rank: Junior Member

Posts: 28

Join Date: December 11, 2009

Recent Posts

Hi Pravin,

I tried the sample portlet you said and tried to add a service builder but I just can't get it to work..

Can you provide me a step by step process on how to use service builder with icefaces?
Thanks again.
Pravin Pawar
RE: Connecting to mysql liferay database using Icefaces portlet
March 8, 2010 9:27 PM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

Hi Charmaine,

Please find attached Interview Portlet war, Deploy it & let me know if you have any issues
Attachments: interview-portlet-5.2.3.1.war (3,664.6k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
March 9, 2010 11:42 PM
Answer

Charmaine Rebollido

Rank: Junior Member

Posts: 28

Join Date: December 11, 2009

Recent Posts

Hi pravin,

I just wonder about this code in JobApplication.java:

1InterviewLocalServiceUtil.addInterview(_dateOfBirth, _emailAddress, resume,
2_firstName, _lastName, _phoneNumber,_applyForPost, _presentAddress, _permanentAddress,
3_contactNumber, _degree, _board, _college,_passingYear, _percentage,
4_additionalQualification, _skillName1, _skillLevel1, _skillName2,   
5_skillLevel2, _companyName1, _expFrom1, _expTo1, _designation1, _location1,
6_companyName2, _expFrom2, _expTo2, _designation2, _location2, _currentSalary,
7_expectedSalary, _noticePeriod,_rname, _rdesignation, _company, _rcontact);


Netbeans detect an error with this.

Because when I tried to follow the src code of the portlet you have provided, I am only allowed to put one variable inside InterviewLocalServiceUtil.addinterview().

example:
InterviewLocalServiceUtil.addInterview(_dateOfBirth)


If I add two or more in the parameter, it already becomes an error.

Hope you can help me with this one again, thanks..
Pravin Pawar
RE: Connecting to mysql liferay database using Icefaces portlet
March 10, 2010 2:02 AM
Answer

Pravin Pawar

Rank: Junior Member

Posts: 62

Join Date: November 17, 2009

Recent Posts

Hi Charmaine,

I am using Eclipse for development. Please try to generate build-service command. So you can get InterviewLocalServiceUtil class in service layer. Now you can ready to use addInterview method.

I have also attach the source code for interview-portlet just copy it in plugins-sdk/portlet directory. If you are familiar with Apache Ant, then simply open the terminal & execute the ant build-service command in liferay-plugins-sdk-5.2.3/portlets/interview-portlet. Once done with build-service command generate ant deploy command to deploy the portlet to server.
Attachments: interview-portlet.zip (3,807.2k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
March 18, 2010 7:17 PM
Answer

Charmaine Rebollido

Rank: Junior Member

Posts: 28

Join Date: December 11, 2009

Recent Posts

Hi Pravin,

thanks for the code but I really can't make it work ,.. emoticon
(sorry for that, I'm really just a newbie)
Can you provide a step by step process?
Thanks again..

Regards,
Charmaine
Julia Royee
RE: Connecting to mysql liferay database using Icefaces portlet
January 16, 2012 6:11 PM
Answer

Julia Royee

Rank: New Member

Posts: 1

Join Date: January 16, 2012

Recent Posts

thanks Charmaine Rebollido for this code.

Legal translation services
Robert Smith
RE: Connecting to mysql liferay database using Icefaces portlet
February 9, 2012 7:30 AM
Answer

Robert Smith

Rank: Junior Member

Posts: 47

Join Date: October 15, 2009

Recent Posts

I know this is a late post and you may have solved the issue; however, I noticed in the code fragment you sent the method call took many parameters. You said that when you attempted to call it with a single parameter it built, but adding a second failed. To me, it sounds as if the liferay jar file that you are including does not have the same methods as what you are describing. I would start by looking at what jars you are including, and make sure they are the correct ones.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!