2 Replies Latest reply on Sep 16, 2008 11:14 AM by Sascha Janz

    javascript not executed in facelet

    Sascha Janz Master
      i got the following code. but the function click is never executed.

      can you please help me?


      <ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                       xmlns:ui="http://java.sun.com/jsf/facelets"
                       xmlns:h="http://java.sun.com/jsf/html"
                       xmlns:f="http://java.sun.com/jsf/core"
                       xmlns:rich="http://richfaces.org/rich"
                       xmlns:s="http://jboss.com/products/seam/taglib">
      <link rel="stylesheet" type="text/css" href="resources/los_style.css" />

          <div class="prop">
          <h:form id="testform" >

      <script language="javascript">
             function click() {
                  alert('huuh');
                  
             }
      </script>
          <h:panelGroup>
          <h:selectBooleanCheckbox value="false" onclick="click();" />
          <h:inputText value="" id="username"   onclick="click();" />
          </h:panelGroup>
         
      </h:form>
      </div>
      </ui:composition>