This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

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

Markus Schmider
Ranch Hand

Joined: Feb 25, 2007
Posts: 100

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'.

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

ManagedBean:



>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

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: http://aspose.com/file-tools
 
subject: Curios: JSF tries to evaluate a <h:inputText as an Enum
 
Similar Threads
JSF 2.0 Login
Very strange behavior: 'Ghost' Converter treats text-input as Enum
Problem with navigation in JSF with Filter
Passing parameters with h: link
commandLink not working in datatable+jsf2.0