Hello,
I am trying to use form authentication, because I want to allow users to
register if they are not members but
I have the following problem,
The login.xhtml file is attached
Now my problem is that when I try to access a page where the form should
I appear I get in Safari
Username:Password:
In mozilla I get a message that the XML has no format information.
It seems that the source sent by the server is
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="
http://java.sun.com/jsf/facelets"
template="./../templates/TemplateHeaderFooter.xhtml"
xmlns:h="
http://java.sun.com/jsf/html">
<ui:define name="content">
<form method="POST" action="j_security_check">
<h:outputLabel for="j_username">Username:</h:outputLabel>
<h:inputText id="j_username" required="true" />
<h:message for="j_username" />
<h:outputLabel for="j_password">Password:</h:outputLabel>
<h:inputSecret id="j_password" required="true" />
<h:message for="j_password" />
<h:commandButton value="Login" />
<h:commandLink value="Register" action="registerUser" />
</form>
</ui:define>
</ui:composition>
It seems as the page is not been parsed/rendered properly.
The template is not integrated and no html code is generated.
Are there any ideas on how to solve this issue.
thank you
Nikolas