• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh


Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all!
i have some problem with jsf h:selectOneMenu.I received the illegalArgumentException.I read java server faces in action 2005 published
by manning.

"If the EnumManager can�t find an ArtifactType instance for the int
value, an IllegalArgumentException will be thrown."

I don,t understand the EnumManager.
Here is my code copied from JavaBeat.
please help me.


<h:form id="select">
<h:panelGrid columns="1">
<h:outputText value="Select a Name : "/>
<h:selectOneMenu value="#{selectOneBean.name}">
<f:selectItem itemValue="SteveJobs" value="SteveJobs"/>
<f:selectItem itemValue="Sergey Brin" value="Sergey Brin"/>
<f:selectItem itemValue="Larry Page" value="Larry Page"/>
<f:selectItem itemValue="Dell" value="Dell"/>
<f:selectItem itemValue="Mark Anderson" value="Mark Anderson"/>
<h:commandButton value="Submit" action="#{selectOneBean.submit}"/>

package net.javabeat.myfaces.menu;

public class SelectOneMenuBean {
private String name;

public String getName() {
return name;

public void setName(String name) {
this.name = name;
public String submit(){
return "selectOneMenu";




<h:outputText value="Selected Name is : "/>
<h:outputText value="#{selectOneBean.name}"/>
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you use the same code? it should work fine. Are you using MyFaces.
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic