Fórum
Customize calendar portlet, import lib in hook
Rémy Auricoste, modificado 13 Anos atrás.
Customize calendar portlet, import lib in hook
New Member Postagens: 6 Data de Entrada: 07/12/10 Postagens Recentes
Hi everybody,
I am trying to customize the Calendar portlet. I know I can override the .jspf files from the portlet with a hook. It is working fine.
My problem is that I need to use new java classes. I didn't manage to add new classes in the hook project. The problem is that they seem not to be loaded. I tried to put them in WEB-INF/src and in a .jar in WEB-INF/lib with no result. I got that kind of error message :
As you can guess, interfaces.ConnecteurAgenda is a class I want to use, either from a lib or from the hook project.
I tried to find information about how to do this in the whole Liferay website, blogs, wiki with no success.
Is there anybody with an idea, please ?
Regards,
I am trying to customize the Calendar portlet. I know I can override the .jspf files from the portlet with a hook. It is working fine.
My problem is that I need to use new java classes. I didn't manage to add new classes in the hook project. The problem is that they seem not to be loaded. I tried to put them in WEB-INF/src and in a .jar in WEB-INF/lib with no result. I got that kind of error message :
An error occurred at line: 7 in the generated java file
Only a type can be imported. interfaces.ConnecteurAgenda resolves to a package
As you can guess, interfaces.ConnecteurAgenda is a class I want to use, either from a lib or from the hook project.
I tried to find information about how to do this in the whole Liferay website, blogs, wiki with no success.
Is there anybody with an idea, please ?
Regards,
Mohammed Azam, modificado 13 Anos atrás.
RE: Customize calendar portlet, import lib in hook (Resposta)
Regular Member Postagens: 159 Data de Entrada: 06/11/09 Postagens Recentes
hello
If you want to use the classes of your .jar file then place it in the portal level so that u can access in the calendar jsp files or any where.
for eg:
keep sampleClasses.jar in tomcat/lib/ext level.
hope it works for you.
If you want to use the classes of your .jar file then place it in the portal level so that u can access in the calendar jsp files or any where.
for eg:
keep sampleClasses.jar in tomcat/lib/ext level.
hope it works for you.
Rémy Auricoste, modificado 13 Anos atrás.
RE: Customize calendar portlet, import lib in hook
New Member Postagens: 6 Data de Entrada: 07/12/10 Postagens Recentes
Thanks a lot ! It is indeed working !
It is really a simple and easy solution I was not aware of.
Nevertheless, I wish it could be implemented in the hook itself, but it seems not to be possible.
I will keep your solution in my project, I guess.
Thanks again !
It is really a simple and easy solution I was not aware of.
Nevertheless, I wish it could be implemented in the hook itself, but it seems not to be possible.
I will keep your solution in my project, I guess.
Thanks again !
Mohammed Azam, modificado 13 Anos atrás.
RE: Customize calendar portlet, import lib in hook
Regular Member Postagens: 159 Data de Entrada: 06/11/09 Postagens Recentes
You are welcome
Vijay Makwana, modificado 10 Anos atrás.
RE: Customize calendar portlet, import lib in hook
New Member Postagens: 2 Data de Entrada: 05/12/13 Postagens Recentes
hey....i want to use custom calendar portlet
so how to calendar hook create so we can jsp and class file we get and requirement based changes and use it
so how to calendar hook create so we can jsp and class file we get and requirement based changes and use it