Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Charmaine Rebollido
Connecting to mysql liferay database using Icefaces portlet
21 febbraio 2010 19.39
Risposta

Charmaine Rebollido

Punteggio: Junior Member

Messaggi: 28

Data di Iscrizione: 11 dicembre 2009

Messaggi recenti

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
22 febbraio 2010 6.38
Risposta

Pravin Pawar

Punteggio: Junior Member

Messaggi: 62

Data di Iscrizione: 17 novembre 2009

Messaggi recenti

You can use Service Builder in Icefaces too.
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
23 febbraio 2010 17.18
Risposta

Charmaine Rebollido

Punteggio: Junior Member

Messaggi: 28

Data di Iscrizione: 11 dicembre 2009

Messaggi recenti

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
2 marzo 2010 2.25
Risposta

Pravin Pawar

Punteggio: Junior Member

Messaggi: 62

Data di Iscrizione: 17 novembre 2009

Messaggi recenti

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
8 marzo 2010 18.57
Risposta

Charmaine Rebollido

Punteggio: Junior Member

Messaggi: 28

Data di Iscrizione: 11 dicembre 2009

Messaggi recenti

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
8 marzo 2010 21.27
Risposta

Pravin Pawar

Punteggio: Junior Member

Messaggi: 62

Data di Iscrizione: 17 novembre 2009

Messaggi recenti

Hi Charmaine,

Please find attached Interview Portlet war, Deploy it & let me know if you have any issues
Allegati: interview-portlet-5.2.3.1.war (3.664,6k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
9 marzo 2010 23.42
Risposta

Charmaine Rebollido

Punteggio: Junior Member

Messaggi: 28

Data di Iscrizione: 11 dicembre 2009

Messaggi recenti

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
10 marzo 2010 2.02
Risposta

Pravin Pawar

Punteggio: Junior Member

Messaggi: 62

Data di Iscrizione: 17 novembre 2009

Messaggi recenti

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.
Allegati: interview-portlet.zip (3.807,2k)
Charmaine Rebollido
RE: Connecting to mysql liferay database using Icefaces portlet
18 marzo 2010 19.17
Risposta

Charmaine Rebollido

Punteggio: Junior Member

Messaggi: 28

Data di Iscrizione: 11 dicembre 2009

Messaggi recenti

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
16 gennaio 2012 18.11
Risposta

Julia Royee

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 16 gennaio 2012

Messaggi recenti

thanks Charmaine Rebollido for this code.

Legal translation services
Robert Smith
RE: Connecting to mysql liferay database using Icefaces portlet
9 febbraio 2012 7.30
Risposta

Robert Smith

Punteggio: Junior Member

Messaggi: 40

Data di Iscrizione: 15 ottobre 2009

Messaggi recenti

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.