I'm building a wizard. It has 3 steps. Persistence occurs for all my models after the completion of the 3rd step.
Each step has a number of forms. Each form is brought in dynamically from 3rd party jars. This works great so far. The exception to the rule is FileUploads - as these are only available for the initial submission. What would be the best way to maintain a handle on the file so that I can read the bytes in step 3. I am wary of the fileupload field being IClusterable, and of the bytes themselves being transient. Also, I do not have access to any functionality in the dynamic forms. They are purely used for updating a model object . Thoughts: In the outer form when it is submitted, visit each form for "enabled" fileuploads and write tmp files out. I do not want them floating around in memory. Find the inner forms modelobject, and update it with a reference to the file created. Is there a better way? Rgds Ned --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
