*
The moose likes Other Java Products and Servers and the fly likes Liferay Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Liferay" Watch "Liferay" New topic
Author

Liferay

Tapan Thakkar
Greenhorn

Joined: Mar 09, 2010
Posts: 24
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

Joined: Oct 01, 2001
Posts: 2835
    
  11

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

Joined: Mar 09, 2010
Posts: 24
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

Joined: Mar 09, 2010
Posts: 24
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

Joined: Jul 20, 2005
Posts: 9930
    
159

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

Joined: Mar 09, 2010
Posts: 24
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

Joined: May 02, 2005
Posts: 6
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Liferay
 
Similar Threads
Silly problem: One user sees the information of another!
liferay installation
Speed of Liferay
Invoking a portlet
Liferay