1

I am using primefaces 3.0.0.M2 library. At this library, <p:selectOneMenu> element exists. My problem is that when I use <p:ajax> tag with listener, update and process attributes, the listener method does not get invoked, but update and process works fine. Here is my code:

<h:form prependId="false" id="frmNewRecord">
    <h:panelGrid columns="4" style="font-size: 10px;width:840px">
        Öğrenci No <p:inputText value={newRecord.azerKimKayit.ogrenciNo}" maxlength="11">
            <p:ajax event="blur" update="frmNewRecord" listener="#{newRecord.getStudent}" process="frmNewRecord" />
</h:form>

And my backing bean is (necassary method) :

public void getStudent() {
  azerKimKayit = azerKimKayitBo.findByOgrNo(azerKimKayit.getOgrenciNo());
}
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
olyanren
  • 1,448
  • 4
  • 24
  • 42

2 Answers2

0

Try passing in an AjaxBehavior Event in your method:

public void getStudent(AjaxBehaviorEvent event) {
   azerKimKayit = azerKimKayitBo.findByOgrNo(azerKimKayit.getOgrenciNo());
}
flynfish
  • 5,857
  • 3
  • 24
  • 33
-1

In this question, BalusC suggests adding @this to your process tag.

Community
  • 1
  • 1
Alanzi
  • 272
  • 3
  • 10