SSL login in GWT

2009-06-13 Thread baalu aanand

Hi,

   I am a new bee for GWT. I am using PHP as server. I am posting data
to server using

   RequestBuilder requestBuilder = new RequestBuilder
(RequestBuilder.POST, ./php/mylogin.php);
   requestBuilder.setHeader(Content-Type, application/json);

and receiving the response using the method in RequestCallback
interface
  public void onResponseReceived(Request request, Response
response).

   Using this following method for login, i can able to see the users
password in firebug  console. So i need to use SSL connection, to make
it secure. I don't know correctly how to use the SSL connection.
Kindly guide me to get the secure connection. I hope it will be clear
for you.

Thanks in advance
Baalu

--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread Booth Martin
I do not understand why you cannot just .setStyleName(Style1) on each 
widget to have that image?  Why would they need to be different for each 
widget?

abhiram wrote:
 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram

 


 No virus found in this incoming message.
 Checked by AVG - www.avg.com 
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
 17:56:00

   

-- 
===
LoChief, 
===

_   _ __
   | | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
   | |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
   |  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
   |_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
   |_|
==


--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
ok, i will elaborate a bit...

there are 2 buttons, save Button1 and Button2. Button1 needs an image Image1
and Button2 needs Image2.

The styles of both the buttons are same except for the images that appear on
them.

 I am writing two styles Style1 with the background-image as Image1 for the
Button1.
And the other Style2 with the background-image as Image2 for the Button2.

Cant I not write a single style for both the buttons and some code to
indicate which image would be used for the button (dynamically).

 That would save me the task of creating multiple styles for all the buttons
that I have.

 Please let me know if there is any such functionality available...

regards,
Abhiram

On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.com wrote:

  I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==


 


--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread Ian Bambury
Why don't you just name the image after the widget (e.g.SaveButton has a
background image of 'SaveButton.png') and have a routine to set the
background image to the name of the widget plus '.png'?
Ian

http://examples.roughian.com


2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that appear
 on them.

  I am writing two styles Style1 with the background-image as Image1 for the
 Button1.
 And the other Style2 with the background-image as Image2 for the Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.com wrote:

  I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==





 


--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
Hi Ian,

  Thanks for the suggestion. But i am not sure, how to set the Imagename
(which is part of the CSS ) from my Java code.
Can i pass parameters to the CSS file?

regards,
Abhiram

On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury ianbamb...@gmail.com wrote:

 Why don't you just name the image after the widget (e.g.SaveButton has a
 background image of 'SaveButton.png') and have a routine to set the
 background image to the name of the widget plus '.png'?
 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that appear
 on them.

  I am writing two styles Style1 with the background-image as Image1 for
 the Button1.
 And the other Style2 with the background-image as Image2 for the Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.com wrote:

  I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==








 


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



How to implement GWT interfaces in javascript

2009-06-13 Thread samsus

Hi All,

Im trying to use jsni to implement a interface (a callback) and use it
as an argument in a function. here is what i have:

-

package com.mypackage;

public interface MyCallback {

public void onResponseReceived(String text);

}



package com.mypackage;

public class MyClass {
public static String send(String text,MyCallback callback) {
callback.onResponseReceived(text);
return ;
}

private native void publish() /*-{
$wnd.send =
@com.myLibs.Communications.CommunicationManager::sendAndGet(Ljava/lang/
String;com/mypackage/MyCallback;);
}-*/;
}




im stuck, because com/mypackage/MyCallback is not considered a valid
type, also , im not sure how i can implement in javascript the
MyCallback interface/class.

Any ideas?

--~--~-~--~~~---~--~~
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 GWT interfaces in javascript

2009-06-13 Thread iuri matias

correction in the code supplied:

 -

 package com.mypackage;

 public interface MyCallback {

  public void onResponseReceived(String text);

 }

 

 package com.mypackage;

 public class MyClass {
 public static String send(String text,MyCallback callback) {
 callback.onResponseReceived(text);
 return ;
 }

 private native void publish() /*-{
 $wnd.send = @com.mypackage.MyClass::send(Ljava/lang/
String;com/mypackage/MyCallback;);
 }-*/;

 }

 

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



text box type from Right to left

2009-06-13 Thread zujee

Hi ,
I want to change the direction when user type something, similar to
change locale to arabic. Is there any way to do that
Thanks in advance
Zuje
--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread Ian Bambury
I don't think you can do it if you have to have the image name in the css
file.
I was suggesting setting the image name directly in the GWT code.

Ian

http://examples.roughian.com


2009/6/13 abhiram wuntakal abhir...@gmail.com

 Hi Ian,

   Thanks for the suggestion. But i am not sure, how to set the Imagename
 (which is part of the CSS ) from my Java code.
 Can i pass parameters to the CSS file?

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury ianbamb...@gmail.com wrote:

 Why don't you just name the image after the widget (e.g.SaveButton has a
 background image of 'SaveButton.png') and have a routine to set the
 background image to the name of the widget plus '.png'?
 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that appear
 on them.

  I am writing two styles Style1 with the background-image as Image1 for
 the Button1.
 And the other Style2 with the background-image as Image2 for the Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.com wrote:

  I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 06/12/09 
 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==











 


--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
ya, but it is a background image and i think i need to set it from CSS
itself right? or, is there a way to set the background image from the
code... (Using DOM or something!!!)

On 6/13/09, Ian Bambury ianbamb...@gmail.com wrote:

 I don't think you can do it if you have to have the image name in the css
 file.

 I was suggesting setting the image name directly in the GWT code.

 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 Hi Ian,

   Thanks for the suggestion. But i am not sure, how to set the Imagename
 (which is part of the CSS ) from my Java code.
 Can i pass parameters to the CSS file?

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury ianbamb...@gmail.comwrote:

 Why don't you just name the image after the widget (e.g.SaveButton has a
 background image of 'SaveButton.png') and have a routine to set the
 background image to the name of the widget plus '.png'?
 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that
 appear on them.

  I am writing two styles Style1 with the background-image as Image1 for
 the Button1.
 And the other Style2 with the background-image as Image2 for the
 Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.comwrote:

 I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 
 06/12/09 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==























 


--~--~-~--~~~---~--~~
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: text box type from Right to left

2009-06-13 Thread rudolf michael
this is a css property, direction: rtl;

On Sat, Jun 13, 2009 at 5:11 PM, zujee sujeesh...@gmail.com wrote:


 Hi ,
 I want to change the direction when user type something, similar to
 change locale to arabic. Is there any way to do that
 Thanks in advance
 Zuje
 


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



Image not appearing for ImgButton in SmartGWT

2009-06-13 Thread abhiram

Hi all,

  Just wanted to know if there is any image type restrictions for the
images that we use as Icons for Buttons in ImgButton in SmartGWT?

 I am trying a sample project but am not seeing the image on the
button.

regards,
Abhiram
--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread Ian Bambury
x.getElement().getStyle().setProperty(backgroundImage, url(image.png));
(or something like that)

Ian

http://examples.roughian.com


2009/6/13 abhiram wuntakal abhir...@gmail.com

 ya, but it is a background image and i think i need to set it from CSS
 itself right? or, is there a way to set the background image from the
 code... (Using DOM or something!!!)


 On 6/13/09, Ian Bambury ianbamb...@gmail.com wrote:

 I don't think you can do it if you have to have the image name in the css
 file.

 I was suggesting setting the image name directly in the GWT code.

 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 Hi Ian,

   Thanks for the suggestion. But i am not sure, how to set the Imagename
 (which is part of the CSS ) from my Java code.
 Can i pass parameters to the CSS file?

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury ianbamb...@gmail.comwrote:

 Why don't you just name the image after the widget (e.g.SaveButton has a
 background image of 'SaveButton.png') and have a routine to set the
 background image to the name of the widget plus '.png'?
 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that
 appear on them.

  I am writing two styles Style1 with the background-image as Image1 for
 the Button1.
 And the other Style2 with the background-image as Image2 for the
 Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.comwrote:

 I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 
 06/12/09 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==






















 


--~--~-~--~~~---~--~~
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: Image icons for Widgets

