Re: JSNI - Call Javascript native method from another

2011-09-15 Thread dreamer
Technically, Here you are trying to call java method from javascript. I did not come across this situation, try full compile if throws any errors. Global School District http://schoolk12.appspot.com/ On Sep 14, 9:57 am, Jésica wrote: > Hi, I'm facing problems for calling a native method from

Re: onModuleLoad() - what is it in javascript

2011-09-09 Thread dreamer
/schoolk12.appspot.com/ On Sep 8, 9:16 pm, dreamer wrote: > Just for proof of concept, save the below two code segments  as html > and js files > and launch html, it builds the body. > > test.html== > > > This is test page sas >

Re: onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
Hello"); } test(); == On Sep 8, 8:14 pm, dreamer wrote: > seems 1.6 documentation is old, it is assuming main script is in body. > > now it is in head tag. > > In detailed compile file, there is call for compile like > "schooldistrict();". > > Which is boo

Re: onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
seems 1.6 documentation is old, it is assuming main script is in body. now it is in head tag. In detailed compile file, there is call for compile like "schooldistrict();". Which is bootstrap javascript function for all script lets. My guess is main script (function/object) is getting executed s

onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
Hi, I am trying to figureout, what "onModuleLoad()" becomes after gwt compilation. Basically to figure out the magic behind "onLoadModule". All is well, java script gets loaded in head. But how on the earth any function inside that script got executed, are there any events, that Browser fires onc

Re: For JavascriptObject,what is counterpart for HashMap?

2011-09-07 Thread dreamer
JSON is equivalent to XML without tags not directly to java. Though java objects can be marshelled into xml and then to json. So I guess all collection types are converted into json arrays. If you see at high level java/javascript object can contain another object or collection of object or attr

Re: Backend Socket Connection

2011-09-06 Thread dreamer
May be you can build json wrapper over your socket server and make REST request from client,some tricks are there to overcome same origin policy. >From back end, I guess app engine allows URL fetch across domains. Global School District http://schoolk12.appspot.com/ On Sep 6, 5:48 pm, Nicolas

Re: Re : Developing GWT App using Tomcat

2011-09-06 Thread dreamer
My short answer is develop in dev mode as is and deploy in any servlet container you prefer. If you go to debug configuration, in server tab, you only see "embedded server" which is nothing but jetty dev mode. In short there may not be any easy way to debug in other servers. But you should be abl

Re: GWT customization (CSS) by web designer

2011-08-26 Thread dreamer
Without any addition automation I follow this cycle. 1) Setup full development environment, start at app development mode (debug-run) 2) open the CSS file with gwt css editor. 3) make changes, save 3) in development tab - reload web server (two crossing arrows) 4) new css will be loaded, just test

Re: Insane RPC Serialization Error.

2011-08-22 Thread dreamer
I had similar issues, all pointed back to some defensive coding. As all calls are aync , behavior will be some what unexpected in few situations. Here are some tricks I played to such errors. 1) try in different browsers. 2) Load the app instance, then try, meaning use once, and second, third, i

Re: multiple gwt modules

2011-08-11 Thread dreamer
GWT module is a simply a javascript bundle. I guess you are looking to open a component in another window. you can use "Window.Open(..)". This gives better info regarding modules http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules On Aug 11, 7:38 pm, Da

Re: Cannot display Facebook Like or Send button in GWT

2011-08-09 Thread dreamer
Integrating GWT and Closure makes lot of sense. GWT is lacking on the server side template-ing. Closure needs cross compiler like GWT. On Aug 8, 11:27 am, simplyi wrote: > Hello! > > I am having hard time getting Facebook Like or Send button to display > on GWT popup panel. Both buttons display a

Re: RIP (Rich Internet Pages) instead RIA

2011-08-07 Thread dreamer
Thanks Karthik for the reply. Client side rendering (DOM manipulation) and Server side rendering (HTML manipulation), certainly these achieve rendering efficiency, but still programming approach is still same, that client side event programming. Server can get away from rendering totally, keepi

Re: RIP (Rich Internet Pages) instead RIA

2011-08-06 Thread dreamer
ya, even with another module we just get view, not model. On Aug 6, 3:40 pm, dreamer wrote: > Thanks for reply Stevko. > > Meaning  big javascript verses bunch of html pages. > > would it be great if some we combine these ? > In module html file we load entire java script, why

Re: RIP (Rich Internet Pages) instead RIA

2011-08-06 Thread dreamer
javascript and > renders the page locally. For clients that have a slow client (think phone > browser), the server renders the html page and dumps the html only. > > http://code.google.com/closure/ > > On Sat, Aug 6, 2011 at 7:57 AM, dreamer wrote: > > > > > > &g

Re: GWT on server side ?

2011-08-06 Thread dreamer
Thanks Michael. I ended up having two async rpc calls one within other , one to get view another to get model. killing the advantage of code splitting. On Aug 6, 2:29 am, Michael Vogt wrote: > > Thanks Michael . > > You're welcome. > > > Who needs entire app, specially in enterprise environment.

Re: RIP (Rich Internet Pages) instead RIA

2011-08-06 Thread dreamer
t&contactid=1 > > I don't know how mobile browsers cache pages (maybe for the sake of disk > space, they don't?), but hopefully all the JS will get cached on the browser > once they're loaded for the first time > > On Sat, Aug 6, 2011 at 12:49 AM, dreamer wrote

Re: RIP (Rich Internet Pages) instead RIA

2011-08-05 Thread dreamer
; should be rendered, then everytime you need to display a new > page, you generate a get request with the parameter for the page you wish to > display. > > If you use runAsync on each page, the browser will always load only the JS > for the current page, not the whole app code >

RIP (Rich Internet Pages) instead RIA

2011-08-05 Thread dreamer
build using my favorite GWT+AppEngine. ? Stay tuned, I will Let you know ---Dreamer -- 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 unsubscribe from

Re: GWT on server side ?

2011-08-05 Thread dreamer
Thanks Michael . I will check. GWT development environment is very productive once you get going. For small apps, This is really cool. entire app is on client side and server is just web server extension for jdbc kind of services. It realises the RIA dream very well. Only question is can you downl

GWT on server side ?

2011-08-05 Thread dreamer
Hi, Is it possible use GWT to build server side components, like "html +javascript" pages using composites some kind of stuff? I mean in server/web centric way than , client centric way ? anybody tried using existing infrastructure to build some this on this line ? -- You received this message

Re: GWT is for "apps" — right? But what's about static pages? (GWT's Future Plans...)

2011-08-04 Thread dreamer
=> static pages I tried to develop a page uisng UIBinder (mix of html and widgets) and RPC calls where it makes sense and ultimately I wanted to post entire page to server and let server serve next page. Here are My roadblocks for now * Not sure how to post entire page to servlet, develop j

java to "HTML+JavaScript" cross compiler/generator - is this possible?

2011-07-30 Thread dreamer
Hi, on the GWT lines, is it possible to cross compile/generate to "HTML +JavaScript". Static ports to -> HTML Dynamic portions to -> JavaScript Please share your thoughts -Venu http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups "Google

Re: GWT Page flows - want to start a open source project - thoughts

2011-07-30 Thread dreamer
n , why not "java to 'html+javascript'" compilation ? ( javascript for ajax). DOM api should be able to generate HTML directly, where there is no dynamic refresh, we don't need JavaScript. - venu - http://schoolk12.appspot.com/ On Jul 30, 6:24 am, dreamer wrote: > V

Re: GWT Page flows - want to start a open source project - thoughts

2011-07-30 Thread dreamer
m then those technologies. > I just cant see the benefit of similutationg JSP with GWT > > 2011/7/30 dreamer > > > > > > > > > > > What if we need to port very complex web app with 100's of jsp/html > > pages into GWT ? > > > Yes. swing a

Re: GWT Page flows - want to start a open source project - thoughts

2011-07-29 Thread dreamer
> book<http://books.google.com/books?id=OG816JSZYVcC&printsec=frontcover&dq=...> > . > In this architecture you don't need use a whole page. > > 2011/7/29 dreamer > > > > > > > > > Hi, > > > I want to start a new opensource project - "GW

GWT Page flows - want to start a open source project - thoughts

2011-07-29 Thread dreamer
Hi, I want to start a new opensource project - "GWT page flows" - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level -

Re: Connecting to a oracle database with GWT

2011-07-21 Thread dreamer
Eclipse plugin is a real good friend to figure out RPC. Just create new project choosing both app engine and gwt, creates a nice working sample RPC , hello world. Add few more methods for practice, then add few more servlets and call from client. On Jul 21, 3:03 am, Ryan McFall wrote: > It look

ui widgets - getValue() and getText() difference

2011-07-21 Thread dreamer
Some of UI widgets has both "getValue()" , 'getText()" and corresponding setter. Should we use value methods or text methods at least for text based widgets. value methods seems to be more generic and most of the UI widgets seems to has these. getValue has this aditional parse on top of "getText

Re: Basic packaged app questions. Need to get that first one under my belt.

2011-07-21 Thread dreamer
Check out GWT samples. C:\eclipse\plugins \com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508\gwt-2.3.0\samples \Hello\src\com\google\gwt\sample\hello\client Without RPC or its variants, GWT is a pure client technology, as you mentioned runs any where javascript runs. On Jul 20, 9:02 pm,

Re: TextArea - issues

2011-07-21 Thread dreamer
Sure. soon. I am suspecting one of these. 1) Storing in text in app engine "com.google.appengine.api.datastore.Text" field 2) Using getText() and getValue() - setText, setValue() - using freely assuming they produce consistent results. One of these is not working as I expected. On Jul 20, 12:

Re: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call

2011-07-20 Thread dreamer
Is it reaching the server side code - I mean RPC Implementation class ? You can see in Debug. put a break point in RPC server impl. If not reaching there , then it is definition issue - check web.xml, sync and async method. Debug mode gives very good Idea. Looking like some mismatch while dispat

Re: TextArea - issues

2011-07-20 Thread dreamer
Here is the test case. 1) Keep entering - lines will automatically break and goes to next line - enter till you see few line 2) getValue() 3) store in datastore 4) get from data store and display in another TestArea. Somewhere loosing line breaks ? On Jul 20, 5:17 am, Nandha wrote: > Hi.. > I

TextArea - issues

2011-07-20 Thread dreamer
Hi, I am capturing user input (multi line) in "com.google.gwt.user.client.ui.TextArea" - storing datastore. and show the same in another TextArea of another component. Issue, when I play it back it is completely loosing line breaks, and showing as single line and beyond TextArea boundaries. Any

Re: 2.4 beta and mobilewebapp sample

2011-07-19 Thread dreamer
1) Please make sure Java is compiling fine - meaning jar is there some where in classpath 2) Then GWT cross compilation - needs sources - these paths are found by GWTC from "gwt.xml" Typically all of the paths were included in On Jul 18, 4:18 am, Michel Jonker wrote: > By the way,

Re: GWT compiler error with ListType

2011-07-16 Thread dreamer
Can you please review code speperation. in client package only keep GWT code in server package only keep server code in shared only keep DTO objects (value objects) (transported from client to server - should be serializable) To me - proxy - sounds like client proxy should be in - client package.

Re: Duplicate GWT-RPC requests?

2011-07-15 Thread dreamer
Check in hosted mode with debug. sure multiple events are plugged in some where. On Jul 15, 6:01 am, Néstor Boscán wrote: > Hi > > I have an application that looks like is duplicating the GWT-RPC request > code. Of course it could be a number of other reasons but I wanted to ask if > anyone has s

Re: how to access all checkboxes that have a name that begins with "abc"?

2011-07-15 Thread dreamer
One way is build your own collection (ArrayList) and make accessible, with setter and getter ,just like in any java class. On Jul 15, 8:07 am, Dennis Haupt wrote: > hi community, > > i'm in a gwt module that is part of a bigger page, and i need to know which > checkboxes that are on this page are

Re: my biggest problem with gwt

2011-07-15 Thread dreamer
just off topic. what is life cycle in dev mode? Is it java byte code all the way to browser (plug in )? (I mean no java script any where) On Jul 15, 8:24 am, Paul Robinson wrote: > Chrome is slow in dev mode. Try firefox instead. > > On 15/07/11 16:12, Dennis Haupt wrote: > > > > > > > > > swi

Re: Internal Compiler Error / Xerces

2011-07-15 Thread dreamer
Hi, Did you see more in stack trace beyond line 81 ? There must be some thing "Caused by". => Abstract method error -> as per javadoc Thrown when an application tries to call an abstract method Yes this incompatibility between jars and some time jvm or simply non implemented abstract method

Re: my biggest problem with gwt

2011-07-15 Thread dreamer
=>activating the hosted mode takes about 1-2 minutes (didn't measure, feels like it). debugging like this takes forever. Yep. Documentation says use this mode always during development, never to compile. Bringing up dev mode URL is taking time (with debug option). Not sure selecting particular br

Re: Please help - GWT Designer / UiBinder bug or clueless new user?

2011-07-14 Thread dreamer
ted, bring up at '.' " Thanks. -Chuck > > On Jul 14, 6:10 am, dreamer wrote: > > > > > > > > > Can you please try going to source and adding, if supported, brings up > > at ".". > > -Venuhttp://schoolk12.appspot.com/ > > >

Re: Please help - GWT Designer / UiBinder bug or clueless new user?

2011-07-14 Thread dreamer
Can you please try going to source and adding, if supported, brings up at ".". -Venu http://schoolk12.appspot.com/ On Jul 13, 8:10 am, cri wrote: > I posted this issue before but didn't get any help so trying again... > Using GWT Designer, when looking at a UiBinder *.ui.xml file in the > "Design

Re: Playing MP3 and AVI in GWT application

2011-07-14 Thread dreamer
Hi, We don't have to build the page entirely using GWT widgets, if playing these in any html is possible, it should be possible even with GWT. with HTML5 it is snap to implement this, but GWT does not prevent to launch player and play anything you want. Even you can mix Flash with GWT. You can b

Re: comparing GWT and jsp apps - why javscript apps different from html apps

2011-07-12 Thread dreamer
ng, but programming concept has changed. May be some reason is there, or I did not understand completely. It is worth discussing so that we can transition our years of app development smoothly. -Venu http://schoolk12.appspot.com/ On Jul 11, 10:01 pm, dreamer wrote: > I had fairly large applicat

comparing GWT and jsp apps - why javscript apps different from html apps

2011-07-11 Thread dreamer
I had fairly large application developed in early web days , now I want to convert into GWT. Obvious we have added value of AJAX, what else do I loose? 1) large java script , initial down load time => why is this , both and HTML and Javascript are different ways of telling how the window is to br

