The following screenshot shows the simple UI of the portlet:
As visible in the screenshot the form has a field for the search term, the page of the results and the search language.
The portlet works in virtual Portals as well as for anonymous searches.
I tested it in several browsers - Firefox 37, Chrome 41, Internet Explorer 11, Safari 5.1.7 for Windows.
Download the code from here:
As always please note the legal disclaimer for the sample code:
DISCLAIMER OF WARRANTIES:
The following [enclosed] code is sample code created by IBM Corporation.
This sample code is provided to you solely for the purpose of assisting
you in the development of your applications.
The code is provided "AS IS", without warranty of any kind. IBM shall
not be liable for any damages arising out of your use of the sample code,
even if they have been advised of the possibility of such damages.