Is passing the event handler a good idea ? or to have a global event ?

2010-04-22 Thread amjedonline
Hi, Please help me understand what is the best way of event handling in nested panel structures. what i mean is, suupose you have something like this: // fires event BusinessEvent1 // handles event BusinessEvent2 class MyWidget extends Composite{ } // fires event BusinessEvent2 // handlers even

Re: GWT application parameters

2010-04-22 Thread sunny...@gmail.com
Thanks for the replies so far guys. To clarify, I'm after the scenario where the server is fired up in one mode or the other, and anyone who accesses the site will be using that mode - there won't be simultaneous use of both modes. The difference in the client between demo/normal modes is quite mi

Re: Serialization Advice

2010-04-22 Thread kozura
You can still keep your multi-argument constructor, you just also must have a zero arg. On Apr 22, 7:53 pm, Adam35413 wrote: > So it appears that the issue is User did not have a 0 argument > constructor.  I removed the constructor and everything appears to be > working.  I guess I will just have

Re: UiBinder Hyperlink history

2010-04-22 Thread Russ
Well, what was the answer? On Thu, Apr 22, 2010 at 9:02 AM, raj wrote: > Thanks folks > > Any way i got the answer... > > regards, > raj > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to goo

Re: Serialization Advice

2010-04-22 Thread Adam35413
So it appears that the issue is User did not have a 0 argument constructor. I removed the constructor and everything appears to be working. I guess I will just have to set all of the members manually with the setters. Not a problem, just several more lines of code. Thanks! On Apr 22, 8:24 pm,

Re: Serialization Advice

2010-04-22 Thread kozura
0 arg constructor? Return value of the RPC uses generics ala List? All I can think of, you might also look in the rpc log file which is sometimes slightly more helpful. If you can't figure out, post the UserService and UserServiceAsync calls and maybe the constructors as well. BTW no need to us

Serialization Advice

2010-04-22 Thread Adam35413
I am trying to implement a very simple AsyncCallback RPC system, and I believe I have 99% of it correct. I have the UserService and UserServiceAsync on the client side, and the UserServiceImpl on the server side. Through debugging, it appears that the only current issue is the error message I get

Re: HTML5 Video in Mobile Safari

2010-04-22 Thread KevMo
I just copied the HTML generated when I'm serving a video to a plain HTML document. Works great on the iPhone. Perhaps the iphone doesn't like video tags that are added dynamically via javascript? On Apr 22, 3:33 pm, KevMo wrote: > The same video plays fine on mobile safari when served up from a

Re: Compilation Error

2010-04-22 Thread rxm0203
I am getting following error in GWT development console when I try to use "Run Configuration" from Eclipse. 00:00:20.360 [TRACE] Finding entry point classes 00:00:20.360 [ERROR] Unable to find type 'org.drools.guvnor.client.JBRMSEntryPoint' 00:00:20.407 [ERROR] Hint: Check

Re: HTML5 Video in Mobile Safari

2010-04-22 Thread KevMo
The same video plays fine on mobile safari when served up from a plain html page, just not when the html code is generated by my GWT widget. On Apr 16, 11:07 am, DCYorke wrote: > I do know that if the video is too large for iPhone, you'll see the > slashed play button. > > On Apr 13, 10:44 am,

Re: launching in a new tab/broswer

2010-04-22 Thread Sudeep S
for ur second point ...u can create your custom command implement all the logic in one execute block On Fri, Apr 23, 2010 at 1:04 AM, Stefan Bachert wrote: > Hi, > > you can create a new window. (Window.open) > But as far as I remember, you can not control whether the new browser > window is a

Re: How to override pseudo gwt standars styles using ClientBundle

2010-04-22 Thread Stefan Bachert
Hi, the good new is: you can. Just remove the entry for the standard theme in module xml. You need to apply @external to all classes. I am doing such a thing and it works. Stefan Bachert http://gwtworld.de On 24 Feb., 11:47, shahid wrote: > Is there a way to override gwt standard styles for bu

Re: launching in a new tab/broswer

2010-04-22 Thread Stefan Bachert
Hi, you can create a new window. (Window.open) But as far as I remember, you can not control whether the new browser window is a further tab or a separate window. Stefan Bachert http://gwtworld.de On 21 Apr., 20:10, Vik wrote: > Hie > > I am using menu like: > > MenuBar aboutMenu = new MenuBar(

