Any issues running in detailed (or pretty) style in production?

2017-06-07 Thread rjcarr
I've been using GWT for years and years but recently my customers have a problem that I can't reproduce, and they're remote so I can't just go check it out in person. They're getting an unresponsive script error, and the browser will tell them where it is, but the code is obfuscated. I'm

GWT and async requests (startAsync)

2016-12-22 Thread rjcarr
I've had a long-poll implementation using gwt for a long time now. It defers the response until either an update or a timeout occurs. It works well, but it uses both a socket (inexpensive) and a thread (expensive), so I'd like this to use the async requests introduced in servlets 3.0. I've

Re: Problem with GWT 2.8, Ant, and Eclipse

2016-11-02 Thread rjcarr
Seems you can set classloading priority in eclipse so I reordered things and now it is fine. Sorry for the trouble (and the typo on "its"!). On Wednesday, November 2, 2016 at 11:22:47 AM UTC-7, rjcarr wrote: > > I have a really old GWT project that I just tried to comp

Problem with GWT 2.8, Ant, and Eclipse

2016-11-02 Thread rjcarr
I have a really old GWT project that I just tried to compile with gwt 2.8. The compilation was fine (I use ant), but when I opened up eclipse, and pointed it to the new gwt libraries, I am getting compile errors like this: org.apache.tools.ant.types.FileSet: Can only iterate over an array

Guidance on transmitting JSON data

2015-07-06 Thread rjcarr
I have a javascript widget (note, not gwt widget) that takes a javascript object as input. If I have the JSON representation of this object as a string I can turn it into a javascript object using JSON.parse() and everything works fine. However, the data itself will be generated on the

Help with Super Dev Mode not showing content

