01-25-2008 06:02 AM
+————————————+ +————+
| 1. locate file to upload | | +—-+ |
| | | | OK | |
| Location: _______________ | | +—-+ |
| | | +——–+ |
| 2. Press Upload | | | Cancel | |
| | | +——–+ |
| +——+ | +————+
| |UPLOAD| |
| +——+ |
| |
| 3. Select Priority: |
| |
| +———–+-+ |
| | choice 1 |v| |
| +———–+-+ |
| |
+————————————+
+————————————+ +————+
| 1. locate file to upload | | +—-+ |
| | | | OK | |
| 2. Press Upload | | +—-+ |
| | | +——–+ |
| 3. Select Priority: | | | Cancel | |
| | | +——–+ |
| +———–+-+ | +————+
| | choice 1 |v| |
| +———–+-+ |
| |
| Location: _______________ |
| |
| +——+ |
| |UPLOAD| |
| +——+ |
| |
+————————————+
web-client-config-custom.xml
<alfresco-config>
<config>
<actions>
<action id="my_import">
<label>My Import</label>
<image>/images/icons/my_import.gif</image>
<action>dialog:myImport</action>
<action-listener>
#{BrowseBean.setupSpaceAction}
</action-listener>
<params>
<param name="id">#{actionContext.id}</param>
</params>
</action>
<!– Add action to more actions menu for each space –>
<action-group id="space_browse_menu">
<action idref="my_import" />
</action-group>
</actions>
<dialogs>
<dialog name="myImport"
page="/jsp/extension/my-import.jsp"
managed-bean="MyImportBean"
icon="/images/icons/my_import_large.gif"
title="My Import"
description="Custom Import" />
</dialogs>
</config>
</alfresco-config>
my-import.jsp
<%@ 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 buffer="32kb" contentType="text/html;charset=UTF-8"%>
<%@ page isELIgnored="true"%>
<!– Upload Form –>
<r:uploadForm>
<h:outputText value=" 1. Locate the file to upload<br><br>"
escape="false" />
<br>
<br>
File location:
<input style="margin-left:12px;" type="file" size="50"
name="alfFileInput" />
<br>
<br>
<h:outputText value=" 2. Click Upload<br><br>" escape="false" />
<br>
<br>
<input style="margin-left:12px;" type="submit" value="Upload" />
<br>
</r:uploadForm>
<!– END: Upload Form –>
<!– Priority –>
<h:form acceptcharset="UTF-8" id="import-priority">
<h:outputText
value=" 3. Choose desired priority for import operations<br>"
escape="false" />
<br>
<br>
<h:outputText value="<br> " escape="false"/>
<h:selectOneMenu value="#{DialogManager.bean.first}" id="Priority">
<f:selectItem itemValue="User" itemLabel="User" id="firstUser" />
<f:selectItem itemValue="Project" itemLabel="Project"
id="firstProject" />
</h:selectOneMenu>
<br>
<br>
</h:form>
<!– END: Priority –>
01-25-2008 09:43 AM
01-25-2008 10:14 AM
<!– Upload Form –>
<input style="margin-left:12px;" type="file" size="50"
name="alfFileInput" />
<!– END: Upload Form –>
<!– Priority –>
<h:selectOneMenu value="#{DialogManager.bean.first}"
onchange="javascript:changed('First')" id="First"
valueChangeListener="#{SemanticImportBean.firstChanged}">
<f:selectItem itemValue="User" itemLabel="User" id="firstUser" />
<f:selectItem itemValue="Project" itemLabel="Project"
id="firstProject" />
</h:selectOneMenu>
<!– END: Priority –>
<select id="dialog:dialog-body:Priority" name="dialog:dialog-body:Priority" size="1">
<option value="User" selected="selected">User</option>
<option value="Project">Project</option>
</select>
<!– Upload Form –>
<input style="margin-left:12px;" type="file" size="50"
name="alfFileInput" />
<!– END: Upload Form –>
<!– Priority –>
<!– END: Priority –>
01-29-2008 07:33 AM
<f:verbatim>
<input style="margin-left:12px;" type="file" size="50"
name="alfFileInput" />
</f:verbatim>
01-30-2008 10:52 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.