On Thursday, September 11, 2003, at 02:53 PM, Josh Holding wrote:


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:


The buildConfigurContext method isn't being called by the action processor
Not sure why perhaps its because its protected and the action stuff is using reflection


Log it is a bug

Here is a temp solution, add this method to your action class (its directly lifted from DatabaseBrowserAction):


/**
* Subclasses should override this method if they wish to
* provide their own customization behavior.
* Default is to use Portal base customizer action
*/
protected void buildConfigureContext( VelocityPortlet portlet,
Context context,
RunData rundata )
{
try
{
super.buildConfigureContext( portlet, context, rundata);
}
catch (Exception ex)
{
Log.error(ex);
}
// context.put(SQL, getQueryString(portlet, rundata, context));
// context.put(WINDOW_SIZE, getParameterUsingFallback(portlet, rundata, WINDOW_SIZE, null));
// setTemplate(rundata, getParameterUsingFallback(portlet, rundata, CUSTOMIZE_TEMPLATE, null));
}


--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
+01 707 773-4646
+01 707 529 9194


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



Reply via email to