Forums

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
Answer

Shivam Aggarwal

Rank: Junior Member

Posts: 75

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%>">
<liferay-ui:search-container-results>
results="<%= hits.toList() %>"
total="<%= hits.getLength() %>"
</liferay-ui:search-container-results>

<liferay-ui:search-container-row
className="com.liferay.portal.kernel.search.Document"
escapedModel="<%= false %>"
keyProperty="UID"
modelVar="document"
stringKey="<%=true %>"
>

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

</liferay-ui:search-container-row>

</liferay-ui:search-container>

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