Re: Maven is obfuscating and GWT2.1 should not depend on it

2010-06-22 Thread Blessed Geek
Chris, I am working on it now because I need that feature really badly - it's a do or die situation because I have so many forms to crud. Please write to my gmail id: blessedgeek. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to

StackLayoutPanel within a ScrollPanel

2010-06-22 Thread Roy
I want a StackLayoutPanel with a bar for each letter of the alphabet. The idea is that Contacts will be organised within the appropriate bar. All works fine, except when I try to put my SLP within a ScrollPanel so that I can have a shorter window. When I do this, I see the "A" bar only, the rest o

Re: Million access to GWT Appl ??

2010-06-22 Thread Blessed Geek
You know that cows (and deer too) chew their cud. Cows have a secondary stomach, so it could store whatever grass it has chewed off the field in the 2ndary stomach. Then it could regurgitate the stored cud and chew on it afterwards. Your question is akin to saying that you read an article that say

blank page in IE8

2010-06-22 Thread kais blah
Hi, I have problem on my GWT application. its working correctly under chrome and Firefox but not IE. can someone help me to troubleshoot it, is it CSS problem or scripts problem? thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To

Re: Safari 5 - (RangeError): Maximum call stack size exceeded

2010-06-22 Thread Pascal
Hi, Has the workaround been included in the codebase somewhere? Is there a chance that there will be a point release soon? Regards, Pascal -- 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-to

?gwt.codesvr=127.0.0.1:9997, GWT debugging

2010-06-22 Thread Jaroslav Záruba
Wouldn't it be better to copy the *gwt.codesvr* parameter also to a cookie? (Probably with maxAge -1 so it would last only till browser exit.) ...so we could debug even after clicking a link. Regards J. Záruba -- You received this message because you are subscribed to the Google Groups "Google

Re: gwt 2.1 m1 questions

2010-06-22 Thread KenJi_getpowered
I am sorry I cannot help you but I join your request for a better documentation of 2.1 Data Widget :p On 22 juin, 03:27, asianCoolz wrote: > 1. Is CellListPlacePickerView show all items even for huge list? not > using async? > 2. Is activitymanager using aysnc? > 3. i assume CellListPlacePickerVi

Re: JSNI reference in iframe

2010-06-22 Thread randasin
another iframe The setup is like this: domain1/page1 has an iframe that loads domain2/page2 domain2/page2 has the GWT module. In other words DOM looks like: domain/page1 iframe (domain/page2) iframe (gwt) The module has the JSNI code that is intended to register a function in page2 s

RPC call does not work after upgrading to Safari 5

2010-06-22 Thread TBirch
I have a get app that has been working fine with Safari 4 for some time. It appears that my initial RPC call no longer works after upgrading today to Safari 5. The app works fine in Chrome, IE, and Firefox. I un-installed Safari 5 and re-installed version 4 and the app no longer works in that versi

Re: Implementing login and maintaining sessions

2010-06-22 Thread Bruno Lopes
You are right about multiple session's, I have to implements an store to keep the sessions ID in order to be able to have multiple users logged in without losing their sessions :) On Tue, Jun 22, 2010 at 4:38 PM, Bruno Lopes wrote: > Hey, > I try your approach with cookies and seems to works

Re: cursor while server processing

2010-06-22 Thread Andreas Horst
Try applying the style to a Widget the mouse cursor will certainly hover above and that is not covered by other Widgets, for example a Button. Make sure you place the cursor above that Widget. I'm not sure if this will help, but in case the Style is properly changed on that Widget it should also b

Re: Safari 5 - (RangeError): Maximum call stack size exceeded

2010-06-22 Thread pash7ka
There is an Issue 4393 about this bug. I've applyed dunhamsteve's patch and also in all binarySearch() functions in Arrays.java and Collections.java changed: - final int mid = low + ((high - low) >> 1) + final int length = high - low; + final int half = length >> 1; + final int

Re: cursor while server processing

2010-06-22 Thread Rodrigo
I don't why it doesn't work, but I'd rule out the fact that there's a server call in process. That shouldn't affect styling whatsoever. On Jun 22, 2:06 pm, Iván Navarro wrote: > hi, > is there any way to change the cursor (doesn't matter its position on > screen or if it is over certain widget) d

cursor while server processing

