java - primefaces autocomplete event itemSelect listener value null in ManagedBean -
i using primefaces 3.4.2 autocomplete.
in managedbean when select row type characters in autocomplete, not able value in method handleselect(selectevent event)
{
what reason this? ideally fill or populate other columns in jsf page when select row autocomplete values.
jsf code autocomplete
<p:autocomplete value="#{empmb.selectedemployee}" id="basicpojo" minquerylength="3" completemethod="#{mymb.complete}" var="p" itemlabel="#{p.empname}" converter="#{employeenameconverter}" forceselection="true" > <p:ajax event="itemselect" listener="#{mymb.handleselect}" />
managedbean method
public void handleselect(selectevent event) { string value = (string) event.getobject(); system.out.println("selected "+value);
the reason didn't provide itemvalue
attribute in p:autocomplete
component.
java jsf-2 primefaces
No comments:
Post a Comment