I have index.xhtml page, from which I call admin.xhtml. When I put this part of code in index.xhtml page, everything works great, but when put the same code in admin, it doesn`t show input fields. Can someone explain me why is this happening? My pages have only this code in them for now. Do I have to change something elsewhere? Thank you for your patience.
<h:form>
<h3>Username:</h3>
<h:inputText value="#{controler1.user}"/>
<h3>Password:</h3>
<h:inputSecret value="#{controler1.pass}"/> <br/>
<h:commandButton value="Log in" action="#{controler1.LogIn()}"/>
</h:form>
edit: I am sorry for not being precise enough. I checked to see what happens when clicked View Source, and it shows jsf unparsed code, the same as typed in project. I looked around the internet, and there were some answers about FacesServlet not being invoked. That is probably what is wrong here. The problem is, that I do not know what exactly should I change. Here is my web.xml:
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
I would appreciate your help. Thank you.