I'm new at JSF and I startet with the tutorial from luv2code. Here is the link to the video: LINK
So set up the latest Eclipse and Tomcat. I used JSF 2.2.8 to stay close to the tutorial.
In this tutorial there are two xhtml files generated:
hello-world.xhtml:
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:a="http://xmlns.jcp.org/jsf/passthrough">
<h:head>
<title>Hello World - Input Form</title>
</h:head>
<h:body>
<h:inputText id="name" value="#{theUserName}"
a:placeholder="What's your name?"/>
<h:commandButton value="Submit" action="myresponse"/>
</h:body>
</html>
myresponse.xhtml
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head>
<title>Hello World - Response</title>
</h:head>
<h:body>
Hello, #{theUserName}
</h:body>
</html>
Everything works finde and the hello-world page is displayed in the Eclipse Browser. But when I'm clicking on Submit nothing happens.
What I'm doing wrong?
Thanks for help!