Skip to Content
author's profile photo Former Member
Former Member

set focus on a tree node

Hello,

I'd like to set the focus on a tree node after loading the page.

I try to do it using a javascript as described on post

Set Focus on an Inputfield after displaying alert message

But this does not seem to work for tree nodes. Maybe it's because of tree nodes not being extended from class component?!

Thanks for your ideas,

regards

Bastian Distler

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 30, 2005 at 10:03 AM

    Once a guru said: "life would be so much easier if one could see the source code". And it is true. With a few lines code you should be able to show us what you are trying to do.

    "Maybe it's because of tree nodes not being extended from class component?" There is no real concept of class component in the browser. I wonder whether you are refering to CSS classes. Either way, be very careful in programming to close to the rendered HTML.

    Also, I am not so sure about the real beenfit of focussing a node in the tree. Hmmm...

    Add a comment
    10|10000 characters needed characters exceeded

    • Aha, you are asking about the JSP version of the HTMLB library. This is a nearly complete different animal than the BSP version. In the beginning we copied all their tags. But over the years the two implementations have developed completely differently.

      I now also understand you question better. Should you need this answer for BSP (nix mit J*), then get back so that we investigate some more.

      However, in principle the HTMLB library (we are still refering to BSP!) does not contain any focus code, nor code to reset the focus after a roundtrip. So one might have to look at some custom development.

      brian

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.