1. #1
    Ext User
    Join Date
    Feb 2009
    Posts
    29
    Vote Rating
    0
    daeo is on a distinguished road

      0  

    Question Need help, Event to change panel content

    Need help, Event to change panel content


    hi,
    i put the same question here a couple of days ago, i've been trying to make this work, still no luck.

    i have a border layout page, a tree on the left hand side(West panel), which is a separate class from the main panel, and i put a text field on the Center Panel, what i want to do is very simple, i want to click on a tree node, and change the value in the text field.

    The ultimate goal of my work is to change the value of the text field, the the data should come from a servlet, but firstly i want to just do it via the tree node click event.

    i know this could be a very simple question, but it has bothered me for days. Please help me, thank you very much!

    Best regards

  2. #2
    Ext User
    Join Date
    Feb 2009
    Posts
    29
    Vote Rating
    0
    daeo is on a distinguished road

      0  

    Default


    solved.

    don't know if it's correct way, i do as what Java normally does. I reference the target object to the source object using a setter method, and use method like "targetObject.setValue("something here");" to change the target TextField's content.

  3. #3
    Ext User
    Join Date
    Jun 2008
    Posts
    365
    Vote Rating
    0
    sdc is on a distinguished road

      0  

    Default


    Yes, calling textField.setValue() is the correct way

Thread Participants: 1