0 Replies Latest reply on Mar 24, 2008 2:02 PM by achildress

    setting focus on modal panel form field-PLEASE HELP!

    achildress

      Does anybody have a workaround to set focus on a form field in a modal panel? The onshow attribute of commandLink doesn't work at all, and using the focus attribute on the commandLink that opens the modal panel generates a javascript error "Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus". This is a real deal breaker for my project. I've even tried to put javascript in the modal panel form to attempt to discern when the control is visible and then set focus, but it is not working either.

      I'm using:
      facelets 1.1.12
      richfaces 3.1.4GA
      JSF 1.2