[jboss-user] [JBoss Portal] - Re: Can't get Seam application to work as a Portlet

javajedi do-not-reply at jboss.com
Mon Jul 24 20:38:09 EDT 2006


BTW, this is my web page:

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  | 		xmlns:h="http://java.sun.com/jsf/html"
  | 		xmlns:t="http://myfaces.apache.org/tomahawk"
  | 		xmlns:ui="http://java.sun.com/jsf/facelets">
  | 
  | 	<h:form id="importForm" enctype="multipart/form-data">
  | 		<t:inputFileUpload storage="file" value="#{uploadBean.file}"/>
  | 		<br/>
  | 		<h:commandButton value="Submit" action="#{perfImportUploadAction.upload}"/>
  | 		<h:messages/>
  | 	</h:form>
  | 
  | </ui:composition>

and these are the referenced components:

@Name("uploadBean")
  | public class UploadBackingBean {
  | 	private UploadedFile _file;
  | 	public void setFile(UploadedFile file) {
  | 		_file = file;
  | 	}
  | 	@NotNull
  | 	public UploadedFile getFile() {
  | 		return _file;
  | 	}
  | }

@Stateless
  | @Name("perfImportUploadAction")
  | public class PerfImportUploadActionBean implements PerfImportUploadAction {
  | 
  | 	@In
  | 	private UploadBackingBean uploadBean;
  | 
  | 	@Begin(join=true)
  | 	public String upload() {
  | ...

public interface PerfImportUploadAction {
  | 	String upload();
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960556#3960556

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960556



More information about the jboss-user mailing list