Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The action of my commandButton does not work any more after using SelectOneMenu

 
Marcos Luiz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The action of my commandButton does not work any more after using SelectOneMenu.

After I try to use the SelectOneMenu on my page the methods of my bean isn't executing any more. The SelectOneMenu works just fine, but the Bean don't.

Follow my code bellow:


Bean:



JSP:



Faces-config.xml:



Have somebody idea of the problem?

Tks,
Marcos Luiz
 
Adam Mazurek
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you turn on the logs for myfaces and see what is going on under the hood. I guess the problem is with binding value of selectOneMenu to managed-bean and INVOKE_APPLICATION phase isn't invoked.
 
Marcos Luiz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Works!!!

The problem was with the property 'value' of the selectOneMenu. The property was an user object and the itemValue of the items was String.

Now my code look like that:




Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic