set focus for a component from action class JSF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newlearner
    New Member
    • May 2007
    • 67

    set focus for a component from action class JSF

    Hi all,
    is there any way to set focus for a HTML component from action class in JSF frame work.

    The Requirement is
    I validate a input text using a4j . if there is a validation error then i need to set focus back to the same component where the error occurred.

    OR is there any way to set foucs dynamically in a4j tag itself.


    Thanks
    Shasi
  • newlearner
    New Member
    • May 2007
    • 67

    #2
    can any body help me out?

    Comment

    • Dököll
      Recognized Expert Top Contributor
      • Nov 2006
      • 2379

      #3
      Greetings, newlearner!

      I am a new learner in the JSF world also, love it to death, I bit you welcome:-)

      Care to tell us a bit more... What software are you using to fire your JSF enabled JSP pages? Eclipse, NetBeans, RAD! All of the above have properties you can use. By using the GUI you can set focus that way, effortlessly.

      Let us know!

      Dököll

      Comment

      Working...