I have a view, with computed pager. I will hide the pager on search results.
The view has an computed limitation:
<xp:this.rows><![CDATA[#{javascript:if(requestScope.searchTerm != null & requestScope.searchTerm != "") {
return 4000;
}else{
return 10;
}}]]></xp:this.rows>
The display pager property has the following forumla:
if(requestScope.searchTerm != null & requestScope.searchTerm != “”) {
return false;
}else{
return true;
}
I get an error message if i get the search result:
Can’t find resource for bundle javax.faces.Messages, key de_DE
The strange behavior is the following…
If i switch the condition to:
if(requestScope.searchTerm != null & requestScope.searchTerm != “”) {
return true;
}else{
return false;
}
i will get the pager on the results page only - as expected (inverse to my demand). no error.
If i set it to “false”, i get no error.
If i set it to “true”, i will get an error at the search result page.
In summary: If i ever show the pager on the view with empty key, i always get an error if i provide a searchkey.
I have no idea…