Re: Modal Window

2011-07-11 Thread dreamer
public PopupPanel(boolean autoHide, boolean modal) { this(autoHide); this.modal = modal; } => I did not remember using this constructor, but this constructor should do. -venu http://schoolk12.appspot.com/ On Jul 11, 3:50 pm, Jeffrey Burnham wrote: > Look at PopupPanel and its' glass

Re: How to detect if a Popup is showing

2011-07-11 Thread dreamer
Not sure, if there is a automatic way of detecting all child windows to a parent window on demand, but certainly you can main maintain, global array list and every popup window that you open, and call close on each of those. You can lot of examples in javascript - "closing child windows to idea".

Re: Ways to reduce GWT compiled code size

2011-07-11 Thread dreamer
Hi, Couple of tricks in personal experience. 1) Use concrete classes instead of interfaces, especially in case of collections, with interfaces compiler has to add all possible classes, as it does not which class at run time. 2) avoid iterators, use for loop 3) when we are using widgets - nothing

Finding GWT debug mode URL (dev mode) programatically

2011-06-20 Thread dreamer
Hi, In development with or without debug - Both "GWT.isProdMode()" and "GWT.isScriptMode()" - are returning false. I want to find if the program is running is running debug mode or in non-debug mode within "dev mode" - gwt in eclipse plug in. Is there a convenient method just above two methods,

Finding GWT development mode url programatically

2011-06-18 Thread dreamer
Hi, Is there a way to find the GWT development mode URL programatically ? I want to pass this this to app engine user service for destination url. On similar lines of "GWT.getModuleBaseURL()" - but I want URL like "http://127.0.0.1:/SchoolDistrict.html? gwt.codesvr=127.0.0.1:9997", to put m

Re: Calling server-side rpc method from server-side code

2011-04-16 Thread dreamer
Is it not possible to create object for "implementation" class and fire methods as you do for any other java object? On Apr 15, 1:30 pm, Bob wrote: > I have a bit of an unusual need.  I have a server-side method which is > normally called from the client via GWT-RPC but I now want to call it > f

App Engine UserService login dialog - how gwt app gets completion event

2011-04-14 Thread dreamer
Hi, I am checking user login using RPC, if not user not logged in I am launch login URL from GWT. Once login in over GWT app is getting control. but how to capture the return event from login dialog? = user login url in rpc service == String url = userService.createLoginURL("/");

Re: How AsyncCallback works? - RPC services

2011-02-27 Thread dreamer
call is always synchronous. >    - The browser invokes the callback only when the response is available, >    which is why we say "AJAX is asynchronous" > > --Sri > > On 26 February 2011 22:59, dreamer wrote: > > > > > > > > > Thanks Jeff.these

Re: How AsyncCallback works? - RPC services

2011-02-26 Thread dreamer
.org/articles/ajax/ > > Google RPC doc:http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html > > On Sat, Feb 26, 2011 at 12:01 PM, dreamer > wrote: > > > > > > > > > > > > > True. Not found this kind of details. May be some gwt contributor

Re: How AsyncCallback works? - RPC services

2011-02-26 Thread dreamer
True. Not found this kind of details. May be some gwt contributor should be having good Idea about these. On Feb 25, 6:53 am, Jeff Schwartz wrote: > RPC uses Ajax so understanding how Ajax works will answer all your > questions. > > On Fri, Feb 25, 2011 at 9:49 AM, d

How AsyncCallback works? - RPC services

2011-02-25 Thread dreamer
Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back,

UiBinder, designer, spring roo which one

2011-01-11 Thread dreamer
Hi, I am reading documentation and struck at reading as I could not decide which approach is best to develop GWT app. Sure as time goes these things will be streamlined and will be less brain teasing to developers, but for now it is not that clear. Can somebody share their experience when to use