After I'm selecting the category of the oneMenu component and hitting the button, in the listBox are displayed the respective content. How can I do that with Ajax, using <f:ajax> tag, and if it's possible without either hitting that button, just selecting category. Any help will be appreciated. Thanks in advance.
Sorry for my English, it is not my first language.
Try this modified code below.
You can remove the navigation rule from your faces-config.xml, unless you still require the commandButton redirect.
The key is the Ajax tag and some changes to the bean ...
New index.xhtml :
The new Test.bean :
Hope this helps
Tested on NetBeans, GlassFish 3.1, Chrome, FireFox