01-24-2006 11:22 AM
01-17-2008 09:52 AM
<%
boolean fileUploaded = false;
AddMarketingDocumentWizard wiz = (AddMarketingDocumentWizard)FacesHelper.getManagedBean(FacesContext.getCurrentInstance(), "AddMarketingDocumentWizard");
if (wiz != null && wiz.getFileName() != null){
fileUploaded = true;
}
%>
<%– load a bundle of properties with I18N strings –%>
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>
<f:loadBundle basename="alfresco.extension.webclient" var="swipemsg"/>
<script type="text/javascript" src="<%=request.getContextPath()%>/scripts/validation.js"> </script>
<a:errors message="#{msg.error_dialog}" styleClass="errorMessage" />
<%
if (fileUploaded)
{
PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellowInner", "#ffffcc");
out.write("<img alt='' align='absmiddle' src='");
out.write(request.getContextPath());
out.write("/images/icons/info_icon.gif' /> ");
out.write(wiz.getFileUploadSuccessMsg());
PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellowInner");
out.write("<div style='padding:2px;'></div>");
}
%>
<h:panelGrid columns="1" cellpadding="2" style="padding-top: 4px; padding-bottom: 4px;"
width="100%" rowClasses="wizardSectionHeading">
<h:outputText value=" #{msg.upload_content}" escape="false" />
</h:panelGrid>
<%– File upload formular –%>
<r:uploadForm>
<table>
<tr>
<td><h:outputText id="text1" value="1. #{msg.locate_content}"/></td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left:12px;" type="file" size="75" name="alfFileInput"/>
</td>
</tr>
<tr><td class="paddingRow"></td></tr>
<tr>
<td class="mainSubText" colspan="3">
2. <%=Application.getMessage(FacesContext.getCurrentInstance(), "click_upload")%>
</td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left:12px;" type="submit" value="<%=Application.getMessage(FacesContext.getCurrentInstance(), "upload")%>" />
</td>
</tr>
</table>
</r:uploadForm>
…
<form name='upload-form' acceptCharset='UTF-8' method='post' enctype='multipart/form-data' action='/alfresco/uploadFileServlet'>
<input type='hidden' name='return-page' value='/alfresco/faces/jsp/wizard/container.jsp'>
<table>
<tr>
<td></td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left:12px;" type="file" size="75" name="alfFileInput"/>
</td>
</tr>
<tr><td class="paddingRow"></td></tr>
<tr>
<td class="mainSubText" colspan="3">
2. Click upload
</td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left:12px;" type="submit" value="Upload" />
</td>
</tr>
</table>
</form>
…
…
<input name="return-page" value="/alfresco/faces/jsp/wizard/container.jsp" type="hidden">
<table>
<tbody><tr>
<td></td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left: 12px;" size="75" name="alfFileInput" type="file">
</td>
</tr>
<tr><td class="paddingRow"></td></tr>
<tr>
<td class="mainSubText" colspan="3">
2. Click upload
</td>
</tr>
<tr>
<td colspan="3">
<input style="margin-left: 12px;" value="Upload" type="submit">
</td>
</tr>
</tbody></table>
…
01-22-2008 08:32 AM
01-22-2008 08:43 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.