Refresh p: selectonemenu primefaces

0

I came across a problem I could not solve. I have a p: selectonemenu that has a p: ajax with event change. By changing the value of it it executes a listener that arrows the values of other p: selectonemenu. When giving the render of f: ajax it is not showing the values of the others p: selectonemenu, even existing the converters for the respective classes. Checking in the backbean the value assigned to p: selectonemenu are with the correct values, it just does not appear on the screen. When you perform any validation there, the values appear on the screen.

    
asked by anonymous 27.08.2018 / 15:32

1 answer

0

I was able to solve it after a lot of trying. I changed this:

<p:ajax event="change" listener="#{carregaDadosProduto()}" update="@form" /> 

so:

<p:ajax event="change" oncomplete="#{carregaDadosProduto()}" update="@form" />
    
27.08.2018 / 16:02