• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Liferay

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Sheriff
Posts: 3064
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
This is my favorite show. And this is my favorite tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic