Page 1 of 1

Autocomplete listener not called

Posted: 29 Jul 2011, 18:37
by hfcprime
The select listener is never called, for this nor for the second example, which uses selectListener= rather than p:ajax. The autocomplete works, just doesn't call the listener. A valueChange listener worked, but it picked up the autocomplete stubs, which I don't want, only the selected value from the returned list. Any thoughts? Thanks.

<p:autoComplete size="70" id="item" required="true" requiredMessage="Item number is required"
disabled="#{editItem.approved == 'Y'}"
forceSelection="true" value="#{editItem.itemNumber}"
queryDelay="150" minQueryLength="3" completeMethod="#{editItem.itemComplete}">
<p:ajax event="select" listener="#{editItem.itemSelect}"/>
</p:autoComplete>

<p:autoComplete
....
selectListener="#{editItem.itemSelect}"
...
</p:autoComplete>

public void itemSelect(SelectEvent evt) {
.........
}

Re: Autocomplete listener not called

Posted: 29 Jul 2011, 18:45
by hfcprime
Nevah mind, the 3.0 Showcase says the event is

itemSelect="listener"

Presumably the PF manual will be updated and those of us with earlier editions will get a free upgrade...

Re: Autocomplete listener not called

Posted: 29 Jul 2011, 19:10
by cagatay.civici
I don't think you are monitoring what's going on in PrimeFaces.

See first item;

http://cagataycivici.wordpress.com/2011 ... unleashed/

http://cagataycivici.wordpress.com/2011 ... behaviors/

And your guide about free guide update;

http://cagataycivici.wordpress.com/2011 ... e-is-free/