Primefaces tabview tabChange event fired after displaying tab

前端 未结 3 1190
南方客
南方客 2021-01-14 03:31

I am working on a project using Primefaces 3.5 & JSF2.1 (Mojarra)

I have created a primefaces wit

3条回答
  •  无人共我
    2021-01-14 04:08

    Well I think that its a primefaces BUG, I found a workaround which as the following

    1. Do not use a global form (form for the tabView itself) instead use a form for each tab (inside it that surround the datatable)

    2. You have to add a dummy tab to be the first one that must include a form which some static data or pre-loaded data inside

    Thats all,

    the problem was that the ajax request is inside the global form and it cause the datatables to get their data first before ajax request, the strange thing with Primefaces that if you do not add the first dummy tab it will always execute the first form inside the tabs and get its data and this will cause a problem

    regards ,

提交回复
热议问题