File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Curios: JSF tries to evaluate a <h:inputText as an Enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Curios: JSF tries to evaluate a <h:inputText as an Enum" Watch "Curios: JSF tries to evaluate a <h:inputText as an Enum" New topic

Curios: JSF tries to evaluate a <h:inputText as an Enum

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 87

On JBoss 6 M5

When I enter text in one of the text fields invoke any of the actions, JSF displays an converter error
j_idt7:desc: 'blubber' must be convertible to an enum from the enum that contains the constant 'blubber'.

I have worked with <h:inputText before in other projects and never encountered this problem.


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641

I don't see it, but the failing control has a system-generated ID. Put an explicit ID attribute on the input control for aez.fasel just to confirm that that's where the problem is.

Incidentally, it's preferable to use JSF constructs rather than raw HTML for all that vertical-spaced stuff, but that's not actually going to affect your problem.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: Curios: JSF tries to evaluate a <h:inputText as an Enum
Similar Threads
commandLink not working in datatable+jsf2.0
JSF 2.0 Login
Very strange behavior: 'Ghost' Converter treats text-input as Enum
Passing parameters with h: link
Problem with navigation in JSF with Filter