|
Replies:
5
-
Pages:
1
-
Last Post:
Jun 14, 2010 9:02 AM
by: GavinMeyers
|
|
|
Posts:
12
From:
Bangalore
Registered:
5/24/10
|
|
|
|
SearchContainer
Posted:
Jun 8, 2010 5:20 AM
|
|
Hi, I am into Chapter 6 now...and have implemented the SearchContainer as given in this chapter. But the pagination aspect isn't working..when I click on the next link or last link it takes me to a totally different page.
How do I make it work...has any tag been missed out
...and how do I add a checker element to every row....where can I find info about this??
Thanks and Regards Gavin
|
|
Posts:
12
From:
Bangalore
Registered:
5/24/10
|
|
|
|
Re: SearchContainer
Posted:
Jun 11, 2010 3:07 AM
in response to:
GavinMeyers
|
|
Can someone atleast reply to the above....If it is irrelevant, atleast mention that it is so. Please don't leave it unanswered like this.
Thanks for any replies
Gavin
|
|
Posts:
276
Registered:
2/26/10
|
|
|
|
Re: SearchContainer
Posted:
Jun 11, 2010 10:06 AM
in response to:
GavinMeyers
|
|
Hi Gavin,
Sorry it's taken me a bit to respond. I was at Liferay's east coast symposium and my laptop died the day before I had to leave.
I am not experiencing the problems you're describing. Can you paste in your source code so I can take a look at it?
Thanks!
--Rich
|
|
Posts:
12
From:
Bangalore
Registered:
5/24/10
|
|
|
|
Re: SearchContainer
Posted:
Jun 12, 2010 3:57 AM
in response to:
richard.sezov
|
|
Hi Richard, This is my code ...along the lines of the search container code in the book.
<liferay-ui:search-container emptyResultsMessage="there-are-no-certs" delta="10"> <liferay-ui:search-container-results> <% List<Certificate> tempResults = (List<Certificate>) request.getAttribute("searchResult"); List results = ListUtil.subList(tempResults, searchContainer.getStart(), searchContainer.getEnd()); int total = tempResults.size(); pageContext.setAttribute("results", results); pageContext.setAttribute("total", total); %> </liferay-ui:search-container-results>
<liferay-ui:search-container-row className="com.ext.portlet.OCS.model.Certificate" keyProperty="certificateId" modelVar="certificate">
<liferay-ui:search-container-column-text name="certificateName" property="certificateName" /> <liferay-ui:search-container-column-text name="Technology Area" property="technologyArea" /> <liferay-ui:search-container-column-text name="Customer" property="customer" /> <liferay-ui:search-container-column-text name="Certificate Type" property="programmingFlag" /> <liferay-ui:search-container-column-text name="Active" property="status" /> <liferay-ui:search-container-column-jsp path="/html/portlet/ext/OCS/certificate/certificateAction.jsp" align="right" /> </liferay-ui:search-container-row>
<liferay-ui:search-iterator />
</liferay-ui:search-container>
The Search Results are displayed correctly..But when I click on the next or prev links I go to a totally different page or I get a blank page.
Thanks Gavin
|
|
Posts:
276
Registered:
2/26/10
|
|
|
|
Re: SearchContainer
Posted:
Jun 14, 2010 8:53 AM
in response to:
GavinMeyers
|
|
Hi Gavin,
I'm not seeing anything with your code. I do have a couple more questions, though:
1. Are you doing this as a portlet plugin or in Ext? For Liferay 6, we won't be supporting portlets in Ext anymore.
2. Do you have any other portlets on the page? If so, can you test your portlet on a page alone?
Thanks!
--Rich
|
|
Posts:
12
From:
Bangalore
Registered:
5/24/10
|
|
|
|
Re: SearchContainer
Posted:
Jun 14, 2010 9:02 AM
in response to:
richard.sezov
|
|
HI Richard, Yes I am using this in the ext environment (converted to a ext-plugin using the script provided). Is it wrong to do so?
I also tried it out in the LR5.2.3 ext environment. I did not work there too.
I guess gotta research the SearchContainer a little more...
Thanks Gavin
|
|
|
Legend
|
|
Gold: 300
+
pts
|
|
Silver: 100
- 299
pts
|
|
Bronze: 25
- 99
pts
|
|
Manning Author
|
|
Manning Staff
|
|