. Full summary screen added to Create Web Project wizard

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-11-29 12:44:15 +00:00
parent fc2b03a09d
commit b6049d4b9e
5 changed files with 117 additions and 6 deletions

View File

@@ -818,6 +818,7 @@ website_dnsname=DNS name
validation_invalid_dns_name=Invalid website DNS name, a minimum of 2 alpha-numeric characters are accepted. validation_invalid_dns_name=Invalid website DNS name, a minimum of 2 alpha-numeric characters are accepted.
website_webapp=Default Webapp website_webapp=Default Webapp
website_selected_forms=Selected Web Content Forms website_selected_forms=Selected Web Content Forms
website_web_content_forms=Web Content Forms
website_save_location=Save Location website_save_location=Save Location
website_save_location_info=Use the following pattern when saving content website_save_location_info=Use the following pattern when saving content
website_filename_pattern=Filename pattern website_filename_pattern=Filename pattern

View File

@@ -40,7 +40,7 @@
instruction-id="default_instruction" /> instruction-id="default_instruction" />
</step> </step>
<step name="summary" title-id="summary" description-id="summary_step_description"> <step name="summary" title-id="summary" description-id="summary_step_description">
<page path="/jsp/wizard/summary.jsp" <page path="/jsp/wcm/create-website-wizard/summary.jsp"
title-id="summary" title-id="summary"
description-id="summary_desc" description-id="summary_desc"
instruction-id="create_website_finish_instruction" /> instruction-id="create_website_finish_instruction" />

View File

@@ -441,7 +441,6 @@ public class CreateWebsiteWizard extends BaseWizardBean
public String getSummary() public String getSummary()
{ {
FacesContext fc = FacesContext.getCurrentInstance(); FacesContext fc = FacesContext.getCurrentInstance();
ResourceBundle bundle = Application.getBundle(fc);
// build a summary section to list the invited users and there roles // build a summary section to list the invited users and there roles
StringBuilder buf = new StringBuilder(128); StringBuilder buf = new StringBuilder(128);
@@ -465,10 +464,8 @@ public class CreateWebsiteWizard extends BaseWizardBean
} }
return buildSummary( return buildSummary(
new String[] {bundle.getString(MSG_NAME), new String[] {Application.getMessage(fc, MSG_USERROLES)},
bundle.getString(MSG_DESCRIPTION), new String[] {buf.toString()});
bundle.getString(MSG_USERROLES)},
new String[] {this.name, this.description, buf.toString()});
} }
@@ -489,6 +486,14 @@ public class CreateWebsiteWizard extends BaseWizardBean
return this.formsDataModel; return this.formsDataModel;
} }
/**
* @return the List of selected and configured Form objects (for summary screen)
*/
public List<FormWrapper> getForms()
{
return this.forms;
}
/** /**
* @param formsDataModel JSF data model for the Form templates * @param formsDataModel JSF data model for the Form templates
@@ -627,6 +632,14 @@ public class CreateWebsiteWizard extends BaseWizardBean
this.workflowsDataModel = workflowsDataModel; this.workflowsDataModel = workflowsDataModel;
} }
/**
* @return the list of workflows (for the summary screen)
*/
public List<WorkflowWrapper> getWorkflows()
{
return this.workflows;
}
/** /**
* @return List of UI items to represent the available Workflows for all websites * @return List of UI items to represent the available Workflows for all websites
*/ */

View File

@@ -20,6 +20,7 @@
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %> <%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %> <%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ page isELIgnored="false" %> <%@ page isELIgnored="false" %>
<script type="text/javascript"> <script type="text/javascript">
window.onload = function() { document.getElementById("wizard:finish-button").focus(); } window.onload = function() { document.getElementById("wizard:finish-button").focus(); }
</script> </script>

View File

@@ -0,0 +1,96 @@
<%--
Copyright (C) 2005 Alfresco, Inc.
Licensed under the Mozilla Public License version 1.1
with a permitted attribution clause. You may obtain a
copy of the License at
http://www.alfresco.org/legal/license.txt
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific
language governing permissions and limitations under the
License.
--%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ page isELIgnored="false" %>
<script type="text/javascript">
window.onload = function() { document.getElementById("wizard:finish-button").focus(); }
</script>
<h:panelGrid columns="1" cellpadding="2" style="padding-top:4px;padding-bottom:4px;"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value="&nbsp;#{msg.general_properties}" escape="false" />
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="3" cellspacing="3" border="0" style="margin-left:16px" styleClass="summary">
<h:outputText value="#{msg.name}:" styleClass="mainSubTitle" />
<h:outputText value="#{WizardManager.bean.name}"/>
<h:outputText value="#{msg.website_dnsname}:" styleClass="mainSubTitle" />
<h:outputText value="#{WizardManager.bean.dnsName}"/>
<h:outputText value="#{msg.website_webapp}:" styleClass="mainSubTitle" />
<h:outputText value="#{WizardManager.bean.webapp}"/>
<h:outputText value="#{msg.title}:" styleClass="mainSubTitle" />
<h:outputText value="#{WizardManager.bean.title}"/>
<h:outputText value="#{msg.description}:" styleClass="mainSubTitle" />
<h:outputText value="#{WizardManager.bean.description}"/>
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" style="padding-top:16px;padding-bottom:4px;"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value="&nbsp;#{msg.website_web_content_forms}" escape="false" />
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="3" cellspacing="3" border="0" style="margin-left:16px" styleClass="summary">
<c:forEach items="${WizardManager.bean.forms}" var="r">
<h:outputText value="#{msg.name}:" styleClass="mainSubTitle" />
<f:verbatim>${r.name}</f:verbatim>
<h:outputText value="#{msg.title}:" styleClass="mainSubTitle" />
<f:verbatim>${r.title}</f:verbatim>
<h:outputText value="#{msg.website_filename_pattern}:" styleClass="mainSubTitle" />
<f:verbatim>${r.filenamePattern}</f:verbatim>
<h:outputText value="#{msg.workflow}:" styleClass="mainSubTitle" />
<c:if test="${r.workflow != null}">
<f:verbatim>${r.workflow.name}</f:verbatim>
</c:if>
<c:if test="${r.workflow == null}">
<f:verbatim>${msg.none}</f:verbatim>
</c:if>
<f:verbatim />
<f:verbatim />
</c:forEach>
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" style="padding-top:16px;padding-bottom:4px;"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value="&nbsp;#{msg.website_selected_workflows}" escape="false" />
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="3" cellspacing="3" border="0" style="margin-left:16px" styleClass="summary">
<c:forEach items="${WizardManager.bean.workflows}" var="r">
<h:outputText value="#{msg.name}:" styleClass="mainSubTitle" />
<f:verbatim>${r.name}</f:verbatim>
<h:outputText value="#{msg.title}:" styleClass="mainSubTitle" />
<f:verbatim>${r.title}</f:verbatim>
<h:outputText value="#{msg.website_filename_pattern}:" styleClass="mainSubTitle" />
<f:verbatim>${r.filenamePattern}</f:verbatim>
<f:verbatim />
<f:verbatim />
</c:forEach>
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" style="padding-top:16px"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value="&nbsp;#{msg.create_website_summary_users}" escape="false" />
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="3" cellspacing="3" border="0" style="margin-left:12px">
<h:outputText value="#{WizardManager.bean.summary}" escape="false" />
</h:panelGrid>