Re: Compile and Run gwt web application from Command Line

2010-06-18 Thread fmod
On Jun 18, 7:46 pm, André Moraes wrote: > History.getToken() isn't deprecated?! This is the javadoc for History.getToken() in 2.1: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/History.html#getToken() Gets the current history token. The handler will not recei

Re: Add Click Listener to an Element

2010-06-18 Thread fmod
Assuming the element is or HTML html = HTML.wrap(DOM.getElementById("GWTIDSOFELEMENT")); html.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { System.out.println("CLICK"); } }); On Jun 17, 9:35 pm, Umesh Gohil wrote:

Re: Compile and Run gwt web application from Command Line

2010-06-18 Thread fmod
Hi, from the command line: start http://somesite.com/MyPage.html If you want to pass some parameters, you can use the address. start http://somesite.com/MyPage.html?param1=blah¶m2=boo Somewhere in the onLoadModule() you will need to check History.getToken() and parse it. Regards Fran On Jun 18,

GWT.create(...) precedence

2010-06-17 Thread fmod
I have some questions related to GWT.create(...); 1. In case there are some generators that can generate a binding which one is used? I made some experimets myself to try to understand the precedence, and so far I think is kind of the last generator defined in the gwt.xml file the one that ent

Re: Acentos en gwt

2010-06-17 Thread fmod
Supongo que el problema viene que estarás guardando los documento en un charset distinto al especificado en la página html. Puedes probar ese encoding a lo que estes usando, o si estas usando eclipse prueba de ir a preferencias / general / workspace y cambiar el encoding a UTF-8. On Jun 15, 5:41

Re: Web server magic?

2010-06-17 Thread fmod
Yes, GWT comes with an embedded server, for testing your apps. If you open the Run Configurations dialog from eclipse it will uncover part of this magic. About that error, what are you trying to do? Maybe reloading the web services (there is a refresh button in the dev mode view), or re-run the app

Re: Sessions and GWT

2010-06-17 Thread fmod
er.com/sjivan/entry/ajax_based_login_using_aceci > > > >http://java.dzone.com/articles/integrating-gwt-spring > > > > > I advise you to use a classic HTML form for login, not a GWT based > > > > login dialog. > > > > > On Jun 17, 7:19 am, fmod

Sessions and GWT

2010-06-16 Thread fmod
Hi, I need to re-implement the classic login page. And I'm a bit lost with all the alternatives. The communication with the server is with RPC. Until now the flow I was using was: - User enters login and pass [client sends them in plain text to the server] - Server validates and generate a session

Re: History and server call.

2010-06-15 Thread fmod
Using the event bus may help there. http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html and the two articles http://code.google.com/webtoolkit/articles/mvp-architecture.html On Jun 15, 9:14 am, ping2ravi wrote: > Hi Guys, > I have just implemented a multipage(basic

Re: exchange image by browser

2010-06-15 Thread fmod
I did not try myself, but I think you need conditional css. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Conditional_CSS On Jun 15, 11:27 am, Stefan Bachert wrote: > Hi, > > I would like to use ClientBundle and ImageResource. > But I would like to supply different images

Re: AOP Framework

2010-06-15 Thread fmod
I did not thought on having a feature like that. Can be great if you can provide some case study for it. IMHO doing something similar to gin, should not be that difficult. At least when it comes to provide a "factory" for the intercepted classes. What it struggles me a bit more, is how the method

AOP Framework

2010-06-13 Thread fmod
After reading a few posts about AOP and GWT. I decided to give a try and implement my own AOP framework. http://code.google.com/p/gwt-tiny-aop Is still in his early days. But I think is functional enough (Interception of classes is 90% functional, missing interception of interfaces). The code lo

Re: GWT Service Injection

2010-06-08 Thread fmod
The idea is that you need to teach Tomcat how to instantiate your Servlets. You need: guice-2.0.jar, guice-servlet-2.0.jar, aopalliance.jar. In war/WEB-INF/web.xml: http://java.sun.com/dtd/web-app_2_3.dtd";> guiceFilter com.google.inject.servlet.Guic

Re: Get today's date, and the first day of this week's date?

