fileItem null pointer exception

Hi.

I’ve got a serious issue, and can’t find any solution!

Using CAF on Designer 7.1.2 fix 8, I’m trying to develop a task that uploads a file to the MWS portal.
On my page interface, I’m using a “file input” control, binded to a “fileItem” object.
When I try to check on the content of the file (for example print the file name and size in the logs), I get a null pointer exception, which means the file item is never instanciated.

Have anyone ever had the same issue (and most important, does anyone have a solution for me? )

Thanks in advance.

Could you please have a look at this article: http://tech.forums.softwareag.com/viewtopic.php?t=23225&start=0&postdays=0&postorder=asc&highlight=&sid=06d5b639b934ee199be9f24badcf6a62

I realize it is against the 8.x version of CAF/MWS, but i don’t think the apis have changed. I believe that the same technique should allow you to get information about the uploaded file in your portlet actions.

Regards,
–mark

I found my mistake. The submit button of my form was an asynchronous one. I changed to a command button and that’s it.