Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Shivam Aggarwal
Search container column jsp not working in liferay
December 24, 2012 11:54 PM

Shivam Aggarwal

Rank: Regular Member

Posts: 121

Join Date: January 17, 2012

Recent Posts

The Search Container column jsp is not working in liferay.

I am trying to include a jsp within Liferay Search-container of type Document, for displaying search results for a given string.

Below is the snippet of code displaying search-container in the page:

<liferay-ui:search-container searchContainer="<%=tagsearchContainer%>">
results="<%= hits.toList() %>"
total="<%= hits.getLength() %>"

escapedModel="<%= false %>"
stringKey="<%=true %>"

<liferay-ui:search-container-column-jsp path="/html/search_tag_result_form.jsp"/>



The search container only displays all fields from the document,all mashed up,without any errors.It does not display the content from the jsp(actually does not include it,and does not throw even if wrong path for jsp is there).Mashed up results are displayed from container-row .
The search container is only displaying values of results and total
Even if I add <liferay-ui:search-container-column-text value='<%=document.get(Field.ENTRY_CLASS_NAME)%>' />,nothing shows up