AutoComplete Example at Showcase

UI Components for JSF
Post Reply
rdeoliveira
Posts: 61
Joined: 23 Jun 2011, 11:40

18 Aug 2011, 15:55

I try to reproduce the example of AutoComplete (http://www.primefaces.org/showcase-labs ... tePojo.jsf) and i have a NumberFormatException on the PlayerConverter.

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>
i have the symbol "-" (present in p:column) displayed on the left of the input Field. It's strange !

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.
JSF 2.0
Primefaces 3.0.M3
Tomcat 7.0
--
French user of primefaces

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests