FORM authentication doesn't work anymore with <tx:in>
-----------------------------------------------------
Key: TOBAGO-954
URL: https://issues.apache.org/jira/browse/TOBAGO-954
Project: MyFaces Tobago
Issue Type: Bug
Components: Core
Affects Versions: 1.5.0-alpha-2
Environment: Facelets
Reporter: Guido Dubois
FORM authentication doesn't work anymore with <tx:in> tag. With the manually
inserted <tc:panel>...</tc:panel> code it works like in version 1.0.x
<tc:panel>
<f:facet name="layout">
<tc:gridLayout columns="200px;*" />
</f:facet>
<tc:label for="j_username" value="#{bundle.loginCompanyCode}"/>
<tc:in id="j_username" />
</tc:panel>
<!-- <tx:in id="j_username"-->
<!-- label="#{bundle.loginCompanyCode}" labelWidth="200px" />-->
<tc:panel>
<f:facet name="layout">
<tc:gridLayout columns="200px;*" />
</f:facet>
<tc:label for="j_password" value="#{bundle.loginPassword}"/>
<tc:in id="j_password" password="true" />
</tc:panel>
<!-- <tx:in id="j_password" password="true"-->
<!-- label="#{bundle.loginPassword}" labelWidth="200px" />-->
JS functions:
initLoginForm: function() {
user = document.getElementById("page:j_username");
if (user) user.name = "j_username";
pass = document.getElementById("page:j_password");
if (pass) pass.name = "j_password";
},
submitLoginForm: function(contextPath) {
form = document.getElementById("page::form");
if (form) {
form.action = contextPath + "/j_security_check";
form.submit();
}
},
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.