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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to