Unnecessarily setting af:form usesUpload=true a good idea
Does anybody know if setting the af:form usesUpload attribute to true regardless if we use an af:inputFile tag a good idea?
Why I ask:
We've set up a page template to be used by many applications. The template by default injects an af:form tag among others into an application page using the template. Our applications via the ADF libraries feature make use of bounded task flows based on page fragments within regions in our application pages, that in turn use the page template.
The functionality of each bounded task flow is really up to the bounded task flow itself. Conceivably the bounded task flow may include a page fragment that uses the af:inputFile tag. In order to support the af:inputFile component the parent af:form tag must have it's usesUpload attribute set to true. However in the case of the page fragment the form tag doesn't occur in the fragment but rather back in the page template that includes the region containing the bounded task flow. As such it appears it becomes necessary in order for the page template/region to support different bounded task flow uses cases which may/may not use af:inputFile, that we must set the af:form usesUpload =true regardless.
But my concern is, there will also be bounded task flows that don't use the af:inputFile tag. So if we set usesUpload=true unnecessarily will we be caught out? Is it a bad idea to set it true when you're not uploading files?
Cheers,
CM.