2015-06-23 Thread rjcarr
I have an old project (been around since the early days of gwt) that's pretty large (the compiled javascript file is about 600KB). I'm using GWT 2.7 and at some point a while ago the old dev mode stopped working (basically the browser wouldn't load the plug-in) and so I've lived without it.

Re: Adding a local javascript to GWT

2015-04-27 Thread rjcarr
The script path has Trust but nothing else does. Generally, this isn't a GWT problem. Good luck! On Monday, April 13, 2015 at 10:35:35 PM UTC-7, mohit wrote: Hi I am trying to add a .js file https://code.google.com/p/geoxml3/#Basic_Usage to my GWT project. I have made the entry in my

How to create a JavascriptObject object?

2015-02-09 Thread rjcarr
So I have an existing class in javascript that takes an element and then draws into it using a canvas. In javascript, you create it like this: var timeline = new Timeline(document.getElementById(canvas)); I'd like to wrap this in GWT using a JavascriptObject but I'm not sure how to create

Re: How to create a JavascriptObject object?

2015-02-09 Thread rjcarr
Ha, not a stupid question at all ... it seems that was the problem! Thanks so much, good thing I copied and pasted the code into the question! But more generally, is this what I should be doing? Or should I use a different approach for what I'm trying to do? Thanks again! -- You received

Re: How to create a JavascriptObject object?

2015-02-09 Thread rjcarr
To create the overlay type I also tried this: return new $wnd.Timeline(canvas); But it didn't seem to make a difference. Maybe I'm not using the right functionality here? I'd basically like to create an object in pure javascript but overlay it with java to have it available to other

Re: client logging config help with unexpected popup

2015-01-27 Thread rjcarr
this, right? Thanks! On Monday, January 26, 2015 at 5:47:07 PM UTC-8, rjcarr wrote: I'm using client logging and have been for a while. Things worked fine in 2.6 but when I switched to 2.7 I got a few logging config errors as handlers were no longer supported. After correcting

Re: client logging config help with unexpected popup

2015-01-27 Thread rjcarr
27, 2015 at 1:34:44 PM UTC-8, rjcarr wrote: So I looked at the logging module's xml files and it seems most of the things I'm disabling are disabled by default. So, I changed my module file to just be this: inherits name=com.google.gwt.logging.Logging/ set-property name

client logging config help with unexpected popup

2015-01-26 Thread rjcarr
I'm using client logging and have been for a while. Things worked fine in 2.6 but when I switched to 2.7 I got a few logging config errors as handlers were no longer supported. After correcting these and opening my app in a browser I get a white popup window in the upper left (looks like

help understanding complicated client logs

2015-01-16 Thread rjcarr
I have a fairly large GWT application that works fine until it is behind SSL. When that happens whenever the page is reloaded on about the 5th try (but it doesn't seem to have a pattern) I'll get an error that is something like: __gwt$exception: skipped: Cannot read property 'Z' of null

Random (and unwanted) PopupPanel in GWT 2.7

2014-12-05 Thread rjcarr
I recently updated to GWT 2.7 on a project that's been using GWT since the beginning and everything was fine. I develop on a Mac and I didn't notice any problems. However, there's a nightly build that happens on Linux (RHEL) and checking there when I start my GWT web app a random PopupPanel

error when setting up debugging in eclipse

2014-09-17 Thread rjcarr
First of all, I got this working yesterday on a different computer using the latest eclipse (luna). But today I installed the google plug-in for eclipse 4.2 (juno). I have an old gwt project that I marked use google web toolkit and I pointed it to my installed sdk (2.6.1) in the Web Toolkit

Need help with JSNI

2014-03-19 Thread rjcarr
I'm trying to export GWT methods using JSNI and I'm not having a lot of luck. And sometimes things happen as they should and other times they don't and it seems to be magic that is making it happen. It seems the export is happening correctly (i.e., javascript can call the GWT methods) but once

Re: Need help with JSNI

2014-03-19 Thread rjcarr
No, nothing changes from what I can tell. I don't mean for you to be distracted when I say it sometimes works. And the example I gave using a Logger is just one example; I see the same 'undefined' problems no matter what type of member I try to dereference. I'm more interested in if what

Re: Need help with JSNI

2014-03-19 Thread rjcarr
I've responded a couple times so I apologize if you get multiple copies but it wasn't showing up in the thread. Just wanted to say this worked and thank you so much. I've been battling this problem for quite a while. I don't know why this information isn't in the docs but it should be added

How to capture all key events?

2014-03-17 Thread rjcarr
Using the DOM directly you'd add an event listener to the document (there are several ways to do this). But looking at the GWT API I don't see a way to do this. I've looked at Window and Document and neither seem to have anything about adding key handlers. In order do this you need to use

Trying to export non-static methods to javascript via JSNI

2014-02-14 Thread rjcarr
The subject sums it up pretty well, so let's get right to code: public class Main implements EntryPoint { public void onModuleLoad() { export(); } public void log(String msg) { ... } public static native void export() /*-{ $wnd.log =

Re: Trying to export non-static methods to javascript via JSNI

2014-02-14 Thread rjcarr
; On Friday, February 14, 2014 10:51:13 PM UTC-8, rjcarr wrote: The subject sums it up pretty well, so let's get right to code: public class Main implements EntryPoint { public void onModuleLoad() { export(); } public void log(String msg) { ... } public static native void

Need help with manipulating java originated objects in javascript

2013-12-19 Thread rjcarr
My goal is to initiate RPC calls directly from javascript. I have come up with ways to fake callbacks (because of the asynchronous nature of RPC) but I can't figure out how to get custom objects into javascript. So, I've created a class named Interop and I statically create the service I'm

Need help with manipulating java originated objects in javascript

2013-12-19 Thread rjcarr
Need help with manipulating java originated objects in javascript My goal is to initiate RPC calls directly from javascript. I have come up with ways to fake callbacks (because of the asynchronous nature of RPC) but I can't figure out how to get custom objects into javascript. So, I've

Suggestions for transferring a GWT project to javascript?

2013-12-16 Thread rjcarr
I have a pretty large project that's over 7 years old that has used GWT from the very early days and is nearly 100% GWT (i.e., there's very little manually written javascript). However, we'd like to transition the client to be written in javascript, but if possible, we'd like to retain the GWT

Using GWT for async calls and serialization

2013-08-16 Thread rjcarr
I have a rather large and rather old project that is nearly 100% GWT. For a number of reasons I'd like redo things and write the UI in manual javascript / html / css. However, it'd be a huge pain to try and serialize all of the data that GWT is currently doing for me. I've been thinking

Re: Serialization help

2013-05-10 Thread rjcarr
Hi Mohammed- Thanks for taking a look and thanks for the response, but I don't think you understood my question (or I wasn't clear enough). I realize that I'm breaking the serialization policy. Specifically, Subtype is in the server package and not the client (its parent is Serializable, so

