Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.4b4
-
None
-
None
-
Operating System: Windows NT/2K
Platform: PC
-
23136
Description
As-is, the DatabaseBrowserAction works fine, 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.
David Taylor suggested this workaround, and it worked for me:
Just add the buildConfigureContext method to your action class (with the same
content as the DatabaseBrowserAction).