1

PrimeFaces code:

<p:selectOneMenu onchange= " submit()" value = "${internacionalBean.locale}" valueChangeListener= "#{internacionalBean.cambiarIdioma}" id = "idiomaSelect" style="width:125px">
    <f:selectItems value= "#{internacionalBean.countries}" />
</p:selectOneMenu>

I changed p with b, but the valueChangeListener attribute is not defined.

Kukeltje
  • 12,223
  • 4
  • 24
  • 47
Juan C
  • 89
  • 7

1 Answers1

1
  • Until we've implemented this feature we've obviously overlooked, you can use onchange="ajax:internacionalBean.cambiarIdioma()" update="@form". Note the slightly different syntax: you have to put ajax: at the beginning to distinguish it from a JavaScript call, and you have to provide the parentheses.
  • Like BalusC suggests below, you can also try to add an <f:valueChangeListener /> facet.
  • Would you mind to open a feature request on our bug tracker (https://github.com/TheCoder4eu/BootsFaces-OSP/issues)?
Stephan Rauh
  • 3,069
  • 2
  • 18
  • 37
  • If the BootsFaces component also implements `EditableValueHolder`, then OP should technically still be able to nest a `` (although I have a strong impression that just an ajax listener is already sufficient for the task OP had in mind, certainly if OP isn't at all interested in the old value). Related: http://stackoverflow.com/q/11879138 – BalusC May 31 '16 at 07:09