Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Behzad Gadimi
display terms search
March 3, 2013 6:04 AM
Answer

Behzad Gadimi

Rank: Junior Member

Posts: 31

Join Date: March 8, 2011

Recent Posts

Hi,
in order to search inside the search container rows, what I need ?

I look at enterprise admin example and I don't understand some of them,
what is searchContainer and displayTerms in here and what they do?

<%
BookSearch searchContainer = (BookSearch)request.getAttribute("liferay-ui:search:searchContainer");

BookDisplayTerms displayTerms = (BookDisplayTerms)searchContainer.getDisplayTerms();
%>

<span class="aui-search-bar lfr-display-terms-search">
<aui:input inlineField="<%= true %>" label="" name="<%= displayTerms.TITLE %>" size="30" type="text" value="<%= displayTerms.getTitle() %>" />

<aui:button type="submit" value="search" />
</span>
Hitoshi Ozawa
RE: display terms search
March 3, 2013 1:23 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Have you read the following wiki page?

http://www.liferay.com/community/wiki/-/wiki/Main/SearchContainer
Behzad Gadimi
RE: display terms search
March 3, 2013 2:06 PM
Answer

Behzad Gadimi

Rank: Junior Member

Posts: 31

Join Date: March 8, 2011

Recent Posts

yes,
but it doesn't say anything about the searchTerms,
what is it and where the h - - l did it come from?