2009-06-13 Thread abhiram wuntakal
Hi Ian,

 Thanks a lot. This is what I needed. Was struggling to find such a piece of
code. This works perfect. Thanks again..

Regards,
Abhiram


On 6/13/09, Ian Bambury ianbamb...@gmail.com wrote:

 x.getElement().getStyle().setProperty(backgroundImage, url(image.png));


 (or something like that)

 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ya, but it is a background image and i think i need to set it from CSS
 itself right? or, is there a way to set the background image from the
 code... (Using DOM or something!!!)


 On 6/13/09, Ian Bambury ianbamb...@gmail.com wrote:

 I don't think you can do it if you have to have the image name in the css
 file.

 I was suggesting setting the image name directly in the GWT code.

 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 Hi Ian,

   Thanks for the suggestion. But i am not sure, how to set the Imagename
 (which is part of the CSS ) from my Java code.
 Can i pass parameters to the CSS file?

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 4:54 PM, Ian Bambury ianbamb...@gmail.comwrote:

 Why don't you just name the image after the widget (e.g.SaveButton has
 a background image of 'SaveButton.png') and have a routine to set the
 background image to the name of the widget plus '.png'?
 Ian

 http://examples.roughian.com


 2009/6/13 abhiram wuntakal abhir...@gmail.com

 ok, i will elaborate a bit...

 there are 2 buttons, save Button1 and Button2. Button1 needs an image
 Image1 and Button2 needs Image2.

 The styles of both the buttons are same except for the images that
 appear on them.

  I am writing two styles Style1 with the background-image as Image1
 for the Button1.
 And the other Style2 with the background-image as Image2 for the
 Button2.

 Cant I not write a single style for both the buttons and some code to
 indicate which image would be used for the button (dynamically).

  That would save me the task of creating multiple styles for all the
 buttons that I have.

  Please let me know if there is any such functionality available...

 regards,
 Abhiram


 On Sat, Jun 13, 2009 at 11:51 AM, Booth Martin bo...@hiapes.comwrote:

 I do not understand why you cannot just .setStyleName(Style1) on each
 widget to have that image?  Why would they need to be different for each
 widget?

 abhiram wrote:

 Hi,

   I have a requirement where in I need to add image icons for widgets
 like buttons and menu items. I am using a CSS style for this wherein I
 specify the background image this way.

  .Style1 {
background: url(Image1.gif) no-repeat;
text-align: right;
 }

  This works fine, but was wondering if there is a better way of doing
 it. Coz, in this approach I need to create a new Style for each and
 every widget. Although the background for all the widgets are same,
 there are multiple css styles created because of this approach. Can
 anyone tell me if there is a more optimal method of doing this.

 Regards,
 Abhiram


 --


 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.339 / Virus Database: 270.12.66/2172 - Release Date: 
 06/12/09 17:56:00




 --
 ===
 LoChief,
 ===

 _   _ __
