10-11-2007 08:40 AM
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="x"%>
<h:inputText id="title" value="#{MyBean.title}" />
<h:inputText id="description" value="#{MyBean.description}" />
<x:inputFileUpload id="file" value="#{MyBean.file}" storage="file"/>
<h:commandButton actionListener="#{MyBean.submit}" action="submit" value="submit" />
import org.apache.myfaces.custom.fileupload.UploadedFile;
public class MyBean {
private String title;
private String description;
private UploadedFile file;
public void submit(javax.faces.event.ActionEvent e)
{
// todo
}
public UploadedFile getFile() {
return file;
}
public void setFile(UploadedFile file) {
this.file = file;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}
10-15-2007 04:17 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.