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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?

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

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

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

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

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

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

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

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

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

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

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