diff --git a/source/java/org/alfresco/web/bean/wcm/LinkValidationReportDialog.java b/source/java/org/alfresco/web/bean/wcm/LinkValidationReportDialog.java index 106f6de80c..cb97a6fc9a 100644 --- a/source/java/org/alfresco/web/bean/wcm/LinkValidationReportDialog.java +++ b/source/java/org/alfresco/web/bean/wcm/LinkValidationReportDialog.java @@ -76,7 +76,6 @@ public class LinkValidationReportDialog extends BaseDialogBean Map params = new HashMap(1); params.put("store", this.store); - params.put("rerun", "true"); Application.getDialogManager().setupParameters(params); return AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME + @@ -110,6 +109,24 @@ public class LinkValidationReportDialog extends BaseDialogBean "browseWebsite"; } + // ------------------------------------------------------------------------------ + // Event handlers + + public String updateStatus() + { + if (logger.isDebugEnabled()) + logger.debug("Updating status for link validation report for store '" + store + "'"); + + Map params = new HashMap(1); + params.put("store", this.store); + params.put("rerun", "true"); + Application.getDialogManager().setupParameters(params); + + return AlfrescoNavigationHandler.CLOSE_DIALOG_OUTCOME + + AlfrescoNavigationHandler.OUTCOME_SEPARATOR + + "dialog:runLinkValidation"; + } + // ------------------------------------------------------------------------------ // Bean getters and setters diff --git a/source/java/org/alfresco/web/ui/wcm/component/UILinkValidationBrokenForms.java b/source/java/org/alfresco/web/ui/wcm/component/UILinkValidationBrokenForms.java index 30c72a5eb3..e21feecb68 100644 --- a/source/java/org/alfresco/web/ui/wcm/component/UILinkValidationBrokenForms.java +++ b/source/java/org/alfresco/web/ui/wcm/component/UILinkValidationBrokenForms.java @@ -78,6 +78,10 @@ public class UILinkValidationBrokenForms extends AbstractLinkValidationReportCom if (logger.isDebugEnabled()) logger.debug("Rendering broken forms from state object: " + linkState); + + out.write("\n"); // render the list of broken files and their contained links out.write("
"); @@ -115,6 +119,14 @@ public class UILinkValidationBrokenForms extends AbstractLinkValidationReportCom String formName = formNamePath[0]; String formPath = formNamePath[1]; + // setup the context for the actions + AVMNodeDescriptor desc = avmService.lookup(-1, file); + AVMNode node = new AVMNode(desc); + actions.setContext(node); + + // generate a unique id for this form + String formId = this.getId() + "_" + desc.getId(); + // render the row with the appropriate background style out.write(""); out.write(formPath); - out.write("
"); + out.write("
"); out.write(Application.getMessage(context, "generated_files")); - out.write(":
"); + out.write(":