Autocomplete listener not called

UI Components for JSF
Post Reply
hfcprime
Posts: 108
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 5.2.4, CLI 1.6.8, PrimeNG 5.2.0, Chrome 64.0.3282.186, Angular CLI project in Webclipse IDE, Win 10 Pro

hfcprime
Posts: 108
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 5.2.4, CLI 1.6.8, PrimeNG 5.2.0, Chrome 64.0.3282.186, Angular CLI project in Webclipse IDE, Win 10 Pro

cagatay.civici
Prime
Posts: 18616
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

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests