Re: Timer / Progress bar on a form to show countdown.

2009-02-17 Thread Litty Preeth
Well using the Timer you can periodically request the server for the time
remaining and update the count down Label. But this will require may be a
server call in every min or few seconds. But I think the better approach is
to get the remaining time at the first load and using a Timer to deduct a
sec each time and update the label with new remaining time.

- Litty

On Tue, Feb 17, 2009 at 2:00 PM, alex.d alex.dukhov...@googlemail.comwrote:


 Timer is just a class that helps you to do smth. periodically(see docs
 for an example). You'll have to use it to update some label with your
 time value.

 On 17 Feb., 05:23, Vishesh visheshs...@gmail.com wrote:
  Thanks for replying.
  But is there a way to show the timer on the rootpanel or other screen?
  If there is I cant seem to find it anywhere.
 
 
 
  On Sun, Feb 15, 2009 at 4:50 PM, jossey joss...@gmail.com wrote:
 
   Will the Timer in GWT help?
 
   On Feb 14, 12:13 pm, Vish visheshs...@gmail.com wrote:
   Hi All,
   I'm trying to show a countdown timer on a form which displays the time
   left for a discussion on some topic mentioned on that form.
   I'm not able to decide or figure out the best way to do it, also I
   couldn't find any earlier post discussing this.
   If someone can help me suggesting this it will be really helpful and I
   would be very thankful.
   Regard
   Vish.
 
  --
  Vishesh Sahu
 


--~--~-~--~~~---~--~~
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: Web link on a widget

2009-02-12 Thread Litty Preeth
May be you can look at the Anchor widget

On Thu, Feb 12, 2009 at 8:34 PM, Piotre Ugrumov afmul...@gmail.com wrote:


 Hi,
 I have a simple question, how can I assign a web link on a widget?

 I have an url as http://www.google.it how can I assign this url to a
 click on a widget?
 Does it exist a simple method to make it possible?

 Thanks, bye bye.


 


--~--~-~--~~~---~--~~
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: Id property on a Button

2009-02-11 Thread Litty Preeth
button.getElement().setId(btn_1);

On Thu, Feb 12, 2009 at 4:45 AM, Ruku ruku...@gmail.com wrote:


 Does anyone know how to set the id property of a button? I am adding
 buttons to a panel with a for loop. I want each button to get a
 different Id so I can act differently for each button. Does anyone
 know if this is possible?

 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: Hard problem: detecting url change in a gwt Frame (or iframe)

2009-02-11 Thread Litty Preeth
Yes u are right, you need to use GWT History mechanism.

On Thu, Feb 12, 2009 at 5:37 AM, Max caesy...@gmail.com wrote:


 HI,all,
  Is there a way to detect url change in a gwt Frame? I used
 geturl
 () but it didn't detect new url when users click on a link in the
 Frame. Maybe i need to mess up with gwt history?? I know there might
 be a browser restriction isuue.  Any idea?? Thanks,

 Max
 


--~--~-~--~~~---~--~~
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: Best image preloading practice?

2009-02-06 Thread Litty Preeth

  You are thinking of loading 20MB of images into the DHTML DOM of you
  application

  Am I? Does the DOM keep them there even when not displayed?
  These images certainly wouldnt be displayed all at once. 1 or 2 at a
  time at most.

 I'm not absolutely sure, but I think if you load an image it is
 basically attached to a document, whether the browser caches it or
 not, and whether it is currently visible of not. You don't control the
 browser cache, I mean I don't think you can tell it to conveniently
 download all your images and store them neatly on disk until you need
 to display them for example.

ah, pig.
I thought that was exactly that prefetch was doing -sigh-
I thought it loaded it to ram first, then the browser keeps a copy in
its cache for reloading if needed.
-sigh-
That does change things indeed then.

AFAIK the prefetch creates an IMG element but its not attached to the DOM.

- Litty


On Fri, Feb 6, 2009 at 1:03 PM, darkflame darkfl...@gmail.com wrote:



 
   You are thinking of loading 20MB of images into the DHTML DOM of you
   application
 
   Am I? Does the DOM keep them there even when not displayed?
   These images certainly wouldnt be displayed all at once. 1 or 2 at a
   time at most.
 
  I'm not absolutely sure, but I think if you load an image it is
  basically attached to a document, whether the browser caches it or
  not, and whether it is currently visible of not. You don't control the
  browser cache, I mean I don't think you can tell it to conveniently
  download all your images and store them neatly on disk until you need
  to display them for example.

 ah, pig.
 I thought that was exactly that prefetch was doing -sigh-
 I thought it loaded it to ram first, then the browser keeps a copy in
 its cache for reloading if needed.
 -sigh-
 That does change things indeed then.


   Again, not at once.
   Surely a staggered download they wouldnt have a problem with?
   Emulating, say, what it would expect from a user browseing DeviantArt?
 
  yeah, the staggered download is basically the idea of the maze - each
  time you move to next location you've only got one locations worth of
  images to fetch. Or if it worked fast enough you could fetch all the
  required images for the adjoining locations so they would be ready to
  go instantly. It depends entirely on no of image bytes per location.
 

 Yes, I looks like I'll be switching to a as-you-go-along-it-loads-the-
 next-rooms approach.
 Allthough...

  Point is doing it this way old images are thrown away and can be
  garbage collected as you go, so you are not accumulating images in
  memory. It's stable. (assuming I'm right about the how this works of
  course).
 

 ...I'm not sure there will be much that can be chucked away in this
 game.
 My engine is able to remove items easily enough, but for this game
 items from the start of the game are still usefull at the end, so
 theres only a few case's when images can be removed never to be
 recalled.


   . The point of
   the composite image strip is to fetch several images in one request
   since they come in a single binary file. 
 
   Yes, I understand the point of them, and I think image bundles are a
   great idea.
   (In fact, online in general, theres probably a lot of wasted bandwidth
   used on little UI elements on webpages..like 5kb gifs etc)
   In this specific case though they arnt approperate.
   Not unless I got the server to dynamically splice the images together
   and the client to cut them up.
   But thats beyond the scope of the projects timeframe.
 
  This is exactly what the GWT ImageBundle does (and what has been best
  practice in web design for years). Annoyingly for you GWT only does
  this once per module because Bruce says they can't think of a single
  use case for needing separate ImageBundles!  My bet is that if you
  just start loading all the images as you are suggesting, you will have
  to attach them to the DOM somewhere, so ultimately what you will be
  doing is building the entire game at the same time as the player is
  trying to play the first locations. So my betting is three to one on
  a) whilst this build is going on the game play will be badly affected
  at precisely the time you least want it to, and b) once you've loaded
  it all it will run like a dog anyway.

 Yes, I think your right there.
 But I think cutting up 30MB of images client side might actualy raise
 the required specs of the game :P

 
  I may well be wrong, but if I'm not, and you looked at the maze idea
  as plan B, then using image strips a la ImageBundle will make the game
  run much faster and smoother, so the effort might well be critical in
  the end. This is after all the heart of your technical challenge. This
  has been done so many times I expect you will find some javascript
  code that cuts them up (or maybe CSS stuff) to crib from somewhere and
  some server side tools to pack the image strips as well.
 

 I may have miss-understoof how image bundles 

Re: Deploying GWT application (WAR)

2009-02-06 Thread Litty Preeth
http://www.onjava.com/pub/a/onjava/2002/04/03/tomcat.html
http://www.javalobby.org/articles/tomcat2go/

On Fri, Feb 6, 2009 at 1:53 PM, Jonathan jonathan.delf...@gmail.com wrote:


 Thanks for the answer !
 What should I give to the user to allow him to run the WAR locally ?
 I mean i would like to embed tomcat in the application to allow the
 user to run it locally (without internet) and to deploy it on a server
 like you said.

 I already made the hierarchy of the war, it's ready to be zipped/
 wared, but i don't know how i can reproduce the hosted browser system
 to deploy the app.

 Thanks again for your support!
 Best regards.

 On 6 fév, 06:07, Litty Preeth preeth.h...@gmail.com wrote:
  Well for web application you dont give the user a WAR file, but you
 deploy
  the war file on a server machine (where you have an application server
 like
  Tomcat installed) and then give the url of the application to the user.
 User
  will use his browser to open ur URL.
 
  - litty
 
  On Fri, Feb 6, 2009 at 4:13 AM, Jonathan jonathan.delf...@gmail.com
 wrote:
 
   Hi to all,
 
   I managed to install properly gwt that runs fine under my linux.
   However, i have some problems to understand the deployment step to
   war.
 
   I use a servlet to upload a file to server so i would like to deploy
   my project WITH tomcat.
 
   Is that possible ?
   So that, if i want to install it on a web server, i just have to
   deploy the war file (i don't know how to create it, i just made the
   hierarchy :/)
   And if it's only for local use, the integrated tomcat will be used. As
   the hosted browser do...
 
   Not sure if i'm clear but to sum up: how to deploy my application with
   tomcat ? This way the user only double click the jar/war and it
   launchs browser with tomcat. I can't offer user to install gwt hosted
   browser ...
 
   Thanks in advance.
   Best regards.
 


--~--~-~--~~~---~--~~
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: Popup panel over the cursor

2009-02-06 Thread Litty Preeth
int posLeft = event.getScreenX();
if ((posLeft + popupWidth)  (Window.getClientWidth() + Window
.getScrollLeft()))
posLeft = posLeft
- (posLeft + popupWidth - (Window.getClientWidth() +
Window
.getScrollLeft()));

int posTop = event.getScreenY();
if ((posTop + popupHeight)  (Window.getClientHeight() + Window
.getScrollTop()))
posTop = posTop
- (posTop + popupHeight - (Window.getClientHeight() +
Window
.getScrollTop()));
popUpPanel_.setPopupPosition(posLeft, posTop);
popUpPanel_.show();

On Fri, Feb 6, 2009 at 2:13 PM, ArunDhaJ arund...@gmail.com wrote:


 Hi,
 I've a tree and context menu associated with it. When I right click a
 tree item the context menu will pop-up below the cursor. In case the
 tree item at bottom of the page. the menu generated extends the page
 further. I need to scroll the page to see few of my menu items.. worst
 is that, when I click the scroll bar, the menu disappears...

 How can I identify whether the cursor is at bottom of the page and
 generate menu over the cursor???

 plz suggest me...


 Regards,
 ArunDhaJ
 


--~--~-~--~~~---~--~~
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: how to add items in tree from database after immediately inserting new items

2009-02-05 Thread Litty Preeth
If the data insertion call is happening from some UI action then in the
onSuccess of insertion call you can tell the tree to update itself. If that
is not possible then your tree can check for any updates proactively using a
Timer.

On Thu, Feb 5, 2009 at 3:47 PM, kanan keri.s...@gmail.com wrote:


 I'm using tree to display items from database. My problem is that when
 I insert new items in database, the newly inserted item is to display
 immediately in the tree . How can I do that?

 


--~--~-~--~~~---~--~~
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: ScrollPanel maxWidth or maxHeight?

2009-02-05 Thread Litty Preeth
there is some max-height CSS property. But dont know if it works.

On Thu, Feb 5, 2009 at 8:59 PM, alex.d alex.dukhov...@googlemail.comwrote:




 On 5 Feb., 16:10, gregor greg.power...@googlemail.com wrote:
  Hi Alex,
 
  I think you have to explicitly specify the height of a ScollPanel in
  pixels to get the scroll bars to kick in, and that will set the height
  of the panel from the word go. If what you mean is that you want a
  panel to start at a minimum size, then grow as things are added to it,
  but then to stop growing and go into scroll mode at a certain point,

 exactly what i meant.

  I do not think that is realistically possible since there is no event
  you can listen for that would tell you when the panel had grown to a
  given height. You can listen for the browser window changing, but not
  for an individual panel.
 
  I suppose one approach might be to set up a timer to check the current
  height at intervals and take appropriate action when it hit the limit,
  but this sounds very inefficient.
 

 Indeed it does. I kind of hoped somebody will have a genious idea
 about it ;-) Thank you for your input anyway.

  regards
  gregor
 
  On Feb 5, 9:29 am, alex.d alex.dukhov...@googlemail.com wrote:
 
   Hi folks,
   I'm trying to impelement a scrollpanel that becomes bigger (height) to
   the certain size (maxHeight) when populating it with data.  After that
   vertical scrollbar should appear and the panel should stop growing.
   Any ideas on how to implement this would be appreciated.
 
 
 


--~--~-~--~~~---~--~~
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: Deploying GWT application (WAR)

2009-02-05 Thread Litty Preeth
Well for web application you dont give the user a WAR file, but you deploy
the war file on a server machine (where you have an application server like
Tomcat installed) and then give the url of the application to the user. User
will use his browser to open ur URL.

- litty

On Fri, Feb 6, 2009 at 4:13 AM, Jonathan jonathan.delf...@gmail.com wrote:


 Hi to all,

 I managed to install properly gwt that runs fine under my linux.
 However, i have some problems to understand the deployment step to
 war.

 I use a servlet to upload a file to server so i would like to deploy
 my project WITH tomcat.

 Is that possible ?
 So that, if i want to install it on a web server, i just have to
 deploy the war file (i don't know how to create it, i just made the
 hierarchy :/)
 And if it's only for local use, the integrated tomcat will be used. As
 the hosted browser do...

 Not sure if i'm clear but to sum up: how to deploy my application with
 tomcat ? This way the user only double click the jar/war and it
 launchs browser with tomcat. I can't offer user to install gwt hosted
 browser ...

 Thanks in advance.
 Best regards.

 


--~--~-~--~~~---~--~~
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: onClick event for inline text

2009-02-05 Thread Litty Preeth
Well you can make tht particular word into a seperate Label and give click
listener to the label.

On Fri, Feb 6, 2009 at 4:58 AM, vroom_vroom slabarb...@gmail.com wrote:


 this seams like it would be incredibly easy and straight forward, but
 after an hour of looking i had to post. I have a bunch of text in a
 paragraph. i would like one word in that paragraph a link that when i
 click can call a handler method. In javascript this is super easy, in
 GWT it seams to be a hassle. what is the most efficient way to do
 this?
 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: onclick event for inline text

2009-02-05 Thread Litty Preeth
You can use a HTML widget and around the particular word you can place
anchor tags with onclick handler.

On Fri, Feb 6, 2009 at 5:11 AM, vroom_vroom slabarb...@gmail.com wrote:


 I should say, the way i am planning to do it is to use labels for the
 words i want to be able to click on and use ccs to try and make the
 label in-linewould be nice if there was a better way



 On Feb 5, 3:33 pm, vroom_vroom slabarb...@gmail.com wrote:
  this seams like it would be incredibly easy and straight forward, but
  after an hour of looking i had to post. I have a bunch of text in a
  paragraph. i would like one word in that paragraph a link that when i
  click can call a handler method. In javascript this is super easy, in
  GWT there doesnt seam to be an easy way of doing it. what is the most
  efficient way to do
  this?
  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: Call event after an other

2009-02-05 Thread Litty Preeth
I dont think you can change the order of the vents. But here may be what you
can do is in the Class B have a flag indicating the running of onChnage and
when onChnage is complete set this flag. Now in Class A onClick wait till
the Class B flag is set and then only start handling the onClick logic.

- Litty

On Fri, Feb 6, 2009 at 11:26 AM, Danny Schimke schimk...@googlemail.comwrote:

 It does not work...I am doing anything wrong.

 Can you *explain how to use this*? I try to describe again: I habe 2
 events, both in a own class. The onClick from save button in class A and
 the onChange from the textbox in class B. If the onChange is fired the
 save is fired too (look at my first comment this thread). But I need the
 possibility to wait starting onClick until onChange is running.

 -Danny

 2009/2/5 Damien Picard picard.dam...@gmail.com

 Hi !

 You can control event propagation with low-level functions
 (onBrowserEvent, Event) ; in your case, use the Event.cancelBubble function
 :


 http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29

 2009/2/5 Danny Schimke schimk...@googlemail.com

 Hi!

 If I have following problem: I enter some text in a textbox. Now I click
 on a button to save data to a database. With leaving the edit ists onChange-
 event is called, but the onClick- event of the button is called too at same
 the time. Saving is faster than onChange. I tried to handle the onClick
 after other events have done their work by using a DeferedCommand. But is
 doesn't work. Saving is allways faster than the onChange.

 Is there a way to control the handling-order of events?

 Thank you!
 -Danny







 


--~--~-~--~~~---~--~~
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: how to catch the double click event

2009-02-04 Thread Litty Preeth
Try this eg:

