Node changed event tells the tree that the node has been changed and
rebuilts the actual tree item component. Are you sure that you need to
refresh tree item component?

Btw. Why are you callind focusComponent on component that has just been blurred?

-Matej

On Tue, Mar 18, 2008 at 8:30 PM, Lars Borup Jensen <[EMAIL PROTECTED]> wrote:
> Well - I do the following on the TextField which is rendered in each cell
>
>
>  field.add(new AjaxFormComponentUpdatingBehavior("onblur")
>         {
>             protected void onUpdate(AjaxRequestTarget target)
>             {
>
>  ((DefaultTreeModel)treeTable.getModelObject()).nodeChanged(treeNode);
>                 treeTable.updateTree(target);
>                 target.focusComponent(field);
>             }
>         });
>
>  As you can see, I call nodeChanged with the specific node, which has been
>  changed and hence needs re-rendereing. Then I call updateTree, to mak sure
>  its attached to the Ajax response and thats it.
>  I'll try to do some debug later to see if I can pin-point the exact problem
>  but I'm quite new to Wicket (4 days since I started Wicket'eering ;-) ) so I
>  can't really say I understand the whole concept in-depth as of yet.
>  But I would like to say thanks to the guys on this mailinglist for answering
>  our newbie questions - its a great help...
>
>
>
>
>  On Tue, Mar 18, 2008 at 4:08 PM, Igor Vaynberg wrote:
>
>  > is there a reason why you are actually recreating the
>  > textfields/updating the entire treetable? if you do that i cant think
>  > of any work around off the top of my head, maybe matej can since he
>  > wrote the treetable.
>  >
>  > -igor
>  >
>  >
>



-- 
Resizable and reorderable grid components.
http://www.inmethod.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to