[BZ 1081592] - Attempt to deploy a package to the resource from the
repository gives error

 This is a combination of 2 commits that were squashed toghether:

* [BZ 1099485] Fix JSF file upload popup for all upload locations

(cherry picked from commit 76f9e174ed62be4742f35a91bd3e9aa02934a81e)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>

* [BZ 1078510] - Make sure to use the "plain" pagination on "plain" jsf pages

This avoids the warning arising from the "non-plain" pagination trying to
access page elements not present on the plain pages.

(cherry picked from commit 3150c41379c2530a4ab50fd216fa891c0d78553d)
Signed-off-by: Jirka Kremser <jkremser@redhat.com>