2010-06-08 Thread fmod
> Hey guys, I just found out that the Java Calendar class isn't > compatible with GWT (Assumed it was since Date was). I'm a Java newb > and spent a few hours figuring out how to do what I wanted to do with > the Calendar class, and I'm clueless how to do this with GWT, so any > help would be appre

Re: Can deferred binding do this?

2010-06-08 Thread fmod
Check this project. Is on my list of things to try someday. http://code.google.com/p/gwt-ent/wiki/AOP On Jun 8, 8:16 pm, Kevin Qiu wrote: > I'm thinking about using annotation to mark a method that has certain > aspects, and then be processed by the deferred binding, adding necessary > pieces a

Hook before History changes

2010-06-08 Thread fmod
Hi, I think that question has been posted before but don't find any answer for it. I want to have a behavior like this forum, Whenever the user press back or forward buttons being able to alert the user that he is going to loose the changes. The problem come while navigating inside my page. If I h

Re: Unable to access dir on network from GWt app

2010-06-08 Thread fmod
It may help to try to deploy in a fresh install of Tomcat (downloaded from apache, the bin distribution) executed with root. Most Tomcat distributions (specially the one from Debian) are configured for production mode. It may be really secure, but it's a nightmare for programmers. Once you have i

Re: layout problems with positioning or aligning content

2010-06-07 Thread fmod
I mainly using GWT 2.0 with UiBinder. Here is how I center a widget inside a LayoutPanel. Hope it helps you. On Jun 6, 4:33 pm, Magnus wrote: > The link:http://h1403230.stratoserver.net/apache2-default/tmp/gwt-layout.png -- You received this message becaus

Re: building a gui with different panels - nothing works...

2010-06-05 Thread fmod
t will take all the space of the container. So you need to restrict it and center it using CSS. { float: left; align: center } Regards /Fran > > Thanks > Magnus > > On Jun 5, 8:22 pm, fmod wrote: > > > > > If you want to have nested Layout Panels, they need to be

Re: building a gui with different panels - nothing works...

2010-06-05 Thread fmod
If you want to have nested Layout Panels, they need to be inside the "Layout" family. Otherwise they will not render well. So instead of using a SimplePanel, if u expect to attach another Layout use LayoutPanel. Note the LayoutPanel middle... public class TestLayout implements EntryPoint {

Re: An example Place Service(Activity Manager) implementation maintains complex dependency between presenters in MVP

2010-06-05 Thread fmod
Hi, I find your post quite interesting. I'm being stuck with similar questions for a while. Is amazing how an app can become a big mess in no time. There are a few questions / thoughts I've about your design. > In my opinion, a presenter should NOT attach the corresponding view to > DOM or a cont

Re: Prevent Selection of Image

2010-06-04 Thread fmod
Hi Use the selection with the mouse? Selection of an image means its getting > a blue background and being draggable to other windows. > Can you think of an HTML or GWT solution? > > I read that one option was to add an mouseMove event handler and let > it "return false;". This was a pure JavaScr

Re: Root Panel

2010-06-04 Thread fmod
You should not use RootPanel in the UiBinder. You need to use any of the types extending SimplePanel or LayoutPanel. RootPanel and his equivalent RootLayoutPanel represents the in the HTML page. At some point in the onModuleLoad() you need to have RootPanel.get().add(new MyWidget()); Take a look

Re: new GWT MVP article (part 2)

2010-06-04 Thread fmod
I'm trying to figure out how to make this parallel composite views / presenter hierarchies. And in my opinion it just break the MVP pattern. One of the goals you pursuit with MVP is to decouple the View object from the logic it contains (the presenter). Making the Presenter unaware of how the view

Re: wonder wheel in GWT ?

2010-06-02 Thread fmod
Seems google is using flash to generate it. Unless you want to experiment with Canvas in HTML5 is going to be hard to simulate the same behavior in javascript. You can try to play with divs, background image and absolute positions to place the labels. But no idea how to make the nice animations. M

Changing CSS on the fly

2010-05-30 Thread fmod
Hi, is there a way to change a CSS Property inside a Rule definition on the fly. I have defined a rule .myRule { height: 22px; width: 100px; overflow: hidden } I have hundreds of DIV elements with that rule. I will like to change the width property directly on the rule. Without iterating a