Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Markus Schmider
Ranch Hand
Posts: 132
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic