Re: Designer Problem : « uibinder template should be in client package »

2011-07-13 Thread khiem nguyen
try to move package1.gwt.xml into package1, package2.gwt.xml into package2. i have this kind of issue too, keeping this helps: package client server shared module.gwt.xml On Wed, Jul 13, 2011 at 8:29 AM, cruser crusercru...@gmail.com wrote: Thanks Kojo, I had a look

Re: JPA RequestFactory: Persistence of Foreign Keys

2011-07-06 Thread khiem nguyen
i think the problem lies here: @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @JoinColumn(nullable = false) private User user; cascadetype.all means when u create new Booking, persist it will also persist the user, which leads to id-conflict On Wed, Jul 6, 2011 at

Re: Open a local file with JNSI

2011-06-30 Thread khiem nguyen
not sure if u can even do it with normal js (security) On Wed, Jun 29, 2011 at 11:05 PM, Kernel_panik bertrand.cheval...@gmx.netwrote: Dear all, with help of JNSI, i'm trying to open a local file from a client GWT. Here is my code: open(file:///D:/www/index.htm); // to call the native

Re: RequestFactory and JSNI

2011-06-30 Thread khiem nguyen
i had to do it manually with a lot of boilerplaite code (create a js-object copy properties from proxy to it). would like to hear if someone has better approach On Thu, Jun 30, 2011 at 12:30 PM, Nachiket patel.nachike...@gmail.comwrote: Hi, I have ran few tests and wrote Hello World style

Re: Intercept basic authentication popup

2011-06-30 Thread khiem nguyen
i dont think u can do this at js in dom. browser handles this automatically when it sees the http-auth-required header before your js-code gets it. u'll need an anternative approach for this On Wed, Jun 29, 2011 at 7:52 PM, objectuser kevin.k.le...@gmail.com wrote: I'm not an expert in this

Re: Basic Requestfactory Example

2011-06-27 Thread khiem nguyen
h) Eie *Entity(Domain)-Klasse* m u s sfolgende drei Methoden implementiert haben: - *public Long getId() {...}* - *public Integer getVersion() {...}* - *public static Person findPerson(Long id) {...}* the requirement for static findX() is not required anymore you can use a

Re: RequestFactory causing OutOfMemoryError

2011-06-14 Thread khiem nguyen
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b16e9efa51b6/4e7c898492471c12?hl=enlnk=gstq=leak#4e7c898492471c12 On Tue, Jun 14, 2011 at 9:21 AM, Julian Scheid julian...@googlemail.comwrote: On Tue, Jun 14, 2011 at 7:18 PM, Filip Krygowski filip.krygow...@gmail.com

Re: Basic Authentication question

2011-06-13 Thread khiem nguyen
google give me this link: http://en.wikipedia.org/wiki/Basic_authentication On Mon, Jun 13, 2011 at 3:40 PM, Vinicius Carvalho viniciusccarva...@gmail.com wrote: Hi there! I need to access some services that uses http BASIC authentication. I've found out that I could set the

Re: GWT servlet access

2011-06-02 Thread khiem nguyen
404 means not found try to print out your request-url first to see if it matches host:port/mycompany/sayHello or not. i think it will not match, your request url will also include your gwt-module-name in the path On Thu, Jun 2, 2011 at 8:15 PM, Ybrek xyb...@gmail.com wrote: Hi i'm trying to

Re: gwt servlet thread, timer,reload

2011-05-31 Thread khiem nguyen
you can start your timer-process from something which starts with your webapp, for example in a ServletContextListener-implementations init method HTH On Tue, May 31, 2011 at 10:43 AM, ArnoNyhm etechniker@googlemail.comwrote: Thx. i have created my timertask class, but where in the

Re: gwt memory leak ?

2011-05-22 Thread khiem nguyen
grr, if the fix had come a bit earlier have spent the last week to move the project back to rpc instead of rf after the test-patch doesnt work as expected but i think i'll use RF again in the future, rpc dto make me write much more code. thanx On Sun, May 22, 2011 at 3:49 AM, Thomas

Re: gwt memory leak ?

2011-05-22 Thread khiem nguyen
in fact i did the WeakMapping fix got the class-cast exception (in previous post) On Sun, May 22, 2011 at 12:57 PM, Thomas Broyer t.bro...@gmail.com wrote: On Sunday, May 22, 2011 12:29:51 PM UTC+2, khiem nguyen wrote: grr, if the fix had come a bit earlier have spent the last week

Re: How Can I upgrade My Project To use RequestFactory

2011-05-17 Thread khiem nguyen
this is also an (unresolved) issue concerning RF http://code.google.com/p/google-web-toolkit/issues/detail?id=6193 http://groups.google.com/group/google-web-toolkit/search?hl=en_USq=gwt+leakstart=10sa=Nhl=en_US; On Tue, May 17, 2011 at 4:00 PM, Brian Reilly brian.irei...@gmail.comwrote: It's

Re: gwt memory leak ?

2011-05-16 Thread khiem nguyen
the patch just seem to slow down the leak but dont eliminate it, i make vm-dumps observe the numbers of ProxyAutoBean, ShimHandler increases (thou slowlier than before the patch) cannot be GCed. testing long enough will eat up the memory anyway. it's strange that no one get this problem yet ,

Re: Persistence Engine

2011-05-14 Thread khiem nguyen
i got this 404 Not Found/ was not found on this server. -- Resin/3.1.10 On Fri, May 13, 2011 at 8:15 AM, J.Ganesan j.gane...@datastoregwt.comwrote: I invite the group members to try out this persistence engine for GWT from www.DataStoreGwt.com. The developer

Re: Get sessionId on verry first request to the server.

2011-05-13 Thread khiem nguyen
normally sessionid is set with Set-Cookie header, u'll get it before the page content get loaded, i think you can read it throu Cookies. On Fri, May 13, 2011 at 6:55 AM, sergetk tkatchs...@gmail.com wrote: Hi I'm new to the gwt and have following question. I need to get session id on the

Re: Using servlet with GWT application in eclipse designer

2011-05-12 Thread khiem nguyen
there's a http packet (client-side) when u can create http-request ( i think RequestBuilder ) to your server, u can then get/post... handle response from client side. On Thu, May 12, 2011 at 5:45 AM, Hugues Aubuchon haubuc...@gmail.comwrote: I have a gwt client app that need to call a servlet

Re: gwt memory leak ?

2011-05-12 Thread khiem nguyen
i patched the released version 2.3.0 with the second patchset ( not the first one for WeakMap), refactored the code to use the new requestfactory package (which is now in gwt.web.bindary...), i dont get OutOfMemoryException anymore but the load test leads to jvm-crashed (with 100%cpu load).

Re: gwt memory leak ?

