Re: downloading file from servlet

2016-03-22 Thread kjordan
It's possible through a data URI with faking a click on a download anchor: http://stackoverflow.com/questions/3665115/create-a-file-in-memory-for-user-to-download-not-through-server On Monday, March 21, 2016 at 7:53:45 PM UTC-5, Velusamy Velu wrote: > > Thanks for this discussion, I'm able to

Re: How to protect IP in GWT.

2016-02-24 Thread kjordan
This seems like a rather complex way to go about it. It seems like it would be simpler to do it the usual Java way of programming against interfaces and then using deferred binding to set which class actually gets used. Of course if you've got a good knowledge of how the GWT compiler

Re: GWT 2.4 timezone issue

2014-06-05 Thread kjordan
If you're using RPC, do a subclass of Date: public class LocalDate extends Date { public LocalDate() { super(); } public LocalDate(Date date) { this(date.getTime()); } @SuppressWarnings(deprecation) public LocalDate(int year, int month, int date) { super(year, month, date); } public

Re: Access OutputStream of HttpServlet within GWT Client

2014-05-29 Thread kjordan
What's different between them? Are you using the return value of getText() from the Response given to your RequestCallback? If the HTML looks slightly different after you put it into the DOM when you examine it, that's just the browser reformatting your HTML code. If it's completely

Re: GWT 2.5 changes

2013-01-22 Thread kjordan
FYI it was somehow GWT not liking some annotation emulations I had added for JPA. I didn't need them anymore on the client side and generator issues went away when I took out those modules. On Saturday, January 12, 2013 4:51:10 PM UTC-6, kjordan wrote: For the generator, I'm using

IFrame BlurHandler event target

2013-01-22 Thread kjordan
Is there any way through GWT to get the target of a BlurHandler placed on an IFrame (specifically the one used in the HtmlEditor)? I get the BlurEvent just fine, but getting what it blurred to seems problematic. The getEventTarget() seems to return an EventTarget that is neither a Node nor

GWT 2.5 changes

2013-01-12 Thread kjordan
I'm upgrading to 2.5 due to the Chrome 24 breakage and seem to be having a problem with some of my classes not being found. I have a generator that writes some reflection information about a class but that doesn't seem to get as many passed into it as it used to, possibly due to being in

Re: GWT 2.5 changes

2013-01-12 Thread kjordan
For the generator, I'm using oracle.getTypes() which used to return a lot more of my classes. On Saturday, January 12, 2013 12:07:33 PM UTC-6, kjordan wrote: I'm upgrading to 2.5 due to the Chrome 24 breakage and seem to be having a problem with some of my classes not being found. I have

Re: GWT RequestFactory only returning the last entry of the data

2012-11-20 Thread kjordan
I believe the issue you're experiencing is related to http://code.google.com/p/google-web-toolkit/issues/detail?id=6710 You can put the files referenced at https://gwt-code-reviews.appspot.com/1646803/ in your project to override the ones in the jar files. Or it looks like it's in the 2.5

Re: GWT ValueProxy and RequestFactory Domain Type error

2012-05-16 Thread kjordan
Your other option is to do a new BrowserDetailItem(s.name, s.id) in your query string. On Tuesday, May 15, 2012 3:23:43 PM UTC-5, jmbz84 wrote: Solved it. The problem was in: tempList = query.getResultList(); The result list returned from the query is a ListObject[][] which couldn't be

Re: java.lang.IllegalArgumentException: Attempting to edit an EntityProxy previously edited by another RequestContext in gwt

2012-05-04 Thread kjordan
What line is actually causing the exception? Are you trying to pass the created aaaProxy into the persist method of another RequestContext? If so, just list aaaProxy in @ExtraTypes in your other RequestContext and create it through that. Another option is to use append on the RequestContexts

Re: Reg....GWT+RequestFactory with Objectify !!!!!

2012-04-20 Thread kjordan
http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ On Wednesday, April 18, 2012 5:43:33 AM UTC-5, laxman lingampally wrote: Hi all , Please tell me same one, my recuriment is i will work on GWT+Requestfactory with Objectify , i am trying to work on these

AutoBean encoding on server-side with overriden method causes duplicate key

2012-04-11 Thread kjordan
I'm trying to use the AutoBean encoding so I can pass and parse types over a websocket connection I have. However, there seem to be some bugs with trying to encode AutoBeans on the server side. I had a structure like public interface Foo { } public interface Bar { } public interface AT

Manual Serialization

2010-09-15 Thread kjordan
I'm trying to use the built-in functions of GWT to serialize something that's not going through regular RPC. I've manually created a ClientOracle and gotten the InputStream for the strongName.gwt.rpc where I got the strongName portion from the client. I'm using RPC.streamResponseForSuccess to

Re: GWT with Hibernate - Gilead vs. Beanlib

2010-09-15 Thread kjordan
Only reason I can think of to use Gilead is if you want to send an object across the wire, update it, and send it back. Using its various state stuff it's able to turn it into a detached entity which can be merged in. On Sep 15, 9:29 am, Flori floon...@googlemail.com wrote: Hey all, To use my