Hi Allahbaksh, Arthur and mars1412~
Thanks for your suggestions!! FireBug suits me perfectly Thanks
I found out that while building the children node with recurrsive
method, it stops when I set the node to disable()
if (theObject.getDeprecated().equals("1")) {
childTreeNode.disable(); <-----------------------
this will stop the funciton and the tree cannot built.
} else {
childTreeNode.enable();
}
firebug give me this error:
this.getOwnerTree() is undefined
[Break on this error] Ext.tree.TreeNode=function(A){A=A||{};if...
(this.ui.destroy){this.ui.destroy()}}});
and chrome's javascript console output this error
Uncaught TypeError: Cannot call method 'getSelectionModel' of
undefined http://localhost:8084/DMTAdmin/com.....DMTAdmin/js/ext/ext-all.js
(line 102)
What is that suppose to mean and how can it be resolve?!?!
Thanks again for your help!
On Feb 26, 5:55 am, Allahbaksh Asadullah <[email protected]>
wrote:
> Hi,
> As Martin pointed out you can use FireBug or Google Chrome inbuilt
> feature. But if you have problem debugging on different browser on
> your platform then I would suggest the build of OOPH is what is
> required. By using OOPHM you can debug your application on any browser
> of your choice.
>
> Building OOPHM is simple and it is listed on my
> bloghttp://allahbaksh.blogspot.com
> Regards,
> Allahbaksh Mohammedali Asadullahhttp://allahbaksh.blogspot.com
>
> On Feb 26, 2:26 pm, mars1412 <[email protected]> wrote:
>
> > you could use firebug for firefox
> > it will display the logmessages in the console
> > also Iron (type of Chrome) has a java-script console where you can see
> > the logs
>
> > On Feb 25, 8:35 pm, joe young <[email protected]> wrote:
>
> > > I'm using NetBeans to develope my GWT applicaiotn.
>
> > > Everything works fine when i deploy to gwt-shell-hosted. However when
> > > I deploy to tomcat 6 with netbeans, many little problems occur. Such
> > > as.
>
> > > I have a TreePanel that display all the regions. When the TreePanel
> > > first create, it will call RPC to retreive data
> > > service.getGeoRootNode(new AsyncCallback() {
> > > public void onSuccess(Object result) {
>
> > > GeoNode rootNode = (GeoNode) result;
>
> > > rootTreeNode.setText(rootNode.getNodeDesc());
>
> > > rootTreeNode.setIconCls(rootNode.getNodeName() + "-
> > > icon");
>
> > > buildChildTreeNode(rootNode, rootTreeNode); // build
> > > the children nodes
>
> > > setRootNode(rootTreeNode);
> > > }});
>
> > > However the tree building stop right after the rootNode is created. I
> > > cannot trace the code because GWT.log() cannot print to tomcat logging
> > > (I'm using log4J for server side logging) thus I don't know what
> > > happen....
>
> > > Question1: How can we trace the client side code? Is it possible that
> > > ask GWT.log dump to log4J?
>
> > > Question 2: Is it because buildChildTreeNode(rootNode, rootTreeNode)
> > > is outside of onSuccess() so it cannot be run??
>
> > > Thanks for your help in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---