How to send form input values and invoke a method in JSF bean
问题 I am building a JSF application. I defined the GUI and did the select statements query the database using select. Now I must do the insert statements, but I don\'t know how to read the value of a JSF input component like <h:inputText> and send it to my bean which performs the insert. Should <h:inputText> value be mapped through faces-config.xml , so I can have it in my Java code? 回答1: You need to put all <h:inputXxx> / <h:selectXxx> components in a <h:form> and bind their value attribute to a