Re: Layouting pages based on tables vs CSS layouts

2010-04-22 Thread Stefan Bachert
Hi, I could not agree with you, that it is necessary to use (indirectly) tables. It depends on you which widgets you are using. And quite frankly, I avoid using table based widgets. (table width 100% crash on msie8) I prefer widgets based on absolute position. ..Layout..Classes for example. Howev

Re: GWT application parameters

2010-04-22 Thread Stefan Bachert
Hi, It is the other way. Only the client know whether demo is right or not. The client has to tell the server whether demo-mode applies or not. I have the impression you think the server runs in either mode (demo or not). your server will potentially run in both modes at the same time. A server m

Re: History.newItem() -- Documentation Suggestion

2010-04-22 Thread euzuro
Right. The problem is that I was calling newItem(x, true) where x == History.getToken() Again, this is not a bug report -- seems like a reasonable enough behaviour. My point was just that the documentation doesn't specifically mention this, is all. On Apr 22, 3:45 am, branflake2267 wrote: > His

Re: JSNI: No-body native methods to refer to existing methods in JavaScript object

2010-04-22 Thread Reinier Kip
On Apr 19, 5:48 pm, Thomas Broyer wrote: > On Apr 19, 11:34 am,ReinierKip wrote: > > > > > > > Hi, > > > I am trying to map existing JavaScript 'classes' in the document to > > client-side Java classes. Take this example JS 'class': > > > Alerter = function() { > >   this.alert = function(msg) { >

IsTextBox/widget-specific interfaces

2010-04-22 Thread Stephen Haberman
Hi, I've been doing GWT MVP development lately and, while the HasText, HasValue, etc. interfaces are nice and facilitate mocking/stubbing out views, I'm wondering why GWT doesn't go further and add per-widget interfaces. For example, if I have a TextBox that I want to both listen for clicks and s

Re: Defining a global function in JSNI?

2010-04-22 Thread Chris Conroy
On Thu, Apr 22, 2010 at 1:55 AM, markww wrote: >    var ytplayer = getElementById("youtubeplayer"); >    player.addEventListener("onStateChange", "myGlobalCallback"); looks like you should make this ytplayer.addEventListener -- Chris Conroy Software Engineer Google, Atlanta -- You received th

RPC Obfuscation

2010-04-22 Thread mmoossen
dear all! i am preparing for going online, so i started to try out the RPC obfuscation mechanism: and to my surprise (or not, if you stop to read the module name) only classnames get obfuscated but not method names (from the service class). so, is there any way to obfuscate also the method name

Re: How to add a scrollbar to a SuggestBox popup?

2010-04-22 Thread googelybear
unfortunately not, as the popup is not exposed to the outside world: private final PopupPanel suggestionPopup; On Mar 19, 9:10 pm, Paul Stockley wrote: > Can't you justadda scrollPanel as the first child of thePopup? -- You received this message because you are subscribed to the Google Group

Re: Problem: Hosted mode [WARN] 404 - GET /gwt/standard/standard.css (127.0.0.1) 1411 bytes

2010-04-22 Thread Oliver Uvman
Hello again! It turned out the chrome adblock extension was the culprit. I realized this when other people's GWT examples didn't load either. After disabling this plugin, everything was back to its old fully functional self again. Hope this is useful for others. On 20 Apr, 14:56, Oliver Uvman wro

Re: UiBinder Hyperlink history

2010-04-22 Thread raj
Thanks folks Any way i got the answer... regards, raj -- 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 group, send email to google-web

Re: Cross site requests documentation

2010-04-22 Thread eggsy84
Hi all, I have made a quick blog post on making use of the new JsonpRequestBuilder object and object overlays. Please see: http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/ On Mar 18, 10:31 am, eggsy84 wrote: > Hi GWT Team, > > I have just spotted

Re: Json cross-domain examle (JS error on IE 8.0 - Object doesn't support this action)

2010-04-22 Thread eggsy84
Hi there, I have now made a blog post on using the JsonpRequestBuilder please see: http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/ On Apr 21, 10:11 am, nasionalem wrote: > I am also looking JsonpRequestBuilder class which you send me.. :) I > will

Re: Image upload / store database

2010-04-22 Thread Guilherme Mussi
I did an servlet only to receive the file (i needed in order to make progress bar for my uploader), i store the file temporarily in this servlet using it`s form file id. on my upload, i added a listener like this? uploader.addOnFinishUploadHandler(new IUploader.OnFinishUploaderHandler() {

Re: Connecting to embedded Jetty from other host than localhost

2010-04-22 Thread Viliam Durina
Thank you very much, somhow I could not find any discussion or issue about this. Viliam On 21. Apr, 20:40 h., Tercio wrote: > add -bindAddress YOUR_IP to the application arguments when running it > from eclipse. > > More info:http://code.google.com/p/google-web-toolkit/issues/detail?id=4322 > > R

Re: GWT Module not loaded on app engine

2010-04-22 Thread Vik
Hie Yes I know i dont need it when deploying to demoApp. The problem is my page is not rendering when i deploy the app to appengine. Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr 22, 2010 at 1:29 PM, branflake2267 wrote: > > If this is what the debugger s

Re: DevMode stopped working on Linux x64 since 2.0.3

2010-04-22 Thread Simon
Nice sharing, Eggsy. Simon. On Apr 22, 11:40 am, eggsy84 wrote: > Hi all, > > Just to let anyone know who stumbles across this thread. > > I have found out what was causing my DevMode to stop working and not > hit my breakpoints. > > Within my gwt.xml definition file I was using the 'xs' linker a

Uncaught exception: java.lang.RuntimeException: Failed to invoke native method

2010-04-22 Thread Simon
Hi Developers, I get this exception while parsing some xform documents. I am tracing for the cause of the problem, and a solution to it. Your help is welcome. Below is the full stack trace. -- Uncaug

UiBinder Hyperlink history

2010-04-22 Thread raj
Hi ! I'm working gwt2.0 UIBinder. I tried to maintain history in my application.History.newItem(String,boolean) is working fine for buttons that is in ui.xml file.but it seems that History.newItem(String,boolean) is not working for hyperlink that is in ui.xml(Am i right?).history token is not di

Re: DevMode stopped working on Linux x64 since 2.0.3

2010-04-22 Thread eggsy84
Hi all, Just to let anyone know who stumbles across this thread. I have found out what was causing my DevMode to stop working and not hit my breakpoints. Within my gwt.xml definition file I was using the 'xs' linker as my script can be deployed on multiple websites. If you specify this linker D

Re: GWT Module not loaded on app engine

2010-04-22 Thread branflake2267
If this is what the debugger starts as: http://127.0.0.1:/DemoJSNI.html?gwt.codesvr=127.0.0.1:9997 then http://127.0.0.1:/MyPage.jsp is the location of it. you don't need the gwt.cod... to get it to run. You can change the start page in web.xml Hope that helps, Brandon On Apr 21, 9:32 p

Re: Image upload / store database

2010-04-22 Thread Andrés Cerezo
I've the same problem, Have you been lucky? 2010/4/21 KK : > Hi, > > Currently I cannot get the FileUpload widget to work correctly. > > I am trying to send and receive an image file from the server to the > client side. > In order to store an image uploaded by a user in my database. > > I can do

Re: Floating label

2010-04-22 Thread branflake2267
I use an absolute panel. Set it to the body, Rootpanel.get().add(absolultePanel); then set its visibility false. When you need it set its x and y and set visilbity to true and to the position you need it at. You can get the position by referencing the parent element that creates the event. I do so

Re: History.newItem() -- Documentation Suggestion

2010-04-22 Thread branflake2267
History.newItem(x) changes the querystring #[anchor] parameter. I use a change handler and then I fire and event. private void fireChange() { NativeEvent nativeEvent = Document.get().createChangeEvent(); ChangeEvent.fireNativeEvent(nativeEvent, this); } http://code.google.com/p/gwt-exa

Re: Defining a global function in JSNI?

2010-04-22 Thread branflake2267
This is what I did to register a JSNI function. http://code.google.com/p/gwt-examples/wiki/project_JSNI http://demogwtjsni.appspot.com/ - demo of it public static native void registerJsni(ToolTipWidget ttw) /*-{ $wnd.showTooltip_id = function(elementId, html) { t...@org.gonevertical.d

Re: Design of a GWT project

2010-04-22 Thread Jochen Schnaidt
Hi, now I know what you mean with dictionary, works perfect thanks. I dont't need two html, like you explained to me earlier, I tried to explain why I thought I would need them. I did like you told me, works great with one page. At the moment I still run a servlet, but with the next update I will