Hello,
I am new to Seam and run into a problem. I have a working application with a page containing a dataTable:
<rich:dataTable id="outputFileList"
var="_outputFile"
value="#{outputFileList.resultList}"
rendered="#{not empty outputFileList.resultList}">
Every line in the table has a link:
<s:link action="#{outputFileAction.downloadOutputFile(_outputFile)}"
value="Download"
propagation="none"
id="outputFileDownload"
rendered="#{empty from}">
</s:link>
</rich:column>
</rich:dataTable>
Obviously I have a backing bean OutputFileAction with a method downloadOutputFile:
public String downloadOutputFile(OutputFile outputFile) {
setOutputFile(outputFile);
String returnFlag = "IMATSuccessfull";
logger.info("****** start output file download - filename = " + outputFile.getFilename());
return returnFlag;
}
The method is called indeed, however the parameter outputFile is null.
Why is that?
The class has a field:
@In(create=true) OutputFileHome outputFileHome;
What is wrong or missing?
Thanks in advance for any suggestions.