Good morning. Not entirely sure if this is a JSF-related question or Java-related. Please act accordingly if you feel it needs to be moved.
Long story short, I have a search form that searches the DB for users. There are three radio buttons (three f:selctItem inside one p:selectOneRadio) with itemValues "username", "name" and "email". And there's the text box for the search term along with a command button that calls this method. I have done the following and works correctly:
This means I have four methods in the backing bean, each calling one of the four search methods in the
EJB. As I said, this works just fine. I'm wondering whether there's a better way of doing this.