CellTree remove Nodes on the fly breaks the tree in IE

2011-02-21 Thread Lakshitha Ranasinghe
I have recently used GWT CellTree widget to populate an XML data in my
project, The tree allows user to add, edit, move up/down tree nodes
and finally update the actual XML file, I have managed to implement
this functionality by storing ListDataProvider instances  which are
used in the tree.
if user removes a node I remove it from both corresponding data
provider instance and XML tree. Then it updates the list dynamically
and reflects the changes in the tree. I used this approach because I
did not find any other alternative way to do dynamic tree manipulation
in GWT cell tree.

but I encountered a problem with node removal functionality in IE (7 &
8). after removing a node and try to collapse or open any node in the
tree GWT throws a runtime "'firstChild' is null or not an object"
error and cannot do any operation on the tree after that.


Can anyone faced this problem? please let me know if there are any
workaround found, I am using GWT 2.1.1

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT CellTree update nodes on the fly

2011-02-16 Thread Lakshitha Ranasinghe
I have recently used GWT CellTree widget to populate an XML data in my
project, The tree allows user to add, edit, move up/down tree nodes
and finally update the actual XML file, I have managed to implement
this functionality by storing ListDataProvider instances  which are
used in the tree.
if user removes a node I remove it from both corresponding data
provider instance and XML tree. Then it updates the list dynamically
and reflects the changes in the tree. I used this approach because I
did not find any other alternative way to do dynamic tree manipulation
in GWT cell tree.

but I encountered a problem with node removal functionality in IE (7 &
8). after removing a node and try to collapse or open any node in the
tree GWT throws a runtime "'firstChild' is null or not an object"
error and cannot do any operation on the tree after that.


Can anyone faced this problem? please let me know if there are any
workaround found, I am using GWT 2.1.1

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT ResizeComposite resizing issue in IE

2011-01-31 Thread Lakshitha Ranasinghe
hi Magnus,

Thanks for the reply, actually I could make it using ResizeComposite
in GWT without doing any hacks :). The trick is, from the main
container to child widget the resize events should be populated
correctly. Therefore, we have to implement ResizeComposite through out
that path. then it works fine.

Cheers.
Lakshitha

On Jan 5, 6:30 am, Magnus  wrote:
> Hi,
>
> I had a similar issue with IE7 and I found that it must be some bug in
> GWT für IE.
>
> However, I fixed it by triggering a delayed forceLayout, i. e. a
> deferred command that is executed after all events have been handled:
>
>  private void forceLayoutLater ()
>  {
>   if (forced)
>    return;
>
>   forced = true;
>
>   Scheduler.get().scheduleDeferred
>   (
>     new ScheduledCommand()
>     {
>      @Override
>      public void execute()
>      {
>       if (getParent () != null) // if no parent, then we were removed!
>        forceLayout();
>       forced = false;
>      }
>     }
>   );
>  }
>
>  /// 
> 
>  // @Override
>
>  public void onResize()
>  {
>   super.onResize();
>   adjust (); // do all size and position adjustments
>   forceLayoutLater (); // needed for IE 7 :-(
>  }
>
> HTH,
> Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT ResizeComposite widget resizing problem in IE 7

2011-01-06 Thread Lakshitha Ranasinghe
Hi All,
I am developing a GWT application that consists a ResizeComposite as
the main container which is  wrapped in a TabLayoutPanel.

This composite widget contains two child widgets. Left widget is a GWT
tree
and it contains hyperlinks. The right widget is a simple panel that
contains image tiles. The functionality is if user clicks on a link in
the tree the corresponding tiles are loaded to right hand side widget
(simple panel). However, this widget does not get resized according to
the browser resize

For example if I resize the browser window to half size and click one
of the links in the tree. The image tiles are loaded with scrollbars
in the simple panel. Then I resize the browser window and the
ResizeComposite widget does not get resized according to the browser
size. I tried with almost all the possible solutions but no success.

I figured out that the div tag that belongs to ResizeComposite does
not get the size updates but the parent div resizes properly. This
happens only in IE 7 (I used
IE developer plugin for that)

I do not have any experience of using this widget before and I googled
and try this group as well but I haven't found any good answer yet.

Please help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT ResizeComposite resizing issue in IE

2011-01-04 Thread Lakshitha Ranasinghe
Hi All,
I am developing a GWT application that consists a ResizeComposite as
the main body container which is  wrapped in a TabLayoutPanel. This
composite widget contains two child widgets. Left widget is a GWT tree
and it contains hyperlinks. The right widget is a simple panel that
contains image tiles. The functionality is if user clicks on a link in
the tree the corresponding tiles are loaded to right hand side widget
(simple panel). However, this widget does not get resized according to
the browser resize
For example if I resize the browser window to half size and click one
of the links in the tree. The image tiles are loaded with scrollbars
in the simple panel. Then I resize the browser window and the
ResizeComposite widget does not get resized according to the browser
size. I tried with almost all the possible solutions but no success.

I figured out that the div tag that belongs to ResizeComposite does
not get the size updates but the parent div resizes properly. (I used
IE developer plugin for that)

I do not have any experience of using this widget before and I googled
and try this groupd as well but I haven't found any good answer yet.

Please help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.