What exactly is the behaviour you are looking for? immediate is true will run the validators immediately, basically jumping from the second fase of the lifecycle to the third of the lifecycle. This is meant to validate something important and skipping all the other validators when it is not correct. immediate=true is not meant to immediately start, in this example, the upload.
Ron On 11/4/07, NABA <[EMAIL PROTECTED]> wrote: > > Hi.. > I use: > Myfaces 1.1.5 > Tomahawk 1.1.5 > ajax4jsf 1.1.1 > I use the "t:inputFileUpload" in my jsp: > <t:inputFileUpload id="fileupload" value="#{MyBean.upFile}" > storage="file" /> > <h:commandButton id="uploadCB" value="Upload File" > action="#{MyBean.uploadFile}"/> > <h:message for="fileupload" showDetail="true" /> > > It works fine. > But when I set the immediate = true in the commandButton: > <h:commandButton id="uploadCB" value="Upload File" > action="#{MyBean.uploadFile}" immediate="true" /> > the upFile stay null (the set-method of upFile doesn't call ) and no > file can be uploaded. > Any Idea, where is the problem based?? Or any declaration for this > problem?? > And how can I solve this problem. I don't want, that when I upload the > File a validation starts!! > > thanks for help... > naba > > -- I reject your reality and substitute my own --- Adam Savage, the mythbusters