DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23136>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23136

When overriding DatabaseBrowserAction, users are unable to customize

           Summary: When overriding DatabaseBrowserAction, users are unable
                    to customize
           Product: Jetspeed
           Version: 1.4b4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Portlets
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to