Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9043715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:47:42+00:00 2026-06-16T10:47:42+00:00

i have a tabview with 2 tabs. And i wanna use two uploadFile components

  • 0

i have a tabview with 2 tabs. And i wanna use two uploadFile components for each tab. I use ‘advanced’ mode for uploadFile component. When i try to upload invalid file (there can be invalid file size error or invalid file type error) for the first tab uploadFile component, the error message is shown for both tabs uploadFile components. I use PF 3.4.1. In pf_user_guide_3.4, “Multiple advanced uploaders in same form is not supported at the moment” is written. Is my issue related to this note? Is there anyone has an idea about this situation?

    main.xhtml
    ..........
    <h:form id="formTabView">
       <p:tabView id="tvSample" activeIndex="#{sampleBean.selectedTab}" cache="false">         
         <p:tab id="tabSubMerchants" title="#{messagebundle.submerc_tab_submerch}">
            <ui:include src="tabsubmerchantssubmtab.xhtml" />
         </p:tab>
        <p:tab id="tabServices" title="#{messagebundle.submerc_tab_svc}">
            <ui:include src="tabsubmerchantssevicestab.xhtml" />
        </p:tab>
      </p:tabView>
    </h:form>
    ...........

    tabsubmerchantssubmtab.xhtml
    ...........
    <h:form id="formTab1Files">
       <p:fileUpload id="fuSubMerchant"
         fileUploadListener="#{fileOperations.uploadSubMerchantFile}"
         sizeLimit="2097152" multiple="true"
         allowTypes="/(\.|\/)(gif|jpeg|png|txt|pdf|doc|docx)$/"
         label="#{messagebundle.fileupload_upload}" auto="true"              
         invalidFileMessage="#{messagebundle.submerc_error_011}"
         invalidSizeMessage="#{messagebundle.submerc_error_012}">
       </p:fileUpload>
    </h:form>      
    ..............



     tabsubmerchantssevicestab.xhtml
     ...................
     <h:form id="formSvcFiles">
        <p:fileUpload id="fuService" 
           fileUploadListener="#{fileOperations.uploadServiceFile}"
           sizeLimit="2097152" multiple="true"
           allowTypes="/(\.|\/)(gif|jpeg|png|txt|pdf|doc|docx)$/"
           label="#{messagebundle.fileupload_upload}" auto="true"
           invalidFileMessage="#{messagebundle.submerc_error_011}"
           invalidSizeMessage="#{messagebundle.submerc_error_012}">
        </p:fileUpload>
     </h:form>         

…………………

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:47:44+00:00Added an answer on June 16, 2026 at 10:47 am

    You have one form, inside which are two more forms. I think you should remove parent form, and leave just forms inside tabs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one tabview which contain two different tab(subject and chapter) and i need
I have a Tabview with 3 tabs (each having their own activity). I have
I currently have a tabview with 3 tabs. 1 tab loads an ActivityGroup which
I am using the p:tabView component inside of which I have multiple p:tab. One
I have two tabs with their own respective views. The tabview itself is in
I have a tab bar controller and a bunch of the same tabs. Each
To set the scene I have: A Tab View Controller with 2 tabs Each
I have a tab view which has a listview in one of these tabs.
I have a flash app embedded in a yui TabView tab div, the problem
I currently have a tab layout with 2 tabs, one tab with a list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.