Fóruns

Início » Liferay Portal » English » 2. Using Liferay » General

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Subhash Pavuskar
List Of Question
16 de Abril de 2012 22:08
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

1. Is there a build number associated to a portlet assigned by the service builder? Where can we find the current build number?

2. How do you log events in a portlet? Do I need to configure Log4J for every portlet or is there a common place where one can configure Log4J so that all Liferay portlets can use logging API?

3.How will you implement i18n in a portal application? What if you want the user to choose his language preference?

4. What are the various ways in which one can override the default behavior of Liferay?

5. The JSPPortlet.java extends the MVCPortlet.java class. What purpose does MVCPortlet.java fulfill?

6. How do you perform Junit tests on your portlet? How do tackle the dependency on the MVCPortlet.java?

Pls Do answer with respective question.....
David H Nebinger
RE: List Of Question
17 de Abril de 2012 08:00
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7250

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

Subhash Pavuskar:
1. Is there a build number associated to a portlet assigned by the service builder? Where can we find the current build number?


<plugin>/docroot/WEB-INF/src/service.properties, not normally exposed or visible to external entities.

2. How do you log events in a portlet? Do I need to configure Log4J for every portlet or is there a common place where one can configure Log4J so that all Liferay portlets can use logging API?


If you leverage the com.liferay.portal.kernel.log.LogFactoryUtil class for logger creation, you can then use the logging portion of the server control panel to enable/disable logging, define levels, etc.

3.How will you implement i18n in a portal application? What if you want the user to choose his language preference?


Same way as you do with any other java application - you use resource bundles. Many frameworks have different methods for accessing the resource bundles, but they all have them.

4. What are the various ways in which one can override the default behavior of Liferay?


Seriously? Try reading some of the developer doco. We're not here to teach you the basics, you're expected to have done some of the legwork on your own.

5. The JSPPortlet.java extends the MVCPortlet.java class. What purpose does MVCPortlet.java fulfill?


Um, the whole Model/View/Controller design pattern maybe?

6. How do you perform Junit tests on your portlet? How do tackle the dependency on the MVCPortlet.java?


Normally you do not do junit testing on portlets themselves, just the underlying business logic. Portlet testing would be done by a regular web application test framework because a portlet needs the whole portal context.
Subhash Pavuskar
RE: List Of Question
22 de Abril de 2012 21:38
Resposta

Subhash Pavuskar

Ranking: Regular Member

Mensagens: 234

Data de entrada: 12 de Março de 2012

Mensagens recentes

Thanks David H Nebinger for valuable reply !!
sheela mk
RE: List Of Question
18 de Fevereiro de 2013 23:21
Resposta

sheela mk

Ranking: Regular Member

Mensagens: 111

Data de entrada: 16 de Fevereiro de 2012

Mensagens recentes

David H Nebinger:
Subhash Pavuskar:


4. What are the various ways in which one can override the default behavior of Liferay?


One way..Which is easiest way is using portal-ext.properties file..can override default bevaviour of Liferay.

Using Hooks PlugIn and Using Ext..PlugIn..

5. The JSPPortlet.java extends the MVCPortlet.java class. What purpose does MVCPortlet.java fulfill?


[
Um, the whole Model/View/Controller design pattern maybe?


Umm..We can add our own methods(custom methods)..those methods should be configured in ur jsp..