Refresh p:selectonemenu primefaces

Asked

Viewed 47 times

0

I came across a problem I couldn’t solve. I have a p:selectonemenu that has a p:ajax with Event change. When changing its value it executes a Listener that arrow the values of other p:selectonemenu. When giving the render of f:ajax it is not showing the values of the other p:selectonemenu, even though the converters already exist for the respective classes. By checking in the backbean the value assigned to the p:selectonemenu are at the correct values, it just does not appear on the screen. When you perform any validation then yes the values appear on the screen. Imagem 1 Imagem 2 Imagem 3

1 answer

0

I managed to solve it after a lot of trying. I traded that :

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

therefore:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.