mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Bug fix on Forms page of Create Web Project wizard - "Workflow not configured" warning wasn't displaying
. WCM ContentReviewer bug fix - role can no longer seem Forms (as they cannot create - they can only edit existing items) . Submit dialog bug fix - can now press OK after entering workflow config when the dialog previous displayed an error git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4830 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -771,8 +771,6 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
|||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
// Inner classes
|
// Inner classes
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper class for a configurable template Form instance
|
* Wrapper class for a configurable template Form instance
|
||||||
*/
|
*/
|
||||||
@@ -905,7 +903,6 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to represent a single configured Presentation Template instance
|
* Class to represent a single configured Presentation Template instance
|
||||||
@@ -972,7 +969,6 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class to represent a single configured Workflow instance
|
* Class to represent a single configured Workflow instance
|
||||||
@@ -1074,7 +1070,6 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
public class UserWrapper
|
public class UserWrapper
|
||||||
{
|
{
|
||||||
@@ -1104,6 +1099,4 @@ public class CreateWebsiteWizard extends BaseWizardBean
|
|||||||
public String getName() { return this.name; }
|
public String getName() { return this.name; }
|
||||||
public String getRole() { return this.role; }
|
public String getRole() { return this.role; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
}
|
}
|
||||||
|
@@ -256,6 +256,8 @@ public class SubmitDialog extends BaseDialogBean
|
|||||||
// create error msg for display in dialog - the user must configure the workflow params
|
// create error msg for display in dialog - the user must configure the workflow params
|
||||||
Utils.addErrorMessage(Application.getMessage(context, MSG_ERR_WORKFLOW_CONFIG));
|
Utils.addErrorMessage(Application.getMessage(context, MSG_ERR_WORKFLOW_CONFIG));
|
||||||
outcome = null;
|
outcome = null;
|
||||||
|
// set the isFinished flag to allow the dialog to be finished again after the error
|
||||||
|
isFinished = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@@ -261,6 +261,7 @@ public class UIUserSandboxes extends SelfRenderingComponent
|
|||||||
ResourceBundle bundle = Application.getBundle(context);
|
ResourceBundle bundle = Application.getBundle(context);
|
||||||
AVMService avmService = getAVMService(context);
|
AVMService avmService = getAVMService(context);
|
||||||
NodeService nodeService = getNodeService(context);
|
NodeService nodeService = getNodeService(context);
|
||||||
|
PermissionService permissionService = getPermissionService(context);
|
||||||
UserTransaction tx = null;
|
UserTransaction tx = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -391,25 +392,31 @@ public class UIUserSandboxes extends SelfRenderingComponent
|
|||||||
out.write("</td></tr>");
|
out.write("</td></tr>");
|
||||||
|
|
||||||
// content forms panel
|
// content forms panel
|
||||||
out.write("<tr style='padding-top:4px'><td></td><td colspan=2>");
|
if (permissionService.hasPermission(
|
||||||
panelImage = WebResources.IMAGE_COLLAPSED;
|
AVMNodeConverter.ToNodeRef(-1, AVMConstants.buildSandboxRootPath(mainStore)),
|
||||||
if (this.expandedPanels.contains(username + PANEL_FORMS))
|
PermissionService.ADD_CHILDREN) == AccessStatus.ALLOWED)
|
||||||
{
|
{
|
||||||
panelImage = WebResources.IMAGE_EXPANDED;
|
out.write("<tr style='padding-top:4px'><td></td><td colspan=2>");
|
||||||
|
panelImage = WebResources.IMAGE_COLLAPSED;
|
||||||
|
if (this.expandedPanels.contains(username + PANEL_FORMS))
|
||||||
|
{
|
||||||
|
panelImage = WebResources.IMAGE_EXPANDED;
|
||||||
|
}
|
||||||
|
out.write(Utils.buildImageTag(context, panelImage, 11, 11, "",
|
||||||
|
Utils.generateFormSubmit(context, this, getClientId(context) + PANEL_FORMS, username + PANEL_FORMS)));
|
||||||
|
out.write(" <b>");
|
||||||
|
out.write(bundle.getString(MSG_CONTENT_FORMS));
|
||||||
|
out.write("</b>");
|
||||||
|
if (this.expandedPanels.contains(username + PANEL_FORMS))
|
||||||
|
{
|
||||||
|
out.write("<div style='padding:2px'></div>");
|
||||||
|
|
||||||
|
// list the content forms for this sandbox user
|
||||||
|
renderContentForms(context, out, websiteRef, username, storeRoot);
|
||||||
|
}
|
||||||
|
out.write("</td></tr>");
|
||||||
}
|
}
|
||||||
out.write(Utils.buildImageTag(context, panelImage, 11, 11, "",
|
out.write("</table>");
|
||||||
Utils.generateFormSubmit(context, this, getClientId(context) + PANEL_FORMS, username + PANEL_FORMS)));
|
|
||||||
out.write(" <b>");
|
|
||||||
out.write(bundle.getString(MSG_CONTENT_FORMS));
|
|
||||||
out.write("</b>");
|
|
||||||
if (this.expandedPanels.contains(username + PANEL_FORMS))
|
|
||||||
{
|
|
||||||
out.write("<div style='padding:2px'></div>");
|
|
||||||
|
|
||||||
// list the content forms for this sandbox user
|
|
||||||
renderContentForms(context, out, websiteRef, username, storeRoot);
|
|
||||||
}
|
|
||||||
out.write("</td></tr></table>");
|
|
||||||
|
|
||||||
// end the outer panel for this sandbox
|
// end the outer panel for this sandbox
|
||||||
PanelGenerator.generatePanelEnd(out,
|
PanelGenerator.generatePanelEnd(out,
|
||||||
|
@@ -58,12 +58,12 @@
|
|||||||
<h:outputText rendered="#{!empty row.description}" value="#{row.description}" />
|
<h:outputText rendered="#{!empty row.description}" value="#{row.description}" />
|
||||||
|
|
||||||
<h:outputText value="#{msg.workflow}: " />
|
<h:outputText value="#{msg.workflow}: " />
|
||||||
<h:outputText rendered="#{row.workflow != null}" value="#{row.workflow.title}" />
|
<h:panelGroup rendered="#{row.workflow != null}">
|
||||||
<h:panelGroup rendered="#{row.workflow == null}">
|
<h:outputText value="#{row.workflow.title}" />
|
||||||
<h:outputText value="#{msg.workflow_not_set}" />
|
|
||||||
<h:graphicImage url="/images/icons/warning.gif" style="padding:2px" width="16" height="16"
|
<h:graphicImage url="/images/icons/warning.gif" style="padding:2px" width="16" height="16"
|
||||||
rendered="#{row.workflow != null && row.workflow.params == null}" title="#{msg.workflow_not_configured}" />
|
rendered="#{row.workflow.params == null}" title="#{msg.workflow_not_configured}" />
|
||||||
</h:panelGroup>
|
</h:panelGroup>
|
||||||
|
<h:outputText rendered="#{row.workflow == null}" value="#{msg.workflow_not_set}" />
|
||||||
|
|
||||||
<h:outputText value="#{msg.output_path_pattern}: " />
|
<h:outputText value="#{msg.output_path_pattern}: " />
|
||||||
<h:outputText value="#{row.outputPathPattern}" />
|
<h:outputText value="#{row.outputPathPattern}" />
|
||||||
|
Reference in New Issue
Block a user