3 Replies Latest reply on Sep 28, 2009 7:39 PM by wcaceresjr

    masked input pluguin and jquery with Seam

    wcaceresjr

      Anybody Know how integrate Jquery/AnyMask to icefaces/Seam?
      I'am trying to use masked input pluguin and jquery with Seam. But don't work.


      Tanks

        • 1. Re: masked input pluguin and jquery with Seam
          jguglielmin

          Please try the following




           <head>
                    <script type='text/javascript' src='http://digitalbush.com/wp-includes/js/jquery/jquery.js?ver=1.2.6'></script>
                    <script src="http://jquery-joshbush.googlecode.com/files/jquery.maskedinput-1.2.2.min.js" type="text/javascript"></script>
             </head>
             <body>
                 <ice:form id="frm">
                     <ice:inputText id="txt" />
                  </ice:form>
                  <script>         
                       jQuery(function($){
                             //JSF id  pattern conflict with jQuery so escape needs to be required.
                             jQuery("#frm\\:txt").mask("99/99/9999");
                       });
              </script>
              </body>





          • 2. Re: masked input pluguin and jquery with Seam
            wcaceresjr

            worked perfectly.
            thank you very much...


            • 3. Re: masked input pluguin and jquery with Seam
              wcaceresjr

                   
              sorry, another question: How do I unmask before submit?


              Tanks