Message Boards
SearchContainer: Does the "Card" view really require a RowChecker?
Andre Kreienbring, modified 3 Years ago.
SearchContainer: Does the "Card" view really require a RowChecker?
Regular Member Posts: 152 Join Date: 12/18/06 Recent Posts
I get an error if I switch to the card view (icon) and the the SearchContainer has no RowChecker :-(
java.lang.NullPointerException
at com.liferay.frontend.taglib.servlet.taglib.CardTag.setRowChecker(CardTag.java:177)
The "list" and "descriptive" view have no problem when there's no RowChecker. But the "icon" view throws that error if I don't do: RowChecker rowChecker = new EmptyOnClickRowChecker(liferayPortletResponse);
SearchContainer.setRowChecker(rowChecker);
Maybe there's some other setting I'm not aware of. But if the card view really requires a RowChecker set on the search container, then I would consider it as an issue.
Andre Kreienbring, modified 3 Years ago.
RE: SearchContainer: Does the "Card" view really require a RowChecker?
Regular Member Posts: 152 Join Date: 12/18/06 Recent Posts
OK, my fault!
That happens if you add the attribute to a card like
and then not set it (grrr)
That happens if you add the attribute to a card like
rowChecker="<%= searchContainer.getRowChecker() %>"
and then not set it (grrr)