I´m trying to do that with DOM:
        <script type="text/javascript">
            document.addEventListener('DOMContentLoaded', function() {
                document.getElementById('frmTotem:undCGC').focus();
            });
        </script>
Where "undCGC" is an input secret from richfaces -> h:inputSecret.
But focus() or select() functions do not work properly. Any cue will be very welcome. Thanks!
 
     
    