0

dears,

My issue is that I have a page that has many command buttons, and the issue is that once a button is clicked and an action is invoked the other command buttons don't work again, even the one I clicked, it doesn't work anymore, it's like only one action is possible per refresh! when I refresh the page again the issue starts over.

I read on the internet that setting ajax to false would fix it but it messed up my page.

sample of one of my buttons:

<p:commandButton
  process="@this, name, selectedvalues"
  update="@form, myTable" value="ADD"
  action="#{ManageBean.add()}" oncomplete="PF('Dlg').close();">
</p:commandButton>

I use primefaces, and JSF ..

ChristophS
  • 598
  • 4
  • 23
Code des
  • 31
  • 3
  • Please don't post 'samples', post a [mcve]. Setting ajax to false is nit a solution but at most a bad workaround. – Kukeltje Jun 24 '18 at 08:01
  • my code is too long that why I posted the command button code. maybe it has something to do with it @Kukeltje – Code des Jun 24 '18 at 11:13
  • An [mcve] is abput reducing to the bare minimum that still produces the problem. It os a fundamental part of debugging. Please always do. I suspected the duplicate too but wanted to be sure. – Kukeltje Jun 24 '18 at 20:01
  • @Kukeltje duplicate of what? – Code des Jun 28 '18 at 06:01
  • Duplicate of the Q/A in the link you see at the top of your question – Kukeltje Jun 28 '18 at 09:44

0 Answers0