Re: Java Mail API Error

2010-12-27 Thread Jason Essington
You cannot send email from the client portion of a GWT application. You can only email from the server side portion. The errors indicate that you were trying to use javamail from the client portion. On Dec 27, 2010, at 7:37 AM, Ahmed Shoeib wrote: > Compiling module com.fuoeg.testMail.TestMa

Re: How do I send program generated Images to my users?

2010-10-28 Thread Jason Essington
The remote service servlets used by RPC have code in them to prevent GET requests from doing anything. As was said before, if your images are small (or you don't care about IE) you can return the image as a data URI (google is your friend here) and when you get the response simply do: new Image

Re: Window.open not working on Chrome 5 ( GWT 2.0.4 )

2010-09-01 Thread Jason Essington
That's correct. You only ever want to open a window as a direct result of a user action (onClick, keypress, etc) otherwise you may run afoul of any popup blocker. This means that you cannot open a window in a callback. That is asynchronous that is not a direct result of a user action. If you n

Re: error javax.mail

2010-04-29 Thread Jason Essington
You can't really use javax.mail on the client side, it isn't supported by the emulation library. you'd have to send your data to the server and use javamail from there. -jason On Apr 29, 2010, at 11:20 AM, Felipe Guarda wrote: > Yes, i`m using javax.mail in the clientside code. where is the co

Re: GWT and MySQL Connection! Help!

2010-01-27 Thread Jason Essington
Form, etc) with GWT. Jason Essington Java Software Engineer . C A L Y P S O 215 West Pine St Pinedale, WY 82941 OFFICE 307-367-2276 MOBILE 307-749-8788 . www.calypso.com This electroni

Re: Greeting Service

2010-01-20 Thread Jason Essington
yes: http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html Jason Essington Java Software Engineer . C A L Y P S O 215 West Pine St Pinedale, WY 82941 OFFICE 307-367-2276 MOBILE 307-749-8788

Re: Suspicious Java interface definition in the Contacts example

2010-01-08 Thread Jason Essington
I'd be inclined to believe that this interface started life as an abstract class, and at some point the developer decided that it could be an interface instead. Thus the declaration was changed but the abstract modifiers were not removed. I think that there were no more nefarious intentions tha

Re: GWT Intigration with existing project .... Hosted mode issues.

2010-01-05 Thread Jason Essington
if the location of your gwt.xml file isn't at the same level as your client package then you need to add a tag to tell it where the client directory is. That's the likely reason it can't find your entry point class. so probably the simplest thing to do would be to move the gwt.xml file to src/

Re: Eclipse locks up when opening GWT project

2010-01-05 Thread Jason Essington
I'm using Eclipse 3.5 on Snow Leopard with the Google plugin for Eclipse on both a MBP and a MacPro and they both seem to work just fine. -jason On Jan 4, 2010, at 3:29 PM, Rob Tanner wrote: > Hi, > > I'm running Eclipse 3.5 with the GWT plugin for 3.5 and webkit 2.0. > I'm using MyEclipse 8.0

Re: gwt compiled size twice greater on Mac than Windows

2010-01-04 Thread Jason Essington
Are you compiling on one platform using output style Obfuscated and on the other with Detailed? That is the only thing that I could think of that would make a difference. -jason On Jan 4, 2010, at 9:05 AM, hasan wrote: > Hi, > I have noticed a behavior that happens consistently and I can't > e

Re: GWT Plugin and External JARs

2009-12-31 Thread Jason Essington
Do not use the built in server, use your own (properly configured) instance of tomcat, and uncheck the "run built in server" checkbox in the run configuration. -jason On Dec 31, 2009, at 8:39 AM, Matt wrote: > When it will be deployed to out Tomcat server, some of the JARs > conatining code tha

Re: Can't load the same module twice???

2009-12-30 Thread Jason Essington
I can't think of a single usecase where it would be appropriate to load a module twice ... It would be effectively the same as loading YUI, or Dojo, or jQuery twice, Once it is there the first time there's no need to load it again, the code is already there. If you are simply trying to place a

Re: Acessing different url on async call

2009-12-29 Thread Jason Essington
As long as the protocol (http/https) server (localhost) and port (3000) are the same, just use the url ... (/admin/login/) if protocol port or server change then you violate SOP (same origin policy) and the browser prevents the call. -jason On Dec 28, 2009, at 5:09 PM, Paulo Coutinho wrote:

Re: How to implement a fancy zoom with GWT ?

2009-12-23 Thread Jason Essington
Also have a look at how PopupPanel or DialogBox use Animation for an example. -jason On Dec 23, 2009, at 2:24 PM, pohl wrote: > Absolutely. If another javascript manages to do something in a > browser, then you can do it in GWT. A good starting place would be > to look at is the following cl

Re: Label with HTML

2009-12-14 Thread Jason Essington
Have you tried the HTML widget? Label is for text (setInnerText) and HTML is for HTML (setInnerHTML) -jason On Dec 14, 2009, at 10:05 AM, Dennis Madsen wrote: > Have I completely misunderstood something? There must be a way of > doing so. > > On 13 Dec., 23:04, Dennis Madsen wrote: >> I have

Re: Comparing calendar dates for equality

2009-11-23 Thread Jason Essington
DateTimeFormat from the I18N module should do what you want. -jason On Nov 23, 2009, at 6:15 PM, Rob Tanner wrote: > Hi, > > I need to compare two calendar dates (Strings with just day, month and > year) for equality but it would be nice if there existed a formatter > that I can use on the clien

Re: How create an EAR with GWT and other jars?

2009-11-19 Thread Jason Essington
That is simply a packaging question, not really a GWT question ... Simply add your .war file to your ear and specify that it is there in your application.xml file -jason On Nov 19, 2009, at 9:47 AM, iaio81 wrote: > Hi all, > Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I would put all >

Re: Is data on GWT pages secure from attack?

2009-10-28 Thread Jason Essington
In general you seem to be talking about attacks that would be handled by the browser's "Same Origin Policy". This does segregate js loaded from different places to prevent that sort of thing. but if the uses shouldn't have the data, then you shouldn't have sent it in the first place. rememb

Re: How to minimize browser using GWT ?

2009-10-28 Thread Jason Essington
Since javascript doesn't provide a way to minimize a browser window, you aren't going to be able to do it in GWT. In fact, any time you attempt to move, resize or close a window that is not a direct result of user action, AND an expected result from that action you are going to upset your u

Re: Are there any books on the GWT?

2009-10-28 Thread Jason Essington
My favorites are "GWT in Action" by Rob Hanson and Adam Tacy, and "Google Web Toolkit Applications" by Ryan Dewsbury Unfortunately both of these were published over a year ago, so GWT has undergone some changes since then. They do have some very good information, but things in the GWT world

Re: hosted mode works but not in IE/firefox...

2009-10-28 Thread Jason Essington
You'll want to compile with -style PRETTY to see what "g" really is. The default obfuscated code is not going to help you debug at all. -jason On Oct 28, 2009, at 8:19 AM, golfdude wrote: > > > gwt 1.7... > > I have an app which works fine in hosted mode but when I compile/ > browse to Minefie

Re: What is server side script selection

2009-10-24 Thread Jason Essington
Sounded to me like it does the same thing that the [modulename].nocache.js file does. only it does it on the server rather than in the client, reducing the number of connections required, as well as the bytes transferred. -jason On Oct 24, 2009, at 11:56 PM, balachandra maddina wrote: > H

Re: Hibernate4GTW + GWT 1.7 - problems?

2009-10-24 Thread Jason Essington
try Gilead, I believe that is the new name of that project. -jason On Oct 23, 2009, at 2:36 PM, rernst wrote: > > Hi, > > does Hibernate4GWT support GWT 1.7? I only saw mention up to 1.5. > > --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Jason Essington

2009-10-16 Thread Jason Essington
en this sort of thing recently with their accounts. -jason On Oct 16, 2009, at 9:51 AM, Jim Douglas wrote: > > Jason Essington -- > > Your account has apparently been compromised, and is being used to > post spam to this list. > > --~--~-~--~~~--

Spam messages to the group

2009-10-15 Thread Jason Essington
I just noticed that there were several spam messages in my Gmail "sent" box that came to this group over the last couple of days. Very odd indeed, but I believe that I've remedied the situation. Apologies for not noticing this earlier. -jason --~--~-~--~~~---~--~-

Re: GWT Eclipse Project on Multiple Operating Systems?

