ayha1999
asked on
Retrieve input value from JSF page
I am trying to retrive input text of the textboxes from a jsf page but nothing returns. what is wrong with the code?
<h:form id="myForm">
<h:inputText size="10" id="txtName"/>
public void printValue() {
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentIns tance().ge tExternalC ontext().g etRequest( );
String txtName = request.getParameter("myFo rm:txtName ");
System.out.println(txtName );
}
ayha
<h:form id="myForm">
<h:inputText size="10" id="txtName"/>
public void printValue() {
HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentIns
String txtName = request.getParameter("myFo
System.out.println(txtName
}
ayha
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.