I am trying to learn pickList from Primefaces. What I have jsf file, PickListBean.java and Player.java.
When I run the project, I get error as http://code.google.c
It's basically telling that the JSF Converter
with the ID "player" cannot be found. It's been referenced as <p:pickList converter="player">
.
With the given code, you need to register the PlayerConverter
as follows in faces-config.xml
.
<converter>
<converter-id>player</converter-id>
<converter-class>org.primefaces.examples.view.PlayerConverter</converter-class>
</converter>
Alternatively, you could edit the PlayerConverter
class to add the annotation
@FacesConverter("player")
on the class.