Re: How to add new event to HandlerManager

2010-06-02 Thread Tristan
Looks like you're getting the wrong type from KeyPressEvent. Javadoc says: getAssociatedType() Returns the type used to register this event. getType() Gets the event type associated with key press events. for registering, you should use getAssociatedType(), so try eventBus.

Re: GWT Custom Events

2010-06-02 Thread Tristan
this is a different problem, but it goes into how events are hooked up together. pay attention to the handlers, check out the Place Providers and how the events are registered with an EventBus (which is just an extension of EventHandler). I hope it helps: http://code.google.com/p/handlebars/wiki/P

Re: ClickHandler not called on second click

2010-06-02 Thread Danny Goovaerts
I have filed an issue 4993 for this in the issue tracker. On Jun 2, 9:37 pm, Danny Goovaerts wrote: > I managed to isolate the code in a few classes which reproduce the > problem. > > Can I upload a zipfile (15k) somewhere? > > On Jun 2, 5:27 pm, Olivier Monaco wrote: > > > > > Danny, > > > What

Re: Hibernate problems after deploying to google appspot

2010-06-02 Thread Sripathi Krishnan
You CANNOT connect to databases when using google app engine. GAE has several restrictions, you should go their documentation and post follow up questions on the GAE user forum. --Sri On 1 June 2010 05:16, Emma Cole wrote: > Hi all, > > I have an application which uses hibernate that runs fin

Re: RichTextToolbar in Uibinder

2010-06-02 Thread Tristan
you're going to have to be more specific. There are many ways of hooking up MVP and UiBinder together, what way are you using? Where are you putting your RichTextArea? What do your presenters and views look like and how are they wired together? On Jun 2, 3:19 pm, krz wrote: > Hello, > > For my p

Re: Prompt Message Box in View

2010-06-02 Thread Tristan
what about: 1. user clicks "add new item" 2. presenter does onAddNewItem() and calls getView().showNamePrompt() 3. user types in the name to name prompt and click "save" 4. presenter does onSave() and calls getView().getName() this keeps it separate yes? On Jun 2, 1:46 pm, Spring wrote: > Hello

Re: How to read web.xml parameters from GWT