2009-10-05 Thread Jason Essington
I create User Defined Libraries GWT_DEV and GWT_USER so the classpath and project point to those names, and on each platform those libraries are configured to point to that actual jar files. -jason On Sep 30, 2009, at 11:52 AM, Mary-Anne Wolf wrote: > > I am contributing to an Open Source pr

Re: DOM over RPC

2009-10-05 Thread Jason Essington
does Document.toString() give you something you can use on the server side? -jason On Oct 5, 2009, at 1:22 AM, Parmeet Kohli wrote: > > Hi, > >I'm using the XMLParser class provided by GWT to create modify an > XML document on the client side. I need to use the JAVA > TransformerFactory an

Re: Deploy RCP in a subdomain

2009-09-11 Thread Jason Essington
That violates SOP (Same Origin Policy) so your browser won't let it happen. you would have to load your host page from that site to allow RPC to connect. XMLHTTPRequests (of which RPC is) must connect to the same host, port and protocol from which the host page was loaded. -jason On Sep 1

Re: DOM.getElementById() vs $doc.getElementById()

2009-09-01 Thread Jason Essington
how about Document.get().getElementById()? the DOM one is deprecated -jason On Sep 1, 2009, at 2:12 PM, Thad wrote: > > Why does DOM.getElementById() return null while $doc.getElementById() > in a JNSI method return a value? > > I'm trying to add a logon form to my welcom-file HTML (as mentione

Re: FileUpload

2009-09-01 Thread Jason Essington
libraries like commons-upload allow you to iterate each form element whether file or input or whatnot, so just iterate until you've got all the files. -jason On Sep 1, 2009, at 8:59 AM, huy wrote: > > how does the back-end differentiate the files? > > --~--~-~--~~~-

Re: JSON native function return value

2009-08-28 Thread Jason Essington
"id":"25" vs "id":25? what is actually supplied in your JSON? the first is a string, the second a number if you are getting the first, then your server side serializer is mucking things up for you. -jason On Aug 28, 2009, at 9:30 AM, jaimon wrote: > > hi all, > > i am using GWT and JSON.

Re: Class.forName

2009-08-27 Thread Jason Essington
Your database code should not be located in any *.client.* package. -jason On Aug 27, 2009, at 9:16 AM, Tom wrote: > > I am trying to compile the java class SlicrPopulatr, found here: > http://www.ibm.com/developerworks/library/os-ad-gwt2/index.html?S_TACT=105AGX44&S_CMP=EDU > > The following e

Re: FileUpload

2009-08-27 Thread Jason Essington
you can add additional file upload widgets to the same form and all files will be sent with the single submit -jason On Aug 27, 2009, at 1:19 PM, huy wrote: > > Is it possible to upload multiple files at one time? FileUpload will > only allow selection of one file so I'm not sure how to do t

Re: (SyntaxError): Expected ';' on Overlay type

2009-08-26 Thread Jason Essington
yeah, try: return eval('('+json+')'); On Aug 26, 2009, at 8:24 AM, r4nd wrote: > > Hi, I am new at working with overlay type and JSON > > I have a JSON string, > > {"enableCompose":true} > > and I have a overlay type > > import com.google.gwt.core.client.JavaScriptObject; > public class Config

Re: Loading entrypoint into an IFRAME?

2009-08-25 Thread Jason Essington
By default, GWT already loads itself into an iFrame. I believe that the XS linker does that as well. You don't need to do anything extra. -jason On Aug 24, 2009, at 3:05 AM, John O'Conner wrote: > > I've searched the GWT discussion group, but I haven't found an answer. > As a newb with GWT, I

Re: Adding GWT to an existing project in Eclipse, GWT compiler throws java.lang.NoSuchMethodError

2009-08-21 Thread Jason Essington
Move the GWT libraries up in your classpath. They should be right after your source directory and before anything else. -jason On Aug 21, 2009, at 9:11 AM, dm3sol wrote: > > I was searching for this error over this group and did not find > similar issue, so I thought this is a note for the ot

Re: Weird Bug (sorry)

2009-08-20 Thread Jason Essington
This might shed some light on your weird [not so much a] bug: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd -jason On Aug 19, 2009, at 10:27 PM, Luke wrote: > > I wouldn't normally ask things like this but I have something weird > going

Re: GWT.create() doesn't work outside onModuleLoad()

