*/
public void execute(UIRequest request, UIResponse response) throws UIControllerException
{
try
{
ModelRequestWrapper wrappedRequest = new ModelRequestWrapper(request);
ModelResponseWrapper wrappedResponse = new ModelResponseWrapper(response);
readConfig();
String[] ids;
if (request.getParameter("_lpdeleteKeyName") != null)
{
keyName = StringTools.trim(request.getParameter("_lpdeleteKeyName"));
}
if (request.getParameter(keyName) == null)
{
ids = new String[0];
}
else if (request.getParameter(keyName) instanceof String)
{
ids = new String[]
{
(String) request.getParameter(keyName)
};
}
else if (request.getParameter(keyName) instanceof String[])
{
ids = (String[]) request.getParameter(keyName);
}
else
{
ids = new String[]
{
request.getParameter(keyName).toString()
};
}
PersistentFactory persistentManager = (PersistentFactory) wrappedRequest.getService(PersistentFactory.ROLE,
wrappedRequest.getDomain());
for (int i = 0; i < ids.length; ++i)
{
Persistent persistent = null;
Object bean = null;