2010-06-22 Thread Iván Navarro
hi, is there any way to change the cursor (doesn't matter its position on screen or if it is over certain widget) during an operation in the server side? I've tried adding a cursor style to the main panel with addStyleName method, but it doesn't work. I don't know if it is for the server call (in

Re: JSNI reference in iframe

2010-06-22 Thread Olivier Monaco
The iframe is the GWT iframe or another one? Do you have a usecase ? Olivier On 22 juin, 18:37, randasin wrote: > I have some JSNI code that assign a function to a variable in the > window as suggested in JSNI document: Calling a Java Method from > Handwritten JAvascript (http://code.google.com/

Re: Modify Java source file at compile time, possible?

2010-06-22 Thread Olivier Monaco
Kevin, It depends one the which generator can know which interface. If the generators can know both interfaces, you can create only one generator. All code generator is pushed to sub classes like IntrerfaceAWriter and InterfaceBWriter. The generator looks for several interfaces from the marker in

Re: Need to build a WYSIWYG XML editor

2010-06-22 Thread aliman
Hi, I'm not sure this answers your question, but GWT does have an XML API, see [1]. FWIW I did do some work previously with GWT and XML, but the lack of a createElementNS method was a real blocker. You can seach an XML document in a namespace aware manner, because the Node interface has a getNames

JSNI reference in iframe

2010-06-22 Thread randasin
I have some JSNI code that assign a function to a variable in the window as suggested in JSNI document: Calling a Java Method from Handwritten JAvascript (http://code.google.com/webtoolkit/doc/latest/ DevGuideCodingBasicsJSNI.html#calling) The problem is if the JSNI code runs inside an iframe, the

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
Created a bug report: http://code.google.com/p/google-web-toolkit/issues/detail?id=5049&q=same%20origin%20policy%20violation On Jun 22, 10:32 am, randasin wrote: > It's this line on hosted.html in GWT bootstrap process that causes SOP > violation > > Line 227: var url = topWin.location.href; > >

Re: Implementing login and maintaining sessions

2010-06-22 Thread Bruno Lopes
Hey, I try your approach with cookies and seems to works fine! Thanks :) On Tue, Jun 22, 2010 at 3:07 PM, Rodrigo wrote: > Not sure if I understood your question.. But yes, the cookie is > accessed both at the client and at the server. So the server would set > it to 'loggedIn=true' upon a succ

Re: Regarding GWT 2.0.3

2010-06-22 Thread gourineni rakesh
hi Andres, I m encountering the following errors while running the application. Plz check them The site for access:http://www.ndbc.noaa.gov/data/5day2/42040_5day.txt [WARN] Server class 'com.google.gwt.json.client.JSONException' could not be found in the web app, but was found on the syst

Re: GWT eclipse plugin source code

2010-06-22 Thread Rajeev Dayal
Hi, At this time, we haven't set a date for open-sourcing the code. Rajeev On Thu, Jun 10, 2010 at 9:06 AM, fedy2 wrote: > Hi, > when the GWT eclipse plugin source code will be released? > > Thanks, > Federico > > -- > You received this message because you are subscribed to the Google Groups

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
It's this line on hosted.html in GWT bootstrap process that causes SOP violation Line 227: var url = topWin.location.href; I am guessing GWT only uses hosted.html in DevMode. That's why there is no violation in web mode? Does anyone have insights on a workaround? -- You received this message

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread Jeff
Actually, if i'm not wrong, the JavaScript that your client recieves comes from page B, on domain 2. Well, you got this error : Permission denied for to get property Location.href from . It looks like you're trying to use something situated on domain 1 (Location.href) from domain 2. This is ver

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
Ok I confirmed it's not SOP violation in my design. The script runs fine in web mode. It's only considered a violation in host/ development mode. I am not sure how to configure the DevMode to get around the violation. Any thoughts would be appreciated. On Jun 22, 10:07 am, randasin wrote: > I

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
It shouldn't violated SOP since PageA really has nothing to do with PageB. PageA just displays PageB in an iframe. PageB scipts should do their work in the context of host page B. and I have no intention to violate SOP. But I don't know GWT bootstrap well enough to understand what hosted.html g

Re: Implementing login and maintaining sessions

2010-06-22 Thread Rodrigo
Not sure if I understood your question.. But yes, the cookie is accessed both at the client and at the server. So the server would set it to 'loggedIn=true' upon a successful login, and clear it whenever the user logs out OR if the server gets a request for private information but the Session indic

Re: Implementing login and maintaining sessions

2010-06-22 Thread Bruno Lopes
FYI, On Tue, Jun 22, 2010 at 2:33 PM, Rodrigo wrote: > Ok I just answered 1.5 of my questions: > > #1- It actually does work, using getThreadLocalRequest().getSession(). > My test had failed for an alternate reason. > great! it works with me too :) > #4- (second half) Sessions are per-browse

Re: Implementing login and maintaining sessions

2010-06-22 Thread Bruno Lopes
FYI, On Tue, Jun 22, 2010 at 2:16 PM, Rodrigo wrote: > Thanks for the response... A few questions come up: > > 1. I'm using an HttpServlet for authentication, along with > RemoteServiceServlets for GWT-RPCs. But if I create an HttpSession in > my authentication servlet, I cannot seem to access i

Re: Million access to GWT Appl ??

2010-06-22 Thread Stefan Bachert
Hi manish, the opposite is true. An AJAX/GWT-approach reduces dramatically the load from the servers. I showed in an estimation that with GWT/AJAX a server is able to drive 10-50 times more clients, compared to classical web technology like JSP, JSF So using GWT is also a green IT topic. The ger

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread Jeff
Hi, I don't want to say stupidities, but isn't it a violation of the SOP (Same Origin Policy)? If so, i recommend you to have a look here http://en.wikipedia.org/wiki/Same_origin_policy and here http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_SOP Regards, Jeff On 22 juin, 15:41, ran

Re: Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
Actually since my application has multiple segments, I cannot use cross site linker. PageA really has nothing to do with the script, but it seems GWT hosted.html tries to get Location.href from the parent window rather than the iFrame. On Jun 22, 9:41 am, randasin wrote: > I have two pages, the

Error: Permission denied for to get property Location.href from .

2010-06-22 Thread randasin
I have two pages, the first page contains an iFrame that loads the second page. The two pages are on different hosts. The GWT application runs in the second page. To be more precise, let the first page = PageA, and the second page = PageB - PageA is on Domain1. It has iFrame src points to Page

Re: UIBinder Benefits?

2010-06-22 Thread Andrew Hughes
Almost all of the "problem's" listed below are bad advice and I suggest you disregard them. Except for the "it's a graphic designer mindset" - this statement is correct. Thankfully we no longer need to code our layout and style in java! The main problem I have with UiBinder is that when you try an

Re: Implementing login and maintaining sessions

2010-06-22 Thread Rodrigo
Ok I just answered 1.5 of my questions: #1- It actually does work, using getThreadLocalRequest().getSession(). My test had failed for an alternate reason. #4- (second half) Sessions are per-browser, so multiple tabs in the same browser share sessions, but cross-browser tabs do not. The other ques

Re: Implementing login and maintaining sessions

2010-06-22 Thread Rodrigo
Thanks for the response... A few questions come up: 1. I'm using an HttpServlet for authentication, along with RemoteServiceServlets for GWT-RPCs. But if I create an HttpSession in my authentication servlet, I cannot seem to access it on the RemoteServiceServlet... How am I supposed to access it?

Re: Need to build a WYSIWYG XML editor

2010-06-22 Thread Richard Allen
You may want to simply wrap the excellent code editor CodeMirror (http://marijn.haverbeke.nl/codemirror/). Someone has already wrapped it for GWT: http://code.google.com/p/gwt-codemirror/ -Richard On Jun 18, 1:45 am, NS Gopikrishnan wrote: > Hi all, > > I want to develop a WYSIWYG XML editor fo

Re: PushButton in UiBinder

2010-06-22 Thread ChrisK
Under here: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/PushButton.html Go to the super class (CustomButton) and it's detailed there. On Jun 17, 11:54 am, david wrote: > On Jun 14, 1:26 pm, David Grant wrote: > > > Anyone know how to put aPushButtonin

Re: Why appear OPTIONS instead of POST in my RPC calls?

2010-06-22 Thread Sripathi Krishnan
Probably because you are trying to make cross-domain requests (a different port, domain or protocol) See this post - http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a080757856163097 --S

incubator SCrollTable scroll position.

2010-06-22 Thread Subhrajyoti Moitra
Hello Folks, I am using incubator gen2 ScrollTable. I have a use case, wherein i have to detect that when the user has scrolled to the last row (or somewhere around the last row), then load a fresh set of rows in the table, via a rpc call. TO achieve this i have extented ScrollTable and implemente

Re: Initializer blocks

2010-06-22 Thread ahhat...@gmail.com
Thanks for the quick reply, I found out that I was totally misunderstanding what the {{ }} means ... thank you... On Jun 22, 2:58 pm, Olivier Monaco wrote: > Not the "parent" object. Your class is erp.client.Test but the class > of u is erp.client.Test$1. "$1" means the "first" anonymous class

Re: Dynamic Module Loading

2010-06-22 Thread Olivier Monaco
I don't know the full story, but maybe the problem is not a technical one. You can't change technology (Flash => GWT) without doing some change in your architecture... If they don't want to explore new way, they must keep their technology. Olivier On Jun 22, 12:34 pm, rudolf michael wrote: > Wel

Re: Initializer blocks

2010-06-22 Thread Olivier Monaco
Not the "parent" object. Your class is erp.client.Test but the class of u is erp.client.Test$1. "$1" means the "first" anonymous class of Test. This is a Java behavior. Olivier On Jun 22, 1:22 pm, "ahhat...@gmail.com" wrote: > Hi, > I tried to do the following: > > University u = new University(

Events from SelectionCell in CellTable - GWT 2.1 M1

2010-06-22 Thread saklig
Hi, How does one handle events from cells in a CellTable( specifically a SelectionCell ) ? -- 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-tool...@googlegroups.com. To unsubscribe from this

Initializer blocks

2010-06-22 Thread ahhat...@gmail.com
Hi, I tried to do the following: University u = new University() { { setName("Ahmed"); setPrice(500); } }; University u2 = new University(); u2.setName("Hassan"); u2.setPrice(1000);

Why appear OPTIONS instead of POST in my RPC calls?

2010-06-22 Thread enTropy Fragment
Hello Here is my problem: When I call my rpc from inside the war everything works well, but when I call the same rpc calls from the same GWT javascript client stuff but injected into an external web site the rpc makes the call with HTTP OPTIONS instead of HTTP POST method. I'm very interested in c

Re: Dynamic Module Loading

2010-06-22 Thread rudolf michael
Well this is similar to the Generator/Factory concepts. They don't want to go with this approach although i was able to load the Factory/Generator class from the server and use it in the client code to generate my UIs from the definitions POJOs. Since they have a flash background, they want to lo

Re: Dynamic Module Loading

2010-06-22 Thread Olivier Monaco
If your need is only to define new view (with few logic), maybe using a descriptive language will be better. You can write a templating engine using GWT like a XUL interpreter or something like that. This is not the best approach for optimized JS (file size, speed...) but may be the best compromise

Re: Million access to GWT Appl ??

2010-06-22 Thread Olivier Monaco
Yes, but think that user will ask for more interactivity... resulting in more requests. But, of course, bandwidth, CPU and memory will be saved. They will be saved more is a good architecture is used like a Rest-like server, I think. Olivier On Jun 22, 10:33 am, Chris Boertien wrote: > Your esse

Re: Theory behind UiBinder that makes TabLayoutPanel work

2010-06-22 Thread kornhill
superb! that's helpful info. thanks a whole lot. your response leads me to custom element parsers, which prompts me to try figuring out how to register one of my own. and i find one discussion here - http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/4d79f72903052

Re: Devmode vs prod performance

2010-06-22 Thread Eirik Brandtzæg
Aha, that explains it. So I need to do some heavy optimization. Thanks for your answer. On Mon, Jun 21, 2010 at 9:46 AM, Chris Boertien wrote: > In devmode you are running within a JVM, production is running from > the browsers javascript engine. > > Your probably getting some big bumps from hots

how do i set the css for DecoratorPanel?

2010-06-22 Thread alex_soh
I wanted my DecoratorPanel's border to look like http://img189.imageshack.us/img189/6121/fancyborder1.png where the white space is where my widget is. the problem is when i set the top left corner to be the top left box of the image, i get all the white space stuff as well. how do i crop the i

Re: Million access to GWT Appl ??

2010-06-22 Thread Chris Boertien
Your essentially asking the wrong question. I think its better to think of by how much will GWT or products similar to GWT reduce the load on a server. You have to consider the fact that every user accessing a traditional website backed by a templating engine involves alot of resources for each an

Re: MVP Framework in GWT 2.1 M1 ?

2010-06-22 Thread Chris Boertien
The one half of Expenses isnt even MVP. The one you access via Expenses.html is a hard-wired app. That is the one they were showing at Google I/O. The other part, the Scaffold app I believe is what Roo spits out found under Scaffold.html. I'm not sure as to just how much of that has been hand twea

Re: GWT 2.0 - & Spring Security

2010-06-22 Thread olivier nouguier
Helo Tom, Please take a look at http://code.google.com/p/orcades-gwt-spring/ for MVP integration and http://code.google.com/p/net-orcades-spring/ You will find some info. On Mon, Jun 21, 2010 at 8:07

Re: ClickHandler on ListBox. Problems in Safari and Chrome

2010-06-22 Thread Jeff
Hi again, So, your list responds to clicks... Maybe if you posted what's exactly in your "onClick()" method I could help you troubleshooting =/ PS : I've sent you another message, that was about using a handler instead of a listener, 'cause listeners are deprecated. I write it again for other rea

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-22 Thread Chris Boertien
There is a GWT module you can include that might make life a bit easier for you. The second link is the authors blog. If you go through his blog history you'll find references to articles about the module and how it works. http://code.google.com/p/gwt-exporter/ http://timepedia.blogspot.com/ On T

Re: Does a private variable in Java stays private when compiled to javascript?

2010-06-22 Thread Shedokan
I want to allow people to add javascript extensions to my app using an API I'll make with GWT, so I don't want them to be able to be able to access private variables my app uses. The problem is that GWT does symbol obfuscation so there is no way to have a list of unallowed variables. On Jun 19, 5:

Re: Theory behind UiBinder that makes TabLayoutPanel work

2010-06-22 Thread Chris Boertien
I'm only just starting to dive into GWT internals but I believe to do this you will need to create a Parser for your widget to be recognized internally by UiBinder. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/elementparsers/TabLayoutPanelParser.