2011-05-11 Thread khiem nguyen
On Tue, May 10, 2011 at 3:09 PM, khiem nguyen khi...@googlemail.com wrote: hi Thomas thanx for the quick answer. sorry for being a noop here but i i dont seem to be able to apply the patch n2 4, since the package-structure of the source ( from http://google-web-toolkit.googlecode.com/svn/trunk

Re: gwt memory leak ?

2011-05-10 Thread khiem nguyen
hi Thomas thanx for the quick answer. sorry for being a noop here but i i dont seem to be able to apply the patch n2 4, since the package-structure of the source ( from http://google-web-toolkit.googlecode.com/svn/trunk/ ) is not the same as in release version. just replace the built

gwt memory leak ?

2011-05-09 Thread khiem nguyen
hi i have an webapp, using request-factory with eclipse-link jpa ValueProxy, EntitiyManagers are created closed at request level ( manually) after a while i get OutOfMemoryException, testing with over a hundred of clients ( browser refresh to query a webpage, whic invoke jpa to get db from

Re: getting seesion in client class

2011-04-30 Thread khiem nguyen
server maintains application-state, sessions. client doesn't have anything to do with it. if you want to deal with session stuffs at client code, it must me something conceptional wrong here On Sat, Apr 30, 2011 at 12:04 PM, Stefan Ollinger stefan.ollin...@gmx.dewrote: You need to create the

Re: URLs in Jetty

2011-04-29 Thread khiem nguyen
u need to install gwt-plugin to work in dev-mode On Fri, Apr 29, 2011 at 2:43 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If you debug inside eclipse works? 2011/4/29 Tyo tyoma...@list.ru I'm novice in GWT. I'd make simple application and I'm tryig to test in in dev mode

Re: additional web application on hosted mode jetty server

2011-04-29 Thread khiem nguyen
if u dont want to debug both of them at the same time, i think the quickest way is to deploy it in an separate servlet-container On Fri, Apr 29, 2011 at 3:39 PM, cri chuck.irvine...@gmail.com wrote: we have a web application that's separate from our gwt web application. the gwt web application

Re: RF for CRUD and RPC for others?

2011-04-28 Thread khiem nguyen
you can use ServiceLocator write your logic in it ( which could also make use of DAO) On Thu, Apr 28, 2011 at 5:56 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: I think as you. Where is the best place to put logic if we use RF? With RPC I have services and daos. Juan

Re: Parsing Javascriptobject

2011-04-26 Thread khiem nguyen
have a look at jsni On Tue, Apr 26, 2011 at 5:57 AM, riyaz ahmed sunez.ri...@gmail.com wrote: Hi, While querying a webservice, i have recieved a gwt.javascriptobject in reponse i need to convert it into string and parse it to retrieve the data, Any idea how to do this. Thanks for reading

Re: no clue on: module may need to be recompiled - help

2011-04-25 Thread khiem nguyen
check out the gwt version which was used to compile your app the gwt-version which is included with jetty. in /yourmodule/hosted.html you can see a place where it specifies gwt-version On Mon, Apr 25, 2011 at 9:46 PM, cri chuck.irvine...@gmail.com wrote: When I try to run my application that

Re: View GWT RPC traffic

2011-04-15 Thread khiem nguyen
try firebug On Fri, Apr 15, 2011 at 9:30 AM, rjcarr rjc...@gmail.com wrote: Are you asking to see how the rpc requests and responses are serialized? If so, why? On Apr 14, 4:09 pm, Leung leung1_2...@yahoo.com wrote: Hi Is it possible to view the GWT RPC transaction on tools like

Re: Deploying on Apache

2011-04-12 Thread khiem nguyen
try /routeplanner/login_service instead On Tue, Apr 12, 2011 at 9:58 AM, John Doran john.do...@hotmail.com wrote: If only life was that simple, I think it's to do with the servlet mappings(well by the errors on Apache startup thats obvious). What kind of tweaking is needed here? SEVERE:

Re: Deploying on Apache

2011-04-12 Thread khiem nguyen
the Apache web.xml file in the conf folder and the web.xml which I configure when setting up RPC? On Tue, Apr 12, 2011 at 8:04 AM, khiem nguyen khi...@googlemail.comwrote: try /routeplanner/login_service instead On Tue, Apr 12, 2011 at 9:58 AM, John Doran john.do...@hotmail.comwrote: If only life

set domain for document

2011-04-11 Thread khiem nguyen
Hi, has anyone tried to set the domain for the host-page ? i want to the browser to send the cookie to both host1.mydomain.com host2.mydomain.com, i tried to call jsni from onModuleLoad also as from normal js (on body onload event ) ( document.domain=mydomain.com ) but it doesnt work. what

Re: Advance Login With Multi Module Example

2011-04-06 Thread khiem nguyen
thanx for sharing this On Wed, Apr 6, 2011 at 11:01 PM, Ashton Thomas ash...@acrinta.com wrote: In response to the below blog post (by Ben Northrop) http://www.summa-tech.com/blog/2011/02/22/structuring-gwt-modules-for-large-applications I set up a sample app which uses a dynamic login

Re: Dynamic host page - GWT module not loaded

2011-04-05 Thread khiem nguyen
output console of built-in jetty may also be helpfull (http-response code...) On Tue, Apr 5, 2011 at 7:31 AM, Rikard Hultén rikardhul...@gmail.comwrote: Forgot devserver query param maybe? I know I've surprised myself that way a few times... -- You received this message because you are

obfuscation with Requestfactory

2011-04-05 Thread khiem nguyen
hi, using RF, looking at firebug you see full classname with package, is there a way to obfuscate this for deployment ? thanx -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: how to return errors from RequestFactoryServlet?

2011-04-01 Thread khiem nguyen
u can extends requestfactoryservlet to use your exceptionhandler (which creates ServerFailure), (dont forget to put it in web.xml instead of the default requestfactoryservlet) when u throw exception on server, onFailure will be called, not exactly Exception/Throwable thou. there's a post about it

Re: Cookies in gwt

2011-03-26 Thread khiem nguyen
localhost (127.0.0.1) in the Firefox preferences. You should only see one Cookie with the specific name. I could be wrong, but you should definetly check this. Cheers, Mike On 25 Mrz., 17:53, khiem nguyen khi...@googlemail.com wrote: hi, it's possible to have cookies with the same name

Re: Cookies in gwt

2011-03-26 Thread khiem nguyen
i think the issue comes from the fact that i set cookies from different (gwt-)module, which leads to different paths. i'll check it out. thanx again On Sat, Mar 26, 2011 at 10:52 PM, Thomas Broyer t.bro...@gmail.com wrote: On Saturday, March 26, 2011 9:23:50 PM UTC+1, Jambi wrote: Hey

gwt maven plugin with jsp

2011-03-26 Thread khiem nguyen
hi, i use (mojo) mvn plugin for gwt with html has hostpage, things work fine with both from eclipse (run as webapp ) or devmode (mvn gwt:run). now i want to switch to jsp-hostpage things don't work anymore. gwt:run : i get error 404 from eclipse: error 500 , with log console about error while

Cookies in gwt

2011-03-25 Thread khiem nguyen
hi, it's possible to have cookies with the same name (with the same gwt-app) so if i call: Cookies.setCookie(name, value), with firebug i can see there are many cookies with name=name is sent. so it's not consitent if server needs only 1 correct info from cookie. i think about calling

Re: Load javascript on the fly

2011-03-13 Thread khiem nguyen
maybe you should try to include the script in module.gwt.xml file instead ? On Sun, Mar 13, 2011 at 8:27 PM, Simon M si...@majou.org wrote: I try to integrate with Facebook. I want to load the javascript file from Facebook dynamically. I created the following method to load the js file and

Re: What do you think about my Session flow?

2011-03-10 Thread khiem nguyen
that's what i'm also doing now. would be interested in comments. i use google's guava for the expiration stuffs (concurrentHashmap) cheers On Thu, Mar 10, 2011 at 11:15 AM, Jambi michael.lukaszc...@googlemail.comwrote: Hey there, I have implemented a Session management for the first time

Re: GWT-Designer bug ?

2011-03-10 Thread khiem nguyen
to the latest GWT Designer build where we have added a work around for this Maven issue... http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html On Mar 9, 1:41 pm, khiem nguyen khi...@googlemail.com wrote: yes, i'm using maven. will try the latest beta thanx

Re: GWT-Designer bug ?

2011-03-09 Thread khiem nguyen
/tools/download-gwtdesigner-beta.html On Mar 8, 5:44 pm, khiem nguyen khi...@googlemail.com wrote: sorry Version: Helios Service Release 2 Build id: 20110218-0911 gpe: 3.6 gwt-design 2.2 gwt 2.2.0 jdk 1.6.0_24 linux 2.6.35.11-83.fc14.x86_64 (same problem on OSX 10.6.6

GWT-Designer bug ?

2011-03-08 Thread khiem nguyen
hi, i have this ui.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:app='urn:import:de.app.client.view' ui:with

Re: Netbeans plugin

2011-03-08 Thread khiem nguyen
there's one, works with normal AsyncService , just go to preference-plugins... u'll find it. but i dont think u can use GWT-Designer. if u u maven, it doesnt matter which ide u're using On Tue, Mar 8, 2011 at 3:27 PM, András Csányi sayusi.a...@gmail.com wrote: Hi all! Does anybody use the GWT

Re: GWT-Designer bug ?

2011-03-08 Thread khiem nguyen
Designer version. Have you tried the latest GWT Designer build? http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html On Mar 8, 5:55 am, khiem nguyen khi...@googlemail.com wrote: hi, i have this ui.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE ui:UiBinder

Re: how to use ServerFailure with Exception on Server-Side

2011-03-07 Thread khiem nguyen
is there any known workaround for this ? what's the best practice for handling exception at client side ? thanx khiem On Mon, Mar 7, 2011 at 8:39 AM, Michel Onstein phob...@gmail.com wrote: +1 for this one.. Looked into this as well, and based on a quick browse through the code i don't

how to use ServerFailure with Exception on Server-Side

2011-03-06 Thread khiem nguyen
hi, with RequestFactory how can i catch Exception from server-side service ? On server it's an Exception, on client it's only a simple serverfailure which return at onServerFailure() , how can one handle it like traditional RPC-way through serialization ? thanx for your help -- You received

RequestFactory url-mapping

2011-02-21 Thread khiem nguyen
Hi , this this my implementation: interface MyFactory extends RequestFactory{ @Service(value = UserServiceImpl.class, locator=...) interface UserRF extends RequestContext{ RequestBoolean login(String uname, String pwd); } UserRF userRequestFactory(); interface DataRF extends

ServiceLayerDecorator guides

2011-02-08 Thread khiem nguyen
hi, i'm using Proxy-Entity with Locator for a gwt-app got into problems concerning this issue http://code.google.com/p/google-web-toolkit/issues/detail?id=5724 eg. i have several users, which retrieve data from DB, the data will be retrieve from db decrypted before delivering back to user,

Re: ServiceLayerDecorator guides

2011-02-08 Thread khiem nguyen
the entity and retrieve the relations also. HTH, /dmc On Tue, Feb 8, 2011 at 4:24 AM, khiem nguyen khi...@googlemail.comwrote: hi, i'm using Proxy-Entity with Locator for a gwt-app got into problems concerning this issue http://code.google.com/p/google-web-toolkit/issues/detail?id=5724 eg