I have been having an issue with customizing the 'DatabaseBrowserTest'
portlet and wondered if anyone has any ideas on a resolution or if it is a
bug. As-is, it works fine for me, however, when I try to specify a new
class for the 'action' parameter I am unable to customize it as a user.
Essentially it looks like when I click on the customize icon, it loads the
'template' parameter instead of the 'customizeTemplate' parameter.
Since this seemed like strange behavior, at first I thought it may have been
something I was doing in my action class, but now I'm stumped why it is
happening. I can consistently recreate the situation with these steps:
1.) Create a class (content doesn't seem to matter, empty is fine):
public class TestDbAction extends DatabaseBrowserAction {}
2.) Copy the 'DatabaseBrowserTest' portlet-entry from the demo-portlets.xreg
3.) Specify a new 'action' parameter matching the class created like so:
<parameter name="action" value="portlets.browser.TestDbAction"
hidden="true"/>
4.) Add the portlet in a psml and run, the portlet retrieves data, and
behaves normally.
6.) When you click the customize icon, a blank DatabaseBrowserTest template
is shown (w/o the sql query run) instead of the customize template.
If I change the Action parameter back to the original action class
(portlets.browser.DatabaseBrowserAction), it pulls up the customize template
fine.
Any ideas?
Thanks-
Josh