*public* *class* Home *extends* AbsolutePanel *implements* EntryPoint {



  *public* *void* onModuleLoad() {

init();

  }



  *private* *void* init() {

RootPanel.*get*().add(*this*);

setHeight(Window.*getClientHeight*()+px);

DOM.*setStyleAttribute*(getElement(), background, #ADDFFF);

Label lbl = *new* Label();

DOM.*setStyleAttribute*(lbl.getElement(), color, blue);

DOM.*setStyleAttribute*(lbl.getElement(), font-weight, bold
);

DOM.*setStyleAttribute*(lbl.getElement(), font-size, 16px);

lbl.setText(Right Click OR Double Click anywhere);

*this*.add(lbl);

sinkEvents(Event.*ONMOUSEDOWN*);

sinkEvents(Event.*ONDBLCLICK*);

  }



  *public* *void* onBrowserEvent(Event event) {

*super*.onBrowserEvent(event);

*switch* (DOM.*eventGetType*(event)) {

*case* Event.*ONMOUSEDOWN*:

  *if*(DOM.*eventGetButton*(event) == Event.*BUTTON_RIGHT*)

Window.*alert*(You RIGHT CLICKED);

  *break*;

*case* Event.*ONDBLCLICK*:

  Window.*alert*(You DOUBLE CLICKED);

  *break*;

}

  }

}

- Litty

On Wed, Feb 4, 2009 at 2:07 PM, arun theeperfection...@gmail.com wrote:



 i tried this..but event.getTypeInt() is not capturing the doubleclick
 event.is there any other way to capture double click?



 On Feb 4, 1:22 pm, Jason Morris lem...@gmail.com wrote:
  It doesn't matter that they have the same value, they are returned from 2
 different fields in Event:
 
  if(event.getButton() == Event.BUTTON_RIGHT)
 
  if(event.getTypeInt() == Event.ONDBLCLICK)
 
  Hope that helps
  //J
 
 
 
  arun wrote:
   no...actually i m mentioning about event.BUTTON_RIGHT and
   event.ONDBLCLICK
   Both having same value i.e.2 and i m using both in my application.
   On Feb 4, 12:38 pm, Litty Preeth preeth.h...@gmail.com wrote:
   No the constants for both are different... Event.ONCLICK and Event.
   ONDBLCLICK
 
   On Wed, Feb 4, 2009 at 12:44 PM, arun theeperfection...@gmail.com
 wrote:
 
   i have a requirement to catch the double click event. i am catching
   right click too. but both event are getting mixed up. only right
 click
   is working fine. Thsi may be because both event have same constant
   field values. is ther eany way to distinguish these two?
   Any help would be appreciated.- Hide quoted text -
   - Show quoted text -- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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: How to capture the mouse Double click event?

2009-02-04 Thread Litty Preeth
Follow this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/c1d7fd8f7f0f9a0f#

On Wed, Feb 4, 2009 at 1:53 PM, Prashant prashant@gmail.com wrote:


 I need to capture the mouse double click event on the widget that is
 attached to the RootPanel.Event.ONDBLCLICK isn't working fine.Any
 suggestions regarding this are welcome.

 


--~--~-~--~~~---~--~~
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: Opening a new browser window in gwt

2009-02-04 Thread Litty Preeth
Hi Manish,

I think I got the problem. When I used the following code in IE

Window.open( http://google.com;, *My Window*,
menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes );

It was giving me script error (U ll c tht only if script error notification
is enabled). But when I used the below code it workd perfectly:

Window.open( http://google.com;, *MyWindow*,
menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes );

If you see, the only difference is absence of space in the window name
string.

But both works fine in FF.

- Litty

On Wed, Feb 4, 2009 at 4:09 PM, Damien Picard picard.dam...@gmail.comwrote:

 Hi !

 Could you give us the location's content ?

 Regards,
 Damien

 2009/2/4 Manish Kumar man...@oakdeneindia.com

  Hi everybody,

 I am trying to open a new browser window on click. I am trying this line
 of code but this does work ( no action noticed ) though not getting error
 also ( I checked my listener, that is ok ).

 com.google.gwt.user.client.Window.*open*( location, fileTitle,
 menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes );

 Could anybody help me out to get rid of this.

 Regards,
 Manish




 


--~--~-~--~~~---~--~~
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: Capture ctrl + mouse click event on grid

2009-02-04 Thread Litty Preeth
I think event.getCtrlKey() is the function for you.

- Litty

On Wed, Feb 4, 2009 at 3:23 PM, Mikhail M itmo@gmail.com wrote:

 I need to capture the ctrl + mouse click event on grid.
 Any suggestions regarding this are welcome.
 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: Javascript in HTML blocks

2009-02-04 Thread Litty Preeth
May I know why u want this?

On Wed, Feb 4, 2009 at 3:41 PM, sgaide sga...@gmail.com wrote:


 Hi,

 I'm looking for a clear answer about the possibility to inject
 javascript into the DOM using HTML widget.
 I have found two threads about this, with no definitive answers:

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
 thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript
 +HTML#a60c36f305f21337http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Athread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript%0A+HTML#a60c36f305f21337
 

 and

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
 thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript
 +HTML#44c22a52f86feb36http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Athread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript%0A+HTML#44c22a52f86feb36
 

 My application needs to inject some javascript code at runtime (the
 code is provided at runtime and can not be inserted in the html page
 or loaded using a 'dynamic' script file). The only way I found to do
 that is to create an HTML widget. The results are highly dependant on
 the browser :

 - with Firefox all works pretty well
 - with Safari and IE7 it doesn't work at all (javascript code is not
 executed). Using Safari development inspector I can see the javascript
 code in the DOM, but it's not interpreted by the browser.


 So is it really possible to inject javascript using an HTML widget ?
 if yes, how ? if no, is there any other way to do it ?

 Thanks a lot,

 regards,

 Sebastien.

 


--~--~-~--~~~---~--~~
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: Javascript in HTML blocks

2009-02-04 Thread Litty Preeth
Which browser are you testing on?

I tried the following:

public class Home extends AbsolutePanel implements EntryPoint {

public void onModuleLoad() {
init();
}

private void init() {
RootPanel.get().add(this);
HTML html = new HTML(scriptalert('Hai')/script);
this.add(html);
}
}


It worked in FF but not in IE

- Litty

On Wed, Feb 4, 2009 at 5:53 PM, sgaide sga...@gmail.com wrote:


 Yes, of course.

 My gwt application is used to generate web applications dynamically.
 The user configure its web application using a wysiwyg editor (well
 sort of), this configuration is then used by the gwt application to
 create widgets at runtime.
 In the application editor, it's possible to add raw html blocks. In
 this block the user may insert javascript code.

 If it's really not possible to inject javascript in this way, we may
 ask the user to put all it's javascript code in one place and load
 this as an external js script file. But this would be seen (at least
 by me ;-) ) as a less flexible solution...

 S.

 On 4 fév, 12:21, Litty Preeth preeth.h...@gmail.com wrote:
  May I know why u want this?
 
  On Wed, Feb 4, 2009 at 3:41 PM, sgaide sga...@gmail.com wrote:
 
   Hi,
 
   I'm looking for a clear answer about the possibility to inject
   javascript into the DOM using HTML widget.
   I have found two threads about this, with no definitive answers:
 
   http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
   thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript
   +HTML#a60c36f305f21337
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Ath...
 
   and
 
   http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
   thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript
   +HTML#44c22a52f86feb36
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/%0Ath...
 
   My application needs to inject some javascript code at runtime (the
   code is provided at runtime and can not be inserted in the html page
   or loaded using a 'dynamic' script file). The only way I found to do
   that is to create an HTML widget. The results are highly dependant on
   the browser :
 
   - with Firefox all works pretty well
   - with Safari and IE7 it doesn't work at all (javascript code is not
   executed). Using Safari development inspector I can see the javascript
   code in the DOM, but it's not interpreted by the browser.
 
   So is it really possible to inject javascript using an HTML widget ?
   if yes, how ? if no, is there any other way to do it ?
 
   Thanks a lot,
 
   regards,
 
   Sebastien.
 


--~--~-~--~~~---~--~~
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: Opening a new browser window in gwt

2009-02-04 Thread Litty Preeth
Well I copy pasted your same code and it worked. Just check if the url is
valid. Also check if popup is not disabled.

On Wed, Feb 4, 2009 at 3:59 PM, Manish Kumar man...@oakdeneindia.comwrote:

  Hi everybody,

 I am trying to open a new browser window on click. I am trying this line of
 code but this does work ( no action noticed ) though not getting error also
 ( I checked my listener, that is ok ).

 com.google.gwt.user.client.Window.*open*( location, fileTitle,
 menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes );

 Could anybody help me out to get rid of this.

 Regards,
 Manish

 


--~--~-~--~~~---~--~~
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: Javascript in HTML blocks