Serialization help

2013-05-09 Thread rjcarr
I have a rather involved, but hopefully not unique, serialization question. I have a basic type that also has a more detailed subtype. So, to keep it simple, say I have: package client; class Type implements Serializable { String name; } And a subtype: package server;

help with date parsing and time zones

2013-02-07 Thread rjcarr
I'm allowing the user to input a date and time and I'm using the pattern: DateTimeFormat format = DateTimeFormat.getFormat(-MM-dd HH:mm); However, the date is specified as UTC, so if a user were to put in: 2013-01-01 15:30 This will parse fine, but when printing out the parsed date

Re: help with date parsing and time zones

2013-02-07 Thread rjcarr
. On Thursday, February 7, 2013 2:24:29 PM UTC-8, rjcarr wrote: I'm allowing the user to input a date and time and I'm using the pattern: DateTimeFormat format = DateTimeFormat.getFormat(-MM-dd HH:mm); However, the date is specified as UTC, so if a user were to put in: 2013-01-01

Re: Using GWT only for UI design

2011-04-15 Thread rjcarr
You'll probably want to read most of what is here: http://code.google.com/webtoolkit/doc/latest/DevGuide.html And here: http://code.google.com/webtoolkit/doc/latest/tutorial/index.html But generally just go here: http://code.google.com/webtoolkit/overview.html On Apr 14, 3:17 pm, The Main

Re: tips please to figure out a widget for a cell

2011-04-15 Thread rjcarr
Hi Rajesh- From your description you'll likely want to keep the data (dates, schedules, appointments) separate from the actual rendering of the calendar. There's a UI table in java which I believe is called TableModel (or JTableModel). You won't be able to use this directly, but it should give

Re: Creating a DockLayoutPanel with non-fixed sizes ?

2011-04-15 Thread rjcarr
Hi Eric- I'm not seeing why a DockPanel or a VerticalPanel won't do what you ask. If you don't set a fixed size for the panel's cells it should readjust whenever the content in those cells change. It sounds like you want the center panel to take up the remaining space of the window? If that's

Re: View GWT RPC traffic

2011-04-15 Thread rjcarr
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 ethereal? Thanks Ming -- You received this message because you are subscribed to the

Re: IE8-like tabs using GWT

2011-03-23 Thread rjcarr
Hi Bhavin- I'm not sure what an IE8-tab is. Do you just mean a tabbed interface? If so, you'll probably just need to check out the TabPanel: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/TabPanel.html Putting the tabs a the bottom is going to be

Re: GWT communicate with Tomcat

2011-03-23 Thread rjcarr
Hi Bastian- Your questions lead me to believe that you don't fully understand what GWT is or does. The GWT simply rewrites java code into java script. This is entirely a client thing that has nothing to do with a server. Now, there is also GWT RPC, which allows this rewritten (or translated)

Re: Feedback on different backends for GWT

2011-03-23 Thread rjcarr
I use servlets because of their ease of use with GWT RPC. Maybe GWT RPC integrates with python nicely now (without needing to use JSON)? I really don't know, I haven't tried it. As for servlets, just like everything else in java, it's only as complicated as you make it. If you don't need struts

Re: Need Feedback on charts frameworks for GWT

2011-03-23 Thread rjcarr
Not exactly client-side, but I generate charts on my server using JFreeChart and it's pretty nice. I do this because there's a lot of data in my charts and it doesn't make sense to send it all client-side first. At some point I want to do some client rendering and for this I've been looking at

Re: Safari window open problem

2011-03-23 Thread rjcarr
I'm confused, why not just use this? http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.html#open(java.lang.String, java.lang.String, java.lang.String) On Mar 21, 9:39 am, Werner Assek was...@jahia.com wrote: Hello, I am trying to use a GWT native

Re: Positioning a Widget using CSS

2011-03-23 Thread rjcarr
There are a number of ways to do this depending on your situation. You should read up on CSS positioning. Try here: http://www.w3schools.com/css/css_reference.asp#positioning Generally, you'll be using the properties such as: text-align, vertical-align, top, left, and sometimes margin. Do some

Re: How to disable a custom widget and its click handlers

2011-01-01 Thread rjcarr
If you are adding multiple handlers to your button then there isn't a propagation ... they are all sibling actions. So, what you're trying to do wouldn't work. I'm fairly sure the 'onBrowserEvent()' method is the initial event handling method. You would need to override this in your custom

Re: WebSocket support in GWT

2011-01-01 Thread rjcarr
I'm pretty sure websockets is an HTML5 feature that needs to be supported in the browser. Since it isn't yet well supported it likely isn't worth spending the time implementing it in GWT. If you're looking to implement push notifications then it is fairly trivial to do in GWT. I'm sure if you

Re: Embedding Javascripts in GWT client code.

2010-12-08 Thread rjcarr
If the snippet has nothing to do with GWT just put it in your html page directly. On Dec 8, 12:23 pm, Jmu test0...@gmail.com wrote: I would like to embedd the below Javascript on GWT1.4 client side code. Anyways to acheive this? div id=lpButDivID-XXX/div script type=text/javascript

Re: GWT and Internet Explorer

2010-12-08 Thread rjcarr
The GWT will compile for IE by default so that shouldn't be your problem. If you open your page in IE and nothing is shown you likely have a javascript error. Your best bet is to run the app in devmode (using IE, of course) and see what errors are thrown. That should give you some direction as

Re: ListEditor is there a way to edit a generic type?

2010-12-08 Thread rjcarr
Is this a GWT question? It sounds like a generic polymorphism question. If the latter, you have two options. Either add wing span information to the parent type (Animal) or do explicit checks for Birds and then do a cast. Good luck! On Dec 8, 9:11 am, DaveC david.andrew.chap...@gmail.com

Re: Dynamically Instantiation

2010-12-08 Thread rjcarr
Have you looked at the create() method of the GWT class? On Dec 8, 9:03 am, Gaurav Vaish gaurav.va...@gmail.com wrote: Hi, I have a peculiar situation in my application. I need to instantiate a class given its name. The name is determined dnyamically. In JavaScript, it's easy to do...

Re: Passing information back to main page from Window()

2010-12-08 Thread rjcarr
I (and likely others) am not following what you mean here. What do you mean by Window()? Are you saying that your results are currently going to a new browser window but you want them to instead go into a tab of the current window? On Dec 8, 9:01 am, Ross McKinnon r.mckinno...@googlemail.com

Re: How to add multiple markers out of Array

2010-12-08 Thread rjcarr
I haven't looked too closely, but you are using an array of lists. Are you sure this is what you're intending? From your explanation it seems you'd need only a one dimensional data structure. On Dec 8, 7:10 am, Jan jan.widm...@gmx.ch wrote: Hi Everybody, For my actual GWT Project, i need to

help with stack trace

2010-12-02 Thread rjcarr
I've been using GWT for years (since around release 1.4) but I'm having a problem with a stack trace I can't figure out. I develop on a mac and primarily test with Safari and Firefox. My application has worked in IE(8) in the past but in my most recent test it is failing and I can't figure out

help with the new layout deprecations

2010-11-16 Thread rjcarr
I've been using GWT for several years now but after updating to the 2.1.0 release I'm seeing hundreds of warnings, mostly to do with the deprecation of ui panels (e.g., DockPanel). I assume the panels weren't strictly compatible with the UIBinder (something I haven't gotten into), so new

Re: GWT as a Desktop App (no browser !)

2010-10-23 Thread rjcarr
If you don't use any services you could use a gwt app in a browser without internet access. Otherwise, you'll need to embed a browser into your desktop application. GWT is a web platform and as such needs to run in a browser. On Oct 22, 1:52 pm, mattlf matthieu.lab...@gmail.com wrote: Hi I

Help With LoadHandler

2010-09-27 Thread rjcarr
I have an application where an Image object gets an updated url quite often from the result of a user action. I'm running into problems where if the image is updated (i.e., the setUrl() method is called) more than once before the image is actually loaded, then the image doesn't load correctly.

Re: HTTP query string when tested in development mode

2010-09-18 Thread rjcarr
From what you've posted it doesn't look like a valid URL. A query string, as far as I know, is a series of key=value pairs separated by . You posted this: http://127.0.0.1:/Dummy.html?debugparam2gwt.codesvr=127.0.0.1:9997 Which doesn't look correctly formed. Try this:

Re: Receive xml file after authentication

2010-09-18 Thread rjcarr
If you're using a desktop application then you really shouldn't be communicating with a GWT server. You can create non-GWT servlets in your web application and I'd recommend using that. Once you have that set up you can use whatever method you want (GET, POST, Basic, Web Services, etc ...).

Re: Any metrices on amount of code/data we can put on client side (browser)

2010-09-18 Thread rjcarr
This is a tough question because every browser is going to be different, every environment is going to be different, and every physical machine is going to be a little different. Maybe you can tell us where you're at now and where you are having any performance problems? I think I have a rather

Re: Store information in Cookies?

2010-08-30 Thread rjcarr
I'm pretty sure you only have 3 options: 1) Keep the value in javascript. I can't tell from your description if your page gets reloaded. If it does reload, then you'll lose your javascript state. 2) Use cookies. This seems like the best solution (assuming that your page reloads). GWT has a

Re: App does not display in IE 7

2010-08-21 Thread rjcarr
Even if you use tomcat you can still use the development mode. Look into using the '-noserver' option for DevMode. I also use tomcat and it works fine for me. Good luck! On Aug 20, 10:21 am, Greg Dougherty dougherty.greg...@mayo.edu wrote: I have a web app that displays just fine in the

Re: Single Sign On - Multiple GWT Applications

2010-07-27 Thread rjcarr
Single sign on is a feature that will be offered by your servlet container. Depending on which you choose you should have several options for how to implement this. On Jul 27, 1:44 pm, DKeller keller.di...@gmail.com wrote: I need to build a set of GWT Aplications, each one separate of another

Re: Asynchronous callback

2010-06-04 Thread rjcarr
It's a servlet request, just like any other request. I don't think there is a tremendous amount of overhead ... the gwt framework just has to dispatch the request to the proper method and deserialize whatever you passed. Making a request is expensive in general, but I don't think rpc calls are

real gwt serialization

2010-05-28 Thread rjcarr
So I understand gwt's rpc serialization and I've been using it for quite some time. However, I'm wondering if there is a manual javascript serialization? Let me explain ... Passing things over rpc works great for dynamic data, but what if you have initialization data that doesn't change? Since

help with serialization

2010-05-22 Thread rjcarr
I have a really old GWT project and I've been using GWT for many years now, but I need a little guidance on how this works. I have a serializable data structure (DTO) that I've been passing via rpc and it's been working great. However, there are a number of things I'd like to keep in this data

Re: Composite - capture arrow keys

2010-05-15 Thread rjcarr
Instead of adding your event handlers to your composite you should instead add them to the main component in your widget. Since you need to capture mouse and key events you'll want to use a FocusPanel (instead of a FlowPanel). You'll want to add a ClickHandler and one of the Key Handlers to the

Re: About Date object in GWT

2010-05-15 Thread rjcarr
What Jim said, or: com.google.gwt.i18n.client.DateTimeFormat On May 14, 7:00 pm, Jim Douglas jdoug...@basis.com wrote: Just use java.util.Date; ignore the deprecation warnings. On May 14, 6:13 pm, Sabbir leo.sh...@gmail.com wrote: the methods in Date objecat as getTime, getHour, etc are

Re: Code to run server or client with XML + XML-to-string

2010-05-15 Thread rjcarr
There are probably hundreds of java xml libraries out there to use. Also, you should read this: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsXML.html On May 12, 10:52 pm, MH zvi.schrei...@gmail.com wrote: I want to write some Java code that can run either server-side or in

Re: GWT /Eclipse/Tomcat

2010-05-14 Thread rjcarr
Hi Alan- The short answer is yes, you can use tomcat (stand-alone) instead of jetty (gwt embedded). The simple solution is to just add -noserver to your devmode launcher. You can also modify the eclipse lauch config file to do this same and then you have integrated debugging. You might have to

Re: GWT HTTP form post

2010-05-14 Thread rjcarr
I don't have the code in front of me, but you just need to know what you named your form elements. The FileItem has a getFieldName() method, so just look for the name of your hidden field. On May 11, 8:44 am, heyyo handecano...@gmail.com wrote: Hi, I created a form panel, I can upload file and

help with jsni

2010-05-03 Thread rjcarr
I've recently began using a javascript library that is based on (requires) jquery so I'll be needing to write a lot more JSNI than I have in the past. I've actually got jquery working with jsni without too much trouble, but now I'm having problems with data types. I struggled quite a bit getting

Re: how to display image stored into database onto gwt form

2010-04-30 Thread rjcarr
You really don't need anything with GWT to accomplish this. Create an image with a URL (traditional img or Image()) and have a servlet field this URL. Get the image bytes out of the database, set the correct mime type in the response, and pipe the image bytes through the response's output

Re: Need to explicitly remove event handlers manually?

2010-04-12 Thread rjcarr
If you no longer need the handler then yeah, you should remove it, because you don't want to execute code blocks (onClick()) that are no longer needed or used. But it certainly isn't required. On Apr 12, 2:32 pm, macagain rgk...@gmail.com wrote: Is it required or even good practice to manually

Re: sliding navigation with gwt

2010-04-12 Thread rjcarr
You would need to embed things (i.e., widgets, most likely images) into an absolute panel and then change their positions within the panel on the navigation action. By moving the items in the front faster than in the back it achieves a 3D look. Good luck! On Apr 11, 12:01 am, ko_aung

Re: Serial Port Access

2010-04-11 Thread rjcarr
This is almost certainly not possible using GWT. The problem isn't with GWT but with the restrictions on the browser. The only way it would be possible is with some sort of plug-in (ActiveX, Applet, Flash) that could directly access your system's resources (i.e., rs232 ports). To make this work

Re: Highlight flextable row when tabbing

2010-04-08 Thread rjcarr
Hi Bonor- Here's a quick algorithm. I'm sure it isn't complete so fill in the gaps as necessary: 1) Extend the TextBox type so it knows what row of the table it is being added to. 2) Create a FlexTable and add your TextBoxes to it, passing it the current row of the table. Be sure to add a

Re: How invoke a external ws form my server-side

2010-04-08 Thread rjcarr
Hi Vertik- The gwt-rpc mechanism uses its own proprietary object serialization, and as such, cannot be used as a normal web service (i.e., an xml web service generated from a wsdl). I could *definitely* be wrong about this, so seek a second opinion. You can still use GWT for other things, just

Re: Possible ways to invoke web services with objects in GWT client

2010-04-07 Thread rjcarr
Hi Deep- Could you elaborate on this a little bit? I need to use POST methods with user defined objects in the web svc calls User defined objects where ... in javascript? In java? If the latter, why not use gwt-rpc to move around these beans? You would just need to make sure they are

Re: Scrolling within a page

2010-04-04 Thread rjcarr
As far as I know, anything you can do outside of GWT you can do within GWT. For your example, you'll want to look into the Anchor type. There are many other ways to do this, however, depending on how fancy you want to get. You could have a scroll pane that is scrolled when you click a letter.

Re: How to read text file that was zipped in GWT?

2010-04-03 Thread rjcarr
How do you read a text file in GWT? What does that even mean? If you mean reading a zip file on the server, then that isn't a gwt question, but you should look into ZipFile or ZipInputStream. On Apr 2, 5:53 pm, Henry henry...@gmail.com wrote: I know how to read text file in GWT, that's easy.

Re: GWT and Image Editor

2010-04-03 Thread rjcarr
You'll want to look into using the AbsolutePanel, as it allows you to place widgets in arbitrary pixel space. You might be better served using the Canvas element in this case. I'm pretty sure there is a GWT Canvas library that will even work in IE. Good luck! On Apr 1, 10:57 am, Artem

Re: how to read from an xml file?

2010-04-03 Thread rjcarr
You don't give enough details to really answer your question. Where is the xml file coming from? Who is providing it? There are several xml parsing libraries in java. Depending on the complexity of what you're doing, you could just parse the DOM manually or use something fancier like jaxb.

Re: newbie help

2010-03-13 Thread rjcarr
Hi Robert- Creating a hyperlink probably isn't the first thing you want to do. You'll likely want to play around with panels and labels and images and then start adding click handlers to those things. A hyperlink is very similar to a label, but it also carries history information. That's almost

Re: web.xml

2010-03-13 Thread rjcarr
First of all, only classes in the server portion of your module have access to the web.xml file (since browser client's don't have access to the WEB-INF folder). So, assuming you're in the server portion, you can just open the file with, say, a FileInputStream. However, I've been programming

Re: Why and How does GWT extract these subset of the core Java class libraries ?

2010-03-13 Thread rjcarr
Your question wasn't very clear, but as I understood it, I don't think anyone has answered you yet. You're asking why does gwt emulate the sql package? Clearly, you can't use sql in the browser (yet, I think HTML5 is adding a client database, but I have no idea how it is accessed), so I think

Re: Calling the GWT entry module from a servlet

2010-03-09 Thread rjcarr
For your situation, I think using the redirect makes the most sense. This tells the browser to request another resource (i.e., the gwt html). The other option is to use a request dispatcher. This is basically a servlet calling another servlet, but it sounds like your gwt is using plain-old html,

Re: Problem with RPC

2010-03-08 Thread rjcarr
I don't completely understand what you're asking, but if you'd like to implement a text chat then you'll probably want to look into something called comet. It isn't a library (I don't think) but just a technique for holding open a socket so that your clients can receive immediate responses to

Re: Serializing a List

2010-03-08 Thread rjcarr
The problem is likely exactly what you describe here: but the GWT compiler does not find those subclasses. More specifically, those classes aren't part of the gwt jre emulation, so that's why you're having problems. For the unmodifiable list, I'd just suggest not sending your list through that

gwt + database + debugging

2010-03-08 Thread rjcarr
I've been using gwt for years and years now and I greatly appreciate how much it offers. I started using gwt way back in the 1.0 (or 1.1?) days and things have changed greatly since then (even though my project continues). I've updated my gwt sdk along the way, but have typically left out a lot

Re: Cross domain RPC

2010-02-21 Thread rjcarr
Hi Ramesh- Can you point me to the place in the docs that made you think this would be possible? As far as I know, all XHRs are restricted to the same domain that you got the page from. I know some browsers are much more lenient about this, but I would expect it to not work as you describe.

Re: embedding same GWT component in two web pages

2010-02-21 Thread rjcarr
Hi Vik- Are you sure this second page also loads the translated GWT javascript files? If so, and all the other references are in the same place, I don't see why this wouldn't work. Good luck! On Feb 21, 5:59 am, Vik vik@gmail.com wrote: Hie I have created a button and embedded it into a

Re: GWT Command

2010-02-16 Thread rjcarr
Assuming the actions of your command are different you'll need to create a new command object for each menu item. However, you can create your own Command type, instantiate several slight different variations, and assign these to your menu items. Here's an example that won't compile but

Re: App works in ff and chrome but not in ie8

2010-02-09 Thread rjcarr
I'm not sure how to address this in GWT 2.0, but prior to 2.0 if I had problems in IE I would run the hosted mode environment in Windows and it would expose the problem. Since the Windows version of hosted mode uses IE it will show you the problem that it is having (almost certainly something

Re: java.io.Serializable not accepted for serialization

2010-02-09 Thread rjcarr
Are you sure that the class that you want to serialize (implements Serializable) is within your gwt module package? On Feb 9, 2:25 am, Andrea Polci apo...@gmail.com wrote: Whenever I try to use in my services a class that implements java.io.Serializable and not IsSerializable I get the

Re: Using RequestBuilder to request from local file system

2010-02-09 Thread rjcarr
Hi David- This is an interesting problem. I can see how browsers would have different policies about how they access files on the local filesystem. I would guess that what you're trying to do most browsers wouldn't allow and/or support. I think you're going to need to rethink how your help

Re: New Layout Panels and Centering

2010-01-30 Thread rjcarr
Not sure why you're putting panels inside of panels, but I've had much better luck with the setHorizontalAlignment() calls rather than the CSS. I know this isn't the proper technique as it puts styling in the code, but it's the only solution I've found to work 100% of the time. On Jan 29, 10:17 

Re: Integrate another project on GWT

2010-01-30 Thread rjcarr
There are a number of ways you can address this. The simplest way is to put your button on your web page and keep it completely separate from GWT. Another way is to set up a traditional form (FormPanel, I believe) with the action set to your search url. This happens asynchronously, but is

Re: listener not working for text onclick

2010-01-16 Thread rjcarr
Since you mention columns and rows I'm going to assume you're using some sort of HTMLTable. Add a click handler to your table and once you get the click event back pass it to the method HTMLTable.getCellForEvent() to determine what was clicked. On Jan 16, 5:23 am, gwt_dev pankaj.i...@gmail.com

Re: Cross window calls?

2010-01-16 Thread rjcarr
You'll almost certainly need to resort to javascript / JNI calls to do something like this. You can communicate between windows using javascript but I don't think I've seen a way to communicate between GWT modules once they are loaded (as that's what you'd need to do). Have you considered using

Re: Building Composite Web Application using GWT...

2010-01-08 Thread rjcarr
Hi Shamoi- Your idea sounds interesting, and I'd like to help, but you need to be *way* more descriptive in what you mean by plug-and-play. In general, you can have as many modules as you want, but I've only ever loaded a single EntryPoint (i.e., a single nocache.js file), but it might be

Re: Status of GWT RPC-Auth?

2010-01-08 Thread rjcarr
I think the reason it is left as an exercise is because each servlet container handles authentication differently. The basic concept is to secure your servlet calls in one way or another, typically defined in the web.xml. Your first step is to understand how servlet security and authentication

Re: Custom class in RPC

2010-01-08 Thread rjcarr
Is there a restriction on the package the Class must be in? YES! Specifically, it must be in the client module (defined by the module xml file). Your actual code looks correct (although you could use jdk's Serializable instead of the GWT custom one). On Jan 8, 12:38 am, Micha Roon

Re: How to redefine standard.css ?

2010-01-08 Thread rjcarr
I'm not exactly sure what you're asking, but I'm not sure you can edit standard.css. If you like standard.css but just want to modify some fields, you could probably find where it lives, copy it to a location on your web path, disable the standard one and load your edited one. I'm reasonably

Re: StringBuffer problems in GWT

2010-01-08 Thread rjcarr
What is the context? What does this have to do with GWT? Where is the println directed to? If this is somehow making its way onto a web page, then you need to replace \n with br and put it inside of an HTML widget. On Jan 6, 11:46 am, Brittany bjacob...@gmail.com wrote: The simplest way to

  1   2   >