0

I have an environment where I use Liferay 6.2, Richfaces 4.3.2.Final, JSF 2.1 I am doing exactly what is in the rich face documentation

<rich:panelMenu>
   <h:selectOneMenu id="id"  valueChangeListener="#{bean.method}" style="background-color: white">
        <f:selectItems  value="#{bean.getList}"/>
           <a4j:ajax event="valueChange" render="mainPanel" execute="@this"/>
   </h:selectOneMenu>
</rich:panelMenu>

but the bean are not receiving the event, nothing happen, no erros, no warn, just is not called the "method" in the bean. I tried already to change the event to "change" instead "valueChange". the method signature is

public void method (ValueChangeEvent event)}

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
  • So it works when you remove the `` wrapper? – Jasper de Vries Jul 18 '19 at 11:36
  • The select definitely doesn't belong inside `rich:panelMenu`, what are you trying to do? – Makhiel Jul 18 '19 at 11:58
  • Also did not work taking out of panelMenu I tried like that ` ` – Claudio Resende Jul 18 '19 at 13:41
  • 1
    I could not reproduce this issue with RichFaces `4.3.2.Final`, `4.5.17.Final`, or [`4.6.9.ayg`](https://github.com/albfernandez/richfaces) (which is the version you should update to in order to avoid [RCE security vulnerabilities](https://codewhitesec.blogspot.com/2018/05/poor-richfaces.html)). Please also make sure you are using the correct Liferay Faces dependencies listed here: https://faces.liferay.dev/home/-/archetype-portlet/liferay-portal-version/6.2/jsf-version/2.1/component-suite/jsf/build-tool/maven. – stiemannkj1 Jul 19 '19 at 22:16
  • Also your usage of `rich:panelMenu` differs significantly from the [`rich:panelMenu` documentation](http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=panelMenu&skin=wine). I think this usage may be invalid. Finally, please provide a [MCVE]. – stiemannkj1 Jul 19 '19 at 22:18
  • Hi I found out the problem, in the end, was some configuration in the liferay-portlet.xml, I dont know yet which one, but I got a "default" version from this file and now it is working. My guess is that there is to do with this property false, but I will check. – Claudio Resende Jul 24 '19 at 12:10
  • You probably needed `false` in your **`liferay-portlet.xml`**. – stiemannkj1 Aug 05 '19 at 22:01
  • Possible duplicate: https://stackoverflow.com/questions/50838124/liferay-7-jsf-actions-not-triggered – stiemannkj1 Aug 05 '19 at 22:05
  • Hi I found out the problem, in the end, was some configuration in the liferay-portlet.xml, I don't know yet which one, but I got a "default" version from this file and now it is working. My guess is that there is to do with this property false, but I will check. – Claudio Resende Jul 24 '19 at 12:23
  • @BhargavRao: What answer? I don't see any comment that looks like an answer – Kukeltje Aug 09 '19 at 11:24
  • Sorry bout that @Kukeltje, I must have converted the entire post here https://stackoverflow.com/posts/57182854/revisions to comments, instead of just the answer. – Bhargav Rao Aug 09 '19 at 11:27
  • @Kukeltje, I believe [this comment](https://stackoverflow.com/questions/57079584/valuechangelistener-in-selectonemenu-not-being-called#comment100875949_57079584) was the answer. – stiemannkj1 Aug 09 '19 at 18:56

0 Answers0