Re: GWT + JQuery

2010-10-14 Thread cokol
as for me, I took both, gwtquery and jquery in my app, because I wanted to use gwtquery's API in my javacode for some effects, but I could not get some jquery plugins to work, so for those I just took jQuery and written a small wrapper for the plugin to initilize from java On 13 Okt., 16:53, Falco

Re: integrating gwt into my existing application

2010-10-13 Thread cokol
there is no stupid questions! remember ;) you either only take the contents of the GWTWAR's directory and place them into your context root OR, if you want them to keep separately, you have to adjust the url-pattern for the remoteServiceServlet(s) in your web.xml accordingly to your @RemoteService

Re: Serialization Exception on the Client with Bags

2010-09-02 Thread cokol
SOLVED. see issue On 2 Sep., 11:56, cokol wrote: > hello, I'm using TO of kind: > > Action { >  String a,b; >  ArrayList list;} > > class Contianer implements IsSerializable { >  Integer i; >  MySerializableClass c; > > } > > and service: > interfa

Serialization Exception on the Client with Bags

2010-09-02 Thread cokol
hello, I'm using TO of kind: Action { String a,b; ArrayList list; } class Contianer implements IsSerializable { Integer i; MySerializableClass c; } and service: interface MyService implements RemoteService { void call(Action act); } which fails with exception (see below) when I fill the lis

RPC security check & class design

2010-08-31 Thread cokol
hello, I understand the mean behind the check in RPC::decodeRequest() which ensures that the implemented interface also has to extend RemoteService, but what about giving control to the user to decide if he wants this check to happen or not? i.e. by allowing to extend this class ( I know, impossib

Re: Detecting mobile phones browser

2010-08-15 Thread cokol
you can either use js browser detection script and work with it over JSNI in GWT ( like http://javascript.about.com/library/blbrsdet.htm ) or a serverside solution ( like http://wurfl.sourceforge.net/ ) which helps you to handle clients capabilities gwt claims to work on every browser :) hence the

Re: How to send data back to client side code?

2010-08-14 Thread cokol
> > > On Sat, Aug 14, 2010 at 6:17 AM, Sree ... wrote: > > okey... thanks alot guys > > i ll try to make those changes and will update here > > > also thx for so quick responses.. am loving it > > > On Sat, Aug 14, 2010 at 2:31 AM, cokol wrote: >

Re: question about code splitting

2010-08-13 Thread cokol
to load code asynchronously does not make sence unless not loaded by "demand", as a sample: if you have login-screen as a first screen, and after login you want to initialize the application,here you would benefit from splitting the code, one part to handle login and the other for entire applicati

Re: How to send data back to client side code?

2010-08-13 Thread cokol
hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under "client" becomes javascript after compilation and is not aware of anything contained

Re: Script tag dynamic loading

2010-08-13 Thread cokol
maybe u can expose me your eclipse project and I can try to resolve it locally...? if u dont mind On 13 Aug., 13:57, Vincent COROLLEUR wrote: > I tried to load the script on a button event and it's the same... > > Really annoying -- You received this message because you are subscribed to the Go

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-13 Thread cokol
the elements > within the panel (i.e. I want to put a box around Center). > > On Aug 13, 6:08 am, cokol wrote: > > > > > wrap you panel into DecoratorPanel then you can use 9box round corners > > > On 12 Aug., 20:50, Greg Dougherty wrote: > > > > With

Re: Switching a class for precompile

2010-08-13 Thread cokol
yes, but I forgot to say, that this only applies to JRE emulation set of classes provided by GWT, so like java.lang.BigInteger and such for your custom classes it works like expected. On 12 Aug., 17:40, Evan Ruff wrote: > Cokol, > > Thanks for the response, that's exactly what

Re: Detecting Network connection loss - com.google.gwt.user.client.rpc.InvocationException

2010-08-13 Thread cokol
exactly, like if(caught instanceof RequestTimeoutException){ //timeout } but u have explicetely to set timeout to support it, since as per default the timeout is set to 0 (no timeouts) On 12 Aug., 17:12, Jeff Chimene wrote: > On 08/11/2010 06:12 PM, nokostar wrote: > > > What is the best way o

Re: String.matches() does not work with \p{ASCII}

2010-08-13 Thread cokol
not to scan all of the chars, in case its not ascii but returns after first non-ascii On 12 Aug., 19:21, Thomas Broyer wrote: > On 12 août, 15:40, cokol wrote: > > > and if you really want to check for ascii why dont u just check for > > the ascii code? > > Such as "

Re: How do I set the border around elements in a DockLayoutPanel?

2010-08-13 Thread cokol
wrap you panel into DecoratorPanel then you can use 9box round corners On 12 Aug., 20:50, Greg Dougherty wrote: > With a DockPanel I just create a CSS style, and apply it to the > Panel.  I did that with a DockLayoutPanel, and nothing seemed to > happen.  I searched the archives of this group for

Re: synchronize asynchronous calls?

2010-08-13 Thread cokol
write a class which can be used like this: Executor.async(cmd1).async(cmd2).async(cmd3).sync(cmd4) it gonna start cmd1..cmd3 and when all are finished it gonna start cmd4 and go for observer pattern everytime an async call finishes it checks if it was the last one, if so it triggers cmd4, being

Re: Script tag dynamic loading

2010-08-13 Thread cokol
executing AFTER A.js has been loaded this is a little bit tricky, since SCRIPT tag does not allow you cross- browser to hook in to know if code is loaded, but there some strategies for it we can discuss if your problem really relates to the async control flow.. On 13 Aug., 12:43, cokol wrote: >

Re: Script tag dynamic loading

2010-08-13 Thread cokol
cross domain policy does not apply for some certain resources like javascript or images, so this is not the problem, you have to append the script element to the HEAD element, not to the BODY On 13 Aug., 11:56, Vincent COROLLEUR wrote: > Hello, > > I still have the problem. I tried to load other

Re: Classloader problem

2010-08-13 Thread cokol
hi, when you put something into WEB-INF/lib folder, the library is loaded to the classpath of the servlet container regardless if its on eclipse classpath or not. if you dont want to roll out the library with the war file or it resides somewhere else than WEB-INF/lib - you can still add the jar to

Re: String.matches() does not work with \p{ASCII}

2010-08-12 Thread cokol
and if you really want to check for ascii why dont u just check for the ascii code? try java.lang.Character to check or write in JSNI small for-each testing if decimal value of char is greater than 127 is faster than a regex evaluation On 12 Aug., 15:17, cokol wrote: > as you probably k

Re: String.matches() does not work with \p{ASCII}

2010-08-12 Thread cokol
as you probably know, regex is belongs to that cases not fully compatible between java and javascript, and in dev mode your GWT engine uses real JDK therefore it works, whereas after compilation your matches() is performed on the browser with its regex engne and it fails. well u have to rewrite t

Re: Scraping website with GWT

2010-08-12 Thread cokol
nope, thats not possible - u cannot access JS namespace of an iframe, so serverside is the only way but you can bring up results into the client though On 12 Aug., 14:35, Henrique Viecili wrote: > hmmm... you could use IFRAME to load the page, some JSNI to get the > HTML from the IFRAME (you migh

Re: Subversion Access with File Writing/Reading

2010-08-12 Thread cokol
you can also store the XML file in the datastore, why do you want to use versioning control? or do u also want to support diffs? by "sandbox" is meant that GAE does not provide more than a servlet container, even less, as there are some restrictions like JNDI or FileIO is not permitted. On 12 Aug.

Re: GWT and Map dynamic loading

2010-08-12 Thread cokol
s' javascript combined with > dynamic load from GWT. From the javaScript i try to load, there is > other call to scripts, maybe it's a problem... I think there's a > mechanism that i'm not aware. > > On Aug 12, 11:18 am, cokol wrote: > > > > > m

Re: GWT and Map dynamic loading

2010-08-12 Thread cokol
maybe you make a change to a DOM node what GWT is aware of and therefore triggers module unload? try following function (ready to use) define the function inside JSP function loadJS(url){ var loaderNode = document.createElement("script"); loaderNode.setAttribute("id","ffxep");

Re: gwt voices problem

2010-08-12 Thread cokol
maybe IE just worries about security? and it would help if you add your url to trusted sites or maybe IE doesnt allow XSS so make sure the wav file reside on same origin host where the HTML code comes from On 12 Aug., 10:06, mariyan nenchev wrote: > Could someone answer me please? > > On Wed, Aug

Re: How to change a default property from a i18n .properties file

2010-08-12 Thread cokol
either to can patch it when loading the resoucebundles in the java OR you can open the GWT JAR file with some package manager (winzip, winrar or such), modify the file in there and close it then the changes gonna stay there forever. On 11 Aug., 19:19, oyepez003 wrote: > Hello! > > I am using GWT

Re: GWT and Map dynamic loading

2010-08-12 Thread cokol
lol, maybe OpenLayer detects and kills Google Maps :-) On 12 Aug., 09:57, Vincent COROLLEUR wrote: > Hi, > > I always tried with JSNI and it's the same... ("Unloading module" when > scipt is loading) > > On Aug 12, 9:35 am, cokol wrote: > > > > >

Re: GWT security

2010-08-12 Thread cokol
not modify the fields, he > will see the readonly form (just for view purposes) > > Everything just by annotate UI components with @Secured annotation > > Peter > > On 12. Aug, 09:17 h., cokol wrote: > > > > > its a way it works, like Greg said - a dumb client shoul

Re: Excessive number of property descriptors

2010-08-12 Thread cokol
lol this happens really seldom but is a Java "feature" maximum compiled method size is 64k, like Fernando said - you have to split the method "manually" or report a BUG to BeanBinder team to make a split on big methods automatically On 12 Aug., 09:43, Gard Vaaler wrote: > Den 11. aug. 2010 kl. 15

Re: Does Timer class only last one session + images as an attachment in an email

2010-08-12 Thread cokol
you should not read the images from datastore using HTTP but rather use the API for that, if you really want first to load a stream from a HTTP connection and then put its contents into a message, then consider using URL().open() since GAE does not permit to use fileIO On 12 Aug., 03:41, GKotta w

Re: Reading a local file

2010-08-12 Thread cokol
actually, its the way you look for, you can also make a classic FileUpload using just HTML forms and write own servlet to save/parse the contents and to return the results in old-web manner (full page reload) On 11 Aug., 23:22, Greg Dougherty wrote: > My users want my app to be able to read data

Re: GWT and Map dynamic loading

2010-08-12 Thread cokol
i would use appropriate API for either maps but control them from "above", from the DOM of the browser, so first I'd create two DIV containers and bind GMaps or OpenLayers to each, depending on the user selection you can make the one or another container invisible, BUT you should not consider to cl

Re: GWT security

2010-08-12 Thread cokol
its a way it works, like Greg said - a dumb client should not worry, or better said not be too serious about security, everything what happens on the client is INSECURE, so the only security concern it should think about is to make the security "look good" to its user. the real security should alw

Re: Who knows how to execute native code in server-side

2010-08-12 Thread cokol
to invoke a OS process by Java is a part-of Java and its VM not GWT! so ensure JDK runtimes are on the classpath (as Yingwei said, uncheck app engine) and remember, GAE does not support it On 12 Aug., 04:26, Yingwei HU wrote: > uncheck the app engine option when creating the project...so simple

Re: Switching a class for precompile

2010-08-11 Thread cokol
hi, you can use the element in the gwt module descriptor, please refer to section "Overriding one package implementation with another" in this faq http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html there are also other ways, like you could also provide another cl

Re: Caching issue in host mode?

2010-08-11 Thread cokol
hi, u dont the server locally ,dont you I mean the param in the URL gwt.codesvr should point to 127.0.0.1 ? ;) otherwise I can only imagine that either the file is not in place (hit F5 in eclipse on the package to refresh) or the server does not use the default war folder as context root, this issu

Re: newbie - gweventservice vs eventbus

2010-08-11 Thread cokol
actually, EventBus is meant by GWT to be enganged with business events across components reside on the client. What u're looking for is rather a messaging service, so better focus on GWTEventService - its better suited. In fact, the real implementation can indeed use HandlerManager to propagate eve

Re: compile report

2010-08-11 Thread cokol
please post your gwt.xml module descriptor On 11 Aug., 18:03, ben fenster wrote: > ? > > On 11 אוגוסט, 15:21, ben fenster wrote: > > > > > can anyone tell me why when i compile without compile report flag the > > compilation finishes ok and when i use the flag the compilation gets > > st

Re: Is KeyPress discouraged ?

2010-08-11 Thread cokol
keypressed is actually an event for writeable characters, like 'a' or 'b' so if you push CTRL button, the keypress is not fired in browser, so google just made is convenient On 11 Aug., 17:22, Christian Goudreau wrote: > I had made a masked text box and since rolling up to GWT 2.1 MS2 backspace >

Re: Is there a way to write html and then wrap widgets

2010-08-11 Thread cokol
write a Composite with static or dynamic built elements inside, they just use it as it was a widget On 11 Aug., 03:07, "A/C A/C" wrote: > Is there a way to write some html directly. Add this html to an > existing gwt widget as a child and then wrap the html elements so they > become gwt objects?

Re: Instantations gwt-builder

2010-08-11 Thread cokol
as soon as google finalises the transition :) On 11 Aug., 14:54, markomina wrote: > Instantations had gwt-builder which I evaluated some years ago. > When evaluation/commercial version will be available? -- You received this message because you are subscribed to the Google Groups "Google Web T

Re: (BUG) -- Uncaught exception escaped

2010-08-11 Thread cokol
hum, this assertion seems to be wanted, what did u do to cause the error? i mean seems like there is an event firing which causes this error isnt it? On 11 Aug., 14:29, Santosh kumar wrote: > Hi, > this is the BUG which i see when i work with this module .. > please can any one help me to fix thi

Re: exception with Gwt and Hibernate

2010-08-11 Thread cokol
do you rpc objects to the client? maybe it cannot find the id of the object when unmarshalled on the server? On 11 Aug., 12:50, Shakun Sachdeva wrote: > Pls help me with the below exception.. > > --- > --

Re: GWT security

2010-08-11 Thread cokol
there is no reason to secure it, since decryption logic would be in javascript - thus public accessible, so better to use https ;) On 11 Aug., 14:04, Luis Daniel Mesa Velasquez wrote: > I don't see anything about the encryption used in the RPC call to the > userservice... so it's just a fancy 3rd

Re: gwt rpc & application scope

2010-08-11 Thread cokol
why not? do you want to put the whole application scope on wire or what do you mean why is should interfere? On 11 Aug., 13:20, Thomas Van Driessche wrote: > Hi All, > > Is it possible to put something in the application scope of the server > where the gwt app is deployed? > > The app uses rpc. >

Re: Displaying date in format dd/mm/yy

2010-08-11 Thread cokol
why dont you try :D but yes, it will... regards, On 11 Aug., 11:38, Santosh kumar wrote: > Hi Shakun, > I want to display this date in the flextable as one of the column for the > list of rows. > is your snippet will help me ?? > > > > > > On Wed, Aug 11, 2010 at 1:12 PM, Shakun Sachdeva wrote

Re: Deserialization on the Client / Browser

2010-08-11 Thread cokol
update: ok, got the reason for that - wrong magic number for the class type :( I've provided some source which differs from original class by having dummy API implementation, I dont believe this should make signature change...? On 11 Aug., 11:18, cokol wrote: > hi folks, > > i am

Deserialization on the Client / Browser

2010-08-11 Thread cokol
hi folks, i am using standard rpc calls but the client fails to deserialize the response with error "could not deserialize" - it here a way to debug that deserialization process on the client from within eclipse? -- You received this message because you are subscribed to the Google Groups "Goog

Re: why we probably won't use GWT for a large UI project

2010-08-11 Thread cokol
hi, goods thoughts you had, but dont treat GWT as a framework, Google doesnt do it either :-) Its "just" a toolkit or better yet, a JS compiler with some tooling around. And being just a toolkit is more powerful than create yet another throw-away ajax framework! There're plenty wonderful ajax fram

Re: How to create a GWT Library?

2010-07-23 Thread cokol
hi.its fairly easy to do.just google for a gwt module howto On Jul 23, 6:14 pm, nacho wrote: > Hi, i'm looking some info about how to create and package my own gwt's > lib. > > Does anyone know where can i find some tuto? -- You received this message because you are subscribed to the Google Gro

Re: Creating a separate GWT servlet page

2010-07-23 Thread cokol
what you mean by "page"? so you mean not actually an entry point or screen but rather a usual HTML page? then just write your .jsp , like adminPage.jsp. Or if you really want to write a panel with much HTML try using UiBinder. and remember - there is no "page" in GWT applications, however, you can

Re: Add HTML tags around GWT widgets

2010-07-23 Thread cokol
hi, so what you want is actually NOT that user-written XML directly is injected into the DOM, rather you're about to create an own UiBinder? So, if someone writes the code you want to map the element to the GWT-Button widget, right? - start using UiBinder :-) if you want to handle it absolutely

Re: How to catch ctrl +/- in GWT

2010-07-22 Thread cokol
u just register the keypressedhandler on the body element and when fired check if control key is pressed and corresponding characters are pressed. Actually its always better to scale images in percentage ratgherr than giving absolute sizes then this job is done by browser automativally On Jul 2

Re: Intercepting a paste from the clipboard

2010-07-22 Thread cokol
why do u want to do that?if a user pastes text via context menu u would not get it anyway. I would go for this:let paste the text and in ur onchange handler u would trigger a scan for inserted text and simulate the keyevents for each charachter entered.but again please tell us ur idea :) On Jul 22

