• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Liferay

 
Tapan Thakkar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends ...

i am creating a liferay portlet...in which i am providing a search facility. so when user enter value1 + value2 then it will retrieve a record with these two values.

i don't know how to perform this as it uses hibernate to retrieve data.

please help.

thank you...
 
Greg Charles
Sheriff
Posts: 2989
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question isn't really about Liferay, but about SQL or the Hibernate version of it HQL, or maybe even the JPA QL. In any case, your query will probably look something like



That will match records in "table" where "tag_field" is either value1 or value2. Is that what you want to do?
 
Tapan Thakkar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Greg Charles for reply...

i am new to liferay so i don't know how to write custom query to liferay....i have created a finder method for each column using service builder but it search only in one particular column.....

i am creating Liferay plugin portlet...

so if possible please tell me how to write a custom query in liferay plugin portlet..

so it will also help me to solve my other problems related to database........


thank you.....
 
Tapan Thakkar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys...


how to add a link in liferay portlet using search container ..so that user can download a file using that link...

reply as soon as possible..

thank you..
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tapan Thakkar wrote:
reply as soon as possible..




Patience please! In a volunteer driven forum, asking for immediate replies is going to have the opposite effect.
 
Tapan Thakkar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends..

i have created a plugin portlet and i am getting this error in this when i start my server...

error says


ERROR [PortletBeanLocatorUtil:49] BeanLocator is null
12:06:46,940 WARN [RequestProcessor:528] Unhandled Exception thrown: class com.liferay.portal.kernel.bean.BeanLocatorException
Mar 16, 2010 12:06:46 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet PortletActionServlet threw exception
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:51)

and if possible please tell me something about BeanLocator.
 
hs abc
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try in web.xml:



Tapan Thakkar wrote:hello friends..

i have created a plugin portlet and i am getting this error in this when i start my server...

error says


ERROR [PortletBeanLocatorUtil:49] BeanLocator is null
12:06:46,940 WARN [RequestProcessor:528] Unhandled Exception thrown: class com.liferay.portal.kernel.bean.BeanLocatorException
Mar 16, 2010 12:06:46 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet PortletActionServlet threw exception
com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator has not been set
at com.liferay.portal.kernel.bean.PortletBeanLocatorUtil.locate(PortletBeanLocatorUtil.java:51)

and if possible please tell me something about BeanLocator.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic