Dynamic tab content load in TabLayoutPanel

2010-05-11 Thread Toni
Hi there! I have a regular TabLayoutPanel and I'm trying to make the content of each tab load dynamically when the user clicks on a particular tab. I tried using a SelectionHandler with no luck, for tab content can't be modified (or that's what I found out so far) and removing/adding a tab is not a

Re: Developer plug-in hangs

2010-05-11 Thread Charan
Hi, Found issue for AttachDetachException. Actually i was overridden the onLoad method in which i was calling center(), inside PopupPanel.center is calling show() which in turns calls again my onLoad() overriden method which goes to Infinite loop finally causes the AttachDetachException. Regards

Re: Hide/Show Table Row with UIBinder

2010-05-11 Thread Craigo
Thanks Bufferings. UIObject.setVisible works a treat! Cheers. On May 9, 1:33 am, bufferings wrote: > hi Craigo > I think the following is better. > > // show > UIObject.setVisible(myTableRow, true); > > // hide > UIObject.setVisible(myTableRow, false); > > This is what UIObjects#setVisible(bool

Google API Library for GWT updated for GWT 2.0

2010-05-11 Thread Eric Ayers
We are pleased to announce updates to the Google API Libraries for the Google Web Toolkit project. The Google API Libraries for GWT project allows GWT developers to access some of Google's popular JavaScript APIs. This release includes updates of five libraries: Visualization, Gears, Gadgets, Sear

Widget from DOM element

2010-05-11 Thread lineman78
I have had difficulty finding this and figure it must be something stupid I can't find, but how do you create a widget from an element already in the DOM so you can get eventing, or one not in the DOM so you can add it to a panel? -- You received this message because you are subscribed to the Goo

Re: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-11 Thread Trung
You can use SyncProxy to test the GWT RPC services See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ for details On May 5, 9:28 pm, Eric wrote: > On May 5, 12:33 am, Mike wrote: > > > Hello > > > Am trying to write tests for my code, and want to ensure that any > > class

Re: Placing xxx.ui.xml files in different packages than counterpart Java files

2010-05-11 Thread Yaakov Chaikin
Zak, If you read my post a bit further, most of the post discusses my experience with using @UiTemplate. Yaakov. On Tue, May 11, 2010 at 7:37 PM, Zak wrote: > Perhaps you can use the @UiTemplate annotation? > > Check out the very bottom of > http://code.google.com/webtoolkit/doc/latest/DevGuid

Re: gwt webgl smartgwt

2010-05-11 Thread Alan Chaney
Label text appears to ignore the Alignment.CENTER (at least vertically) when placed within a VLayout. I haven't actually noticed anything else, but I didn't want to get a long way into what's going to be a very big project and hit a show stopper, so I'm was looking for a workaround should somet

Re: Placing xxx.ui.xml files in different packages than counterpart Java files

2010-05-11 Thread Zak
Perhaps you can use the @UiTemplate annotation? Check out the very bottom of http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html I can't find any documentation about the specifics of this, but it looks promising. On May 11, 2:51 pm, Yaakov Chaikin wrote: > Hi Sri, > > This would

Debugger stopped connecting

2010-05-11 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been trying to integrate the web-socket-js Flash-based WebSocket emulation library (from here: http://github.com/gimite/web-socket-js) into my app. I have it working, but as a side effect my app no longer debugs. I have to compile it and run it i

Re: gwt webgl smartgwt

2010-05-11 Thread ckendrick
What layout issue on what browser with what code? This is not a known issue, so to get it addressed, post a test case to the SmartGWT forums: http://forums.smartclient.com/forumdisplay.php?f=14 On May 11, 12:25 pm, Alan Chaney wrote: > Hi > > I've started to build an application using GWT 2

Re: gwt webgl smartgwt

2010-05-11 Thread rakesh wagh
Use emulateIE7 in your html page. I personally had limited luck with this. Another work around is: frames. If your underlying layout is in smartgwt, load your canvas piece as different module html in a frame and vice versa. Both are really bad options, however smartgwt and gwt2 mix and match does

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread kozura
What have you tried? For example, have you looked at the plentiful example code included with GWT, which includes examples of how to do RPC: http://code.google.com/webtoolkit/examples/ And of course the RPC documentation with example code: http://code.google.com/webtoolkit/doc/latest/DevGuideSe

Re: GWT 1.7 to 2.0 upgrading problem: no longer working: GWTCanvas, gwt-diagrams2

2010-05-11 Thread kozura
The indicates that the browser should be running in standards mode, which is required for GWT 2.0's new LayoutPanel type of layout. However just using the original layout panels (FlowPanel, HorizontalPanel, etc) still works the same as ever, in quirks mode. So if a library you want to use doesn't

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread kozura
You don't have to wait for the server to download the entire file to give a response, you can get it right away and send back an error immediately; just the cost of a quick round trip to the server. As suggested in many similar posts, gwt-upload is a pretty good solution for file uploads in GWT: h

gwt webgl smartgwt

2010-05-11 Thread Alan Chaney
Hi I've started to build an application using GWT 2 which will needs an HTML 5 canvas element to display WebGL. I was intending to use smartgwt for the bulk of the UI. Sadly, smartgwt gives layout problems when I add the required by HTML 5 to the main html page of my app. Hopefully this wil

Re: 1.7 to 2.0, GWT doesn't work any more

2010-05-11 Thread Sorinel C
If you still play with both versions (1.7 and 2.0), due to support the older deployed versions, you might have problems (like I had), but you can get rid of them if you do cleaning, like I wrote in this article: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Suc

Re: Transfer problem from clien side to server side

2010-05-11 Thread Emeric Heneffe
Hello, The fact is that normally I had to use gilead to save pojos in a db. But, before using this, I had to transfer these pojo to server side. To do this, I use a simple rpc request with my classes that extend Serializable (and not IsSerializable because I don't want that my core package has depe

Re: RPC Serialization Issue may be?

2010-05-11 Thread Sorinel C
Yup, that's the most common problem, easy to fix :) Here's the problem I had using serialization of the Date, in case you have any problems: http://ui-programming.blogspot.com/2010/02/gwt-date-and-timestamp-rpc.html Cheers! -- You received this message because you are subscribed to the Google

Re: Placing xxx.ui.xml files in different packages than counterpart Java files

2010-05-11 Thread Yaakov Chaikin
Hi Sri, This wouldn't really work for me as we are using maven and maven has specific standard directory structure. I guess, I could modify the pom.xml to see those additional directories as source directories as well, but all that work in maven that would kinda defeat the purpose for me, i.e., it

Re: GWT 1.7 to 2.0 upgrading problem: no longer working: GWTCanvas, gwt-diagrams2

2010-05-11 Thread Sorinel C
It's always good to use the latest version (except for the cases when there are critical bugs), like I did myself last year, jumping from 1.7 to 2.0 Here are some of my discoveries: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html So, generate first a simple GWT

Re: Placing xxx.ui.xml files in different packages than counterpart Java files

2010-05-11 Thread Sripathi Krishnan
If you just want to keep your java, css and ui.xml code in different folders, there's an easier technique. Create two folders parallel to src - "uibinder" and "css". Or whatever you want to name it. Then add these folders to the sourcepath in eclipse. These three folders should have the same packag

retrieve the tomcat java JVM parameter from servlet

2010-05-11 Thread Ho Jimmy
Hi When the tomcat is running, it is actually a java process. e.g [r...@localhost tomcat]# ps -ef|grep java root 21896 1 0 01:34 ?00:04:51 /usr/java/jdk1.5.0_11//bin/java -server -Xmx500m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.

Re: java.lang.NoClassDefFoundError, it probably well known but I cannot found the solution....

2010-05-11 Thread Sripathi Krishnan
I am guessing the class hk/com/carfield/core/Context is performing a restricted operation - like creating a thread or opening a file/socket connection. GAE does not allow you to perform such operations, and when you do - it fails with a stack trace similar to what you have pasted. Disable GAE in y

java.lang.NoClassDefFoundError, it probably well known but I cannot found the solution....

2010-05-11 Thread Carfield Yim
HI, I just use the class in another JAR, eclipse show no compilation error, and GWT compilation is success, why I still get following error? BTW, I start the application using eclipse GWT plugin. May 11, 2010 5:17:36 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: Nested in javax.se

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread Felipe Guarda
Abhi, you could best describe what must be put on every piece of code? You sent me a piece of code that must remain in the Class EmailServiceImpl server.side. My doubts are now, I need to create some kind of interface EmailService and EmailServiceAsync? In cliente.side.code how do I send the e-mail

UiBinder + CSS layouting

2010-05-11 Thread Oliver Uvman
Hello! I'm wondering if anybody has a good way of handling the very time consuming job of fixing the CSS when using UiBinder. Since we started using UiBinder (which I really like, by the way) we've had to start re- running the app whenever we want to make a change to the CSS. Resulting in extremel

Placing xxx.ui.xml files in different packages than counterpart Java files

2010-05-11 Thread Yaakov
Hi, Does anyone know if there is a way to place the ui.xml files in a separate from its Java counterpart file package? What I have to have is essentially the following package structure: view - All Java uibinder classes view.uibinder - All .ui.xml files view.uibinder.resources - All .css files.

Re: new GWT MVP article (part 2)

2010-05-11 Thread Brian Reilly
The increased complexity is definitely an issue. I don't like the idea of yet more interfaces to have to worry about. It's a shame that part 2 of the MVP article doesn't address testing beyond simply mentioning that these practices improve testability. It would be much clearer to see before-and-aft

ImageSpriting now working in mobile Safari? gwt + phonegap

2010-05-11 Thread Daniel
Im building a phonegap Application with GWT and started switching my css files to ClientBundles and ImageSpriting with GWT 2.0 the css file looked something like: @sprite #someId { gwt-image: "headerMiddle"; position: relative; height: 40px; border-bottom: 1px solid rgb(45, 54, 66

Re: RadioButton detect value change when deselection is automatic

2010-05-11 Thread Jim Douglas
You need to track ValueChangeEvents for all radio buttons in the group, and remember which radio button is currently selected at all times. If you do that, then every time you see one radio button in the group becoming selected, you know that the radio button that was previously selected just beca

Re: Client side file I/O

2010-05-11 Thread ben fenster
you can use php to create a server side script that will create a file from data you will send via post request and alink to the file this way u will create save button that will be a download link to a file in the server side loading shold be even easier since it just a file upload On 10 מאי, 2

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread abhiram wuntakal
Hi Felipe, RPC implementation would be simple. Just write an ordinary RemoteServiceServlet and write a function to pass a String parameter (or a Vo) with the emailBody to the ServiceImpl code. From ServiceImpl, you can use the code below to send the email. Let me know if this answers your questio

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread Frank Harper
Sorry, I can't add anything to what Sripathi already said. I haven't implement this myself. On Tue, May 11, 2010 at 15:22, AndreAgosto wrote: > Hi Frank, can you help me about upload file? > i saw FileUpload Widget, i put it in a formpanel, but i can't do it > works.. Maybe i did some mistake in

RadioButton detect value change when deselection is automatic

2010-05-11 Thread Ice13ill
I'm trying to customize some radio buttons in GWT, but i cannot execute operation when value is change by selecting other buttons in the same group. It seams that onValueChange is not triggered for those radio buttons that loose their value (automatic deselection) when a certain radio button in the

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread AndreAgosto
Hi Frank, can you help me about upload file? i saw FileUpload Widget, i put it in a formpanel, but i can't do it works.. Maybe i did some mistake in servlet side, but i don't know.. Can you send me an example? Thank you very much On 11 Mag, 15:04, Frank Harper wrote: > Because it is a much bette

Re: GWT issue when browser offline

2010-05-11 Thread Abdullah Shaikh
Hey I know that in offline mode the browser doesn't access server, what I was asking is how will the user know about this, by user I mean the end user and not the developer. Anyways I think I will go as per Sripathi explained by having a centralized error handling. - Abdullah On Tue, May 11, 201

Re: help for sending e-mail using rpc / gwt

2010-05-11 Thread Felipe Guarda
but what about the implementation of the RPC, you could help me? thanks On May 10, 2:06 am, abhiram wuntakal wrote: > Hi Felipe, > >   This block of code would help you send an email from the application. The > trick basically is to get the textual data from the client side and pass it > to the s

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread Sripathi Krishnan
> > Because it is a much better user experience to show an error message right > away rather than letting the user wait for a long time and then telling him > the upload has failed. Agree, its a valid and reasonable use case, just a bit difficult to solve. --Sri On 11 May 2010 18:34, Frank Harp

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread Frank Harper
Because it is a much better user experience to show an error message right away rather than letting the user wait for a long time and then telling him the upload has failed. On Tue, May 11, 2010 at 13:52, Sripathi Krishnan < sripathi.krish...@gmail.com> wrote: > You can't, and you don't want to.

Re: RPC Serialization Issue may be?

2010-05-11 Thread petko
figured it out - was missing the no argument constructor. an exception / error would have made it easier to identify. -- 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.

Re: RPC Serialization Issue may be?

2010-05-11 Thread petko
figured it out - was missing the no argument constructor. an exception / error would have made it easier to identify. -- 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.

Re: Unnormal behavior while using native redirect-Methode?

2010-05-11 Thread Thomas Broyer
On 10 mai, 16:42, malibubu wrote: > Hi @all... > > I'm calling my EntryPoint using the URLhttp://localhost:8080/testdesk/. > > I've implemented the following native Method to redirect to another > page: > >         static native void redirect(String url) >         /*-{ >                 $wnd.loca

GWT 1.7 to 2.0 upgrading problem: no longer working: GWTCanvas, gwt-diagrams2

2010-05-11 Thread Navigateur
Is there a way to get these things working in GWT 2.0? I've found that gwt-diagrams2 works when deleting from the html file, but other things don't work then! Would anybody recommend me going back to GWT 1.7? Many thanks, N -- You received this message because you are subscribed to the Google

Re: Positioning Widgets Within Existing HTML

2010-05-11 Thread mariyan nenchev
Hi, you can access the div (where you want to place the widget) via RootPanel.get("div_id").add(yourWidget); -- 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 unsub

Re: Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread Sripathi Krishnan
You can't, and you don't want to. You can't, because javascript doesn't provide any way to read the contents of a file that is stored locally. You can't read the http header info when the browser submits a multi-part post request. There just isn't a way to do it (unless you are willing to write so

Re: GWT+EJB+JPA Integration without DTO's

2010-05-11 Thread hezjing
Thanks for sharing this sample! What do you mean when you said the GWT 2.0 added the support for JPA annotations? On Wed, Feb 17, 2010 at 10:13 AM, Morswin wrote: > Maybe someone will find that useful: > http://code.google.com/p/gwt-ejb-sample/ > Cheers, > Morswin > > -- > You received this me

Positioning Widgets Within Existing HTML

2010-05-11 Thread kirtcathey
Hi All. I'm trying to figure out how to layout a widget within an existing HTML page. I have a static web site that I use as the portal entrance, but when a user clicks on registration, I send them to another static HTML (registration) page that will have the registration form. This registration f

Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file

2010-05-11 Thread GWT Groups
Hello Friends I required your views.. " Can we check uploaded file Size at client side in GWT by Reading the "header info" of the file? " Please if this is possible than please tell me how to do this. I have done lot of search on this but not get any thing till now. Please Help me. I a

Re: Another [com.google.gwt.user.client.rpc.StatusCodeException: The call failed on the server;] Exception

2010-05-11 Thread kirtcathey
I figured this one out with a bit of Google search and a lot of forum reading a couple of answers are available in this discussion thread: http://forums.sun.com/thread.jspa?threadID=5141780 On May 11, 4:50 am, kirtcathey wrote: > Hi All. > I get this error when I deploy the application to the

Re: GWT with GAE Blobstore

2010-05-11 Thread rudolf michael
you cannot use RPC to upload files as i may know. when uploading you need to submit a HTML form. best regards, Rudolf Michael On Tue, May 11, 2010 at 1:16 PM, compuroad wrote: > Anyone? > > On May 9, 11:47 am, compuroad wrote: > > I am trying to use GAEBlobstorewith GWT. I have changed the samp

Re: GWT with GAE Blobstore

2010-05-11 Thread compuroad
Anyone? On May 9, 11:47 am, compuroad wrote: > I am trying to use GAEBlobstorewith GWT. I have changed the sample > they have > online:http://code.google.com/appengine/docs/java/blobstore/overview.html > I replaced the jsp page with a GWT page (below). I replaced the call > to "<%= blobstoreServ

GWTCanvas doesn't draw lines in my app in GWT 2.0.3, was fine in GWT 1.7

2010-05-11 Thread Navigateur
Anybody have any idea about why lines drawn using GWTCanvas wouldn't appear in GWT 2.0, but was ok in 1.7? Has anyone successfully drawn lines in 2.0 and can show me a code snippet? Cheers, N -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group

Re: 1.7 to 2.0, GWT doesn't work any more

2010-05-11 Thread Navigateur
I found the solution. It was that the AbsolutePanel in 1.7 didn't need to be sized, in 2.0 it does (I think it defaults at 0,0 when using GWT 2.0). There are other differences in appearance from my 1.7 app too, which I'm working through. On May 8, 1:35 pm, Navigateur wrote: > I was wondering if

Re: How to Use SplitPanel in UIBinder ??

2010-05-11 Thread Gourab Panda
No Answer Guyd ? On Tue, Apr 20, 2010 at 5:23 PM, Gourab Panda wrote: > Hi. > > How can I set the BottomWidge and TopWidget in UIBInder XML File. > > > > //Top Panel > > > //Button Panel > > > >

log4j:WARN No appenders could be found for logger

2010-05-11 Thread fomba collins
Hi,      I believe this error means that the log4j.properties is not seen in the class path. Please can someone help me with how to insert it into the classpath? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this gr

Re: Green IT

2010-05-11 Thread Subhrajyoti Moitra
Very interesting observation. I would also be interested to know more on this. Thanks, Subhro. On Tue, May 11, 2010 at 1:03 PM, Stefan Bachert wrote: > In common Green IT will seen as a hardware issue. > > However, when you are comparing GWT / AJAX - application with > classical web technologies

Generators

2010-05-11 Thread Stefan Bachert
Hi, GWT generators are used to generate GWT-RPC, I18N a.s.o. But the generator capability could be used as a general programming concept, too. Do you do such things too? - What are you doing with generators? - Do you find limits? - When to use GWT generator, when to use other generator concepts

Re: ant hosted not working on my machine ...debugging is very tedious

2010-05-11 Thread Sid
Thanks for your reply. For some reson cutpasting the url in Opera does not work. In fact my Opera version just shows a blank page. I am having problems upgrading my fedora 9 version of Firefox to ff 3.6 as its missing some packages. I guess I may have to install fedora 12 and hopefully all the prob

Green IT

2010-05-11 Thread Stefan Bachert
In common Green IT will seen as a hardware issue. However, when you are comparing GWT / AJAX - application with classical web technologies like JSP, JSF, PHP you will detect that these technologie heavily differs in power consumptions, too. - GWT reduces the load of the servers. - GWT reduces the

RichTextArea initialization

2010-05-11 Thread David Pinn
Why does RichTextArea implement HasInitializeHandlers? What can I do with my RichTextArea before the onInitialize method has been called, and what must wait until afterwards? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this

Re: How to Authenticate Uploaded file format, size at the GWT client side?

2010-05-11 Thread Manuel Carrasco Moñino
It is NOT possible to do anything with files using javascript, so Gwt has nothing to do with files in client side. So, I recommend you to do this: - Use gwtupload library http://code.google.com/p/gwtupload/ - At server side extend UploadAction, and write your own file validations (you can do it whe