2009-02-04 Thread Litty Preeth
RootPanel.get().add(this);
HTML html = new HTML();
this.add(html);
String sHTML=input type=button onclick= + go2() + 
value='Click Me'BR;
String sScript=SCRIPT DEFER;
sScript = sScript + function go2(){ alert('Hello from inserted
script.') };
sScript = sScript + /SCRIPT + ;
html.setHTML(sHTML+sScript);

This code works is IE also.

As per msdn http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
*When using innerHTML** **to insert script, you must include the DEFER
attribute in the script element.*

- Litty

On Wed, Feb 4, 2009 at 10:33 PM, Adam T adam.t...@gmail.com wrote:


 For loading from a Url try the following (being aware of the security
 issues):

  /**
   * Adds the necessary DOM script element.
   *
   * @param uniqueId A unique id for the DOM element.
   * @param url Location of script.
   */
  public native void addScript(String uniqueId, String url) /*-{
var elem = document.createElement(script);
elem.setAttribute(language, JavaScript);
elem.setAttribute(src, url);
elem.setAttribute(id, uniqueId);
document.getElementsByTagName(body)[0].appendChild(elem);
  }-*/;

 if you have direct code, perhaps just add the code as a child to the
 elem created, i.e. elem.text = alert('Hello'); and ignore the
 setAttribute(src, url) line??

 //Adam

 On 4 Feb, 11:11, sgaide sga...@gmail.com wrote:
  Hi,
 
  I'm looking for a clear answer about the possibility to inject
  javascript into the DOM using HTML widget.
  I have found two threads about this, with no definitive answers:
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
  thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript
  +HTML#a60c36f305f21337
 
  and
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
  thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript
  +HTML#44c22a52f86feb36
 
  My application needs to inject some javascript code at runtime (the
  code is provided at runtime and can not be inserted in the html page
  or loaded using a 'dynamic' script file). The only way I found to do
  that is to create an HTML widget. The results are highly dependant on
  the browser :
 
  - with Firefox all works pretty well
  - with Safari and IE7 it doesn't work at all (javascript code is not
  executed). Using Safari development inspector I can see the javascript
  code in the DOM, but it's not interpreted by the browser.
 
  So is it really possible to inject javascript using an HTML widget ?
  if yes, how ? if no, is there any other way to do it ?
 
  Thanks a lot,
 
  regards,
 
  Sebastien.
 


--~--~-~--~~~---~--~~
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: Javascript in HTML blocks

2009-02-04 Thread Litty Preeth
And also checkout that the /SCRIPT tag is broken into two: sScript =
sScript + /SCRIPT + ;
If you dont do that then also it wont work.

On Thu, Feb 5, 2009 at 9:59 AM, Litty Preeth preeth.h...@gmail.com wrote:

 RootPanel.get().add(this);
 HTML html = new HTML();
 this.add(html);
 String sHTML=input type=button onclick= + go2() + 
 value='Click Me'BR;
 String sScript=SCRIPT DEFER;
 sScript = sScript + function go2(){ alert('Hello from inserted
 script.') };
 sScript = sScript + /SCRIPT + ;
 html.setHTML(sHTML+sScript);

 This code works is IE also.

 As per msdn 
 http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspxhttp://msdn.microsoft.com/en-us/library/ms533897%28VS.85%29.aspx
 *When using innerHTML** **to insert script, you must include the DEFER
 attribute in the script element.*

 - Litty


 On Wed, Feb 4, 2009 at 10:33 PM, Adam T adam.t...@gmail.com wrote:


 For loading from a Url try the following (being aware of the security
 issues):

  /**
   * Adds the necessary DOM script element.
   *
   * @param uniqueId A unique id for the DOM element.
   * @param url Location of script.
   */
  public native void addScript(String uniqueId, String url) /*-{
var elem = document.createElement(script);
elem.setAttribute(language, JavaScript);
elem.setAttribute(src, url);
elem.setAttribute(id, uniqueId);
document.getElementsByTagName(body)[0].appendChild(elem);
  }-*/;

 if you have direct code, perhaps just add the code as a child to the
 elem created, i.e. elem.text = alert('Hello'); and ignore the
 setAttribute(src, url) line??

 //Adam

 On 4 Feb, 11:11, sgaide sga...@gmail.com wrote:
  Hi,
 
  I'm looking for a clear answer about the possibility to inject
  javascript into the DOM using HTML widget.
  I have found two threads about this, with no definitive answers:
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
  thread/49cbe6bda567c1a9/a60c36f305f21337?lnk=gstq=javascript
  +HTML#a60c36f305f21337
 
  and
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/
  thread/6fb61e587d7eab8d/44c22a52f86feb36?lnk=gstq=javascript
  +HTML#44c22a52f86feb36
 
  My application needs to inject some javascript code at runtime (the
  code is provided at runtime and can not be inserted in the html page
  or loaded using a 'dynamic' script file). The only way I found to do
  that is to create an HTML widget. The results are highly dependant on
  the browser :
 
  - with Firefox all works pretty well
  - with Safari and IE7 it doesn't work at all (javascript code is not
  executed). Using Safari development inspector I can see the javascript
  code in the DOM, but it's not interpreted by the browser.
 
  So is it really possible to inject javascript using an HTML widget ?
  if yes, how ? if no, is there any other way to do it ?
 
  Thanks a lot,
 
  regards,
 
  Sebastien.
 



--~--~-~--~~~---~--~~
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: unable to remove widget from a vertical panel

2009-02-04 Thread Litty Preeth
May be if you post the part of code then we can see if ur loop has any
issues.

On Wed, Feb 4, 2009 at 9:32 PM, marce_liz lizethmarc...@gmail.com wrote:


 hi I've been working with gwt since the last year, well my problem is
 that I have a VerticalPanel with widgets but when i want to remove
 them from my VerticalPanel the last one that was created is still
 there, it' doesn't happen with the others for example if I remove from
 the beginning to the end it works ok but if I want to remove from the
 end to the beginning it works in a bad way

 


--~--~-~--~~~---~--~~
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: Starting with GWT - Error compiling GWT-RPC Class

2009-02-03 Thread Litty Preeth
[ERROR] Errors in 'file:/Users/viniciuscarvalho/

 Documents/Caravela/
 spotlight/gwt-bundle/src/org/openspotlight/client/OSLApplication.java'
  [ERROR] Line 5: *The import
 org.openspotlight.server.**GWTServiceImpl cannot be resolved*


Plz see the line in bold. It says that your client class OSLApplication has
an import of GWTServiceImpl, which is not valid. Why are you importing the
RPC implementation class? I suppose this is by mistake.

 BTW: Does compile, compiles all the sources or only those at server and
client folders?
Only client folder is converted to javascript.


On Tue, Feb 3, 2009 at 4:28 PM, Vinicius Carvalho 
viniciusccarva...@gmail.com wrote:


 Hello there! I've just started with GWT and have this RPC Servlet:

 package org.openspotlight.client;

 import java.util.List;

 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.RemoteService;

 public interface GWTService extends RemoteService {
public void listAvailableServices(AsyncCallbackListString
 callback);
 }


 package org.openspotlight.server;

 import java.util.ArrayList;
 import java.util.List;

 import org.openspotlight.client.GWTService;
 import org.openspotlight.parsers.Parser;

 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.SerializationException;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 public class GWTServiceImpl extends RemoteServiceServlet implements
 GWTService{

private ListParser parsers;

@Override
public String processCall(String payload) throws
 SerializationException {
Thread.currentThread().setContextClassLoader(
  this.getClass().getClassLoader() );
return super.processCall(payload);
}

public void listAvailableServices(AsyncCallbackListString
 callback) {
ListString services = new ArrayListString();
if(parsers != null){
for(Parser p : parsers){
services.add(p.getSupportedTypes());
}
}

}

 }

 module

  !-- Inherit the core Web Toolkit stuff.
 --
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change
 --
  !-- the theme of your GWT application by uncommenting
 --
  !-- any one of the following lines.
 --
  inherits name='com.google.gwt.user.theme.chrome.Chrome'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/
 --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/
 --

  !-- Other module inherits
 --


  !-- Specify the app entry point class.
 --
  entry-point class='org.openspotlight.client.OSLApplication'/

  !-- Specify the application specific style sheet.
 --
  stylesheet src='OSLApplication.css' /
  servlet path=/gwtServices
 class=org.openspotlight.server.GWTServiceImpl/

 /module


 When I run ./OSLApplication-compile, I get this error:

 vinicius-carvalhos-macbook:gwt-bundle viniciuscarvalho$ ./
 OSLApplication-compile
 Removing units with errors
   [ERROR] Errors in 'file:/Users/viniciuscarvalho/Documents/Caravela/
 spotlight/gwt-bundle/src/org/openspotlight/client/OSLApplication.java'
  [ERROR] Line 5: The import
 org.openspotlight.server.GWTServiceImpl cannot be resolved
 Compiling module org.openspotlight.OSLApplication
 Computing all possible rebind results for
 'org.openspotlight.client.OSLApplication'
   Rebinding org.openspotlight.client.OSLApplication
  Checking rule generate-with
 class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
 [ERROR] Unable to find type
 'org.openspotlight.client.OSLApplication'
[ERROR] Hint: Previous compiler errors may have made this
 type unavailable
[ERROR] Hint: Check the inheritance chain from your
 module; it may not be inheriting a required module or a module may not
 be adding its source path entries properly
 [ERROR] Build failed


 I have external libs pointed using eclipse project properties, but
 those libs are used in antoher class (org.openspotlight.gwt.internal)

 Any ideas?

 BTW: Does compile, compiles all the sources or only those at server
 and client folders?

 Regards

 


--~--~-~--~~~---~--~~
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: how to catch the double click event

2009-02-03 Thread Litty Preeth
No the constants for both are different... Event.ONCLICK and Event.
ONDBLCLICK

On Wed, Feb 4, 2009 at 12:44 PM, arun theeperfection...@gmail.com wrote:


 i have a requirement to catch the double click event. i am catching
 right click too. but both event are getting mixed up. only right click
 is working fine. Thsi may be because both event have same constant
 field values. is ther eany way to distinguish these two?
 Any help would be appreciated.
 


--~--~-~--~~~---~--~~
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: data returned from Async call... how to use it?

2009-01-29 Thread Litty Preeth
Either you can set the Label text inside the onSuccess method itself... For
this you can make the Label a member variable

OR

you can the set the value you retrieved frm the server to a member variable
and use it later

On Fri, Jan 30, 2009 at 5:59 AM, keith.m...@gmail.com
keith.m...@gmail.comwrote:


 Hi
 I'm able to get my data returned in my Async call... inside the call,
 in the onSuccess, I can output the data with the system.out.println
 (data) but how to I get the data out of the async call so that
 it can be used say in a label?
 I'm having all sorts of trouble with this.
 Any tips/pointers are appreciated.
 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: what widget to display status?

2009-01-28 Thread Litty Preeth
You can make the label pretty using CSS.

- Litty

On Tue, Jan 27, 2009 at 11:23 PM, tony.p.. tony.t@gmail.com wrote:


 Hello all,

 I'm developing a gwt app and in it I want to display error messages,
 status, etc... to the user in a widget. I want to display it in a gray
 color, to distinguish it from the rest of the content. I used a label,
 but it's not that pretty. What widget do you recommend?

 Thank you.
 Tony
 


--~--~-~--~~~---~--~~
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: Automatically updating data

2009-01-28 Thread Litty Preeth
May be some of the Event Listeners will help you... But I dnt really follow
your problem... Can you explain a bit more?

On Wed, Jan 28, 2009 at 1:25 AM, fatjack1...@googlemail.com 
fatjack1...@googlemail.com wrote:


 Hi,

 I wonder if anyone can help me. I am trying to get a box with an
 Arraylist of items to automatically update its contents whenever the
 user adds a new item. So it writes to the database (this works fine)
 but then it does not automatically update the textbox. The only way i
 can get it to work is by restarting the whole program. Can someone
 please point me in the right direction.

 Cheers,
 Jack
 


--~--~-~--~~~---~--~~
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: Error Message

2009-01-28 Thread Litty Preeth
u shud use setWidget not add.

On Wed, Jan 28, 2009 at 8:00 PM, fatjack1...@googlemail.com 
fatjack1...@googlemail.com wrote:


 The items should be added to a FlexTable and the FlexTable is being
 added to a ScrollPanel.


 On Jan 28, 1:24 pm, Litty Preeth preeth.h...@gmail.com wrote:
  What is the type of Panel you are using?
 
  On Wed, Jan 28, 2009 at 3:39 AM, fatjack1...@googlemail.com 
 
  fatjack1...@googlemail.com wrote:
 
   Does anyone know which method/panel I should be using?
 
   On Jan 27, 10:01 pm, Jason Essington jason.essing...@gmail.com
   wrote:
What ever type of panel you are attempting to add a widget to, hasn't
overriden the .add(Widget child) method from Panel, so it is throwing
this exception. perhaps there is a different method that you are
supposed to use to add widgets to your panel?
 
-jason
 
On Jan 27, 2009, at 2:40 PM, fatjack1...@googlemail.com wrote:
 
 Hi,
 
 I am receiving the following error message when I try to add a new
 item to a database:
 
 [ERROR] Uncaught exception escaped
 java.lang.UnsupportedOperationException: This panel does not
 support
 no-arg add()
at com.google.gwt.user.client.ui.Panel.add(Panel.java:66)
at
   com.project.client.EditItemsGUI$2.onSuccess(EditItemsGUI.java:220)
at
 com
 .google
 .gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
 (RequestCallbackAdapter.java:215)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
 (Request.java:254)
at
 com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
 (Request.java:226)
at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
 (IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
 (IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
 (IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
 (IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
 (COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
 Method)
at
 org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
 
 It actually adds the item to the database, it just doesnt show up
 unless I restart the application. Please can someone help?
 
 Regards,
 Jack
 


--~--~-~--~~~---~--~~
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: what widget to display status?

2009-01-28 Thread Litty Preeth
Well that depends on ur requirement Well for displaying error messages
and status i think Label is the one Dont worry... Label is just a DIV
whose innerText is set. I use that only in my project for thoes purposes

On Thu, Jan 29, 2009 at 7:15 AM, tony.p.. tony.t@gmail.com wrote:


 Thank you Litty.
 I added css to the Label and it does look better. But still wondering
 if this is the best practice to implement a status Widget for users.

 Thanks again,
 Tony

 On Jan 28, 7:16 am, Litty Preeth preeth.h...@gmail.com wrote:
  You can make the label pretty using CSS.
 
  - Litty
 
  On Tue, Jan 27, 2009 at 11:23 PM, tony.p.. tony.t@gmail.com wrote:
 
   Hello all,
 
   I'm developing a gwt app and in it I want to display error messages,
   status, etc... to the user in a widget. I want to display it in a gray
   color, to distinguish it from the rest of the content. I used a label,
   but it's not that pretty. What widget do you recommend?
 
   Thank you.
   Tony
 


--~--~-~--~~~---~--~~
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: How to insert/create data nto database using Hibernate?

2009-01-28 Thread Litty Preeth
You are posting in the wrong forum...

On Wed, Jan 28, 2009 at 12:19 PM, Srihari.Ch sriharich@gmail.comwrote:



 Hi all,

 I need to know basics of Hibernate about creating hibernate
 methods/classes to retrieve and save data to and from the database.


 I am new to Hibernate. Send me .. it's urgent


 Srihari.Ch

 


--~--~-~--~~~---~--~~
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: Help with RPC, database and properties file

2009-01-27 Thread Litty Preeth
Well you can get that by:

getThreadLocalRequest().getSession().getServletContext().getInitParameter(db_driver);

You can do this only from your RPC service implementation class

- Litty

On Tue, Jan 27, 2009 at 10:40 PM, Fitch arvi...@gmail.com wrote:


 Thank you..
 and then how I access this web.xml from my .java file in the server
 package??

 thanks

 On 27 ene, 05:37, Litty Preeth preeth.h...@gmail.com wrote:
  Are you sure the application is able to find the properties file? Did u
 try
  debugging and find out this? Also the best way to configure ur connection
  parameters is to put it in your web.xml context-param like:
  web-app
  ...
  ...
  context-param
  param-namedb_driver/param-name
  param-valueoracle.jdbc.driver.OracleDriver/param-value
  /context-param
  context-param
  param-namedb_server/param-name
  param-value192.168.31.41/param-value
  /context-param
  .
  .
  /web-app
 
  - litty preeth
 
 
 
  On Tue, Jan 27, 2009 at 6:39 AM, Fitch arvi...@gmail.com wrote:
 
   Hi, i´m devloping a GWT web application and i´m having problems
   deploying it.
   My application does interact with a database, so i have got a client
   package and a server package. The operations with the database are in
   the server package. I would like to specify database parameters (url,
   username and pass) in a .properties file. This way, I can change the
   url, username or password without compiling again.
 
   How can I do this? I tried having a file.properties file at WEB-INF/
   classes/ and then access it from my server package with this:
 
   this.getClass().getClassLoader().getResourceAsStream
   (procedimientos.properties);
 
   but this does not work, when i change the data at file.properties, the
   application continues connecting to the same database. Even if i
   delete the file from web-inf/classes at tomcat/webapps folder, it does
   work.
 
   Can anyone help me, please??
 
   Thank you very much- Ocultar texto de la cita -
 
  - Mostrar texto de la cita -
 


--~--~-~--~~~---~--~~
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: Help with RPC, database and properties file

2009-01-26 Thread Litty Preeth
Are you sure the application is able to find the properties file? Did u try
debugging and find out this? Also the best way to configure ur connection
parameters is to put it in your web.xml context-param like:
web-app
...
...
context-param
param-namedb_driver/param-name
param-valueoracle.jdbc.driver.OracleDriver/param-value
/context-param
context-param
param-namedb_server/param-name
param-value192.168.31.41/param-value
/context-param
.
.
/web-app

- litty preeth

On Tue, Jan 27, 2009 at 6:39 AM, Fitch arvi...@gmail.com wrote:


 Hi, i´m devloping a GWT web application and i´m having problems
 deploying it.
 My application does interact with a database, so i have got a client
 package and a server package. The operations with the database are in
 the server package. I would like to specify database parameters (url,
 username and pass) in a .properties file. This way, I can change the
 url, username or password without compiling again.

 How can I do this? I tried having a file.properties file at WEB-INF/
 classes/ and then access it from my server package with this:

 this.getClass().getClassLoader().getResourceAsStream
 (procedimientos.properties);

 but this does not work, when i change the data at file.properties, the
 application continues connecting to the same database. Even if i
 delete the file from web-inf/classes at tomcat/webapps folder, it does
 work.

 Can anyone help me, please??

 Thank you very much

 


--~--~-~--~~~---~--~~
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: Setting the DialogBox to popup at the center

2009-01-25 Thread Litty Preeth
Just call DialogBox.center() It will center the Dialogbox and show it.

On Sun, Jan 25, 2009 at 10:34 AM, Joshua Partogi joshua.j...@gmail.comwrote:


 Dear all,

 Does anyone know how to make the DialogBox to popup at the center of
 the screen? I could not find a method for figuring out the width and
 height of the screen that I can pass to the setPopupPosition.

 Help really appreciated. Thank you in advance.

 --
 If you can't believe in God the chances are your God is too small.

 Read my blog: http://joshuajava.wordpress.com/
 Follow me on twitter: http://twitter.com/jpartogi

 


--~--~-~--~~~---~--~~
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: tree item horizontal scroll moves by itself

2009-01-25 Thread Litty Preeth
There are bugs reported on GWT for these scrollbar moving issues... you may
check them out if they r relevent to ur case...

On Fri, Jan 23, 2009 at 10:08 PM, rookie udayasur...@gmail.com wrote:


 Hi,
 I've tree in scroll panel. When user selects tree item, horizontal
 scroll moves to right. Scrollbar should not move unless user moves it.
 Is there any work around for this?
 I tried below but it did not work.

 DOM.setStyleAttribute(scrlPnl.getElement(), position,static);
 DOM.setStyleAttribute(tree.getElement(), position,relative);

 -Suresh

 


--~--~-~--~~~---~--~~
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: Multiple same buttons

2009-01-25 Thread Litty Preeth
While creating the table rows you can do something like:

for (int i=0; itotalRecords; i++) {
   // update data columns
   Button button = new Button(Upload);
   button.addClickListener(new ClickListener() {
  uploadRow(i);
   )};
   table.setWidget(i,COL_BUTTON, button);
}

Now in the uploadRow method you have the index of the table row whose data
needs to be uploaded.

OR

You can set the id of the button as the row index of the table.

OR

You can loop thru the table rows and check for equality of the clicked
button and the current rows button.

- Litty Preeth

On Fri, Jan 23, 2009 at 10:05 PM, jake H pnosti...@gmail.com wrote:


 Moreover the way i m using the buttons is

 Button []but = new Button[x];


 and in every table i add the following but[y] ( 0= y  x )


 the question remains though.


 ty.
 


--~--~-~--~~~---~--~~
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: gray effect when dialogbox appears

2009-01-23 Thread Litty Preeth
search the forum u ll get posts on this.

On Fri, Jan 23, 2009 at 1:14 PM, ramesh chiluveri chiluveri...@gmail.comwrote:


 Hai All,

 I want to transparent  background window when dialog box shown.
 i think we have solutions to this.

 please give me your suggestions.



 


--~--~-~--~~~---~--~~
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: The method forName(String) is undefined for the type Class !!!

2009-01-22 Thread Litty Preeth
This code is where? in ur client side GWT code or server side? You cant use
Class.forName in GWT. Remember GWT code is eventually to get converted into
JS. Refer the following for the supported JRE lib emulations in GWT:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=RefJreEmulation

- Litty Preeth

On Fri, Jan 23, 2009 at 8:45 AM, keith.m...@gmail.com
keith.m...@gmail.comwrote:


 Hi
 I'm pretty new at the GWT, but have been using java for a few years.
 For whatever reason, I simply CANNOT get around this dumb error.
 Every example of using the mysql jdbc connector uses the Class.forName
 (com.mysql.jdbc.Driver) in it, but whenever I try to run this, I
 always get this:

 The method forName(String) is undefined for the type Class

 This happens on Linux, Windows, in Netscape, and Eclipse.

 WHAT am I missing?

 Here's the latest sample I tried, which I got online.

 public void connecter() {
System.out.println(MySQL Connect Example.);
Connection conn = null;
String url = jdbc:mysql://localhost:3306/;
String dbName = jdbctutorial;
String driver = com.mysql.jdbc.Driver;
String userName = root;
String password = root;
try {
  Class.forName(driver).newInstance();
  conn = DriverManager.getConnection(url
 +dbName,userName,password);
  System.out.println(Connected to the database);
  conn.close();
  System.out.println(Disconnected from database);
} catch (Exception e) {
  e.printStackTrace();
}
  }

 

 At ONE point the other day I was able to establish a connection to
 mysql running it on my linux machine, from eclipse.  But now I've
 somehow broken that magical configuration and can't get it back.

 Any help would be greatly appreciated.
 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: Filling a form

2009-01-21 Thread Litty Preeth
Hi,

Auto complete will work on static HTML fields only, ie. the fields should be
present in the HTML files and not added on the fly (as in case of GWT).
Please see section auto-complete and GWT of
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

I have not tried this so I dont have much details, may be you can google
more on this. I have seen posts related to this on this forum also.

- Litty Preeth

On Wed, Jan 21, 2009 at 10:13 PM, jucimarjr junior.juci...@gmail.comwrote:


 Hi,

 I would like to know if is possible (with gwt) the fields that I'm
 filling in a form auto-complete by itself.

 Understand?

 If I didn't use gwt, these fields auto-complete if I use the same word
 in a form, yeah?
 But with gwt, is this possible?


 Regards,


 Jucimar Júnior.

 


--~--~-~--~~~---~--~~
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 with Linux Ubuntu 8.10

2009-01-20 Thread Litty Preeth
Hi Muhannad,

You can keep the context parameters in your web.xml itself.

- Litty Preeth

On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote:


 Hello!
 Any body's here??!

 On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote:
  Hi,
 
  I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm
  facing some problems:
  1. My application try to connect to MySQL database using mysql-
  connector-java-5.1.6. I don't want to hard-code the connection string
  so where should I put the context parameters (url, driver,
  username...).
 
  Note:
  the folder named tomcat is not created automatically as did on
  Windows XP??!
 
  2. In hosted mode I get a blank white page when I click the run
  button?
 
  Please help. Thanks very much.
 


--~--~-~--~~~---~--~~
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 with Linux Ubuntu 8.10

2009-01-20 Thread Litty Preeth
How are you creating the project? Through cypal studio or GWT projectCreator

On Tue, Jan 20, 2009 at 2:22 PM, Muhannad muhannad@gmail.com wrote:


 Hi Litty,

 But as I told you before the folder named tomcat is not exist (I
 don't know why).
 When I built the same application on Windows, that folder tomcat is
 automatically created!

 Thanks!

 On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote:
  Hi Muhannad,
 
  You can keep the context parameters in your web.xml itself.
 
  - Litty Preeth
 
  On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com
 wrote:
 
   Hello!
   Any body's here??!
 
   On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote:
Hi,
 
I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm
facing some problems:
1. My application try to connect to MySQL database using mysql-
connector-java-5.1.6. I don't want to hard-code the connection
 string
so where should I put the context parameters (url, driver,
username...).
 
Note:
the folder named tomcat is not created automatically as did on
Windows XP??!
 
2. In hosted mode I get a blank white page when I click the run
button?
 
Please help. Thanks very much.
 


--~--~-~--~~~---~--~~
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: ListBox

2009-01-19 Thread Litty Preeth
You can add a ChangeListener to the list box, and put ur logic in onChange()
method. Refer the java docs for getting the selected item and all.

- Litty

On Mon, Jan 19, 2009 at 1:14 PM, Venkat venkivo...@gmail.com wrote:


 Hi All,

 Please guide me..

 I would like to display the selected item of listbox in a flowpanel.

 Also If nothing is selected in the listbox, the flow panel has to be
 disable.

 Please help me how do it.

 Thanks  Regards,
 Venkat
 


--~--~-~--~~~---~--~~
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: TreeNode Listener issues

2009-01-19 Thread Litty Preeth
Hi manish,

May be you can explain a bit more about your issue. You hav just posted some
code and did not tell what you want and what you get.

Also if you think this is GWT EXT related issue post in their forum, you ll
get more responses.

- Litty Preeth

On Mon, Jan 19, 2009 at 8:46 PM, Manish Kumar man...@oakdeneindia.comwrote:


 Hi EveryBody,

 Can anybody help me out to get rid of this issue. I know this is not the
 right forum to put up.
 However, I make a kind request to share the reason behind this.

 Thanx  Regard,
 Manish

 - Original Message -
 From: Manish Kumar man...@oakdeneindia.com
 To: Google-Web-Toolkit@googlegroups.com
 Sent: Friday, January 16, 2009 6:41 PM
 Subject: Fw: TreeNode Listener issues


 
  any idea on this. please help me out.
 
  Thanx
  - Original Message -
  From: Manish Kumar man...@oakdeneindia.com
  To: Google-Web-Toolkit@googlegroups.com
  Sent: Friday, January 16, 2009 12:48 PM
  Subject: TreeNode Listener issues
 
 
 
 
  Hi Everybody,
 
  Can I get any help on this : I am calling a listener in this fashion. I
  am
  not getting what i am doing wrong. I am using GWT 1.5.2 and GWText
  component.
 
  Please have a look at my code and help me out to find where i am wrong.
  Please excuse and let me know if anything is not concerned to this
 forum.
 
  import com.gwtext.client.widgets.tree.TreeNode;
  final TreeNode rootChild = new TreeNode( itemName );
 
  if( itmType != null  itmType.equalsIgnoreCase(folder) )
 
  {
 
 rootChild.setExpandable(true);
 
 
 rootChild.addListener(new TreeNodeListenerAdapter() {
 
 
 public void onClick(Node node, EventObject e) {
 
 try
 
 {
 
 RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
  URL.encode(tempUrl));
 
 
 builder.setCallback(new RequestCallback()
 
 {
 
 public void onError(Request request, Throwable exception)
 
   {
 
 MessageBox.alert( exception.getLocalizedMessage() );
 
   }
 
 public void onResponseReceived(Request request, Response
  response)
 
  {
 
 if (200 == response.getStatusCode())
 
   {
 
 MessageBox.alert( response.getText() );
 
 buildTreeNode ( response.getText(), rootChild, root,
  tempUrl );
 
   }
 
 else
 
   {
 
MessageBox.alert(response.getStatusCode() + : +
  response.getStatusText() +:+ response.getText() );
 
   }
 
}
 
 });
 
 builder.send();
 
 }
 
 catch(RequestException ex)
 
 {
 
 System.out.println( Exception occurred during sub tree node: +
  ex.getLocalizedMessage());
 
 }
 
  }
 
  });
 
  }
 
  else
 
  {
 
 rootChild.addListener(new TreeNodeListenerAdapter()
 
 {
 
 public void onDblClick( Node node, EventObject e ) {
 
 try
 
  {
 
 System.out.println(xxx :);
 
 
 RequestBuilder builder = new
  RequestBuilder(RequestBuilder.GET,
  URL.encode(tempUrl));
 
 
 builder.setCallback(new RequestCallback()
 
 {
 
 public void onError( Request request, Throwable exception )
 
  {
 
 MessageBox.alert( exception.getLocalizedMessage() );
 
 }
 
 
   public void onResponseReceived( Request request, Response
  response )
 
{
 
 if ( 200 == response.getStatusCode() )
 
  {
 
 TabPanel tabPanel = new TabPanel();
 
 tabPanel.setTabPosition(Position.BOTTOM);
 
 tabPanel.setResizeTabs(true);
 
 tabPanel.setMinTabWidth(115);
 
 tabPanel.setTabWidth(135);
 
 tabPanel.setActiveTab(0);
 
 
 Frame google = new Frame(itmPath);
 
 
 Panel filePanel = new Panel(Google);
 
 filePanel.setLayout(new FitLayout());
 
 filePanel.setIconCls(tab-icon);
 
 filePanel.add(google);
 
 }
 
 else
 
 {
 
 MessageBox.alert( response.getStatusCode() + : +
  response.getStatusText() +:+ response.getText() );
 
 }
 
  }
 
  });
 
  builder.send();
 
  }
 
  catch(RequestException ex)
 
  {
 
  System.out.println( Exception occurred during sub tree node: +
  ex.getLocalizedMessage());
 
  }
 
  }
 
  });
 
  }
 
 
  Regards,
  Manish
 
 
  
 
 
  


 


--~--~-~--~~~---~--~~
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: tree item and focus

2009-01-19 Thread Litty Preeth
May be you should first select the treeitem and then change the String item
into a TextBox item.

- Litty Preeth

On Mon, Jan 19, 2009 at 9:32 PM, David Durham david.durham...@gmail.comwrote:


 On Thu, Jan 8, 2009 at 11:53 AM, todd.sei...@gmail.com
 todd.sei...@gmail.com wrote:
 
  Whenever I see problems like this I try deferring the focus and/or
  listener registration from the event which creates a new widget like
  this. The Tree implementation includes some fun internals which change
  focus on things to ensure visibility and handle keyboard input.
 
  Example:
  public void onClick(Widget w) {
 DeferredCommand.addCommand(new Command() {
 public void execute() {
 createMyWidget();
 }
 });
  }

 I tried using a deferred command (actually right after you posted
 this), but it didn't work.  I think it has to do with Tree and
 TreeItems.  Interestingly if I have a Tree with only a single root
 TreeItem, I have no issues with setting focus to the text within a
 textbox within a TreeItem that was just added to a Tree.  At this
 point, I'm just going to write my own Tree widget.

 Thanks for your suggestion, I'm using it in other places.

 -Dave

 


--~--~-~--~~~---~--~~
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: How to show our widget in new window

2009-01-18 Thread Litty Preeth
Why do u want to open a popup in new window?

On Fri, Jan 16, 2009 at 3:01 PM, ramesh chiluveri chiluveri...@gmail.comwrote:


 Hai All,

 I have requirement like , i want to show my popup panel in a new
 window when application loads.

 is there any way to show our widgets in a new window.

 i think we have window.open(url,name,features) method. but it is not
 useful in this case.

 Thank u
 


--~--~-~--~~~---~--~~
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: Necessary .class files in order to deploy a GWT application

2009-01-15 Thread Litty Preeth
Well if your package.module.server code references any
package.module.client code then you ll need to include tht also in the
WEB-INF/classes. An example may be java bean classes shared by both server
and client.

- Litty Preeth

On Thu, Jan 15, 2009 at 6:58 PM, Rafael boraf...@gmail.com wrote:


 ¡Hello People!

   I was following the instructions to deploy a GWT app on a Tomcat
 server (http://code.google.com/intl/es-ES/docreader/#p=google-web-
 toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeploymenthttp://code.google.com/intl/es-ES/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideRPCDeployment
 )
 and it ocurred to me that the only .class files that should be copied
 onto the WEB-INF/classes folder are the ones located in the package
 package.module.server, considering that the remaining classes (the
 ones located in the public and client packages) are compiled via the
 GWT compiler into html, css, etc.

 ¿Is this correct?

 I should warn you that i have little to none experience with GWT so i
 am perfectly capable of not making any sense

 ¡Thanks in advance!

 Rafael

 


--~--~-~--~~~---~--~~
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: exchange data between pages

2009-01-14 Thread Litty Preeth
I assume that you are using RemoteServiceServlet. In ur login service
implementation put,

HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession();
session.setAttribute(username,userName);

And in the main application Service implementation you can retrieve the user
name as:
HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession();
String userName = (String)session.getAttribute(username);

Hope this helps.

On Wed, Jan 14, 2009 at 3:48 PM, newlis hrd...@yahoo.com wrote:


 Hmm, can u elaborate me a little more about this?
 I thought to use some cookies ,  but your proposal sounds nice also.
 


--~--~-~--~~~---~--~~
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: How to enable enter key for a button

2009-01-14 Thread Litty Preeth
Well you must be adding keyboard listener to the textboxes, not to the
button.

- Litty Preeth

On Wed, Jan 14, 2009 at 3:55 PM, newlis hrd...@yahoo.com wrote:


 This is what i m do. What is wrong?

 public Login() {




 .
signInButton = new Button();

signInButton.addClickListener(new ClickListener() {

public void onClick(Widget sender) {

if (textBoxUsername.getText().length() == 0
 ||
 textBoxPassword.getText().length() == 0) {

Window.alert(Username or password
 is empty.);

}
else
// do something
   }
});
signInButton.addKeyboardListener(new
 KeyboardListenerAdapter() {

public void onKeyPress(Widget sender, char keyCode,
 int modifiers)
 {


if(keyCode == KEY_ENTER) {

 if (textBoxUsername.getText().length() == 0
 ||
 textBoxPassword.getText().length() == 0) {

Window.alert(Username or password
 is empty.);

}
else
// do something
   }

}

});


signInButton.setText(Sign In);

}


 


--~--~-~--~~~---~--~~
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: exchange data between pages

2009-01-14 Thread Litty Preeth
Hi newlis,

RemoteServiceServlet is used on server side and not on client side. Your RPC
implementation classes extend this class. I have never used RequestBuilders
so I dont know if u can combine RemoteServiceServlets with RequestBuilder.
You can find a start up on RemoteServiceServlet at:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=GettingStartedRPC

Regards,
Litty Preeth

On Wed, Jan 14, 2009 at 7:09 PM, newlis hrd...@yahoo.com wrote:


 The solution seems really nice!!
 But because of lack of knowledge of HttpServletRequests i coundnt make
 it work.

 I m not using RemoteServiceServlet, when i need to ask data or get i
 use RequestBuilder methods.

 Do u have any nice tutorial to get used to RemoteServiceServlet , if
 and only i can combine it with RequestBuidler.


 I imported the
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 add the



 12: public class Main extends Composite, RemoteServiceServlet {
 317: your code
 21: irrelevant define of a verticalPanel.

 but got multiple errors


 [ERROR] Line 12: Syntax error on token(s), misplaced construct(s)
  [ERROR] Line 12: Syntax error, insert } to complete Block
  [ERROR] Line 21: Syntax error on tokens,
 AnnotationTypeDeclarationHeader expected instead
  [ERROR] Line 21: Syntax error on tokens, delete these tokens
  [ERROR] Line 22: Syntax error on tokens, delete these tokens
  [ERROR] Line 286: Syntax error on token }, delete this token
  [ERROR] Line 317: HttpServletRequest cannot be resolved to a
 type
  [ERROR] Line 317: The method getThreadLocalRequest() is
 undefined for the type new RequestCallback(){}
  [ERROR] Line 318: HttpSession cannot be resolved to a type
 Removing invalidated units


 ty again.

 


--~--~-~--~~~---~--~~
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: Refreshing the Page

2009-01-13 Thread Litty Preeth
What is ur logic for showing the login page? Is it tht the onmoduleload is
showing the login page? I think may be you should check for a valid session
before showing the login page...

On Mon, Jan 12, 2009 at 3:43 PM, Sandy sandeep.singh2...@gmail.com wrote:


 Hi,

 I am creating a web portal, I have required to refresh a page . Pls.
 let me know , how can i refresh the GWT Page, when I am using
 Window.Window.Location.reload()
 any where in the portal its come back on the login screen. I have
 required to refresh a page only.

 Regards,
 Sandeep

 


--~--~-~--~~~---~--~~
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: KeyboardListener help

2009-01-13 Thread Litty Preeth
Hi Alfred,

May be you can the sink the key events in the DialogBox and then handle it
in the onBowserEvent method. Like:

*class* KeyHandlingDialogBox *extends* DialogBox {

  *public* KeyHandlingDialogBox() {

*super*();

sinkEvents(Event.*KEYEVENTS*);

  }



  *public* *void* onBrowserEvent(Event event) {

*super*.onBrowserEvent(event);

*switch* (DOM.*eventGetType*(event)) {

*case* Event.*ONKEYDOWN*:

  // Do something

  *break*;

*case* Event.*ONKEYPRESS*:

  // Do something

  *break*;

*case* Event.*ONKEYUP*:

  // Do something

  *break*;

}

  }

}

Similarly for F2 handling may be you can sink and handle the events inside
the class which implements your base page. i.e. have a class that extends
may be the AbsolutePanel and add sinkEvents and onBrowserEvent to that. Now
add your widgets to this panel and add this panel to ur RootPanel. I think
tht shud work.

Hope this helps.

Regards,
Litty Preeth

On Fri, Jan 9, 2009 at 1:40 AM, Alfred S freddi...@gmail.com wrote:


 This might seem like a silly question, but I've been unable to find an
 answer...

 Where do I attach a KeyboardListener that would affect either:
 -A DialogBox [pop up a dialog box, press a button, trigger an event
 anywhere in the pop up]
 -The RootPanel [I press F2 and it mimics a clicking a button]

 I know you can attach KeyboardListeners to buttons, but they only
 trigger if the button is selected.  How do I get around this?  Please
 help!

 Thanks,
 ~Alfred
 


--~--~-~--~~~---~--~~
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: exchange data between pages

2009-01-13 Thread Litty Preeth
Cant you store the username to the HttpSession ?

- Litty Preeth

On Wed, Jan 14, 2009 at 5:25 AM, newlis hrd...@yahoo.com wrote:


 Hello I m making a two level application.

 By this i mean that i have made a separate login application

 and in another folder i have made my main application.

 Till now the user just login , the server check if he could or not and
 redirect him in the main application. But now i have to get some data
 from the login application , like for example his username. But i cant
 find how i can do this.
 And i dont want to use url to send the username as its not that safe.


 Can u  help me find a solution?

 Shall i put all the codes under one development folder?
 But i want to use two html pages, can i? with 2 entrypoints?


 Ty.
 


--~--~-~--~~~---~--~~
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: How to enable enter key for a button

2009-01-13 Thread Litty Preeth
What have you tried? Because what David told abt the keyboard listener
should work. And about the setting focus, you might need to put the setFocus
inside a DefferedCommand; like:

DeferredCommand.addCommand(new Command() {
public void execute() {
tbUserName_.setFocus(true);

}
});

- Litty Preeth

On Wed, Jan 14, 2009 at 5:28 AM, newlis hrd...@yahoo.com wrote:


 hello i have tried also without success.
 Any other solutions?
 


--~--~-~--~~~---~--~~
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 application deployment

2009-01-13 Thread Litty Preeth
If you hav to make jdbc entries in web.xml depends on your implementation.
What is the error you are getting?

- Litty Preeth

On Wed, Jan 14, 2009 at 5:30 AM, jredick jared...@gmail.com wrote:


 Hi,
 first of all i am sorry if this is a stupid question :)
 I am pretty new on using gwt. I write a simple application that sends
 and take data from mysql database.
 But when it comes to deploy my application, i can't manage to do it.
 Actually i deployed it, but there is a problem on RPC or database. I
 cannot figure out myself.
 my question is ; do I need to add some kind of mapping to my web.xml
 file for database connection ( jdbc) or something like below is
 enough ?

 ?xml version=1.0 encoding=ISO-8859-1?

 web-app
   servlet
  servlet-nameMyApplication/servlet-name
  servlet-classcom.project.server.dataServiceImpl/servlet-
 class
   /servlet
   servlet-mapping
  servlet-nameMyApplication/servlet-name
  url-pattern/myapplication/url-pattern
   /servlet-mapping
 /web-app


 thanks 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 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: Listbox Listener

2008-12-29 Thread Litty Preeth
What do you mean by position? You mean the x of data[x][0] for the
current selected index?
For that may be you can add the elements to the ListBox in the order of
array then the listBox.getSelectedIndex() is the x you want or if its not
possible then while creating the LB you can add the value of the listbox
items as the index of the array like:

listBox.addItem(data[x][0], x + );

Hope this helps.

- Litty


On Mon, Dec 29, 2008 at 1:54 PM, jake H pnosti...@gmail.com wrote:


 put an onChange() and with a for loop to check in what position i
 am ??

 Is there any more fast way to parse data with onChange()? or should i
 use a for loop in order to find the position ?
 


--~--~-~--~~~---~--~~
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: how to hide / show a panel by clicking on a button

2008-12-29 Thread Litty Preeth
If what you want is something like this:
http://gwt.google.com/samples/Showcase/Showcase.html#CwDisclosurePanel
then may be you can use the DisclosurePanel widget.

- Litty Preeth

On Mon, Dec 29, 2008 at 4:01 PM, rajasekhar raja...@gmail.com wrote:


 Hi All,

 how to hide /show a panel by clicking on a button.If
 panel is hidden by clicking on button it should be visible.If panel is
 visible after clicking on button it should hide(there is only one
 button in this case).Please let me know how to do this.



 Regards,
 Rajasekhar
 


--~--~-~--~~~---~--~~
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: Listbox Listener

2008-12-28 Thread Litty Preeth
May be you shud add a ChangeListener to the ListBox element and implement ur
logic in the onChange() method.

On Mon, Dec 29, 2008 at 12:13 PM, jake H pnosti...@gmail.com wrote:


 Hellooo
 i m wondering how can i implement a ListBox listener.

 I save my data into an 2-dimension array.

 In the ListBox i m showing the first element of every array
 data[x][0].

 But i want when the user select any of these elements
 in a panel next to the ListBox the rest data to be shown.
 data[x][1-3]. But i cant find how this can happen in correlation with
 ListBox.

 Ty.
 


--~--~-~--~~~---~--~~
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: how to implement history mechanism for tree structure

2008-12-14 Thread Litty Preeth
Have a historyListener in the class having the reference to
borderlayoutpanel. Then onCLick of the tree button u can fire
History.newItem(sometoken)

In the onHistoryChange() you check for the token and refresh the central
panel accordingly.

Hope this helps.

- Litty Preeth

On Sun, Dec 14, 2008 at 11:23 PM, rajasekhar raja...@gmail.com wrote:


 Hi All,

  Please let me know how to impelement history
 mechanism for tree structure,I am using border layout panel
 (header,west ,central parts ) ,in west side part tree structure is
 implemented,When I click on the tree button  central part is
 refreshing.I need same thing with history mechanism also(back,forward
 buttons).Give me any help on this regard.


 Thanks  Regards,
 Rajasekhar
 


--~--~-~--~~~---~--~~
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: change default style

2008-12-11 Thread Litty Preeth
Its done as:

.gwt-SmallTree { }
.gwt-SmallTree .gwt-TreeItem { }
.gwt-SmallTree .gwt-TreeItem-selected { }

.gwt-BigTree { }
.gwt-BigTree .gwt-TreeItem { }
.gwt-BigTree .gwt-TreeItem-selected { }

- Litty Preeth

On Thu, Dec 11, 2008 at 3:53 PM, ArunDhaJ [EMAIL PROTECTED] wrote:


 Hi all,
 How can we change the default style of a widgets?
 I want to create two tree with different styles.

 .gwt-Tree { }
 .gwt-Tree .gwt-TreeItem { }
 .gwt-Tree .gwt-TreeItem-selected { }

 I want to change the above default style to my own style as follows:

 .gwt-SmallTree { }
 .gwt-SmallTree .gwt-SmallTreeItem { }
 .gwt-SmallTree .gwt-SmallTreeItem-selected { }

 .gwt-BigTree { }
 .gwt-BigTree .gwt-BigTreeItem { }
 .gwt-BigTree .gwt-BigTreeItem-selected { }


 By searching this group I found the same question but the discussion
 was terminated without solution... Please help me in this regards...
 I'm using GWT 1.4.62


 Thanks in Advance !!!

 Regards,
 ArunDhaJ
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to have a layered panel?

2008-12-11 Thread Litty Preeth
Hey Make sure that the contents of the popup is put into a ScrollPanel. Coz
if you disable the window scrolling and the popup size goes beyond the
screen size then the overflowing popup area will get hidden.

- Litty

On Thu, Dec 11, 2008 at 2:13 AM, rakesh wagh [EMAIL PROTECTED] wrote:


 Yup glasspanel is really handy. Do remember to turn off the
 scrollbars... they could mess up the page big time!
 Window.enableScrolling(false);

 On Dec 9, 12:32 am, Petrus Pelser [EMAIL PROTECTED] wrote:
  The component in the incubator is called a GlassPanel and it works
  really well. Though I did have some issues with the blur event in IE,
  but I could easily fix it by catching and ignoring the onBlur() call.
 
 
 
  Suri wrote:
   Hi Rakesh, Isaac  Litty
   Thanks for the replies. Since I'm currently already using the
   incubator jar for a table, I'll first attempt Isaac's suggestion which
   seems least effort-consuming at the moment. If i do need to create my
   own panel, I'll try both of your suggestions and update everyone on
   the results.
 
   Thanks a bunch all. You guys are really great help in this forum.
 
   On Dec 8, 3:11 pm, rakesh wagh [EMAIL PROTECTED] wrote:
 
   Correction to my earlier post:
   Use PopupPanel, not AbsolutePanel.
   I just tried this code in a class that extends DialogBox:
   @Override
   public void show() {
   mask.setPixelSize(Window.getClientWidth(),
 Window.getClientHeight
   ());
   mask.setPopupPosition(0, 0);
   mask.setWidget(new Label(test));
   mask.setStyleName(trans-bg);
   mask.show();
   super.hide();
   super.show();
   }
   @Override
   public void hide() {
   mask.hide();
   super.hide();
   }
 
   .trans-bg{
   background-color: black;
   filter: alpha(opacity=50);
   -moz-opacity: .5;
 
   }
 
   And I am able to show a translucent background to any of my dialog
   box!
 
   Rakesh Wagh
 
   On Dec 8, 9:37 am, rakesh wagh [EMAIL PROTECTED] wrote:
 
   if you are trying to do this on your own, you will probably need a
   absolute panel that is placed on the screen based on the screen size
   (0, 0, max clientx, max clienty). Select a proper style: color and
   transparency. Now just put your widget or popup on top of this panel.
   This way the z index of your translucent panel will be between the
   main screen and your visible widget.
 
   You might also have to put a screen resize handler to resize the size
   of your panel.
 
   I think the gwt incubator has a ready to use widget.
 
   Rakesh Wagh
 
   On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote:
 
   Hey all,
   In GWT how would we create a layered panel/widget that basically
 acts
   like a semi-opaque screen for the stuff below it. Sort of looking
 like
   the screen is in a disabled mode. Thanks for any ideas.
 
   Suri
 
  --
  Petrus Pelser
  Software Developer, CTO
  Codewave (http://www.codewave.co.za)
  mailto:[EMAIL PROTECTED]
  Cell: +27 79 522 6463
  
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to size VerticalSplitPanel contents?

2008-12-11 Thread Litty Preeth
did u try css

width: 100%
height:100%

- Litty
On Thu, Dec 11, 2008 at 10:48 PM, dhoffer dhoff...@gmail.com wrote:


 I have a VerticalSplitPanel that contains a Tree in the top panel and
 TextArea in the bottom panel.  How can I make the top  bottom panels
 fill all available space?

 Currently the tree is only as large as its contents and the TextArea
 is some small fixed size.  How can I make both fill all available
 space?  The width should be the same as the width of the
 VerticalSplitPanel and the height of each should be dependent on the
 position of the VerticalSplitPanel's splitter bar.

 Thanks much for any assistance!

 -Dave
 


--~--~-~--~~~---~--~~
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: TextBox listener for contents changed?

2008-12-11 Thread Litty Preeth
If you want to be notified for each char change then you should use onKeyUp
else if you want to process the text after all the text has been entered
then u shud use onChange of ChangeListener.


On Thu, Dec 11, 2008 at 10:51 PM, David Hoffer dhoff...@gmail.com wrote:


 Is this better than using onKeyUp() ?  What are the pros/cons?

 -Dave

 On Thu, Dec 11, 2008 at 8:31 AM, Jason Essington
 jason.essing...@gmail.com wrote:
 
  That's correct, onChange fires after the text box looses focus, but
  you can listen to onkeypress. onKeypress is fired before the text box
  is updated allowing you to cancel the keypress if desired. The trick
  is to use DeferredCommand.addCommand() to handle the text.
 
  public void onKeyPress(Widget sender, char keyCode, int modifiers){
// check if the keycode is something you are concerned about
DeferredCommand.addCommand(new Command(){
  public void execute(){
// read the updated text in the textbox now.
  }
});
  }
 
  -jason
 
  On Dec 10, 2008, at 5:50 PM, dhoffer wrote:
 
 
  Does anyone know how to configure GWT's TextBox so I can be notified
  when its contents changes?
 
  I have just found out that addChangeListener does not work because it
  only gets fired when the user leaves the text box.
 
  Also addKeyboardListener does not do what I need because this is fired
  BEFORE the contents of the text box have been changed/updated (so
  calling getText() returns the previous text).
  
 
 
  
 

 


--~--~-~--~~~---~--~~
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: dialogBox.hide() is not working

2008-12-11 Thread Litty Preeth
you dnt hav to call dialogBox.center() and show() both... if you want to
centralize ur dialogBox then u can call dialogBox.center() alone. It will
both centralize ur dialogbox and shows it.

And I think the DialogBox class itself has a mouseListener for dragging. So
it could be tht the mouse events are captured by this listener.

- Litty

On Thu, Dec 11, 2008 at 11:50 PM, prat pspra...@gmail.com wrote:


 public void onMouseEnter(Widget sender) {

dialogBox.center();
dialogBox.show();

}

public void onMouseLeave(Widget sender) {

dialogBox.hide();

}


 Dialog box appears but it doest go..
 Pls find out the mistake..
 


--~--~-~--~~~---~--~~
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: TextBox listener for contents changed?

2008-12-10 Thread Litty Preeth
ChangeListener is the right one

On Thu, Dec 11, 2008 at 7:06 AM, David Hoffer [EMAIL PROTECTED] wrote:


 It looks like KeyboardListenerAdapter's onKeyUp will do what I need.

 -Dave

 On Wed, Dec 10, 2008 at 5:50 PM, dhoffer [EMAIL PROTECTED] wrote:
  Does anyone know how to configure GWT's TextBox so I can be notified
  when its contents changes?
 
  I have just found out that addChangeListener does not work because it
  only gets fired when the user leaves the text box.
 
  Also addKeyboardListener does not do what I need because this is fired
  BEFORE the contents of the text box have been changed/updated (so
  calling getText() returns the previous text).

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to have a layered panel?

2008-12-08 Thread Litty Preeth
Well using GWT itself u can accomplish this there is no need for going
for native JS. Plz see the below links...

http://examples.roughian.com/#Tutorials~Panel_Fade
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8e7f7027b290a70d/a349e4f4a5a66e14?pli=1

Good luck,
Litty Preeth

On Mon, Dec 8, 2008 at 2:14 PM, Suri [EMAIL PROTECTED] wrote:


 Thank Litty. But isn't there a way for GWT to be able to do this? I'm
 in the middle of a GWT project and what I'd like to be able to do is
 to create a panel that provides a semi-transparent like view of the
 underlying data, informing the user that the screen has been disabled.
 Is Lightbox etc the only way? If so, would i be interfacing that call
 into GWT using native code?

 On Dec 8, 2:19 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Ry googling Glass panel,light box effect, panel fade etc... U ll
 get
  lots of examples...
 
  On Sun, Dec 7, 2008 at 1:05 PM, olivier FRESSE [EMAIL PROTECTED]
 wrote:
 
   CSS is probably the way to go.
   A simple panel with a good css style may do the trick :
 
   some samples here :
  http://dev.opera.com/articles/view/css-and-opacity-methods-for-creati.
 ..
 
   2008/12/7 Suri [EMAIL PROTECTED]
 
   Hey all,
   In GWT how would we create a layered panel/widget that basically acts
   like a semi-opaque screen for the stuff below it. Sort of looking like
   the screen is in a disabled mode. Thanks for any ideas.
 
   Suri
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



problem in getting window size in IE

2008-12-08 Thread Litty Preeth
Hi,

I am having some issues in my GlassPanel. To fill the glass panel to fit in
the whole document size (scrollable area) I am using the below method:

*public* *class* GlassPanel *extends* PopupPanel {



  ...

  ...

  *private* *void* fillScreen() {

*int* winWidth = Window.*getClientWidth*();

*int* winHeight = Window.*getClientHeight*();

*int* scrollWidth = RootPanel.*get*
().getElement().getScrollWidth();

*int* scrollHeight = RootPanel.*get*
().getElement().getScrollHeight();

String wdStr = winWidth+px;

*if*(scrollWidth  winWidth) {

  wdStr = scrollWidth+px;

}

String htStr = winHeight+px;

*if*(scrollHeight  winHeight) {

  htStr = scrollHeight+px;

}

setWidth(wdStr);

setHeight(htStr);

  }
}

I also have a Timer inside my glasspanel which will call the fillScreen()
method every 300ms. My issue is that each time the fillScreen method is
called, the screen size grows by 2px. This happens only with IE. In firefox
this works fine. I tried using RootPanel.get().getOffsetWidth() instead of
Window.*getClientWidth*() but with no luck. This occurs irrespective of the
window having a scrollbar or not.

- Litty Preeth

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem in getting window size in IE

2008-12-08 Thread Litty Preeth
Yes ofcourse. my glass panel popup has a SimplePanel inside it. So
when I set the size of the popup... it will set the size of this
simplepanel

GlassPanel is nothing but a semi transperant layer, which comes underneath a
modal popup to show the user that the below panel is disabled.

My problem is that, the Window.*getClientHeight*() and
RootPanel.*get*().getElement().getScrollHeight()
returns 2px greater than the actual size in IE. So each time I call the
fillScreen function, my popup height is growing by 2px. Please let me know
if I am using the right logic to fill the screen with the glass popup panel.

Thnx,
Litty Preeth

On Mon, Dec 8, 2008 at 7:53 PM, olivier FRESSE [EMAIL PROTECTED]wrote:

 Hi,
 I'm not sure to understand what you're trying to do,but at least, I know
 that you can't set a size on a popup panel :-)
 Its size is driven by what's inside !
 regards


 2008/12/8 Litty Preeth [EMAIL PROTECTED]

 Hi,

 I am having some issues in my GlassPanel. To fill the glass panel to fit
 in the whole document size (scrollable area) I am using the below method:

 *public* *class* GlassPanel *extends* PopupPanel {



   ...

   ...

   *private* *void* fillScreen() {

 *int* winWidth = Window.*getClientWidth*();

 *int* winHeight = Window.*getClientHeight*();

 *int* scrollWidth = RootPanel.*get*
 ().getElement().getScrollWidth();

 *int* scrollHeight = RootPanel.*get*
 ().getElement().getScrollHeight();

 String wdStr = winWidth+px;

 *if*(scrollWidth  winWidth) {

   wdStr = scrollWidth+px;

 }

 String htStr = winHeight+px;

 *if*(scrollHeight  winHeight) {

   htStr = scrollHeight+px;

 }

 setWidth(wdStr);

 setHeight(htStr);

   }
 }

 I also have a Timer inside my glasspanel which will call the fillScreen()
 method every 300ms. My issue is that each time the fillScreen method is
 called, the screen size grows by 2px. This happens only with IE. In firefox
 this works fine. I tried using RootPanel.get().getOffsetWidth() instead
 of Window.*getClientWidth*() but with no luck. This occurs irrespective
 of the window having a scrollbar or not.

 - Litty Preeth




 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can I hide the border of richtextarea?

2008-12-08 Thread Litty Preeth
But for me its working... Do u have any CSS styles associated with the
richtextbox?? Which browser did u try on? I tried on firefox...

Also on IE the text boxes and text areas have a native border (gray inset
border), I think we cant remove that one. If you want to get consistent look
n feel on both IE and firefox, then may be u can try setting a solid 1px
border, this ll give u somewhat similar looknfeel for IE n firefox.

- Litty Preeth

On Mon, Dec 8, 2008 at 8:23 PM, [EMAIL PROTECTED] wrote:

 Thank you for your reply,but this way doesn't work.

 2008/12/8 Litty Preeth [EMAIL PROTECTED]

 May be you should try
 DOM.setStyleAttribute(rta.getElement(), border, 0px);


 On Sun, Dec 7, 2008 at 3:12 PM, lichking.zz [EMAIL PROTECTED]wrote:


 Hi,all

 I try to hide the border by using:

 RichTextArea rta = new RichTextArea();
 rta.getElement().setAttribute(frameborder, no);

 But it doesn't work.







 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to have a layered panel?

2008-12-07 Thread Litty Preeth
Ry googling Glass panel,light box effect, panel fade etc... U ll get
lots of examples...

On Sun, Dec 7, 2008 at 1:05 PM, olivier FRESSE [EMAIL PROTECTED]wrote:

 CSS is probably the way to go.
 A simple panel with a good css style may do the trick :

 some samples here :
 http://dev.opera.com/articles/view/css-and-opacity-methods-for-creating-tr/


 2008/12/7 Suri [EMAIL PROTECTED]


 Hey all,
 In GWT how would we create a layered panel/widget that basically acts
 like a semi-opaque screen for the stuff below it. Sort of looking like
 the screen is in a disabled mode. Thanks for any ideas.

 Suri



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can I hide the border of richtextarea?

2008-12-07 Thread Litty Preeth
May be you should try
DOM.setStyleAttribute(rta.getElement(), border, 0px);

On Sun, Dec 7, 2008 at 3:12 PM, lichking.zz [EMAIL PROTECTED] wrote:


 Hi,all

 I try to hide the border by using:

 RichTextArea rta = new RichTextArea();
 rta.getElement().setAttribute(frameborder, no);

 But it doesn't work.

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use a GWT client to send messages to a JMS queue

2008-12-07 Thread Litty Preeth
Well I suppose u ll have to do the JMS connection at the server side only.
Send the data from the form fields to server through RPC, then inside the
RPC service method, create the message using the data, get the connection to
the JMS queue and send the message.

- Litty Preeth

On Mon, Dec 8, 2008 at 9:49 AM, whoever [EMAIL PROTECTED] wrote:


 I read about GWT, RPC Remote Service, etc. I was wondering how to send
 messages from a form field on a GWT client using( GWT RPC servlet) to
 a JMS queue.
 How can I wire up GWT with JMS. Thanks very much for guidance

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-05 Thread Litty Preeth
There is an onresize event in javascript. As per the doc the following tags
support this event:

a, address, b, big, blockquote, body, button, cite, code,
dd, dfn, div, dl, dt, em, fieldset, form, frame, h1 to
h6, hr, i, img, input, kbd, label, legend, li, object,
ol, p, pre, samp, select, small, span, strong, sub, sup,
table, textarea, tt, ul, var

Do you hav any idea if I can use this one?

- Litty Preeth

On Fri, Dec 5, 2008 at 6:29 PM, gregor [EMAIL PROTECTED] wrote:


 Hi Litty,

  But it will require code change to all
  the popups that use a glass panel. And also in future some developer may
  forget to fire a Deffered command when the size changes So i dont
 think
  its such a good method
 

 I'm not sure how you can avoid that, Litty. I mean either the viewport
 widget has to tell the glass panel its size has changed or the glass
 panel has got to repeatedly poll the viewport to see if it has changed
 - I can't think of any other alternatives.

 AFAIK there is no HTML event specified to be fired if an Element' size
 is changed. There is a DOMAttrModified event but a) I believe IE does
 not implement it, and b) in any case it is only fired if a property
 itself is actually changed. E.g. if the height attribute of an Element
 is set to 100%,  then if the browser increases the height of the
 element to accommodate new content, the property remains 100%
 therefore no event fired. I think the offsetHeight is calculated on
 the fly from whatever the pixel height happens to be at the time.

 If I understand you correctly, you have a number of viewports each of
 which has a glass panel that need to cover its exact area. If you had
 a lot of these, then the Timer polling option doesn't seem such a good
 idea (lots of timers polling away for little purpose most of the
 time). I think I would design my own base class that included both a
 viewport widget and its glass panel (possibly optionally instantiated)
 and use a custom method to add additional content to the viewport that
 fired a DeferredCommand to resize the glass panel (deferred so that it
 does it after the resizing of the viewport's Element is complete and
 offset height  offset width return true values). All the viewports
 could be extended from that.

 regards
 gregor














  I am working with pure GWT. Basically I am using the glass panels for
 modal
  popups. I set the size of the glass panel as the current view port size
 just
  before dispalying it. Then the popup is dispalyed. Now on the popup, the
  user actions causes the size of the popup to change. If the size becomes
  larger than the previous view port size then the view port size will
  automatically increase, but the glass panel size remains the same which
  causes the bottom region of the viewport to be not covered by glass
 panel.
  Please not that this change of size will not cause a window resize event
 as
  the window size is not changed, only the document size got changed. (BTW
 i
  have a windowresize listener on the glass panel so that part is take care
  of.)
 
  Hope this explains my problem.
 
  Thanks,
  Litty Preeth
 
  On Thu, Dec 4, 2008 at 4:57 PM, gregor [EMAIL PROTECTED]
 wrote:
 
   I'm not sure I understand your situation right, but:
 
   if your panel knows at run time that it's size has changed (e.g.
   from a method that adds the new widget to it) then it could fire a
   change event via DeferrerdCommand. The glass panel could be registered
   as a listener with it and obtain new width/height offsets.
 
   On Dec 4, 4:25 am, Litty Preeth [EMAIL PROTECTED] wrote:
At run time I add widgets to the page which causes the size of the
 panel
(scrollable size) to change.
 
Regards,
Litty Preeth
 
On Wed, Dec 3, 2008 at 7:22 PM, gregor [EMAIL PROTECTED]
 
   wrote:
 
 Oh, I see. How is the size of your RootPanel changed then if not by
 changing the size of the browser window?
 
 On Dec 3, 1:15 pm, Litty Preeth [EMAIL PROTECTED] wrote:
  WindowResizeListener will listen for window resize events only.
 It
   wont
 be
  invoked if ur scrollable page size is changed. It ll be notified
 only
   if
 the
  WINDOW itself is mazximized, resized etc.
 
  Regards,
  Litty Preeth
 
  On Wed, Dec 3, 2008 at 4:31 PM, gregor 
 [EMAIL PROTECTED]
 
 wrote:
 
   Hi Litty,
 
   I use something like this:
 
   public class MdDem implements EntryPoint {
 
  private MainPage main = new MainPage();
  private ResizeListener windowListener = new
 ResizeListener();
 
  public void onModuleLoad() {
  RootPanel.get().add(main);
  Window.addWindowResizeListener(windowListener);
  // initial sizing call if you need it
  windowListener.onWindowResized(Window.getClientWidth(),
   Window.getClientHeight());
  }
 
  // window resize listener
  private class ResizeListener implements WindowResizeListener

Re: how to refresh panel

2008-12-05 Thread Litty Preeth
In the WestPart class have a constructor which takes the BorderLayoutPanel
as argument and store that in a member variable. Now in the clicklistener in
westpart class, create a new CenterPart class and add the centerpart panel
to this borderlayout member variable.

I dont understand whts the big deal in this?? Or may be I am not getting ur
point :-(

Regards,
Litty Preeth

On Fri, Dec 5, 2008 at 5:38 PM, rajasekhar [EMAIL PROTECTED] wrote:


 These methods are in LeftContainer and CenterContainer classes.

 CenterContainer  class :
 public class CenterPart {
 Panel panel=new Panel();
 public Panel displayCenter(String s)
 {
Window.alert(s);
Button  button=new Button(s);
 //  Window.alert(s);
panel.add(button);

return panel;
 }


 LeftContainer  Class:

 public class WestPart {

   Button west;

 public Panel dispalyButton(String s)
 {
 Panel  panel=new Panel();
 final CheckBox emailCheckBox=new CheckBox();
 emailCheckBox.setText();
 emailCheckBox.setChecked(true);
 panel.add(emailCheckBox);
 west=new Button(West);
 west.addClickListener(this);
 panel.add( west);
  Hyperlink link = new Hyperlink(WEST,WEST);
 panel.add(link);
 return panel;
 }

 The Main class :
 public class PanelRefresh extends Composite implements ClickListener {
Panel panel = new Panel();
String var=CENTER;
private Image loadingImg;
Button west1;
Panel centerPanel = new Panel();
Panel borderPanel= new Panel();
PanelRefreshServiceAsync panelRefreshService;
StackPanel stackPanel=new StackPanel();
Viewport viewport;
Panel westPanel=new Panel();
int count;
Panel southPanel = new Panel();
PanelRefresh view;
DockPanel parent = null;
public void dispalyLayout(String s)
{

   //displayWidget();
stackPanel.clear();
panel.setBorder(false);
panel.setPaddings(15);
panel.setLayout(new FitLayout());
borderPanel.setLayout(new BorderLayout());

//add north panel
Panel northPanel = new Panel();
northPanel.setHtml(pnorth panel/p);
northPanel.setHeight(32);
northPanel.setBodyStyle(background-color:#88);
borderPanel.add(northPanel, new BorderLayoutData
 (RegionPosition.NORTH));
WestPart westPart=new WestPart();

//add south panel
 final CheckBox emailCheckBox=new CheckBox();
emailCheckBox.setText();
emailCheckBox.setChecked(true);
 southPanel.setHtml(psouth panel/p);
southPanel.setHeight(100);
southPanel.setBodyStyle(background-color:#CDEB8B);
southPanel.setCollapsible(true);
southPanel.setTitle(South);
southPanel.add(emailCheckBox);

BorderLayoutData southData = new BorderLayoutData
 (RegionPosition.SOUTH);
southData.setMinSize(100);
southData.setMaxSize(200);
southData.setMargins(new Margins(0, 0, 0, 0));
southData.setSplit(true);
borderPanel.add(southPanel, southData);

//add east panel
Panel eastPanel = new Panel();
eastPanel.setHtml(peast panel/p);
eastPanel.setTitle(East Side);
eastPanel.setCollapsible(true);
eastPanel.setWidth(225);


BorderLayoutData eastData = new BorderLayoutData
 (RegionPosition.EAST);
eastData.setSplit(true);
eastData.setMinSize(175);
eastData.setMaxSize(400);
eastData.setMargins(new Margins(0, 0, 5, 0));

borderPanel.add(eastPanel, eastData);


westPanel.setHtml(pwest panel/p);
westPanel.setTitle(West);
westPanel.setBodyStyle(background-color:#EE);
westPanel.setCollapsible(true);
westPanel.setWidth(200);

 westPanel.add(westPart.dispalyButton(WEST));


west1=new Button(west1);
west1.addClickListener(this);
 //   westPanel.add(west1);

BorderLayoutData westData = new BorderLayoutData
 (RegionPosition.WEST);
westData.setSplit(true);

westData.setMinSize(175);
westData.setMaxSize(400);
westData.setMargins(new Margins(0, 5, 0, 0));

borderPanel.add(westPanel, westData);

borderPanel.add(new CenterPart().displayCenter(CENTER),
 new
 BorderLayoutData(RegionPosition.CENTER));
   // displayCenter(var);
panel.add(borderPanel);
viewport= new Viewport(panel

Re: viewport resize listener

2008-12-05 Thread Litty Preeth
Okkk gregor... thn i suppose tht is also no good idea so only feasible
solution i now see is the polling one... I will try it and see if it will
take tooo much of my resourses or not... Anyways thanxx so much for ur
help... :-)

On Fri, Dec 5, 2008 at 10:07 PM, gregor [EMAIL PROTECTED]wrote:


 yeah, but it is defined as:

 Definition and Usage
 The onresize event occurs when a window or frame is resized.

 which I took to mean what we already get with WindowResizeListener,
 and not that it fires when an individual element grows or shrinks.

 On Dec 5, 4:00 pm, Litty Preeth [EMAIL PROTECTED] wrote:
  There is an onresize event in javascript. As per the doc the following
 tags
  support this event:
 
  a, address, b, big, blockquote, body, button, cite,
 code,
  dd, dfn, div, dl, dt, em, fieldset, form, frame, h1
 to
  h6, hr, i, img, input, kbd, label, legend, li,
 object,
  ol, p, pre, samp, select, small, span, strong, sub,
 sup,
  table, textarea, tt, ul, var
 
  Do you hav any idea if I can use this one?
 
  - Litty Preeth
 
  On Fri, Dec 5, 2008 at 6:29 PM, gregor [EMAIL PROTECTED]
 wrote:
 
   Hi Litty,
 
But it will require code change to all
the popups that use a glass panel. And also in future some developer
 may
forget to fire a Deffered command when the size changes So i dont
   think
its such a good method
 
   I'm not sure how you can avoid that, Litty. I mean either the viewport
   widget has to tell the glass panel its size has changed or the glass
   panel has got to repeatedly poll the viewport to see if it has changed
   - I can't think of any other alternatives.
 
   AFAIK there is no HTML event specified to be fired if an Element' size
   is changed. There is a DOMAttrModified event but a) I believe IE does
   not implement it, and b) in any case it is only fired if a property
   itself is actually changed. E.g. if the height attribute of an Element
   is set to 100%,  then if the browser increases the height of the
   element to accommodate new content, the property remains 100%
   therefore no event fired. I think the offsetHeight is calculated on
   the fly from whatever the pixel height happens to be at the time.
 
   If I understand you correctly, you have a number of viewports each of
   which has a glass panel that need to cover its exact area. If you had
   a lot of these, then the Timer polling option doesn't seem such a good
   idea (lots of timers polling away for little purpose most of the
   time). I think I would design my own base class that included both a
   viewport widget and its glass panel (possibly optionally instantiated)
   and use a custom method to add additional content to the viewport that
   fired a DeferredCommand to resize the glass panel (deferred so that it
   does it after the resizing of the viewport's Element is complete and
   offset height  offset width return true values). All the viewports
   could be extended from that.
 
   regards
   gregor
 
I am working with pure GWT. Basically I am using the glass panels for
   modal
popups. I set the size of the glass panel as the current view port
 size
   just
before dispalying it. Then the popup is dispalyed. Now on the popup,
 the
user actions causes the size of the popup to change. If the size
 becomes
larger than the previous view port size then the view port size will
automatically increase, but the glass panel size remains the same
 which
causes the bottom region of the viewport to be not covered by glass
   panel.
Please not that this change of size will not cause a window resize
 event
   as
the window size is not changed, only the document size got changed.
 (BTW
   i
have a windowresize listener on the glass panel so that part is take
 care
of.)
 
Hope this explains my problem.
 
Thanks,
Litty Preeth
 
On Thu, Dec 4, 2008 at 4:57 PM, gregor [EMAIL PROTECTED]
 
   wrote:
 
 I'm not sure I understand your situation right, but:
 
 if your panel knows at run time that it's size has changed (e.g.
 from a method that adds the new widget to it) then it could fire a
 change event via DeferrerdCommand. The glass panel could be
 registered
 as a listener with it and obtain new width/height offsets.
 
 On Dec 4, 4:25 am, Litty Preeth [EMAIL PROTECTED] wrote:
  At run time I add widgets to the page which causes the size of
 the
   panel
  (scrollable size) to change.
 
  Regards,
  Litty Preeth
 
  On Wed, Dec 3, 2008 at 7:22 PM, gregor 
 [EMAIL PROTECTED]
 
 wrote:
 
   Oh, I see. How is the size of your RootPanel changed then if
 not by
   changing the size of the browser window?
 
   On Dec 3, 1:15 pm, Litty Preeth [EMAIL PROTECTED]
 wrote:
WindowResizeListener will listen for window resize events
 only.
   It
 wont
   be
invoked if ur scrollable page size is changed. It ll be
 notified
   only
 if
   the
WINDOW itself

Re: how to refresh panel

2008-12-05 Thread Litty Preeth
I dont see any issues here... I have never used GWT-EXT so if there is any
problems in usage of BorderLayoutPanel thn i wont be able to say I
suppose that u are seeing the alerts in the onSUccess and all May be u
can try first removing the old panel from the center and then adding the new
panel.

On Fri, Dec 5, 2008 at 10:43 PM, rajasekhar [EMAIL PROTECTED] wrote:


 Hi Preeth,

  Here is my WestPart click implementation,I am able to add
 the new CenterPart class to the BorderLayout Panel,but it is not
 refreshing the centerWindow.No error is coming. Please  let me know is
 there any changes I need  to do.

 public WestPart(Panel borderPanel)
 {
this.parent = borderPanel;
west.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
callPanelRefresh( );
}
  });
 }

 public  void refreshCenter(String s) {
CenterPart centerPart=new CenterPart();
parent.add(centerPart.displayCenter(s),new BorderLayoutData
 (RegionPosition.CENTER));
 }

 @SuppressWarnings(unchecked)
public void callPanelRefresh(final String userName) {
getServiceInstance().getLabel(userName, new AsyncCallback
 () {
public void onFailure(Throwable caught) {
Window.alert(Failed to get response from server);
  }
  public void onFailure(){
  Window.alert(The user name or password you entered
 is not
 valid. Please try again.);
  }
  public void onSuccess(Object result) {
 String  var= result.toString();
 Window.alert(After return ...+var);
 refreshCenter(var);
  }
});
   }




 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-04 Thread Litty Preeth
Hi gregor,

Thanks soo much for your response But it will require code change to all
the popups that use a glass panel. And also in future some developer may
forget to fire a Deffered command when the size changes So i dont think
its such a good method

I am working with pure GWT. Basically I am using the glass panels for modal
popups. I set the size of the glass panel as the current view port size just
before dispalying it. Then the popup is dispalyed. Now on the popup, the
user actions causes the size of the popup to change. If the size becomes
larger than the previous view port size then the view port size will
automatically increase, but the glass panel size remains the same which
causes the bottom region of the viewport to be not covered by glass panel.
Please not that this change of size will not cause a window resize event as
the window size is not changed, only the document size got changed. (BTW i
have a windowresize listener on the glass panel so that part is take care
of.)

Hope this explains my problem.

Thanks,
Litty Preeth

On Thu, Dec 4, 2008 at 4:57 PM, gregor [EMAIL PROTECTED] wrote:


 I'm not sure I understand your situation right, but:

 if your panel knows at run time that it's size has changed (e.g.
 from a method that adds the new widget to it) then it could fire a
 change event via DeferrerdCommand. The glass panel could be registered
 as a listener with it and obtain new width/height offsets.

 On Dec 4, 4:25 am, Litty Preeth [EMAIL PROTECTED] wrote:
  At run time I add widgets to the page which causes the size of the panel
  (scrollable size) to change.
 
  Regards,
  Litty Preeth
 
  On Wed, Dec 3, 2008 at 7:22 PM, gregor [EMAIL PROTECTED]
 wrote:
 
   Oh, I see. How is the size of your RootPanel changed then if not by
   changing the size of the browser window?
 
   On Dec 3, 1:15 pm, Litty Preeth [EMAIL PROTECTED] wrote:
WindowResizeListener will listen for window resize events only. It
 wont
   be
invoked if ur scrollable page size is changed. It ll be notified only
 if
   the
WINDOW itself is mazximized, resized etc.
 
Regards,
Litty Preeth
 
On Wed, Dec 3, 2008 at 4:31 PM, gregor [EMAIL PROTECTED]
 
   wrote:
 
 Hi Litty,
 
 I use something like this:
 
 public class MdDem implements EntryPoint {
 
private MainPage main = new MainPage();
private ResizeListener windowListener = new ResizeListener();
 
public void onModuleLoad() {
RootPanel.get().add(main);
Window.addWindowResizeListener(windowListener);
// initial sizing call if you need it
windowListener.onWindowResized(Window.getClientWidth(),
 Window.getClientHeight());
}
 
// window resize listener
private class ResizeListener implements WindowResizeListener {
 
private int width, height;
private boolean pending;
private Command command;
 
ResizeListener() {
command = new Command() {
public void execute() {
pending = false;
main.adjustSize(width, height);
}
};
}
 
public void onWindowResized(int width, int height) {
this.width = width;
this.height = height;
if (pending == false) {
pending = true;
DeferredCommand.addCommand(command);
}
}
}
 
 }
 
 regards
 gregor
 
 On Dec 3, 7:33 am, alex.d [EMAIL PROTECTED] wrote:
  Basically you have to listen to browser change size events (not
   sure
  how reliable this is in all supported browsers) and forward new
 size
  to your widgets. Ext GWT (and probably GWT Ext) for example,
 already
  has ViewPort implementation.
 
  On 3 Dez., 05:11, Litty Preeth [EMAIL PROTECTED] wrote:
 
   Hi friends,
 
   Anybody has any ideas on this?
 
   Thanks and Regards,
   Litty Preeth
 
   On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED]
 wrote:
 
Hi All,
 
Anybody know how to implement a viewport resize listener?
   Basically I
 have a
glass panel (light box effect). I want to notify this glass
 panel
 whenever
my RootPanel size gets changed so that I can resize my glass
   panel to
 fillup
the area.
 
Regards,
Litty Preeth
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to refresh panel

2008-12-04 Thread Litty Preeth
Suppose your Left-side panel is in class LeftContainer and center panel is
CenterContainer.

*class* LeftContainer *extends* AbsolutePanel {

  Hyperlink link = *new* Hyperlink(a,a);

  DockPanel parent = *null*;



  LeftContainer(DockPanel parent) {

*this*.parent = parent;

link.addClickListener(*new* ClickListener() {

  *public* *void* onClick(Widget sender) {

Hyperlink lk = (Hyperlink)sender;

refreshCenter(lk.getText());

  }

});

  }



  *private* *void* refreshCenter(String linkTxt) {

CenterContainer center = *new* CenterContainer(linkTxt);

parent.add(center,DockPanel.*CENTER*);

  }

}



*class* CenterContainer *extends* AbsolutePanel {



  *public* CenterContainer(String text) {

// Create new center

  }

}

Hope this helps.

Thanks,
Litty Preeth

On Thu, Dec 4, 2008 at 3:13 PM, rajasekhar [EMAIL PROTECTED] wrote:


 Hi Preeth,


   Thank you for reply.But can you explain little more
 about this .
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-03 Thread Litty Preeth
WindowResizeListener will listen for window resize events only. It wont be
invoked if ur scrollable page size is changed. It ll be notified only if the
WINDOW itself is mazximized, resized etc.

Regards,
Litty Preeth

On Wed, Dec 3, 2008 at 4:31 PM, gregor [EMAIL PROTECTED] wrote:


 Hi Litty,

 I use something like this:

 public class MdDem implements EntryPoint {

private MainPage main = new MainPage();
private ResizeListener windowListener = new ResizeListener();

public void onModuleLoad() {
RootPanel.get().add(main);
Window.addWindowResizeListener(windowListener);
// initial sizing call if you need it
windowListener.onWindowResized(Window.getClientWidth(),
 Window.getClientHeight());
}

// window resize listener
private class ResizeListener implements WindowResizeListener {

private int width, height;
private boolean pending;
private Command command;

ResizeListener() {
command = new Command() {
public void execute() {
pending = false;
main.adjustSize(width, height);
}
};
}

public void onWindowResized(int width, int height) {
this.width = width;
this.height = height;
if (pending == false) {
pending = true;
DeferredCommand.addCommand(command);
}
}
}

 }

 regards
 gregor


 On Dec 3, 7:33 am, alex.d [EMAIL PROTECTED] wrote:
  Basically you have to listen to browser change size events (not sure
  how reliable this is in all supported browsers) and forward new size
  to your widgets. Ext GWT (and probably GWT Ext) for example, already
  has ViewPort implementation.
 
  On 3 Dez., 05:11, Litty Preeth [EMAIL PROTECTED] wrote:
 
   Hi friends,
 
   Anybody has any ideas on this?
 
   Thanks and Regards,
   Litty Preeth
 
   On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED] wrote:
 
Hi All,
 
Anybody know how to implement a viewport resize listener? Basically I
 have a
glass panel (light box effect). I want to notify this glass panel
 whenever
my RootPanel size gets changed so that I can resize my glass panel to
 fillup
the area.
 
Regards,
Litty Preeth
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-03 Thread Litty Preeth
At run time I add widgets to the page which causes the size of the panel
(scrollable size) to change.

Regards,
Litty Preeth

On Wed, Dec 3, 2008 at 7:22 PM, gregor [EMAIL PROTECTED] wrote:


 Oh, I see. How is the size of your RootPanel changed then if not by
 changing the size of the browser window?

 On Dec 3, 1:15 pm, Litty Preeth [EMAIL PROTECTED] wrote:
  WindowResizeListener will listen for window resize events only. It wont
 be
  invoked if ur scrollable page size is changed. It ll be notified only if
 the
  WINDOW itself is mazximized, resized etc.
 
  Regards,
  Litty Preeth
 
  On Wed, Dec 3, 2008 at 4:31 PM, gregor [EMAIL PROTECTED]
 wrote:
 
   Hi Litty,
 
   I use something like this:
 
   public class MdDem implements EntryPoint {
 
  private MainPage main = new MainPage();
  private ResizeListener windowListener = new ResizeListener();
 
  public void onModuleLoad() {
  RootPanel.get().add(main);
  Window.addWindowResizeListener(windowListener);
  // initial sizing call if you need it
  windowListener.onWindowResized(Window.getClientWidth(),
   Window.getClientHeight());
  }
 
  // window resize listener
  private class ResizeListener implements WindowResizeListener {
 
  private int width, height;
  private boolean pending;
  private Command command;
 
  ResizeListener() {
  command = new Command() {
  public void execute() {
  pending = false;
  main.adjustSize(width, height);
  }
  };
  }
 
  public void onWindowResized(int width, int height) {
  this.width = width;
  this.height = height;
  if (pending == false) {
  pending = true;
  DeferredCommand.addCommand(command);
  }
  }
  }
 
   }
 
   regards
   gregor
 
   On Dec 3, 7:33 am, alex.d [EMAIL PROTECTED] wrote:
Basically you have to listen to browser change size events (not
 sure
how reliable this is in all supported browsers) and forward new size
to your widgets. Ext GWT (and probably GWT Ext) for example, already
has ViewPort implementation.
 
On 3 Dez., 05:11, Litty Preeth [EMAIL PROTECTED] wrote:
 
 Hi friends,
 
 Anybody has any ideas on this?
 
 Thanks and Regards,
 Litty Preeth
 
 On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED] wrote:
 
  Hi All,
 
  Anybody know how to implement a viewport resize listener?
 Basically I
   have a
  glass panel (light box effect). I want to notify this glass panel
   whenever
  my RootPanel size gets changed so that I can resize my glass
 panel to
   fillup
  the area.
 
  Regards,
  Litty Preeth
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to refresh panel

2008-12-03 Thread Litty Preeth
To the class implementing contents of the left-side panel, give a handle to
the BorderLayoutPanel itself. Now in the onClick you can refresh the center
panel of the BorderLayoutPanel.

Thanks and Regards,
Litty Preeth

On Wed, Dec 3, 2008 at 11:33 PM, rajasekhar [EMAIL PROTECTED] wrote:


 Hi All,
   I have a problem with BorderLayout Panel.I created
 BorderLayout Panel with header(NORTH) , left side tree panel(WEST) and
 center panels with three different classes.
 I need to refresh the center panel only when click on a leftside tree
 panel button.It is working properly when all the classes are in same
 class.Click functionality is implemented in left tree panel class.
 Please let me know how to refresh only center panel of the main
 screen.


 Regards,
 rajasnd
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



viewport resize listener

2008-12-02 Thread Litty Preeth
Hi All,

Anybody know how to implement a viewport resize listener? Basically I have a
glass panel (light box effect). I want to notify this glass panel whenever
my RootPanel size gets changed so that I can resize my glass panel to fillup
the area.

Regards,
Litty Preeth

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ListBox + FlexTable + How to maintain value in ListBox

2008-12-02 Thread Litty Preeth

Basically when the second time you click the list box, the
onCellClicked of tablelistener is also getting executed, which re-
initializes the listbox. So may be you should first check if the
listbox is already initialized and then only proceed for the RPC call
to get the listbox items n re-construct the listbox.

-Litty Preeth

On Dec 3, 8:14 am, Suri [EMAIL PROTECTED] wrote:
 Hey all,
  - I've got a ListBox added to a cell in a FlexTable.
 - The FlexTable has a TableListener, and when the cell contain the
 ListBox is clicked, an RPC call is made that returns a collection of
 data used to populate the ListBox.
 - The ListBox has a ChangeListener, so that when the value is updated
 another ListBox in an adjacent cell is populated.

 The problem here is that after populating the first ListBox, when I
 select a value from it, the value immediately resets to the first
 value in the box. Any ideas what might be going on?

 Thanks
 Suri
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-02 Thread Litty Preeth

Hi friends,

Anybody has any ideas on this?

Thanks and Regards,
Litty Preeth

On Dec 2, 4:42 pm, Litty Preeth [EMAIL PROTECTED] wrote:
 Hi All,

 Anybody know how to implement a viewport resize listener? Basically I have a
 glass panel (light box effect). I want to notify this glass panel whenever
 my RootPanel size gets changed so that I can resize my glass panel to fillup
 the area.

 Regards,
 Litty Preeth
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: disable hyperlink

2008-11-27 Thread Litty Preeth
But even if you remove the clickListener, it will cause an onHistroryChange
event right?

On Thu, Nov 27, 2008 at 1:08 PM, Danny Schimke [EMAIL PROTECTED]wrote:

 Should'nt setVisible() do this for HyperLinks too?

 setVisible needs an element and boolean:

 myHyperLink.setVisible(myHyperLink.getElement(), false);

 otherwise do what alex.d says:

 add and remove a style name which do this.
 CSS: visibility: hidden;

 2008/11/27 alex.d [EMAIL PROTECTED]


 If you wanna it look disabled - change CSS style. If you wanna your
 clickListener not being executed - just remove it(use a single
 listener method - not an anonymous inner class).

 On 26 Nov., 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  It's a little hacky, but we just substitute a label in it's place.
 
  On Nov 26, 7:55 am, Litty Preeth [EMAIL PROTECTED] wrote:
 
   Hi,
 
   Anybody knows how we can disable a HyperLink in GWT?
 
   Regards,
   Litty Preeth
 
 



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: disable hyperlink

2008-11-27 Thread Litty Preeth
Thank you Danny and Alex for all those valuable tips. [?]

On Thu, Nov 27, 2008 at 9:06 PM, Danny Schimke [EMAIL PROTECTED]wrote:

 Yeah, thanks alex ^^

 I thought about what you said: I had the same idea to put something like
 dont_handled_token. But with something like firebug it's no problem to
 change the link (even it is absurd) and then JS- errors occurs... I haveno
 idea to use Hyperlinks without calling onHistoryChanged.

 2008/11/27 alex.d [EMAIL PROTECTED]


 Nice button style, Danny. However if you don't want to handle the
 onHistoryChanged-Event - well just don't: set the hyperlink's token to
 something like dont_handle_this_token and don't handle it ;-) But
 the button-hyperlink idea is somehow cleaner.

 On 27 Nov., 16:10, Danny Schimke [EMAIL PROTECTED] wrote:
  You are right: it calls the onHistoryChanged- Event. Thats why we
 created a
  new button-Widger which extends from Button with only one difference: it
 has
  a different link style by default (looks like a link). Then you don't
 call
  onHistoryChanged- method. On Button- Click you can add or remove an
 style
  name which changes the color of your link-button to gray (look
 disabled).
 
  CSS for your link-button should look something like this:
  .button-link {
cursor: pointer;
cursor: hand;
border: none;
/* Disable the button-style */
background-color: transparent;
padding: 0px;
color: #4784C3;
text-decoration: underline;
 
  }
 
  2008/11/27 Litty Preeth [EMAIL PROTECTED]
 
   But even if you remove the clickListener, it will cause an
 onHistroryChange
   event right?
 
   On Thu, Nov 27, 2008 at 1:08 PM, Danny Schimke 
 [EMAIL PROTECTED]wrote:
 
   Should'nt setVisible() do this for HyperLinks too?
 
   setVisible needs an element and boolean:
 
   myHyperLink.setVisible(myHyperLink.getElement(), false);
 
   otherwise do what alex.d says:
 
   add and remove a style name which do this.
   CSS: visibility: hidden;
 
   2008/11/27 alex.d [EMAIL PROTECTED]
 
   If you wanna it look disabled - change CSS style. If you wanna your
   clickListener not being executed - just remove it(use a single
   listener method - not an anonymous inner class).
 
   On 26 Nov., 17:03, [EMAIL PROTECTED] [EMAIL PROTECTED]
 
   wrote:
It's a little hacky, but we just substitute a label in it's place.
 
On Nov 26, 7:55 am, Litty Preeth [EMAIL PROTECTED] wrote:
 
 Hi,
 
 Anybody knows how we can disable a HyperLink in GWT?
 
 Regards,
 Litty Preeth
 
 



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---

inline: 328.png

disable hyperlink

2008-11-26 Thread Litty Preeth
Hi,

Anybody knows how we can disable a HyperLink in GWT?

Regards,
Litty Preeth

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



variable argument type in RPC service

2008-11-21 Thread Litty Preeth

Hi all,

Anybody have any idea how to use variable length argument (like
String...) in an RPC service. Coz the corresponding async service
should have AsyncCallback as its last argument. But when we use
variable type argument that should be the last argument of the method.

Thanks,
Litty Preeth
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: authentication in GWT

2008-11-19 Thread Litty Preeth
I am using Apache Tomcat 5.5

On Wed, Nov 19, 2008 at 7:04 PM, walden [EMAIL PROTECTED] wrote:


 That's what I thought, and it does not exclude the possibility of
 using HTTP auth at all.  For example, JBoss ships with some
 configurable authentication plug-ins for using back-end stores for
 your realm data (JDBC, e.g.).  In the worst case, you can roll your
 own realm component (one Java class) and plug it in to the container's
 security stack.  What is your application server?

 Walden

 On Nov 18, 11:14 pm, Litty Preeth [EMAIL PROTECTED] wrote:
  Actually my app is a web interface to another backend app. So while
 logging
  into my app you are actually authenticating with the other backend app.
 The
  username/password, roles etc are maintained by the other app.
 
  On Tue, Nov 18, 2008 at 11:56 PM, walden [EMAIL PROTECTED]
 wrote:
 
 
 
 
 
   Let's hear a bit more about that third party API for authentication.
   Can you post the interface?  Is it used for managing the login form,
   or does it just handle the mapping of usernames to passwords and
   roles?  Depending on your answer, this may not preclude using HTTP
   authentication *protocol*, which is where the simplicity/economy is to
   be had.
 
   Walden
 
   On Nov 18, 10:40 am, Litty Preeth [EMAIL PROTECTED] wrote:
Actually my applications authentication is done by a third party. I
 need
   to
call their API to authenticate. So I wont b able to use the HTTP
authentication. But I think, Lothar's idea is worth trying. Thnx
 Lothar.
 
If anybody has any better suggestions plz post it here.
 
- Litty
 
On Tue, Nov 18, 2008 at 9:04 PM, olivier nouguier 
 
[EMAIL PROTECTED] wrote:
 
 I agree with walden in most case ... if classic HTTP auth is enough
 let HTTP do the job !!
 
 But there is IMHO somes points hard to deal with only HTTP (and GWT
 component of course):
  * session expiration, because the GWT RPC will fail soon (401).
  * forbiden because the GWT RPC will fail soon (403).
  * activation of widget when authority is granted.
  * logout (not possible with HTTP Basic).
 
 On Tue, Nov 18, 2008 at 3:53 PM, walden 
 [EMAIL PROTECTED]
 wrote:
 
  You could try the simplest thing that could possibly work...HTTP
  Authentication: let the existing  security stack earn its keep.
 
  Walden
 
  On Nov 18, 6:52 am, Litty Preeth [EMAIL PROTECTED]
 wrote:
  Hi All,
 
  What should be the best authentication ans session management in
 GWT
 apps?
  Currently I am having this idea:
 
 - Have a method checkSession() which will check for a valid
 authenticated
 session and throws an Exception if no valid session is there.
 - Call this method in the beginning of every ServiceImpl
 method.
 - In the onFailure of the async call backs catch this
 Exception
   and
 display the login page.
 
  But this method has the following weak points:
 
 - Some developer may forget to call the checkSession method.
 - There is code duplication in the onFailure implementation
   (Every
 onFailure shud handle the authentication exception)
 
  So any of you have any better ideas?
 
  Regards,
  Litty Preeth
 
 --
 Si l'ignorance peut servir de consolation, elle n'en est pas moins
 illusoire.- Hide quoted text -
 
- Show quoted text -- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem in redirecting to differnet page

2008-11-19 Thread Litty Preeth
Why do u want to open a new window? You can create the Home UI using GWT and
then add this to the RootPanel.

- Litty Preeth

On Wed, Nov 19, 2008 at 8:11 PM, zubair [EMAIL PROTECTED] wrote:


 Hi All,

 I want to redirect to the different page after successfull
 authentication. I have used window.open().

 below is the error message :-
 [ERROR] Failure to load module 'com.examples.gwt.mygwtapp'

 It is highly appreciated if any help me in resolving this issue.



  public void onClick(Widget sender) {
 MyServiceAsync myService = (MyServiceAsync) GWT.create
 (MyService.class);
 ServiceDefTarget target = (ServiceDefTarget) myService;
 String relativeUrl = GWT.getModuleBaseURL() + myservice;
 target.setServiceEntryPoint(relativeUrl);
 String user = userName.getText();
 String password =  userPassword.getText();
 myService.validate(user, password, new AsyncCallback() {
  public void onSuccess(Object result) {
 label.setText((String)result);
 Window.open(InstaAlertHome.html,_self,
 null);
 return;
  }
  public void onFailure(Throwable caught) {
 label.setText(caught.getMessage());
  }
 });
}
  });


 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: authentication in GWT

