Board index JavaServer Faces General Autocomplete listener not called

Autocomplete listener not called

Components, Ajax Framework, Utilities and More.


Posts: 85
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
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6


Posts: 85
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
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6


Posts: 15051
Location: Cybertron

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/
PrimeFaces Lead


Return to General