Autocomplete listener not called

Components, Ajax Framework, Utilities and More.
Post Reply
hfcprime
Posts: 97
Joined: 22 Feb 2011, 20:32

29 Jul 2011, 18:37

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) {
.........
}
ENVIRONMENT
Angular 4.0, PrimeNG 4.0.2, AngularCLI project in AngularIDE,Win 7 Pro

hfcprime
Posts: 97
Joined: 22 Feb 2011, 20:32

29 Jul 2011, 18:45

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...
ENVIRONMENT
Angular 4.0, PrimeNG 4.0.2, AngularCLI project in AngularIDE,Win 7 Pro

User avatar
optimus.prime
Prime
Posts: 17422
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Jul 2011, 19:10

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/

Post Reply
  • Information
  • Who is online

    Users browsing this forum: siragott and 13 guests