| | | (_)  / \   _ __   ___  ___   ___ ___  _ __ ___
| |_| | | / _ \ | '_ \ / _ \/ __| / __/ _ \| '_ ` _ \
|  _  | |/ ___ \| |_) |  __/\__ \| (_| (_) | | | | | |
|_| |_|_/_/   \_\ .__/ \___||___(_)___\___/|_| |_| |_|
|_|
 ==


























 


--~--~-~--~~~---~--~~
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: Image not appearing for ImgButton in SmartGWT

2009-06-13 Thread Sanjiv Jivan
Hi Abhiram,Please post your question on the SmartGWT forum :
http://forums.smartclient.com/forumdisplay.php?f=14 along with details /
relevant code and we'll be happy to assist.

Sanjiv

On Sat, Jun 13, 2009 at 10:35 AM, abhiram abhir...@gmail.com wrote:


 Hi all,

  Just wanted to know if there is any image type restrictions for the
 images that we use as Icons for Buttons in ImgButton in SmartGWT?

  I am trying a sample project but am not seeing the image on the
 button.

 regards,
 Abhiram
 


--~--~-~--~~~---~--~~
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: Event handler for model ?

2009-06-13 Thread Dalla

I thinkt I´m getting the hang of things now, using your examples and
the ones from the link I posted

On 12 Juni, 09:39, mnenchev nenchev.mari...@gmail.com wrote:
 Well what exactly you want to do?



 Dalla wrote:
  Could you please post some examples will?
  Or maybe send me some code? mnenchevs example was good, but more
  examples never hurt :-)

  On 11 Juni, 14:08, Will wil...@gmail.com wrote:

  That's what I use as well.  I created an Abstract Class with
  HashmapEventHander,HandlerRegistration for removing a handler
  (because HandlerManager.removeHandler(..) is depricated) and use that
  for all my UI components that create custom events.  I then create sub-
  Classes of EventHandler for each logical group of events but that's
  just to help keep the project readable.  Doing it once for the base UI
  class didn't seem overweight but we'll see how it performs once I get
  the project into a perf test.

  On Jun 10, 8:40 am, Dalla dalla_man...@hotmail.com wrote:

  Hi

  I´m having trouble understanding how to implement an event handler for
  my custom objects with the new event handler system. Let´s pretend I
  have a very simple model class like this one:

  public class ArrivalData {
          private Date date;
          private boolean processing = false;

          public Date getDate() {
                  return date;
          }

          public void setDate(Date date) {
                  this.date = date;
          }

  }

  When setDate is called, I want to fire an event that my view
  components can listen on, and act on when called for.
  How would you go about doing that? Are there any existing handler
  interfaces that can be used?
  I found this tutorial (see link below), but it seems pretty
  complicated for what I´m trying to 
  acheive.http://www.itsolut.com/chrismusings/2009/04/28/business-events-with-g...

  What´s best practice here?- Dölj citerad text -

 - Visa citerad 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
-~--~~~~--~~--~--~---



GWT Comet Processor Implementation

2009-06-13 Thread Kousikraj

Hi,

I am trying to implement CometProcessor in GWT 1.6. I got a sample for
the same from

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ee2f9207de953fc0d886f73f7dd17388?lnk=raot

But still that implementations was for older versions of GWT.

Does anyone got a sample for CometProcessor Implementation in GWT?

--~--~-~--~~~---~--~~
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: Hosted mode

2009-06-13 Thread Allan

wow, it takes me a day! lucky, there is a way to do that. Thanks a
million!

On Jun 3, 4:14 am, Kelo mcac...@gmail.com wrote:
 Hi Greg,
    Push the button GWT Compile Project
    Compile your project setting log level to Spam
    Go to Debug Configurations , on the 2nd tab GWT of your project
 set log level to Spam.
    Run Debug as... ( your project )
    Make your breakpoints on your project
    Then press Compile/Browse on Hosted Mode
    Once it fininshed press Refresh on Hosted Mode

 On Jun 1, 4:19 pm, Rajeev Dayal rda...@google.com wrote:

  Hi Greg,

  A few questions for you:

  1) Are you using Debug As to launch your application's debugging session?
  2) If you switch to the Debug perspective and look at the breakpoints view,
  are all of the breakpoints enabled?
  3) If you go to Preferences (Window - Preferences on Linux and Windows,
  Eclipse - Preferences on Mac) - Run/Debug and make sure that Activate the
  workbench whenbreakpointis hit and Activate the debug view when
 breakpointis hit options are enabled?
  4) Can you tell me what is on your project's classpath?

  Rajeev

  On Sat, May 30, 2009 at 5:05 PM, Greg greg.ba...@gmail.com wrote:

   I'm having the same problem as the OP. I'm working through the
   StockWatcher tutorial, and I set breakpoints on the specified lines in
   updateTable. Eclipse shows checkmarks on thebreakpointindicators
   after the hosted-mode browser starts. Extra calls to GWT.log
   demonstrate that control is passing through the marked lines, but
   execution does not stop. Eclipse's perspective never changes to Debug.

   OS: Vista
   Eclipse v3.4.2 (Ganymede + EE)
   GWT Plugin 1.0.1.v200905131143
   GWT SDK for Win32 1.6.4.v200904062334
   JDK 1.6.0_14

   Thanks,
   Greg

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



Troubles getting -noserver to work with Apache

2009-06-13 Thread markww

Hi,

I'm trying to get a test project running using -noserver and GWT 1.6.

I want to use Apache as the backend. All I wanted to do was call some
PHP scripts on my live server from hosted mode, however this seems to
be impossible now with changes to GWT and SOP.

It seems using -noserver and pointing to my live server (might) solve
this:

http://code.google.com/support/bin/answer.py?answer=55200topic=10454

For this test, I'll host the files in my root web directory, pointing
here:

www.mysite.com
www.mysite.com/myproject.html
www.mysite.com/fantasticscriptiwanttorun.php
// etc

in Eclipse, I'm not sure where we perform step #3. I can look at the
GWT project run configuration properties, and see that there's a
checkbox for run built in server. If I uncheck that, is there any
point to adding the -noserver argument in the Arguments tab?

Change the URL at the end of the argument list to match the URL
you recorded in step #1.

Ok, where is the argument list though? I don't see anything like that
in the run configuration. Where are we supposed to add
www.mysite.com to?

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



Re: GWT Comet Processor Implementation

2009-06-13 Thread Mark

The link you posted doesn't work for me, I don't know what
CometProcessor is but if you just need a Comet implementaton for GWT
you can try GWTEventService.

On Jun 13, 5:29 am, Kousikraj kousik...@gmail.com wrote:
 Hi,

 I am trying to implement CometProcessor in GWT 1.6. I got a sample for
 the same from

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 But still that implementations was for older versions of GWT.

 Does anyone got a sample for CometProcessor Implementation in GWT?
--~--~-~--~~~---~--~~
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: Troubles getting -noserver to work with Apache

2009-06-13 Thread Mark

If anyone else is having trouble with this (GWT 1.6):

-Go to your project's Run Configuration in Eclipse
-Uncheck 'run built in server' under the 'Main' tab
-In the 'arguments' tab, enter something like this:

-noserver -startupUrl http://www.mysite.com/ProjectName.html -
whitelist  ^http[:][/][/]www[.]mysite[.]com

-replace the url/projectname with your host target/project name.
-copy your project files over to your host target as described in the
google walkthrough for -noserver:

http://code.google.com/support/bin/answer.py?answer=55200topic=10454

I am running in -noserver mode to get around the Same Origin Policy
problem, wanting to call php scripts from my apache server. Running in
this mode now works, I can still debug my GWT project which is nice,
and I don't have to keep copying files over to apache as I modify my
GWT project (may not apply to html / css file though).

Mark


On Jun 13, 4:40 pm, markww mar...@gmail.com wrote:
 Hi,

 I'm trying to get a test project running using -noserver and GWT 1.6.

 I want to use Apache as the backend. All I wanted to do was call some
 PHP scripts on my live server from hosted mode, however this seems to
 be impossible now with changes to GWT and SOP.

 It seems using -noserver and pointing to my live server (might) solve
 this:

    http://code.google.com/support/bin/answer.py?answer=55200topic=10454

 For this test, I'll host the files in my root web directory, pointing
 here:

    www.mysite.com
    www.mysite.com/myproject.html
    www.mysite.com/fantasticscriptiwanttorun.php
     // etc

 in Eclipse, I'm not sure where we perform step #3. I can look at the
 GWT project run configuration properties, and see that there's a
 checkbox for run built in server. If I uncheck that, is there any
 point to adding the -noserver argument in the Arguments tab?

     Change the URL at the end of the argument list to match the URL
 you recorded in step #1.

 Ok, where is the argument list though? I don't see anything like that
 in the run configuration. Where are we supposed to add
 www.mysite.com to?

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



GWTCanvas: Can I stroke a line that replaces what was there before with transparent pixels?

2009-06-13 Thread John Gunther

I'm using GWTCanvas in the gwt-incubator:

Say I draw a filled red rectangle.

Next, I create a line across that rectangle's diagonal.

Now, I could set that line's color to green, blue, etc. and stroke and
get a diagonal line.

But I don't seem to be able to set that line's color to transparent
so that I get an empty diagonal line that shows whatever else might be
underneath the canvas on the page, etc.

I guess another way to put this is that I need a clear for stroked
paths.

More useful example: Stroke a thick path, change to a thinner
thickness, restroke same path with transparent pixels. Now you've got
an empty tube around the path (drawing two || lines to create such a
tube is much harder).

Is this possible with GWTCanvas now? If not, is it feasible to add the
capability?

GWTCanvas: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas

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



Generating UI with GWT or PHP

2009-06-13 Thread markww

Hi,

This is a general question about GWT and user interfaces. In my
(limited) use with PHP, the server was responsible for generation of
most of the 'UI'. Each script would emit some html which the client
browsers download and render.

If we wanted to write a project only using GWT for the presentation,
this model changes. As I understand it, now the server will spend less
time generating text via PHP scripts, because it would just be handing
out the same static .js files - the .js files are the compiled .js
app. Once it gets to the client browser, the javascript handles
building out the entire UI (via all the Widget classes).

If this is true, I wonder if anyone can comment on how it affects
performance (this is a very general question I know). In a PHP-driven
site, maybe for a logged-in user section I would have done something
like this:

   echo div id='blah' etc etc/
  pSome text/p
  pWelcome back,  . $username .  /p
   /div;

now with GWT, I would have set up a bunch of widget classes, then done
a separate AJAX call and pull down a JSON representation of the user
to populate my widget:

public class MyProject implements EntryPoint
{
public void onModuleLoad()
{
VerticalPanel p1 = new VerticalPanel();
final Label label = new Label(Loading...);
p1.add(label);
RootPanel.get().add(p1);

asyncAjaxCall(http://mysite.com/getUserInfo.php;) {
public void onSuccess(Response response) {
label.setText(JSONParse.parse(response));
}
}
}
}

I'm not sure which approach is better for the web application I want
to write. Preferably I'd like to stick totally with GWT for client-
side, and use PHP via AJAX to get data from my database to populate
the UI. But I'm not sure if all the widgets I want to create to make
an appealing user interface will overburden users' browsers, and
therefore am better off just using PHP to generate the pages for me.

Thanks for any thoughts
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



One class calling another class - this has to be simpler than I am making it.

2009-06-13 Thread Booth Martin

This has got to be simpler than I am making it.  I have looked at many 
examples and tutorials and either I am not seeing something, or I am not 
understanding what I am seeing.

I am going to try to avoid using Java terms in my description so that I 
do not confuse the problem with my misunderstanding of definitions.

I want to have a main driver program that I can use as a basic framework 
for the items a user might choose to run.  This driver program would 
have a few pushbuttons. 

When the user presses Button B1 I want stand-alone program P1 to run.  
No parameters, no data traveling back and forth. 
When the user presses Button B2 I want stand-alone program P2 to run.  
No parameters, no data traveling back and forth,
Possibly, P2 would require other programs to run, with parameters, but 
thats for when I am a tad smarter.

So, I have figured out how to use the click handler, and when P1 is 
pressed I can write a Window.alert(Bingo).  It would seem to me that 
there must be a simple way (a single line of code?) to run program P1, 
but I can't make it work.

I find plenty of examples where P1 is a part of the main panel, but I am 
trying to not tie them together that way.

Any ideas would be 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
-~--~~~~--~~--~--~---



Unable to find 'MyService.gwt.xml' on your classpath

2009-06-13 Thread aaaaa

Hi,

When I run my gwt application, I always get the following error
message.
[ERROR] Unable to find 'MyService.gwt.xml' on your classpath; could
be a
typo, or maybe you forgot to include a classpath entry for source?

Can someone tell me the reason please?

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



Using data from client-side file

2009-06-13 Thread always_a_learner

Hi,

I wanted to use the google visualisation api with my gwt application
and use a clientside file as an input for the visualisation. how can I
do 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Different Icons for leaf node in Tree

2009-06-13 Thread Amit Jha
Hi, I was wondering if there is a way to assign different images as icons to
different leaves in GWT Tree.

All I could find was interface TreeImages, which has methods to specify
images only for Open , closed nodes and leaf.
It does not provide a way to dynamically decide and assign different images
to the leaf nodes.

Thanks for your help.


Amit

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