2008-11-18 Thread Litty Preeth
But I am not using Spring... :(

So any other ideas???

On Tue, Nov 18, 2008 at 5:29 PM, olivier nouguier 
[EMAIL PROTECTED] wrote:


 Hi Litty,

 I've played with Spring security  GWT at
 http://code.google.com/p/net-orcades-spring/

 If you're confident with Spring (Security)  GWT the lack of
 documentation won't block you :-/




 On Tue, Nov 18, 2008 at 12:52 PM, Litty Preeth [EMAIL PROTECTED]
 wrote:
  Hi All,
 
  What should be the best authentication ans session management in GWT
 apps?
  Currently I am having this idea:
 
  Have a method checkSession() which will check for a valid authenticated
  session and throws an Exception if no valid session is there.
  Call this method in the beginning of every ServiceImpl method.
  In the onFailure of the async call backs catch this Exception and display
  the login page.
 
  But this method has the following weak points:
 
  Some developer may forget to call the checkSession method.
  There is code duplication in the onFailure implementation (Every
 onFailure
  shud handle the authentication exception)
 
  So any of you have any better ideas?
 
  Regards,
  Litty Preeth
 
 
  
 



 --
 Si l'ignorance peut servir de consolation, elle n'en est pas moins
 illusoire.

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: authentication in GWT

2008-11-18 Thread Litty Preeth
Actually my app is a web interface to another backend app. So while logging
into my app you are actually authenticating with the other backend app. The
username/password, roles etc are maintained by the other app.

On Tue, Nov 18, 2008 at 11:56 PM, walden [EMAIL PROTECTED]wrote:


 Let's hear a bit more about that third party API for authentication.
 Can you post the interface?  Is it used for managing the login form,
 or does it just handle the mapping of usernames to passwords and
 roles?  Depending on your answer, this may not preclude using HTTP
 authentication *protocol*, which is where the simplicity/economy is to
 be had.

 Walden

 On Nov 18, 10:40 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Actually my applications authentication is done by a third party. I need
 to
  call their API to authenticate. So I wont b able to use the HTTP
  authentication. But I think, Lothar's idea is worth trying. Thnx Lothar.
 
  If anybody has any better suggestions plz post it here.
 
  - Litty
 
  On Tue, Nov 18, 2008 at 9:04 PM, olivier nouguier 
 
 
 
  [EMAIL PROTECTED] wrote:
 
   I agree with walden in most case ... if classic HTTP auth is enough
   let HTTP do the job !!
 
   But there is IMHO somes points hard to deal with only HTTP (and GWT
   component of course):
* session expiration, because the GWT RPC will fail soon (401).
* forbiden because the GWT RPC will fail soon (403).
* activation of widget when authority is granted.
* logout (not possible with HTTP Basic).
 
   On Tue, Nov 18, 2008 at 3:53 PM, walden [EMAIL PROTECTED]
   wrote:
 
You could try the simplest thing that could possibly work...HTTP
Authentication: let the existing  security stack earn its keep.
 
Walden
 
On Nov 18, 6:52 am, Litty Preeth [EMAIL PROTECTED] wrote:
Hi All,
 
What should be the best authentication ans session management in GWT
   apps?
Currently I am having this idea:
 
   - Have a method checkSession() which will check for a valid
   authenticated
   session and throws an Exception if no valid session is there.
   - Call this method in the beginning of every ServiceImpl method.
   - In the onFailure of the async call backs catch this Exception
 and
   display the login page.
 
But this method has the following weak points:
 
   - Some developer may forget to call the checkSession method.
   - There is code duplication in the onFailure implementation
 (Every
   onFailure shud handle the authentication exception)
 
So any of you have any better ideas?
 
Regards,
Litty Preeth
 
   --
   Si l'ignorance peut servir de consolation, elle n'en est pas moins
   illusoire.- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: OffsetHeight of RootPanel

2008-11-13 Thread Litty Preeth
I found the solution...

  *private* *void* fillScreen() {

*int* wd = RootPanel.*get*().getOffsetWidth();

*int* scrollWidth = RootPanel.*get*
().getElement().getScrollWidth();

*if* (scrollWidth  wd)

  wd = scrollWidth;

*int* ht = RootPanel.*get*().getOffsetHeight();

*int* scrollHeight = RootPanel.*get*
().getElement().getScrollHeight();

*if* (scrollHeight  ht)

  ht = scrollHeight;

glassPanel.setSize(wd + px, ht + px);

  }

- Litty
On Wed, Nov 12, 2008 at 10:02 PM, Litty Preeth [EMAIL PROTECTED]wrote:


 Hi,

 I wanted to get the total height (scrollable area) of the root panel.
 I used the following:
 RootPanel.get().getOffsetHeight()

 In Firefox its working, but in IE 6 its giving me only the window
 height (ie. value of Window.getClientHeight()). Can you tell me if its
 a bug or please share if you have any workarounds.

 Basically I wanted to have a glass panel (LightBox effect) for popup
 window. I wanted to set the height of the glass panel as same as the
 RootPanel so that it dims the entire behind window when the popup
 comes. Now in IE the glass panel height is only the window height
 which prevents dimming bottom part of the screen.

 Regards,
 Litty Preeth
 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



migrating to GWT-EXT

2008-11-13 Thread Litty Preeth

Hi,

I am using simple GWT in my current project. I wanted to use some GWT-
EXT widgets also. Can anybody tell me if there is anything to take
care of when integrating GWT-EXT also to a current GWT project? Are
there any clashes which might occur?

Thnx n Regards,
Litty Preeth
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: migrating to GWT-EXT

2008-11-13 Thread Litty Preeth
Hi All,

Thank you soo much for all your response

Actually I wanted to use the GWT-EXT mainly for Tree and Modal Popups. I
wanted the tree popup menu and the gray out of the screen when modal popups
are shown (LightBox effect).

Is it worthy enough to use GWT-EXT for these?

Regards,
Litty Preeth

On Fri, Nov 14, 2008 at 6:01 AM, Roger Marin [EMAIL PROTECTED] wrote:

 After having finished with a fairly large project using GWT-EXT i would
 personally advise staying away from it, specially if you are a newbie with
 GWT. Why?
 * GWT-EXT's programming model != GWT's programming model. GWT-EXT is
 basically a JSNI wrapper for the ext-js API
 * Very slow performance compared to using pure GWT
 * The gwt-ext forums are filled with unanswered questions and very little
 answers from the project members.
 * If you are planning on using RPC, either be ready to spend 200$ on the
 plus version or move to GWTX.
 * With GWT-EXT your are stuck with ext 2.02 since the license change
 fiasco.

 These are some of the reasons why, i could go on with the bashing but this
 is not the right place. From now on if i really need eye-candy i'll probably
 use flex or pure javascript or ext, most of the widgets that make
 GWT-EXT/GXT interesting are already available as part of the
 incubator(paging, grids, etc).

 cheers.

 2008/11/13 posta07 [EMAIL PROTECTED]


 Take a look at Ext-GWT (GXT) from extjs.com.

 It's the same extjs widgets written in pure GWT.

 On Nov 13, 9:33 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Hi,
 
  I am using simple GWT in my current project. I wanted to use some GWT-
  EXT widgets also. Can anybody tell me if there is anything to take
  care of when integrating GWT-EXT also to a current GWT project? Are
  there any clashes which might occur?
 
  Thnx n Regards,
  Litty Preeth



 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: migrating to GWT-EXT

2008-11-13 Thread Litty Preeth
Sorry... I didnt quite understand ur post. You mean you used EXT JS mask and
unmask functions?

- Litty

On Fri, Nov 14, 2008 at 12:07 PM, yunhui song [EMAIL PROTECTED]wrote:

 Hi Litty,   I just finished a project to implment LightBox affect. I use
 ext.mask() and ext.unmask(). In my apinion, It's quite good.

http://code.google.com/p/ppl-kit.
I use gwt-ext and removed the extra files. It's only 40k and 4 support
 resource files.

   Hope that helps.
 Sammi


 On Thu, Nov 13, 2008 at 9:59 PM, Litty Preeth [EMAIL PROTECTED]wrote:

 Hi All,

 Thank you soo much for all your response

 Actually I wanted to use the GWT-EXT mainly for Tree and Modal Popups. I
 wanted the tree popup menu and the gray out of the screen when modal popups
 are shown (LightBox effect).

 Is it worthy enough to use GWT-EXT for these?

 Regards,
 Litty Preeth


 On Fri, Nov 14, 2008 at 6:01 AM, Roger Marin [EMAIL PROTECTED] wrote:

 After having finished with a fairly large project using GWT-EXT i would
 personally advise staying away from it, specially if you are a newbie with
 GWT. Why?
 * GWT-EXT's programming model != GWT's programming model. GWT-EXT is
 basically a JSNI wrapper for the ext-js API
 * Very slow performance compared to using pure GWT
 * The gwt-ext forums are filled with unanswered questions and very little
 answers from the project members.
 * If you are planning on using RPC, either be ready to spend 200$ on the
 plus version or move to GWTX.
 * With GWT-EXT your are stuck with ext 2.02 since the license change
 fiasco.

 These are some of the reasons why, i could go on with the bashing but
 this is not the right place. From now on if i really need eye-candy i'll
 probably use flex or pure javascript or ext, most of the widgets that make
 GWT-EXT/GXT interesting are already available as part of the
 incubator(paging, grids, etc).

 cheers.

 2008/11/13 posta07 [EMAIL PROTECTED]


 Take a look at Ext-GWT (GXT) from extjs.com.

 It's the same extjs widgets written in pure GWT.

 On Nov 13, 9:33 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Hi,
 
  I am using simple GWT in my current project. I wanted to use some GWT-
  EXT widgets also. Can anybody tell me if there is anything to take
  care of when integrating GWT-EXT also to a current GWT project? Are
  there any clashes which might occur?
 
  Thnx n Regards,
  Litty Preeth









 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: migrating to GWT-EXT

2008-11-13 Thread Litty Preeth
Yes Yes... Now I got it... I am just chckout ur ppl-kit project

Thnx...

On Fri, Nov 14, 2008 at 12:21 PM, yunhui song [EMAIL PROTECTED]wrote:

 Ext.mask and Ext.unmask(),  Ext is a GWT-EXT core class. You could find a
 working class in my project http://code.google.com/p/ppl-kit


 On Thu, Nov 13, 2008 at 10:49 PM, Litty Preeth [EMAIL PROTECTED]wrote:

 Sorry... I didnt quite understand ur post. You mean you used EXT JS mask
 and unmask functions?

 - Litty


 On Fri, Nov 14, 2008 at 12:07 PM, yunhui song [EMAIL PROTECTED]wrote:

 Hi Litty,   I just finished a project to implment LightBox affect. I use
 ext.mask() and ext.unmask(). In my apinion, It's quite good.

http://code.google.com/p/ppl-kit.
I use gwt-ext and removed the extra files. It's only 40k and 4 support
 resource files.

   Hope that helps.
 Sammi


 On Thu, Nov 13, 2008 at 9:59 PM, Litty Preeth [EMAIL PROTECTED]wrote:

 Hi All,

 Thank you soo much for all your response

 Actually I wanted to use the GWT-EXT mainly for Tree and Modal Popups. I
 wanted the tree popup menu and the gray out of the screen when modal popups
 are shown (LightBox effect).

 Is it worthy enough to use GWT-EXT for these?

 Regards,
 Litty Preeth


 On Fri, Nov 14, 2008 at 6:01 AM, Roger Marin [EMAIL PROTECTED]wrote:

 After having finished with a fairly large project using GWT-EXT i would
 personally advise staying away from it, specially if you are a newbie with
 GWT. Why?
 * GWT-EXT's programming model != GWT's programming model. GWT-EXT is
 basically a JSNI wrapper for the ext-js API
 * Very slow performance compared to using pure GWT
 * The gwt-ext forums are filled with unanswered questions and very
 little answers from the project members.
 * If you are planning on using RPC, either be ready to spend 200$ on
 the plus version or move to GWTX.
 * With GWT-EXT your are stuck with ext 2.02 since the license change
 fiasco.

 These are some of the reasons why, i could go on with the bashing but
 this is not the right place. From now on if i really need eye-candy i'll
 probably use flex or pure javascript or ext, most of the widgets that make
 GWT-EXT/GXT interesting are already available as part of the
 incubator(paging, grids, etc).

 cheers.

 2008/11/13 posta07 [EMAIL PROTECTED]


 Take a look at Ext-GWT (GXT) from extjs.com.

 It's the same extjs widgets written in pure GWT.

 On Nov 13, 9:33 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Hi,
 
  I am using simple GWT in my current project. I wanted to use some
 GWT-
  EXT widgets also. Can anybody tell me if there is anything to take
  care of when integrating GWT-EXT also to a current GWT project? Are
  there any clashes which might occur?
 
  Thnx n Regards,
  Litty Preeth















 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



OffsetHeight of RootPanel

2008-11-12 Thread Litty Preeth

Hi,

I wanted to get the total height (scrollable area) of the root panel.
I used the following:
RootPanel.get().getOffsetHeight()

In Firefox its working, but in IE 6 its giving me only the window
height (ie. value of Window.getClientHeight()). Can you tell me if its
a bug or please share if you have any workarounds.

Basically I wanted to have a glass panel (LightBox effect) for popup
window. I wanted to set the height of the glass panel as same as the
RootPanel so that it dims the entire behind window when the popup
comes. Now in IE the glass panel height is only the window height
which prevents dimming bottom part of the screen.

Regards,
Litty Preeth
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Getting Error in GWT RPC Service

2008-11-12 Thread Litty Preeth
Either you are passing an argument of type
(com.extjs.gxt.ui.client.data.BasePagingLoadConfig) which is not
serializable or you are returning an object of that type from the RPC
method. In RPC methods the method argument types and return types must be
serializable (implements java.io.Serializable or
com.google.gwt.user.client.rpc.IsSerializable)

- Litty

On Wed, Nov 12, 2008 at 7:51 PM, Sachin [EMAIL PROTECTED] wrote:


 Hello All,
 I am getting following error in my RPC service ... can anybody tell me
 what is the problem ?
 I am using ExtGWT grid with pagination and loading data through RPC in
 grid.

 [ERROR]
 Uncaught exception escaped
 java.lang.RuntimeException:
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not
 assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
 not have a custom field serializer.  For security purposes, this type
 will not be deserialized.
at com.extjs.gxt.ui.client.store.ListStore.onLoadException
 (ListStore.java:184)
at com.extjs.gxt.ui.client.store.ListStore$1.loaderLoadException
 (ListStore.java:135)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent
 (LoadListener.java:27)
at com.extjs.gxt.ui.client.event.LoadListener.handleEvent
 (LoadListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent
 (BaseObservable.java:74)
at com.extjs.gxt.ui.client.data.BaseLoader.onLoadFailure
 (BaseLoader.java:155)
at com.extjs.gxt.ui.client.data.BaseLoader$1.onFailure
 (BaseLoader.java:115)
at com.extjs.gxt.ui.client.data.RpcProxy$1.onFailure(RpcProxy.java:
 22)
at

 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
 (RequestCallbackAdapter.java:217)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
 (Request.java:254)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
 (Request.java:226)
at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:217)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
 (IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
 (IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
 (IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
 (IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
 (COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at
 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
 Caused by:
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not
 assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
 not have a custom field serializer.  For security purposes, this type
 will not be deserialized.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 105)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
 (IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
 (IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
 (IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
 (IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
 (COMObject.java:117)
at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
at
 org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:
 64)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 493)
at
 org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
 417)
at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow
 (ModuleSpaceIE6.java:67)
at com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke
 (ModuleSpaceIE6.java:152)
 

Re: clicking outside the TreeItem firing onTreeItemSelected event

2008-11-07 Thread Litty Preeth
 thts a workaround... Thnxxx

On Fri, Nov 7, 2008 at 9:21 PM, walden [EMAIL PROTECTED] wrote:


 In that case, extend Label to include reference to the TreeItem and/or
 the UserObject.

 On Nov 7, 10:32 am, Litty Preeth [EMAIL PROTECTED] wrote:
  But I want to know which TreeItem the user clicked on. Because in the
  TreeItem I am storing a java object using the setUserObject and I use
 this
  java object to construct the menu.
 
 
 
  On Fri, Nov 7, 2008 at 6:28 PM, walden [EMAIL PROTECTED]
 wrote:
 
   Then construct your TreeItem with Label instead of text, and attach a
   ClickListener to the Label.
 
   On Nov 7, 2:00 am, Litty Preeth [EMAIL PROTECTED] wrote:
Actually I wanted a popup menu when user clicks on the TreeItem. I
   couldnt
find any ClickListener for TreeItem so I used onSelect.
 
- Litty
 
On Fri, Nov 7, 2008 at 4:26 AM, walden [EMAIL PROTECTED]
   wrote:
 
 I'm not sure he will see popping up a menu on item selection as
 normal
 behavior to begin with.  Maybe you should implement context menu
 listeners on your tree item widgets instead.
 
 On Nov 6, 11:15 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Okk.. Actually in my tree, I have a popup menu for each item on
 the
  onTreeItemSelected event. The menu comes just below the selected
   item.
 Now
  if a user is clicking some where outside the tree item, he will
 see a
 popup
  menu appearing below the item gettng selected. This he wont feel
 as a
 normal
  behavior.
 
  Hope you understood my point.
 
  - Litty
 
  On Thu, Nov 6, 2008 at 9:23 PM, walden 
 [EMAIL PROTECTED]
 wrote:
 
   It all depends on your expectations ;-).
 
   Actually, I do see the logic of selecting the node by clicking
 a
   spot
   in the tree whose vertical location is unambiguously associated
   with
   that node.  My real question to you now is this: what is your
   particular use case?  What is it you cannot do because of this
   feature?
 
   Also, I suggest you look at the code in the Tree widget where
   ONCLICK
   is handled (onBrowserEvent).  You will see that the Tree
   implementation traps click events at the top level and goes to
   quite a
   bit of trouble to resolve them to a tree item.  If you need to
   change
   this, it may not be easy.
 
   Walden
 
   On Nov 5, 1:26 pm, Litty Preeth [EMAIL PROTECTED]
 wrote:
Walden,
 
But then a user will expect to select a tree node by clicking
 on
   the
 node
only rite? I dont feel that the node getting selected when
 you
   click
 else
where is an expected behavior.
 
- Litty
 
On Wed, Nov 5, 2008 at 10:51 PM, walden 
   [EMAIL PROTECTED]
 
   wrote:
 
 Litty,
 
 Yeah, I see it now.  It looks as if this is by design.  If
 you
   need
 an
 area to the right of the Tree (outside the Tree but inside
 the
 ScrollPanel) where you can click without selecting a
 TreeItem
 (why?),
 then you can probably achieve that by setting the Tree's
 width
   so
 it
 does not fill the width of the ScrollPanel.  What effect
 are
   you
 trying to achieve?
 
 Walden
 
 On Nov 5, 8:21 am, Litty Preeth [EMAIL PROTECTED]
   wrote:
  Hi Walden,
 
  I tried using gwt-1.5.2 and gwt-1.5.
 
  If gwt-1.5.2 is used on IE6 it happens only for the child
   node.
 Root
 level
  nodes are working fine. But on IE7 and Firefox it is
   reproducible
 for
   all
  the nodes.
 
  If gwt-1.5 is used on IE6 everything works fine. But on
   Firefox
 it is
  reproducible for all the nodes.
 
  You can use this code below to reproduce the issue.
 
  TreeTest.java
  package com.test.client;
 
  import com.google.gwt.core.client.EntryPoint;
  import com.google.gwt.user.client.Window;
  import com.google.gwt.user.client.ui.RootPanel;
  import com.google.gwt.user.client.ui.Tree;
  import com.google.gwt.user.client.ui.TreeItem;
  import com.google.gwt.user.client.ui.TreeListener;
 
  /**
   * Entry point classes define
 codeonModuleLoad()/code.
   */
  public class TreeTest implements EntryPoint {
 
  Tree myTree;
 
  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
  myTree = new Tree();
  for (int i = 0; i  10; i++) {
  TreeItem prItm = new TreeItem(Parent_ + i);
  TreeItem chItm = new TreeItem(Child_ + i);
  prItm.addItem(chItm);
  myTree.addItem(prItm);
  }
  myTree.addTreeListener(treeListener);
  RootPanel.get().add(myTree

Re: clicking outside the TreeItem firing onTreeItemSelected event

2008-11-07 Thread Litty Preeth
But I want to know which TreeItem the user clicked on. Because in the
TreeItem I am storing a java object using the setUserObject and I use this
java object to construct the menu.

On Fri, Nov 7, 2008 at 6:28 PM, walden [EMAIL PROTECTED] wrote:


 Then construct your TreeItem with Label instead of text, and attach a
 ClickListener to the Label.

 On Nov 7, 2:00 am, Litty Preeth [EMAIL PROTECTED] wrote:
  Actually I wanted a popup menu when user clicks on the TreeItem. I
 couldnt
  find any ClickListener for TreeItem so I used onSelect.
 
  - Litty
 
 
 
  On Fri, Nov 7, 2008 at 4:26 AM, walden [EMAIL PROTECTED]
 wrote:
 
   I'm not sure he will see popping up a menu on item selection as normal
   behavior to begin with.  Maybe you should implement context menu
   listeners on your tree item widgets instead.
 
   On Nov 6, 11:15 am, Litty Preeth [EMAIL PROTECTED] wrote:
Okk.. Actually in my tree, I have a popup menu for each item on the
onTreeItemSelected event. The menu comes just below the selected
 item.
   Now
if a user is clicking some where outside the tree item, he will see a
   popup
menu appearing below the item gettng selected. This he wont feel as a
   normal
behavior.
 
Hope you understood my point.
 
- Litty
 
On Thu, Nov 6, 2008 at 9:23 PM, walden [EMAIL PROTECTED]
   wrote:
 
 It all depends on your expectations ;-).
 
 Actually, I do see the logic of selecting the node by clicking a
 spot
 in the tree whose vertical location is unambiguously associated
 with
 that node.  My real question to you now is this: what is your
 particular use case?  What is it you cannot do because of this
 feature?
 
 Also, I suggest you look at the code in the Tree widget where
 ONCLICK
 is handled (onBrowserEvent).  You will see that the Tree
 implementation traps click events at the top level and goes to
 quite a
 bit of trouble to resolve them to a tree item.  If you need to
 change
 this, it may not be easy.
 
 Walden
 
 On Nov 5, 1:26 pm, Litty Preeth [EMAIL PROTECTED] wrote:
  Walden,
 
  But then a user will expect to select a tree node by clicking on
 the
   node
  only rite? I dont feel that the node getting selected when you
 click
   else
  where is an expected behavior.
 
  - Litty
 
  On Wed, Nov 5, 2008 at 10:51 PM, walden 
 [EMAIL PROTECTED]
 
 wrote:
 
   Litty,
 
   Yeah, I see it now.  It looks as if this is by design.  If you
 need
   an
   area to the right of the Tree (outside the Tree but inside the
   ScrollPanel) where you can click without selecting a TreeItem
   (why?),
   then you can probably achieve that by setting the Tree's width
 so
   it
   does not fill the width of the ScrollPanel.  What effect are
 you
   trying to achieve?
 
   Walden
 
   On Nov 5, 8:21 am, Litty Preeth [EMAIL PROTECTED]
 wrote:
Hi Walden,
 
I tried using gwt-1.5.2 and gwt-1.5.
 
If gwt-1.5.2 is used on IE6 it happens only for the child
 node.
   Root
   level
nodes are working fine. But on IE7 and Firefox it is
 reproducible
   for
 all
the nodes.
 
If gwt-1.5 is used on IE6 everything works fine. But on
 Firefox
   it is
reproducible for all the nodes.
 
You can use this code below to reproduce the issue.
 
TreeTest.java
package com.test.client;
 
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Tree;
import com.google.gwt.user.client.ui.TreeItem;
import com.google.gwt.user.client.ui.TreeListener;
 
/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class TreeTest implements EntryPoint {
 
Tree myTree;
 
/**
 * This is the entry point method.
 */
public void onModuleLoad() {
myTree = new Tree();
for (int i = 0; i  10; i++) {
TreeItem prItm = new TreeItem(Parent_ + i);
TreeItem chItm = new TreeItem(Child_ + i);
prItm.addItem(chItm);
myTree.addItem(prItm);
}
myTree.addTreeListener(treeListener);
RootPanel.get().add(myTree);
}
 
TreeListener treeListener = new TreeListener() {
public void onTreeItemSelected(TreeItem item) {
Window.alert(item.getText() +  selected);
}
 
public void onTreeItemStateChanged(TreeItem item) {
// TODO Auto-generated method stub
}
};
 
}
 
TreeTest.css
.gwt-Tree {
border: 1px solid blue;
margin-left: 30px;
 
}
 
.gwt

  1   2   >