tc:script component not working with facelets
---------------------------------------------

                 Key: TOBAGO-729
                 URL: https://issues.apache.org/jira/browse/TOBAGO-729
             Project: MyFaces Tobago
          Issue Type: Bug
          Components: Core
    Affects Versions: 1.1.0
            Reporter: Marcus Kroeger
            Priority: Minor


Using the trunk version of the addressbook example following behaviour occurs:

login facelet:

<tc:script onsubmit="prepareLoginForm();">
        function prepareLoginForm() { var user =
        document.getElementById("page:j_username"); user.name =
        "j_username"; var pass =
        document.getElementById("page:j_password"); pass.name =
        "j_password"; var form = document.getElementById("page::form");
        form.action =
        "${pageContext.request.contextPath}/j_security_check"; }
      </tc:script>

      <tc:script>
        function fillInGuest() { fillIn("guest"); } function
        fillInAdmin() { fillIn("admin"); } function fillIn(name) { var
        user = document.getElementById("page:j_username"); user.value =
        name; var pass = document.getElementById("page:j_password");
        pass.value = name; }
      </tc:script>

browser displays the java script function string

function prepareLoginForm() { var user = 
document.getElementById("page:j_username"); user.name = "j_username"; var pass 
= document.getElementById("page:j_password"); pass.name = "j_password"; var 
form = document.getElementById("page::form"); form.action = 
"/j_security_check"; }   function fillInGuest() { fillIn("guest"); } function 
fillInAdmin() { fillIn("admin"); } function fillIn(name) { var user = 
document.getElementById("page:j_username"); user.value = name; var pass = 
document.getElementById("page:j_password"); pass.value = name; } 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to