Foros de discusión

Connecting to mysql liferay database using Icefaces portlet

Charmaine Rebollido, modificado hace 14 años.

Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 28 Fecha de incorporación: 12/12/09 Mensajes recientes
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
thumbnail
Pravin Pawar, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 62 Fecha de incorporación: 17/11/09 Mensajes recientes
You can use Service Builder in Icefaces too.
Charmaine Rebollido, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 28 Fecha de incorporación: 12/12/09 Mensajes recientes
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
thumbnail
Pravin Pawar, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 62 Fecha de incorporación: 17/11/09 Mensajes recientes
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, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 28 Fecha de incorporación: 12/12/09 Mensajes recientes
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.
thumbnail
Pravin Pawar, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 62 Fecha de incorporación: 17/11/09 Mensajes recientes
Hi Charmaine,

Please find attached Interview Portlet war, Deploy it & let me know if you have any issues
Charmaine Rebollido, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 28 Fecha de incorporación: 12/12/09 Mensajes recientes
Hi pravin,

I just wonder about this code in JobApplication.java:

InterviewLocalServiceUtil.addInterview(_dateOfBirth, _emailAddress, resume,
_firstName, _lastName, _phoneNumber,_applyForPost, _presentAddress, _permanentAddress,
_contactNumber, _degree, _board, _college,_passingYear, _percentage, 
_additionalQualification, _skillName1, _skillLevel1, _skillName2,    
_skillLevel2, _companyName1, _expFrom1, _expTo1, _designation1, _location1, 
_companyName2, _expFrom2, _expTo2, _designation2, _location2, _currentSalary,
_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..
thumbnail
Pravin Pawar, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 62 Fecha de incorporación: 17/11/09 Mensajes recientes
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.
Charmaine Rebollido, modificado hace 14 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 28 Fecha de incorporación: 12/12/09 Mensajes recientes
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
thumbnail
Julia Royee, modificado hace 12 años.

RE: Connecting to mysql liferay database using Icefaces portlet

New Member Mensaje: 1 Fecha de incorporación: 17/01/12 Mensajes recientes
thanks Charmaine Rebollido for this code.

Legal translation services
thumbnail
Robert Leo Smith, modificado hace 12 años.

RE: Connecting to mysql liferay database using Icefaces portlet

Junior Member Mensajes: 63 Fecha de incorporación: 15/10/09 Mensajes recientes
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.