2010-06-02 Thread Manuel Carrasco Moñino
You must override the init method: public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { private String strHost; public void init(ServletConfig config) throws ServletException { super.init(config); String strHost = config.getServletContext().getInitPa

gwt compile issue

2010-06-02 Thread gerald
I have a project based on gwt-ext. This project import some third- party jars. However it didn't compile successfully because the gwt complier couldn't find the java source code of these third-party jars. That means that we must have the java source code in the jar package or in the classpath, othe

Re: HttpSession Expiration Notice?

2010-06-02 Thread kozura
Probably much easier is to just do a client-side timeout using a Timer, not likely worth it to set up server push just for this. Of course any calls to the server should also check whether the timeout has been surpassed, and if so return a response that also times out the page. On Jun 2, 7:09 pm,

Re: IE7,IE8 clicking #fragmented links does not call the history listener

2010-06-02 Thread davidroe
I can remember a similar situation on a project where links like topic1 misbehaved in IE and were substituted for something like topic1 HTH, /dave On May 24, 10:39 pm, Rares wrote: > Hello everyone, > I have a burning problem and I am as always running out of time. > We are using GWT 2.0.3 to ge

Re: GWT 2.0

2010-06-02 Thread Sripathi Krishnan
> > java.lang.Class.getCanonicalName()Ljava/lang/String; Can you double check your JDK Version? Do you have multiple versions of JRE libraries in your classpath? --Sri On 1 June 2010 15:24, Kapil Kulkarni wrote: > Hi, > I am new to GWT and in learning mode. > I working with GWT 2.0 / Eclipse

Re: How do you connect to External RPC Service? In other words, can you expose RPC services to outside world by sharing only client/shared pieces?

2010-06-02 Thread Sripathi Krishnan
Its not a GWT limitation, its a browser restriction - Same Origin Policy. There are ways to workaround the limitation. In your case, you can setup a proxy server to forward the requests from one domain to another. Apache mod_proxy can help you with this. For example, suppose you have http://rpc.e

HttpSession Expiration Notice?

2010-06-02 Thread rileyscott
Hi All, I need a session expired notice added to my application. This is similar to Internet banking websites where they expire your session if it remains idle for too long. When a user's session has expired on the server, then the server will send a message to the browser. When the browser recei

Re: Simple working example of the Data Presentation Widget CellTable

2010-06-02 Thread Andrew
The following code is what I'm woking on, hope it can help you: protected void init() { VerticalPanel container = new VerticalPanel(); initWidget(container); int pageSize = 10; CellTable cellTable = new CellTable(pageSize);

GWT hostmode in weblogic

2010-06-02 Thread GWT_novice
i am very new to GWT. I want deploy GWT app in weblogic app server instead of using in-built jetty. Can someone let me know how to do that? I googled it but not much info regarding set up in weblogic. Thanks in advance. -- You received this message because you are subscribed to the Google Groups

error while invoking java method using jsni

2010-06-02 Thread gerald
When I invoke java method 'func2(JavaScriptObject str)' using jsni, an error occurs when the type of argument 'str' is javascript string type, such as var ss = 'aabbcc', However, the method 'func2' does work while its argument is JavaScriptObject type. In addition, this error only happen in the dev

Re: Hibernate problems after deploying to google appspot

2010-06-02 Thread Paul Grenyer
Emma It sounds like you haven't deployed the mysql driver. Paul -Original Message- From: Emma Cole Date: Mon, 31 May 2010 16:46:59 To: Google Web Toolkit Cc: Subject: Hibernate problems after deploying to google appspot Hi all, I have an application which uses hibernate that runs fi

Re: Error during File IO in ServiceImpl class

2010-06-02 Thread Sripathi Krishnan
This isn't a GWT problem, its a GAE problem, and you are more likely to get an answer on that forum. But from what I know ... .. you can read files that are present in the war file, but you still cannot read it as a File. Instead, you should read it from the classpath, like this this.getClass().ge

Re: SerializerBase.check(String,int) throws useless exception?

2010-06-02 Thread Sripathi Krishnan
Confirm that all classes participating in RPC - 1. implement Serializable 2. have a zero-argument constructor Most of the times I forget zero-argument constructor, and that's when I get errors similar to what you have pasted. --Sri On 31 May 2010 20:23, svincent wrote: > Greetings, > >

How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-02 Thread spierce7
I need to be able to do this efficiently in a 50X8 Grid. I need it for the individual cells within the grid. It seems that all I can get to work on my grid is a simple click handler. Grid.addClickHandler(this); and then whenever a click event occurs (a click down and then a click up in the same ce

Re: refresh page in GWT

2010-06-02 Thread kozura
Literally 2 seconds of search turns up: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/429cbf743328c9a9/938fb8df06bf9cd5 On May 31, 1:30 pm, ahmed saleh wrote: > hello- > i have a big GWT application have more than  50 composites ,i have > big issue when customer, refresh

Re: JSNI Methode call does not work...

2010-06-02 Thread kozura
Your method signature doesn't match your class (String x3). Also, use int and I for signature instead of the Integer class. On May 31, 2:53 pm, Go2one wrote: > Hi, > > I've the following Class: > > public class Designer { >  private final native JavaScriptObject addNode() /*-{ >    alert("Pre JS

History.newItem() and History.getToken() and encoding url fragment (Does not happen in FF)

2010-06-02 Thread Sky
History.newItem() and History.getToken() are supposed to encodeURIComponent and decodeURIComponent respectively. I looked into the implemented native methods and they sure appear to do that. However, in FF 3.5 the encoding does not happen. My browser URL shows normal spaces instead of %20. In IE8

Re: GWT 2.0.3 + Tree widget + get tree level of selected TreeItem - Problem

2010-06-02 Thread Jim Douglas
Follow the chain of getParentItem() until it returns null. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/TreeItem.html#getParentItem() On Jun 2, 3:25 am, junior wrote: > Hejsan > I am building GWT Tree and need to get information about level of > current

Re: Getting a 503 Error.

2010-06-02 Thread Prashant Hegde
Probably your server has exited following a exception during initialization Does the console show some exceptions ? On 03-06-2010 04:12, ike wrote: Hey... I am using the plugin for Eclipse. There are no errors in my code according to Eclipse, but when I run the code, it gives me a screen l

Prompt Message Box in View

2010-06-02 Thread Spring
Hello, When using the MVP pattern, how should I display alerts or message boxes prompting the user for information? For example, the user clicks a button to add a new item and I prompt for the name. Where should this prompt happen? In the View class? In the Presenter? The presenter is where I have

firefox gwt issues

2010-06-02 Thread Sam Phippen
When I attempt to load my gwt app in firefox (f13, x64) with the plugin installed I still get the screen telling me to install the plugin. I also get a drop down at the top saying "additional plugins are required to display all media on this page" -- You received this message because you are subs

Re: GWT Design Problem

2010-06-02 Thread Frederic Conrotte
Hello You should check this book: http://apress.com/book/view/9781590599853 And the associated website: http://code.google.com/p/tocollege-net/ It mix both HTML/Freemarker templates with GWT modules. Fred On 1 juin, 18:02, ping2ravi wrote: > Hi All, > I am trying to create a website and stuck

GWT Custom Events

2010-06-02 Thread Ciarán
Hey I have a problem getting my head around how custom GWT event Handlers work. I have read quite a bit about the topic and it still is some what foggy. I have read threads on Stackoverflow like this one http://stackoverflow.com/questions/998621/gwt-custom-event-handler but still some what lost .Co

RichTextToolbar in Uibinder

2010-06-02 Thread krz
Hello, For my programm i use MVP, and UIbinder for drawing the GUI. i wanted to create an RichTextArea with the toolbar ( richTextToolbar), i spend now 2 hours trying things out, im totaly frustrated, and dont know how to do it... can anyone help me? -- You received this message because you are

Eclipse Modeling Framework (EMF) port to GWT

2010-06-02 Thread Ed Merks
I'm busy refining EMF's support for GWT: http://wiki.eclipse.org/EMF/New_and_Noteworthy/Helios#Support_for_Google_Web_Toolkit_.28GWT.29 One of the problems I have is that I need to support converting date instances to and from a string representation, in particular, one that conforms to XMLSch

GWT 2.0.3 + Tree widget + get tree level of selected TreeItem - Problem

2010-06-02 Thread junior
Hejsan I am building GWT Tree and need to get information about level of current opened TreeItem. Let me describe more detail. I build up first level(Sport List) of tree so it looks like: + Athletics + Ice Hockey + Footbal Second level(Countries List) must looks like: + Athletics + Ice Hockey +

Problem deploying RPC application to jetty

2010-06-02 Thread shirin
Hi I posted this error before. I did lots of thing but still without success let me give some more details: say my project name is gwtexample and my servlet class name is myServlet in web.xml I defined /gwtexample/myServlet then I deploy every things in jetty server in a remote se

Hibernate problems after deploying to google appspot

2010-06-02 Thread Emma Cole
Hi all, I have an application which uses hibernate that runs fine in hosted mode, but no longer when deployed. Here's the details: In hosted mode it connects to a database that resides on a remote server. Connection details set in hibernate.cfg.xml When run I it get a long stacktrace with errors

Re: HOWTO Implement A Drop Down Check Box List

2010-06-02 Thread Garin Yan
Hi All, I have found this on http://www.smartclient.com/smartgwt/showcase/#multi_select_new_category . Thanks you all the same. Garin On Tue, Jun 1, 2010 at 3:20 PM, Guoyu Yan wrote: > Hi All, > > I got some problem on HOWTO implement a drop down check box list. > Could you give me some ideas

Problem deploying RPC application to jetty

2010-06-02 Thread shirin
Hi I have a RPC application , very simple with just one servlet class in server package. it runs good locally but when I deploy it in jetty in a remote server it said that it can not find my servlet class this jetty server has been configured before and has a specific deploying strategy. For exampl

looking for a proxyservlet for the jetty instance

2010-06-02 Thread alexl
hi, I tried a couple of proxy servlets but each time the engine says such and such is a restricted class. I recompiled some of the dependencies but after getting rid of ssl's for example then it complained about inet address being a restricted class. the reason I want a proxy is so it is easier to

GWT 2.0

2010-06-02 Thread Kapil Kulkarni
Hi, I am new to GWT and in learning mode. I working with GWT 2.0 / Eclipse 3.5 / JDK 1.5 / IE 8.0 As per getting started guide if I paste the url which i get in deployment mode to IE 8.0, then I get following but browser is not displaying "text box" Web Application Starter Project Please enter y

Question About Constants(.properties) file of GWT

2010-06-02 Thread veeravelli kiran kumar
Hi All, I am new to GWT and finding it difficult to understand this. I am creating a GWT project,putting a constants file and retrieving them via the constants interface. I am compiling this project and adding the resources (just the .html ,.css and /project resources) generated to a war file deplo

Simple working example of the Data Presentation Widget CellTable

2010-06-02 Thread saklig
Hi, I want to create a working example of the CellTable widget that was recently released in GWT 2.1 M1. I'm having a hard time finding documentation for this widget, as apparently it has not been written yet :-/ What I've tried so far: List dataList = new ArrayList(); dataList.add("Pizza", 15)

HOWTO Implement A Drop Down Check Box List

2010-06-02 Thread Guoyu Yan
Hi All, I got some problem on HOWTO implement a drop down check box list. Could you give me some ideas to do this. I have done some research on Creating Custom Widgets but I still don't have any idea about it. Thanks, Garin -- You received this message because you are subscribed to the Google

How do you connect to External RPC Service? In other words, can you expose RPC services to outside world by sharing only client/shared pieces?

2010-06-02 Thread Umesh Adtani
I have a RPC servlet that I would like to make available to other GWT application developers. The problem that I currently see is that GWT.create() requires the service to be deployed on the same host where the GWT application is deployed. There is no way to do something like GWT.create(,) to crea

About a multi page web application

2010-06-02 Thread MaveriK
Hi everyone. I'm new in GWT, i've just begun to use GWT a couple of week ago. My goal is to create a web app that shows a login page, and after the log-in shows an interface where the user can interact with the system So i was wondering if i need need a multi-page web app, or instead a single-pag

JSORestrictionsChecker Bug

2010-06-02 Thread Patrick Twohig
I'm getting this error while trying to compile code with subclasses of JavaScriptObject. I'm aware of this issue here: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/eaca6b6dbecd2c77/3b76790edc488222?show_docid=3b76790edc488222, however in my case none of my cl

refresh page in GWT

2010-06-02 Thread ahmed saleh
hello- i have a big GWT application have more than 50 composites ,i have big issue when customer, refresh the application , the browser reload all application again and back user to home page , i need solve this issue Ahmed Saleh Senior Software engineer +2 010 3580 355 -- You received this

How to add new event to HandlerManager

2010-06-02 Thread justint
Hi, I'm fairly new to GWT and I'm trying to add events to my "eventBus"... final HandlerManager eventBus = new HandlerManager(null); .. eventBus.addHandler(RequestEvent.TYPE, new RequestEvent.Handler() { public void onRequestEvent(RequestEvent requestEven

Using JavaScript Overlay Types for Nested JavaScriptObjects

2010-06-02 Thread powwow
I have this in my html and I can use JavaScriptOverlay types no problem and it works: var properties = {"width":640, "height":480}; public class Properties extends JavaScriptObject { protected Properties() { } public final native String getWidthString() /*-{ return th

Re: GWT Design Problem

2010-06-02 Thread Frederic Conrotte
I advise you to take a look at this book: http://apress.com/book/view/9781590599853 and the related website: http://code.google.com/p/tocollege-net/ The books explains how you can nicely split your web application between HTML/JSP pages and GWT modules Fred On Jun 1, 6:02 pm, ping2ravi wrote:

GWT 2.0.3 + Tree widget + get tree level of selected TreeItem - Problem

2010-06-02 Thread junior
Hejsan, I am building dynamic Tree Widget. First Level I done with no problem so it look like: + Atletics + Ice Hockey + Chess + Footbal + Golf Functionality must be like when you click on sport must roll up/show off list of countries like: + Atletics + Ice Hockey + Canada + USA + Ru

GWT Development Mode Plug-in for QTWebKit-based browser?

2010-06-02 Thread nMacD
We're using a custom-built application based on an embedded QTWebKit browser and would like to be able to debug our GWT-based applications in it, but there isn't, of course, a development-mode plug-in for QtWebKit. Looking through the GWT source, there is source code for an NPAPI- based plug-in. Q

Extending / adapting Java to Javascript compiler

2010-06-02 Thread Sangam
I am working on a project to integrate GWT based UI components in a Federated portal environment ( using WSRP protocol). In WSRP the URLs to the application are different. For example, in a standard web application an Ajax link would be something like: http://web_app_hostname:port/contextroot/ABC.a

JSNI Methode call does not work...

2010-06-02 Thread Go2one
Hi, I've the following Class: public class Designer { private final native JavaScriptObject addNode() /*-{ alert("Pre JSNI call"); th...@de.go2one.sdui.client.processdesigner.processdesigner::sendNode(Ljava/ lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)("TEST", 100, 100); alert("Po

Authentication and login

2010-06-02 Thread KasperDK
Hi, Im wondering what's the best way to do a login functionality. I'm using GWT and GAE, and I can't use openID or Google Accounts (my app relies on phonenumber + pincode). I've built a Composite with the two boxes and a button for logging in, and on the server I would normally store a flag in th

Authentication and login

2010-06-02 Thread Kasper Hansen
Hi, Im wondering what's the best way to do a login functionality. I'm using GWT and GAE, and I can't use openID or Google Accounts (my app relies on phonenumber + pincode). I've built a Composite with the two boxes and a button for logging in, and on the server I would normally store a flag in th

Re: GWT 2.0.3: Cross-browser problems still?

2010-06-02 Thread Frederic Conrotte
>I've had all kinds of cross-browser problems, in particular with events and >graphics, and sometimes widgets. Can you be more specific and give the list of specific issues you had? It would then be useful to fill new bug reports. On May 31, 1:28 am, Navigateur wrote: > When I came into GWT I

Re: eclipse: using external jar library -> "No source code is available for type ; did you forget to inherit a required module?"

2010-06-02 Thread Piyush Garg
*"No source code is available for type mylib.Method; did you forget to inherit a required module?" *means gwt compilation not able to locate the source code for mylib.Method you need to have source code in your jar plus an xml file in package which you are accessing and inherit line in you gwt

Could launch dev mode

2010-06-02 Thread ShadyK
hey guys, i am totally new to gwt and i read the docs many times. i am setting up eclipse ..i followed the previous steps successfully ...but when i reached debugging im not able to launch the local web server and GWT development mode server. knowing that i am having "Development Mode" tab open

How to use CallBack-Methode in JS

2010-06-02 Thread Go2one
Hi @all, I have a JavaScript-Methode called >> void addSelectionListener( w) << where 'w' is an object which implements a 'onSelectionChanged' method. I'm using a native JSON-Methode to consutruct my JS-Object and I'll call addSelectionListener(...), but what should I submit as a parameter if I

SerializerBase.check(String,int) throws useless exception?

2010-06-02 Thread svincent
Greetings, I'm having a frustrating time debugging a bunch of code I'm trying to port to GWT. There are various subtle serialization issues (not surprising, since GWT has its special rules). The real problem I'm running in to is that the exception I keep getting is this: com.google.gwt.user.cli

Dialog box in GWT

2010-06-02 Thread anto
Could any one help me out in this following isssue. 1.Can a dialog box inturn call another dialogbox on a button click. i tried it out but the second dialog is coming under the parent dialog box. regards, GWT developer -- You received this message because you are subscribed to the Google Gro

How to change the CSS Caption part of gwt-DialobBox

2010-06-02 Thread koolootoomba
Hello How can I override the css class '.gwt-DialobBox .Caption' to use 'cursor: move' instead of 'cursor: default'? I want to do this to make it more obvious to the user that they can drag the DialogBox. To do this, I want to change the appearance of the cursor. Notice that one must grab the ca

Re: Changing CSS on the fly

2010-06-02 Thread Paul Smith
It is possible in straight javascript, but I don't think there's anything in GWT to help out. See http://developer.apple.com/internet/webcontent/styles.html for an example. I used it a few years back for something really similar - changing the style of a bunch of elements by modifying a css rule.

Analogous of ListCellRenderer

2010-06-02 Thread Flando
Hello everybody. I look for the analogous of ListCellRenderer(Java) for GWT. What I need is the following (example): I have: - the class Person: public class Person{ private String name; private String surname; } - ArrayList - 2 ListBox I want to add all the item of the arraylist in t

Re: Menubar - retrieving the selected menu item within the Command object?

2010-06-02 Thread anto
Hi Koz, is it possible to invoke a child dialog box from parent dialog box. i tried it but i am getting the child dialog below parent dialog. is there any way to bring the child dialog on top of parent dialog. regards, Anto -- You received this message because you are subscribed to the Goog

Problem with Tree open/close since GWT 2.0.1

2010-06-02 Thread Dmitry Malinin
I have selected TreeItem, next I scroll Tree up to selected item out of view. When I open or close another(not selected) item Tree is scrolling back to make selected item visible. In GWT 2.0.0 this working properly. -- You received this message because you are subscribed to the Google Groups "Go

Re: Status of Joda/Goda time, future of Date handling

2010-06-02 Thread Scott Fines
Hey, guys I'm the main contributor(for what it's worth) of gwt-time, and it's nice to know that it works for you guys. I've had to put it off the burner for a while, but I'm starting to pick it back up again. However, there are a few issues with it that we still need to address, most notably the

Re: Status of Joda/Goda time, future of Date handling

2010-06-02 Thread Scott Fines
That's not particularly suprising to me. One of the reasons that gwt- time is still listed as being in alpha status is that there is a possibility of needed further API changes to deal with issues like that. Unfortunately, I have been distracted for the past little while and am only just now able t

How to read web.xml parameters from GWT

2010-06-02 Thread MickeyMiner
Hi, How do I read parameters stored in /WEB-INF/web.xml from my GreetingServiceImpl class? After I insert following snipplet int web.xml: dbHost 192.168.120.120 dbName my_database Is anything like this possible: public class GreetingServiceImpl extends RemoteServiceServlet impl

Getting a 503 Error.

2010-06-02 Thread ike
Hey... I am using the plugin for Eclipse. There are no errors in my code according to Eclipse, but when I run the code, it gives me a screen like this: HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/In2Solar.html Powered by jetty:// Is there someplace I could look to find out what is happen

Re: Download Popup Panel in PDF format

2010-06-02 Thread Manuel Carrasco Moñino
If you mean convert the content of the screen to PDF, basically you can not, but perhaps you can use this workaround 1.- Convert the content of the document to text: String content = Document.getBody.toString(); 2.- Send the content to the server 3.- Convert Html to Pdf in the server 4.- Return th

Re: Calling JSNI function or Java function to handle onClick event

2010-06-02 Thread Manuel Carrasco Moñino
Although GWT obfuscates the produced javascript code renaming methods, classes, etc, it is possible to use a GWT method from javascript if you export it storing a reference in the window object: private native void exportMyMethod() /*-{ $wnd.showAlert = function(name) { return @c

Re: Calling JSNI function or Java function to handle onClick event

2010-06-02 Thread kozura
Java functions are translated into obfuscated (ie renamed) javascript, so will not be available to call from an element. You can create a javascript function, perhaps attached to wnd, which could then call a java function. On Jun 2, 1:46 pm, DK wrote: > I have an anchor element with an onClick="

Download Popup Panel in PDF format

2010-06-02 Thread Anky
Hi All, Is there any way to download a GWT widget in PDF format? Thanks, Anky -- 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

Re: File download from a GWT Service: "java.lang.RuntimeException: Unable to report failure"

2010-06-02 Thread Sripathi Krishnan
> > public class MyServiceImpl extends RemoteServiceServlet implements > MyService The above line is wrong. It should NOT extend RemoteServiceServlet. Just extend the regular HttpServlet and it should work. --Sri On 3 June 2010 00:59, J-Pro wrote: > Hello, dear GWT gurus! > > I'm trying to s

Calling JSNI function or Java function to handle onClick event

2010-06-02 Thread DK
I have an anchor element with an onClick="showAlert();" in my java file, I have a JSNI function public static native void showAlert() /*-{ alert('Hello'); }-*/; I never see this alert. In fact, when I look at the browser console, I see that showAlert could not be found. What

Re: Getting the default DateBox() picker to advance year at a time

2010-06-02 Thread Danny Goovaerts
It's not necessary to write a custom DatePicker. It suffices to create a DatePicker with a custom MonthSelector. Here is my implementation // package eu.oobikwe.gwt.ui; import com.google.gwt.user.datepicker.client.CalendarModel; import com.google.gwt.user.datepicker.client.DatePicker; import com.g

Re: ClickHandler not called on second click

2010-06-02 Thread Danny Goovaerts
I managed to isolate the code in a few classes which reproduce the problem. Can I upload a zipfile (15k) somewhere? On Jun 2, 5:27 pm, Olivier Monaco wrote: > Danny, > > What your click handler does? May be it puts some (transparent) > element in front of the button... How do you use the PushBut

File download from a GWT Service: "java.lang.RuntimeException: Unable to report failure"

2010-06-02 Thread J-Pro
Hello, dear GWT gurus! I'm trying to send a String to the client as a file after user presses a button. After searching I've found and doing it this way: http://codepad.org/kbZ8Cp2V But when I run it in GWT DEV mode, I'm getting this exception: "java.lang.RuntimeException: Unable to report failur

Re: Chunking File Upload

2010-06-02 Thread kozura
Sorry, GWT doesn't provide any particular magic over javascript, which due to its architecture to avoid security risks cannot access client files except by sending them to the server with the user's consent. You could run a separate server to process these, try a flash solution, or presumably upgra

Re: Feedback on "Large scale app development MVP article"

2010-06-02 Thread Tristan
I don't like having two presenters either. I'm not quite sure that's what's required. My presenters have an adapter parameter, so one presenter can be coupled with different views depending on what adapter is selected. Then, depending if it's a listAdapter, editAdapter, displayAdapter, the same DTO

Re: inserting space between form elements

2010-06-02 Thread Stefan Bachert
Hi Magnus, on the long run two things will happen 1) you will switch to an absolute layout, may be with some kind of layout manager 2) you need to learn more about css. on the short run put a non breaking space in your label ("&nbs;" or char #160) Stefan Bachert http://gwtworld.de On 1 Jun.,

Re: Feedback on "Large scale app development MVP article"

2010-06-02 Thread nogridbag
Mainly because of habit - I always try to avoid mixing UI related code with client/server code. IMHO, it seems similar to doing RPC calls in a controller or view in MVC which I think is a big no-no. Sticking with the article example, let's say you have two places where you want to display contact

Re: Getting the default DateBox() picker to advance year at a time

2010-06-02 Thread Jim Douglas
No, it's not possible, short of writing a custom DatePicker. You might want to vote for this open issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3520 On Jun 2, 9:24 am, Rob Tanner wrote: > Hi, > > I'm using a DateBox() widget for users to enter their date of birth. > When t

Re: GWT-RPC vs HTTP Call - which is better??

2010-06-02 Thread Stefan Bachert
Hi, in general use GWT-RPC (as Sri wrote). However, the only case I would you classical HTTP is, when you need to download image data which are business datas (and not static images which should be located in a ClientBundle). Stefan Bachert http://gwtworld.de On 2 Jun., 06:58, Nirmal wrote:

Re: eclipse 3.5.2 and gwt

2010-06-02 Thread seven.reeds
I still have no idea what the issue was but I had to un-install eclipse and delete the ".eclipse" dir in my home directory then reinstall Eclipse and re-add the GWT plug-in for it to show up. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Re: How to center a VerticalPanel on page with UiBinder

2010-06-02 Thread mmoossen
hi Mark! you should take a look at this in first place: http://blog.themeforest.net/tutorials/vertical-centering-with-css/ HTH Michael On May 30, 3:51 pm, Tristan wrote: > have you tried... > > >   >     >       ... >     >   > > > On May 28, 8:38 am, BryanPoit wrote: > > > > >        

Re: Changing CSS on the fly

2010-06-02 Thread mmoossen
hi fmod! it is possible, but not out of the box nor easy to implement nor good practice. just use a composite rule with some parent like the body element, ie. .longItems .myRule { width: 500px; } and do: RootPanel.getBodyElement().setClassName("longItems"); of course, using a css resource bundl

Chunking File Upload

2010-06-02 Thread Ken
I'm looking at a problem that I think I might be able to solve using GWT. We're considering using GWT for the client of our application for other reasons, but I think it might also solve this issue. We're developing a Google App Engine application that processes data uploaded to it. As you may k

Re: Testing client code fails with "JDOFatalUserException: Duplicate PMF name"

2010-06-02 Thread ingo
hello everyone, does anyone know the root cause of this problem? i thought the reason might be duplicate jdoconfig.xml file. however, it turns out that deleting this file from the src/META-INF/ directory is not a good idea since it creates even more exceptions: [WARN] StandardWrapperValve[shell]:

Re: login/logout/remember

2010-06-02 Thread Bruno Lopes
Hi Alpine Bluster, look at this code: public void onModuleLoad() { this.setLoginPanel(); loginButton = new Button("Login"); loginButton.addListener(new ButtonListenerAdapter() { public void onClick(Button button, EventObject e) { userAuthentication(); } }); formPanel.addButton(loginButton

Re: Feedback on "Large scale app development MVP article"

2010-06-02 Thread Tristan
@nogridbag What are your reasons for not having the presenter make RPC requests? The RPC Service is not a presenter itself. Probably the MVP model should be called MVPSE (services, event bus) because that's what it takes to make it really work. On Jun 1, 4:04 pm, jocke eriksson wrote: > I will a

Re: GWT Design Problem

2010-06-02 Thread Tristan
check this out to give you some ideas about the history service.. http://code.google.com/p/handlebars/wiki/PlaceServiceOverview On Jun 2, 8:08 am, ping2ravi wrote: > Ya this approach looks good, thanks kozura. > Now my app will look like this. > > myapp.html#type=profile&id=100               cal

Re: suggest box hides whole page in IE

2010-06-02 Thread suresh
Thanks for the link Holger. Our application has lot of Menus and a suggestion box. Seems there is no work around for this. On Jun 2, 4:45 am, hriess wrote: > I think there are some issues concerning this problem, e.g. look at > issue 4532. > I've still the same problem. A discussion you can find

Re: Date Serialization in RPC

2010-06-02 Thread leslie
That was it. Recompiling the servlet jar file with the updated Date Custom Serializer class worked. Thanks very much. On Jun 2, 11:11 am, Paul Robinson wrote: > I misled you slightlythe date/date/timestamp custom field > serializers are also in gwt-servlet.jar > > Paul > -- You received th

Re: Date Serialization in RPC

2010-06-02 Thread leslie
I'm converting an existing java desktop application to the web by using GWT. The model classes are already written and they contain a number of Dates. The Person example was a trivial representation of a larger model. What you're suggesting is more complicated than you realize. On Jun 2, 11:44 

login/logout/remember

2010-06-02 Thread Magnus
Hi, I cannot find a minimalistic example that shows how to realize a login/ logout functionality. Could please someone point me to such an example? I also wonder where to put the different things. For example, the code that immediately reacts on the "login" button could be placed within the "clie

Getting the default DateBox() picker to advance year at a time

2010-06-02 Thread Rob Tanner
Hi, I'm using a DateBox() widget for users to enter their date of birth. When the picker is displayed, on either side of the month/year displayed in the center top of the picker are the greater than and less than arrows for moving forward or backward, month at a time. I have not figured out anywa

Re: mathsinh is not function

2010-06-02 Thread jamesmikedup...@googlemail.com
Hi all, I don't want to sound stupid, but I am not a mathematical genius. What i do know that is it taking a projected point (on the screen in Spherical Mercartor) to find out the lat long, public LatLon eastNorth2latlon(EastNorth p) { return new LatLon( Math.atan(Math.sin

Re: Date Serialization in RPC

2010-06-02 Thread kozura
Or, if all you really want is the actual date entered by the user and don't care about the time, you can simply send mm dd, either as a separate object or parameters to an RPC, and avoid custom serializers, interpreting Universal Date against timezones, or recompiling GWT. Why make sh*t compli

NullPointerException when adding suggestions to a MultiWordSuggestOracle

2010-06-02 Thread Rafael
Hello! I am quite baffled by the NullPointerException i get when i add suggestions to a MultiWordSuggestOracle in order to create a suggestion box later. MultiWordSuggestOracle oracle = new MultiWordSuggestOracle(); List suggestions = new ArrayList(); for(int i = 0; i < getWidgetData().length; i

  1   2   >