File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes The action of my commandButton does not work any more after using SelectOneMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "The action of my commandButton does not work any more after using SelectOneMenu" Watch "The action of my commandButton does not work any more after using SelectOneMenu" New topic
Author

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

Marcos Luiz
Greenhorn

Joined: Nov 02, 2005
Posts: 3
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

Joined: Jun 02, 2006
Posts: 27
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.


Regards<br />Adam Mazurek<br />SCJP 5<br />SCWCD 5
Marcos Luiz
Greenhorn

Joined: Nov 02, 2005
Posts: 3
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The action of my commandButton does not work any more after using SelectOneMenu