Re: Does GWT have a status bar?

2010-07-22 Thread cokol
t taking your lead, I have > created a horizontal panel, added left or right justified cells and > within the cell added a label. > > So far so good, but how did they achieve the 3d box effect around > their label? > > On Jul 22, 10:48 am, cokol wrote: > > > isnt it sim

Re: problem accessing one composite from another - Urgent help needed if possible

2010-07-22 Thread cokol
hi.from architectonical perspective,the response IS A part of your wrapping composite therefore ur maininterface should also manage it.just put the response widget inside On Jul 22, 6:20 pm, dlynch wrote: > Hi Everybody, > > I am learning GWT just and am really stuck on a problem. > > I have cre

Re: Serializable objects lost during Async call

2010-07-22 Thread cokol
hi.actually impossible.for me it worked out.could u provide more information on the subclasses. or the fields are marked transient or such. On Jul 22, 6:00 pm, "Kevin (Yau) Leung" wrote: > I'm using GWT 2.0.3 and have encountered a problem during async rpc. > > I have a serializable class contain

Re: Does GWT have a status bar?

2010-07-22 Thread cokol
isnt it simply a Composite of a panel and a lable? :-) i mean it would take you half an hour at most to write your own with some smart API, or better yet, take extGWTs api for it On 22 Jul., 16:36, David Vree wrote: > I'm looking for something exactly like the Ext GWT toolbar status: > > http://

Re: (Random can't be used in a static method) ?????

2010-07-22 Thread cokol
watch out! you cannot make new Random() on GWT's type otherwise your IDE would pull in Javas implementation, so only Random.getNext() works make sure your Random is imported from com.google rather than java.util On 22 Jul., 12:50, Shawn Brown wrote: >  Actually if com.google.gwt.user.client.Rand

Re: Opening

2010-07-22 Thread cokol
you dont need to target a blank window, since anyway its a new one by default, so just skip the second parameter to $wnd.open() or if you still want to then do like $wnd.open(url,'_blank'); br, On 22 Jul., 13:30, Paul Grenyer wrote: > Hi > > On Thu, Jul 22, 2010 at 11:

Re: Opening

2010-07-22 Thread cokol
hi, try it as follows: private static native void getURL(String url) /*-{ $wnd.open('' + url,'target=_blank') }-*/; On 22 Jul., 11:21, Paul Grenyer wrote: > Hi All > > I've got a bit of a problem opening new tabs. I found the following link: > > http://brainreaders.blogspot.com/2

Re: How to vertically center content inside an HTMLPanel

2010-07-21 Thread cokol
make sure the HTMLPanel itself has a maximum extended height of this parent, so set panels height to 100% On 22 Jul., 06:01, David Vree wrote: > Newbie here -- struggling to get my HTML text and button to be > vertically centered within my HTMLPanel.  I am using UI binder and > tried applying a s

Re: Mouse Over Image

2010-07-21 Thread cokol
as lineman already written, you first have to add the label widget to the DOM ,you could do it just after setting label to "hidden". Then you also have to give the widget the property "position: absolute" in your case you could also use tooltips over widgets, they are better fitted since they k

Re: Opening a file

2010-07-21 Thread cokol
hi actually, this is a question to googles appengine forum, appengine implies many restriction, such as those, you cannot access the filesystem, put the excel file into classpath and access the stream via getResourceAsStream("foo.xls") from your classloader br, On 21 Jul., 16:26, Eric wrote: > T

Re: Needing help, building a Login

2010-07-21 Thread cokol
hi, you dont need to care for session ids, unless cookies are disabled, since almost every servlet container (tomcat, appengine,etc) creates a new sessionid for every request it does not recognize and this sessionid is sent back with a cookie. from now on, the browser automatically sends a cookie f

Re: Invocation Exception at Run time

2010-07-21 Thread cokol
hm, seems like you dont have a "transparent proxy", intstead your backend may be breaking the output, please post the doFilter() method of your proxy filter from the backend which actually handles the request br, On 20 Jul., 18:16, "kiss_...@yahoo.com" wrote: > Hi, > > Actually our application d

Re: External library on GWT server side.

2010-07-21 Thread cokol
hi, as the cause indicates " java.lang.NoClassDefFoundError: cryptix/ provider/md/MD5 " means that the class could not be found, means is not in the classpath. I guess you uploaded your application on googles appengine? however, make sure, that the .jar file of your crypter library resides in WEB-

Re: Sync AJAX ( instead of async)

2010-07-21 Thread cokol
...in that case it would be an option to show up a modal dialog asking the user to get some coffee :-) @mk youre welcome! On 21 Jul., 20:20, Brian Reilly wrote: > Could you get the same effect by preventing user input during your > server request, either by finding all of the controls/links and

Re: XSL Transformation, AccessControlException, NoClassDefFoundError and SyntheticRepository

2010-07-21 Thread cokol
as already states by cause "Caused by: java.security.AccessControlException: access denied " you are not allowed to access the filesystem neither for read nor for write - I remember there was a workaround for this issue, like putting the resource into classpath or such, then you can get the stream

Re: Did anybody try Cross site communication?

2010-07-21 Thread cokol
if you just tried to get the example working, maybe you mistyped something? On 21 Jul., 02:09, VM wrote: > Hello GWT Users, > > I just wanted to check if anybody had success with Cross domain > communication. > > I followed Google documentation: > > http://code.google.com/webtoolkit/doc/latest/tu

Re: Upload Maximum Size file giving Memory Out of rage error

2010-07-21 Thread cokol
stop doing that, its not your intention to load the entire filestream into the memory?! :-) you'd be better off with streaming, so on doPost() in your servlet you could acquire a stream from the request and forward it to your outputstream on the file system, so only the internal buffer is used. I

Re: Sync AJAX ( instead of async)

2010-07-21 Thread cokol
I see, i think google just did not want to make a tool which can be abused resulting in frustrated users :) but anyway, you can endeed get it simpler than just hacking JSNI from scratch - extend the XMLHttpRequest class and add a new method open() which flags the underlying connection as async (by

Re: Sync AJAX ( instead of async)

2010-07-21 Thread cokol
indeed it could be a valid use case; but not without a constraint, just imagine I wanna close my browser and your sync onunload() request would take 5 secs to be processed by server - what happens then? its evil! imho, if you want to process the response afterwards, like printing it out to the use

Re: Java Type Mapping or Compiler Extension

2010-07-21 Thread cokol
ok, got it - using the tag in the gwt descriptor does do the trick On 21 Jul., 12:14, cokol wrote: > hello folks, > > I wanted to use already existings beans transparently on the client. > The issue is, that they have BigInteger members, which cannot be > translated to JS. Now,

Re: AJAX of type GET ( and not POST)?

2010-07-21 Thread cokol
yeah, use the com.google.gwt.xhr.client.XMLHttpRequest class br On 20 Jul., 18:51, mk wrote: > Is there a way to make AJAX async call of type GET ( instead of POST). > > (RequestBuilder is ok but still is there a easier way) -- You received this message because you are subscribed to the Google

Re: create hyperlink using GWT

2010-07-21 Thread cokol
you have to provide full qualified url, so in your case it should be: tableLeft.setWidget(index, 0, new HTML("text")); br, On 21 Jul., 12:42, Thomas Broyer wrote: > On 21 juil, 03:55, Lu wrote: > > > Hi, > > > After getting a bunch of urls from the sever side, I want to dispay > > them in the

Re: Send String from GWT TO PHP

2010-07-21 Thread cokol
hi, please see documentnation on RequestBuilder class, there is a good sample On 20 Jul., 20:20, bhargava wrote: > Hi all, > > I need to send a string from my gwt platform on glassfish to a website > running(using php) on apache server. > > I know that i need to use JSONP . > > Is there any tutor

Re: $_POST is empty when request made using RequestBuilder

2010-07-21 Thread cokol
hi! so if you really need to go for HTTP POST rather than get, then do so, remove the '?' from post body, these would be required for CGI doing GET but not in this case. you dont need to go for JSNI!! SOP cannot be workarounded on the client solely. You have to write simple gateway service which

Re: $_POST is empty when request made using RequestBuilder

2010-07-21 Thread cokol
btw: you can of course abuse HTML resource reference tags allowing SOP ( like SCRIPT, IMG, IFRAME ) but they all do only support HTTP GET. If your service you gonna talk with requires HTTP POST, there is no other way you can also patch your DNS but this is for sure not the way you look for...

Java Type Mapping or Compiler Extension

2010-07-21 Thread cokol
hello folks, I wanted to use already existings beans transparently on the client. The issue is, that they have BigInteger members, which cannot be translated to JS. Now, I did not want to write adapters or TOs but rather "patch" the GWT compiler to know how to translate such classes. In my case I

Re: AJAX of type GET ( and not POST)?

2010-07-21 Thread cokol
btw: here a sample XMLHttpRequest r = XMLHttpRequest.create(); r.setOnReadyStateChange(new ReadyStateChangeHandler() { @Override public void onReadyStateChange(XMLHttpRequest xhr) { Window.alert("GET go