2009-08-18 Thread Jason Essington
right, you need to read: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd Now, what you'd get as a return from you method is not at all what you would expect. myVariable will NEVER be set by the time you exit the method. -jason On Aug 1

Re: remove all margin/border of FlexTable

2009-08-17 Thread Jason Essington
have you tried border-collapse: collapse; in your css? -jason On Aug 17, 2009, at 8:41 AM, Tobe wrote: > > Hi, > I have a FlexTable with some rows and used setStyleName() to set a > background-color from a CSS file. I also set margin and border to 0 in > the CSS file for all elements, bu

Re: *.cache.html blocked by firewall - GWT team opinions please?

2009-08-14 Thread Jason Essington
It sounds like the firewall doesn't like the html file that is composed entirely of javascript. If you have access to the IT departments that run those firewalls, perhaps you could request that they disregard that rule for your particular sites. If that isn't possible you could maybe try us

Re: Event and Interrupt Questions

2009-07-31 Thread Jason Essington
Javascript is single threaded, so the event code has to wait its turn. If a tight loop or something is running, the event's code won't execute until the loop is finished. If you need events to fire in the middle of long running processes (or simply don't want the browser to act frozen) plac

Re: Widget.clear() method not clearing properly

2009-07-31 Thread Jason Essington
wouldn't it be easier (and perhaps faster) to do something like: RootPanel rp = RootPanel.get("sample"); rp.clear(); // remove any widgets to be safe rp.getElement().setInnerHTML(""); // and clear any remaining contents -jason On Jul 30, 2009, at 1:55 AM, Thamizharasu S wrote: > > Hi P

Re: Can I invoke RPC Methods from Java

2009-07-29 Thread Jason Essington
RPC data is not synchronous, meaning an object moving from the client to the server (javascript to java) looks different than one moving from the server to the client (java to javascript). This complicates attempting to perform a java to java type of scenario. That said, it is not impossibl

Re: [ERROR] Line 3: The import java.math cannot be resolved

2009-07-29 Thread Jason Essington
BigDecimal is not emulated in GWT and thus cannot be compiled to javascript. Have a look at what is available to you: http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html -jason On Jul 28, 2009, at 11:55 PM, akshi wrote: > > Hi Folks, > > I am using GWT as a beginner and at the time

Re: Passing a javascript object as parameter to java method

2009-07-28 Thread Jason Essington
One sort of sneaky trick that could be helpful with overlay types would be to do something like: public native String getStringField(String fieldName)/-{ return (fieldName != null && this[fieldName] != undefined) ? this[fieldName] : null; }-*/; It isn't as convenient as getThis() or getTh

Re: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Jason Essington
Uhm hosted mode is IE, FF, or Safari depending upon the platform ... That said, do you also get the error on Safari? -jason On Jul 21, 2009, at 10:34 AM, Paul Robinson wrote: > > This may be a dumb question, but since you didn't mention hosted > modehave you tried it under hosted mode as w

Re: Image Bundle not working in IE

2009-07-17 Thread Jason Essington
I have to say, in all of the environments that I have access to my image bundles work fine, BUT there is one machine at a client's location that does not display them! I have thus far been unable to replicate this situation, so haven't been able to chase it myself. -jason On Jul 17, 2009,

Re: WebKit in license

2009-07-15 Thread Jason Essington
yes, it is only for development (HostedMode) and only on OS X. -jason On Jul 14, 2009, at 3:07 PM, henryhbk wrote: > > I have a question about the license of GWT. In the description it > "includes" webkit. Now my assumption is that this is based on the > pseudo web environment in eclipse that yo

Re: How to decouple the application into multiple GWT modules?

2009-07-13 Thread Jason Essington
Nope, GWT creates a monolithic javascript payload from all of the modules that are inherited by the compiled module. -jason On Jul 13, 2009, at 1:49 PM, Sky wrote: > > By following the approach that Fred outlined, does that create > multiple .js files and do they only get downloaded when the

Re: Making RPC calls to remote server in hosted mode

2009-07-07 Thread Jason Essington
id module name: 'http://site.com/..' > > But it works when I hit the URL on my browser... do I need to set up > my Tomcat server differently? > > > On Jul 6, 6:21 pm, Jason Essington wrote: >> it is simply -noserverhttp://myserver.com/myHostpage.html >> &

Re: Making RPC calls to remote server in hosted mode

2009-07-06 Thread Jason Essington
the lines of: > -noserver IPaddress -p port com.module/module.html > > > On Jul 6, 2:59 pm, Jason Essington wrote: >> That is pretty much exactly what -noserver is for. you can debug and >> even change your client code and have it execute against any remote >> server (whe

Re: Making RPC calls to remote server in hosted mode

2009-07-06 Thread Jason Essington
That is pretty much exactly what -noserver is for. you can debug and even change your client code and have it execute against any remote server (whether that is on your local machine or even a production server). -jason On Jul 6, 2009, at 10:54 AM, justin choi wrote: > > I've been explori

Re: GWT components too big in IE

2009-06-30 Thread Jason Essington
Or it could just be IE's wonderful (read broken) box model implementation. -jason On Jun 29, 2009, at 3:39 PM, max3000 wrote: > > Hi, > > GWT seems to render components too big in IE. This can be seen simply > by navigating to the GWT showcase. Make sure the zoom is reset (100%). > > It is obv

Re: GWT Support for other browsers

2009-06-25 Thread Jason Essington
It is quite possible that the javascript engine in that browser is limited in what it is capable of doing compared to the current generation of engines. This would make the simple approach (new user agent and defining a new deferred binding specific to that browser) simply impossible. But

Re: the "***.cache.html" is very large, How to fixed it? Thank you very much

2009-06-25 Thread Jason Essington
Have you looked at the file that you think is obfuscated to make sure it actually is? 7M sounds pretty big, and typically PRETTY is not a bit larger than OBF but rather dramatically larger. Do you get an error with style PRETTY as well? -jason On Jun 25, 2009, at 3:20 AM, Senton wrote: >

Re: New Browser Window

2009-06-23 Thread Jason Essington
just remember, you have to do this as a direct result of a user action (button click for example) otherwise any popup blocker will prevent the window from opening. Attempting to open a window from within a DeferredCommand, or as a result of an XHR callback will fail if popup blockers are ena

Re: Help ..How to stop GWT to produce extra *.cache.html file.

2009-06-23 Thread Jason Essington
Primarily it seems you haven't fully understood the bootstrapping process in GWT. the *.js file is simply to discover which browser is being used and it triggers the load of one of the *.cache.* (js or html depending) files that contains javascript code that is tailored specifically for tha

Re: Making further RPC calls on onWindowClosing() not working in Safari & opera.

2009-06-23 Thread Jason Essington
I'd be inclined to believe that an RPC sent in onWindowClosing() would work though you wouldn't get any response. If you don't cancel the window close event then the page should be unloaded and the code would be gone. The asynchronous nature of the call to the server would suggest that the r

Re: GWT Setup on mac

2009-06-18 Thread Jason Essington
At this point I believe that Java5 is the default on OS X -jason On Jun 18, 2009, at 1:45 AM, hojberg wrote: > > wow cool, but is the java sdk the right version ? the guide said i > needed version 5 which is 32bit instead of the 64bit version 6 ? > > - hojberg > > On Ju

Re: GWT Setup on mac

2009-06-17 Thread Jason Essington
if you have installed the developer tools that came with your mac, then you have ant installed, and as luck would have it all macs come with java pre installed -jason On Jun 17, 2009, at 4:11 PM, hojberg wrote: > > So i tried to setup gwt for mac from the guide (i dont want to use > eclipse)

Re: How to setup RPC call to be "GET" instead of "POST"

2009-06-17 Thread Jason Essington
Not easily, the server side components reject GET request outright. And you'd have to handle URL size limitations and such for the parameters you send with the GET. Though it is possible to hack RPC work via get, you would probably be better off using RequestBuilder and JSON or some such. -

Re: Is it possible to call the GWT Service outside the entry point?

2009-06-11 Thread Jason Essington
perhaps this little discussion would be of some help: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f/3be719c021aa19bd -jason On Jun 11, 2009, at 4:05 AM, retha pasalli wrote: > > Hi Mr. Kushner, > > Thx for your reply. I've tried to call the service from

Re: Possible to insert a widget into the DOM?

2009-06-11 Thread Jason Essington
of type Node. This compiles OK, but at run time I get > an exception on the appendChild call. > > How can I add or append an element to a node like this? > > Secondly..I can't seem to find any wrap method in the Widget class? > > Any further insight would be greatly appreci

Re: ImageBundle reuse images

2009-06-11 Thread Jason Essington
Images widgets at their core contain a DOM element and you can't have an element in two places at once. However the beauty of ImageBundle is that it caches that actual image so you don't incur additional bandwidth when you create multiple image widgets using the same image bundle. -jason

Re: Possible to insert a widget into the DOM?

2009-06-10 Thread Jason Essington
Probably the safest thing to do would be to insert an element, then use the widget's .wrap() method to "promote" that element to a widget. there are other ways, but they are prone to leaking memory. -jason On Jun 10, 2009, at 1:36 PM, peterk wrote: > > Hey all, > > I'm walking the DOM tree

Re: Return type of AsyncCallback methods

2009-06-10 Thread Jason Essington
it isn't the callback methods, but rather the return type of the method in your Async Interface so rather than void doSomething(AsyncCallback cb); it would be Request doSomething(AsyncCallback cb); Though I believe that is only available from GWT 1.5 on -jason On Jun 10, 2009, at 11:

Re: Changing GWTs hosted mode browser.

2009-06-10 Thread Jason Essington
Try trunk rather than the OOPHM branch. I believe that the most current OOPHM code is located there. Though you may still need to grab the browser plugins from the older branch. -jason On Jun 10, 2009, at 2:20 AM, Axel Kittenberger wrote: > > Ok,I built OOPHM according to this: > http://alla

Re: Scriptaculous appear effect with PNG with transparency shows black background on IE

2009-06-10 Thread Jason Essington
Which version of IE? IE 6 doesn't really support PNG transparency, and requires an activeX hack which may implode with the effects. -jason On Jun 9, 2009, at 8:31 PM, mrpantsuit wrote: > > I'm actually using the GWT Widget Library's Effect class, which has an > Effect.appear(Widget) method.

Re: Changing GWTs hosted mode browser.

2009-06-09 Thread Jason Essington
search for OOPHM on this list -jason On Jun 9, 2009, at 4:10 PM, Axel Kittenberger wrote: > > Dear GWT community, > > Is there a (relative easy way) to replace the GWTs hosted mode browser > for linux systems? The provided Mozilla 1.7.2 is a 5 year old thing > anyway. > > In particular I need EX

Re: Data base exception in GWT

2009-06-08 Thread Jason Essington
regular JDBC access isn't allowed in App engine either. If you weren't intending on creating an App Engine project, deselect the "Use Google App Engine" checkbox in the project properties dialog, Then you'll be able to use both JNDI and JDBC. -jason On Jun 8, 2009, at 9:20 AM, Jason Parekh w

Re: java.io.file

2009-06-04 Thread Jason Essington
Client side GWT is bound by what is allowed by the browser's Javascript sandbox, and file io is decidedly NOT allowed, and therefor not emulated in GWT. There have been various projects that use Flash, or java applets to work around that restriction, but those are no panacea either. File u

Re: Work around for Element.setAttribute("style", "value") in IE ?

2009-06-03 Thread Jason Essington
I was under the assumption that any of the static DOM methods should be eschewed in favor of the methods in the Element overlay types (where they exist). so Element.getStyle().setProperty() vs. DOM.setStyleAttribute() Though both should currently work -jason On Jun 3, 2009, at 10:37 AM, Ad

Re: Work around for Element.setAttribute("style", "value") in IE ?

2009-06-03 Thread Jason Essington
you mean like element.getStyle().setProperty("backgroundColor", "#FF"); -jason On Jun 3, 2009, at 10:15 AM, Ganaga wrote: > > Hi, > > Doing a Element.setAttribute("style", "background-color: #ff") > works fine in Firefox but has no effect in IE. > > Is there any work around for changi

Re: Add javascript to html

2009-06-03 Thread Jason Essington
You can use eval() from JSNI to execute javascript strings rather than trying to inject them into the HTML. -jason On Jun 3, 2009, at 9:13 AM, JF wrote: > > Let's say i have a String js = "

Re: jsni getting rewritten

2009-06-02 Thread Jason Essington
Is performing an eval on arbitrary code from an untrusted source (client in this case) a good idea? It seems like it would be a rather large security breach in your application (depending upon what else you app does I suppose) It just sounds naughty to me. -jason On Jun 2, 2009, at 12:50 P

Re: Statistical functions help

2009-06-01 Thread Jason Essington
you could check out the JSci project http://jsci.sf.net And adjust the bits you need. I generally do that sort of thing on the server, but I don't see any reason why you couldn't do it on the client if you wanted. -jason On May 31, 2009, at 9:36 PM, Dan W wrote: > > Hi, > > I have an app

Re: GWT VS GWT-EXT

2009-06-01 Thread Jason Essington
UHM ... that question is a bit confused. GWT is the Toolkit in which GWT-EXT exists. without GWT there is not GWT-EXT. the EXT variants (GWT libraries based on EXT) seem to be rather popular, but also seem to have more than their fair share of detractors. You can search the list for informa

Re: Is it possible to compile a no javascript version using gwt toolkit

2009-06-01 Thread Jason Essington
You have to remember that GWT is not a single solution for creating a web site. It is (or rather can be) just one part of the whole system. GWT primarily performs DOM modification and XMLHTTP requests (with lots of other fancyness that makes those tasks much easier for the developer). Thes

Re: GWT RPC Encryption

2009-05-29 Thread Jason Essington
You cannot keep data encrypted on the client if you expect to allow the client to use it. Anything that you want to protect from the user should never leave the server. for instance DVD and HD-DVD and BlueRay all attempt to keep their formats encrypted from the user, but the user is require

Re: How to use java.lang.Thread in GWT

2009-05-29 Thread Jason Essington
. > > 2009/5/28 Jason Essington > > > Thread is not part of java that is emulated in GWT. Javascript is > single threaded so thread.sleep() has no meaning, you might as well do > while(true); (I don't actually suggest doing that) > > What is it that you are trying to ac

Re: How to use java.lang.Thread in GWT

2009-05-29 Thread Jason Essington
Use the GWT timer for that -jason On May 28, 2009, at 11:05 AM, Adil BENHAMID wrote: > as an example I want to display a button then wait two seconds > before displaying the next one. > > 2009/5/28 Adil BENHAMID > I would like to to make a temporization between two calls. >

Re: How to use java.lang.Thread in GWT

2009-05-28 Thread Jason Essington
Thread is not part of java that is emulated in GWT. Javascript is single threaded so thread.sleep() has no meaning, you might as well do while(true); (I don't actually suggest doing that) What is it that you are trying to accomplish with Thread.sleep()? -jason On May 28, 2009, at 10:37 AM,

Re: Java Security Permissions / postgreSQL

2009-05-28 Thread Jason Essington
If you are using the Google Eclipse Plugin, is your project marked as an appengine project? If so, you'll want to unselect that option to use a regular database. -jason On May 28, 2009, at 3:01 AM, SmartGWT_D wrote: > > Hi, did you find a solution for your problem, because I've the same. > A

Re: Is there a Java URL encoder class that can be used in both Java/Javascript?

2009-05-27 Thread Jason Essington
perhaps you could use GWT.isClient() to decide which implementation to use, the GWT version in a GWT environment or the java version in a JVM? -jason On May 27, 2009, at 12:30 AM, TimOnGmail wrote: > > Hi all... > > I have a class that I'd like to use in GWT, and have it work both in a > free

Re: Exception Handling

2009-05-20 Thread Jason Essington
when you declare a parameter as Object (or in this case Object[]) GWT would be forced to discover every possible serializable object in the classpath and make a serializer for it. This is particularly inefficient, so it is better to use a more specific subclass of Object. -jason On May 20,

Re: 关于类调用的问题!

2009-05-13 Thread Jason Essington
I have no idea what either of you said On May 13, 2009, at 4:13 PM, salvador.ce wrote: > Da para escrever em Ingles ou Portugues ?? > > 2009/5/13 kai.zhang@gmail.com > 我新写了一个类,叫做B类,我想在A类里面调用B类,却报错了,请问应该如 > 何操作? > > > > > -- > Carlos Salvador > Consultor BI / SAP BW BPS > 021-8426-8120 >

Re: Migrated GWT Netbeans project to GWT 1.6 latest trunk version + oophm --> StackOverflowError

2009-05-13 Thread Jason Essington
you could try increasing the jvm stack size with the -Xss switch and see if that doesn't help -jason On May 13, 2009, at 12:56 PM, stefan asseg wrote: > > hi, > > > i am migrating our open source web desktop framework > http://code.google.com/p/hetras-gwt-framework/ to 1.6 and it works > fine

Re: new Compiler documentation

2009-05-12 Thread Jason Essington
Sure, just fire up the compiler or hosted mode with an invalid option and it'll list all of the valid ones in the console for you. It is really helpful that way :-) -jason On May 12, 2009, at 4:18 PM, rjcarr wrote: > > Thanks for the link, but is there a page somewhere that just shows all >

Re: RPC problem after deploying on server

2009-05-12 Thread Jason Essington
Looks like your servlet mapping is incorrect. Either change your @RemoteServiceRelativePath to "test/gwt" OR your servlet mapping to "/gwt" -jason On May 12, 2009, at 3:56 PM, Rod wrote: > > I have two classes on client , one named POST, and second POSTAsync. > In POST I have "@RemoteService

Re: Hosted mode

2009-05-12 Thread Jason Essington
Don't know what to tell you man, it is WoMM Certified* --~--~-~--~~~---~--~~ 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 unsubscri

Re: RPC Call and onSuccess get File.

2009-05-12 Thread Jason Essington
CAREFUL! If you do your processing in an RPC remoteServiceServlet, then in onSuccess() you window.open using a particular URL to fetch the generated file your users (well non-IE users anyway) will never see that file. Popup blockers will prevent the opening of a window that is not a direc

Re: Serialization

2009-05-12 Thread Jason Essington
From a java perspective, Serialization implies a contract that GWT (or more specifically Javascript) cannot fully uphold, so originally the developers created IsSerializable which implies the subset of the Serialization contract that could be upheld. As GWT progressed, it turned out that t

Re: GWT 1.6 - How do I change the default "war" directory name

2009-05-11 Thread Jason Essington
ssuming your static content was in a subdirectory of the public >>> directory (?). And now you will need to have WEB-INF/lib inside >>> your >>> WebContent dir? >> >>> I will need to do migrate to1.6sometime, and I just don't like the >>> w

Re: Adding the same widget more than once

2009-05-01 Thread Jason Essington
The problem is that an object cannot exist in two locations at the same time ... Really, don't you wish you could be at the bar, at the same time you are at home fixing the dishwasher (you're happy, wife's happy)? The same applies to DOM your | cannot be in two places at once, you can cre

Re: Communicate w/ existing GWT-RPC service

2009-04-28 Thread Jason Essington
Your underlying service could be just about anything, but use the RemoteServiceServlet to expose that service to GWT via RPC then SOAP or JSON or whatever to expose it to non-GWT clients. Basically you use the RemoteServiceServlet to handle object serialization and just pass the objects on

Re: GWT project runs slow in Hosted mode

2009-04-28 Thread Jason Essington
Hosted mode is a strange beast. most of the java code runs in hosted mode as java, and executes faster than it would in your browser (IE), but if you have to cross the java/javascript boundary then you end up with a pretty big performance hit where the code will execute much slower than in

Re: Scope of GWT

2009-04-28 Thread Jason Essington
GWT is just one part of a complete web application. Typically for a large app you might use some sort of CMS on the server, and use GWT to perform dynamic client side stuff. It is not necessary to use any additional frameworks like SmartGWT or the EXT variants with GWT, but they seem to be

Re: Wait for all asynchronous calls to finish

2009-04-28 Thread Jason Essington
So, you click save, then each field is validated individually via an RPC? One trick is to chain your RPC Calls. I have an abstract Callback that implements Command and also has a field to hold an additional Command. CommandCallback the execute() method is able to Fire the RPC that is hand

Re: Can I make a ClickHandler for an AnchorElement?

2009-04-27 Thread Jason Essington
Anchor a = Anchor.wrap(ae); a.addClickHandler(myHandler); -jason On Apr 24, 2009, at 5:48 PM, Dr Hfuhruhurr wrote: > > It is straightforward to find an id-labelled element in the DOM by for > example a command such as > > AnchorElement ae = Document.get().getElementById("link1"); > > Now I want

Re: GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Jason Essington
setValue() On Apr 24, 2009, at 12:09 PM, Danny wrote: > > setChecked() seems to be depreaciated by GWT 1.6. What replaces this > action? > > Thanks, > > Danny > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

  1   2   3   >