If a type "P" in order to display "Puyol" and "Pique" i've got the exception.
The submittedValue of the method getAsObject have the value "P".
So how the example works ? I think there is differences between the showcase and the code source display below of the example.
Can someone can give me the code of this example please ?
In addition with this code :
Code: Select all
<h:panelGrid columns="1">
<p:autoComplete value="#{sandboxManagedBean.selectedPlayer}"
completeMethod="#{sandboxManagedBean.completePlayer}" var="p"
itemLabel="#{p.name}" itemValue="#{p}" converter="playerConverter">
<p:column>
#{p.name} - #{p.number}
</p:column>
</p:autoComplete>
</h:panelGrid>
Finally on the AutoCompleteBean, we use a players attribute (on the constructor) but this attribute is not defined on the bean.
Thanks for your help.