outList.setAttribute("embedded", "Y");
}
outList.setAttribute("commandStyle", listing.getCommandStyle());
CommandInfo viewCommand = listing.getCommand(ListingDescriptor.COMMAND_VIEW);
if (viewCommand != null && viewCommand.checkPermission(request))
{
Command cmd = viewCommand.createCommand(request, response, context);
cmd.setName(outList.getName() + "CmdEdit");
cmd.setLabel(viewCommand.getLabel() != null ? viewCommand.getLabel() : "edit");