Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
Charmaine Rebollido
Connecting to mysql liferay database using Icefaces portlet
2010. február 21. 19:39
Válasz

Charmaine Rebollido

Rangsorolás: Junior Member

Hozzászólások: 28

Csatlakozás dátuma: 2009. december 11.

Legújabb hozzászólások

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
2010. február 22. 6:38
Válasz

Pravin Pawar

Rangsorolás: Junior Member

Hozzászólások: 59

Csatlakozás dátuma: 2009. november 17.

Legújabb hozzászólások

You can use Service Builder in Icefaces too.
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
2010. február 23. 17:18
Válasz

Charmaine Rebollido

Rangsorolás: Junior Member

Hozzászólások: 28

Csatlakozás dátuma: 2009. december 11.

Legújabb hozzászólások

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
2010. március 2. 2:25
Válasz

Pravin Pawar

Rangsorolás: Junior Member

Hozzászólások: 59

Csatlakozás dátuma: 2009. november 17.

Legújabb hozzászólások

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
2010. március 8. 18:57
Válasz

Charmaine Rebollido

Rangsorolás: Junior Member

Hozzászólások: 28

Csatlakozás dátuma: 2009. december 11.

Legújabb hozzászólások

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
2010. március 8. 21:27
Válasz

Pravin Pawar

Rangsorolás: Junior Member

Hozzászólások: 59

Csatlakozás dátuma: 2009. november 17.

Legújabb hozzászólások

Hi Charmaine,

Please find attached Interview Portlet war, Deploy it & let me know if you have any issues
Mellékletek: interview-portlet-5.2.3.1.war (3 664,6k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
2010. március 9. 23:42
Válasz

Charmaine Rebollido

Rangsorolás: Junior Member

Hozzászólások: 28

Csatlakozás dátuma: 2009. december 11.

Legújabb hozzászólások

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
2010. március 10. 2:02
Válasz

Pravin Pawar

Rangsorolás: Junior Member

Hozzászólások: 59

Csatlakozás dátuma: 2009. november 17.

Legújabb hozzászólások

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.
Mellékletek: interview-portlet.zip (3 807,2k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
2010. március 18. 19:17
Válasz

Charmaine Rebollido

Rangsorolás: Junior Member

Hozzászólások: 28

Csatlakozás dátuma: 2009. december 11.

Legújabb hozzászólások

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
2012. január 16. 18:11
Válasz

Julia Royee

Rangsorolás: New Member

Hozzászólások: 1

Csatlakozás dátuma: 2012. január 16.

Legújabb hozzászólások

thanks Charmaine Rebollido for this code.

Legal translation services
Robert Leo Smith
RE: Connecting to mysql liferay database using Icefaces portlet
2012. február 9. 7:30
Válasz

Robert Leo Smith

Rangsorolás: New Member

Hozzászólások: 17

Csatlakozás dátuma: 2009. október 15.

Legújabb hozzászólások

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.