Re: User management in GWT

2010-07-02 Thread Nicolas ANTONIAZZI
What is the problem with Shiro ? I am using it for security management with my application and we did not have encountered any problem with its integration. It was only few lines of code : public void login(String username, String password) { Subject currentUser = SecurityUtils.getSubject();

Re: Compiled scripts VS development

2010-07-13 Thread Nicolas ANTONIAZZI
Yes, they run faster when compiled since there is no need for eclipse to be connected to the browser plugin and to handle all events (for communication with eclipse) 2010/7/13 guandalino guandal...@gmail.com Hello, am I wrong thinking that scripts run faster once that are compiled and deployed

Re: How do you use @sprite's and ui:image in UiBinder ui.xml templates?

2010-08-06 Thread Nicolas ANTONIAZZI
Hi, The right syntax is : *ui:image field=activeImage src=active.png/* * **ui:image field=deactiveImage src=active.png/* Then, simply use : *...@sprite .active {* *gwt-image: 'activeImage';* * }* * @sprite .deactive {

Re: How do you use @sprite's and ui:image in UiBinder ui.xml templates?

2010-08-06 Thread Nicolas ANTONIAZZI
Width/Height will be automatically written in your css class, you do not need to do any reference on it. 2010/8/6 Nicolas ANTONIAZZI nicolas.antonia...@gmail.com Hi, The right syntax is : *ui:image field=activeImage src=active.png/* * **ui:image field=deactiveImage src=active.png

Re: How do you use @sprite's and ui:image in UiBinder ui.xml templates?

2010-08-08 Thread Nicolas ANTONIAZZI
if it is what I want) :) On Fri, Aug 6, 2010 at 5:55 PM, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com wrote: Width/Height will be automatically written in your css class, you do not need to do any reference on it. 2010/8/6 Nicolas ANTONIAZZI nicolas.antonia...@gmail.com Hi, The right

Re: uibinder and css

2010-08-09 Thread Nicolas ANTONIAZZI
You can use the external keyword to say gwt that the class should not be obfuscated. ui:style @external myClass; .myClass { /* Adds extra css here */ } /ui:style 2010/8/9 Thomas Van Driessche thomas.van.driessch...@gmail.com Hi, I could use this: ui:style field='otherStyle'

Re: uibinder and css

2010-08-09 Thread Nicolas ANTONIAZZI
: Fix bij adding .action{} It seems like he doesn't find it in the css linked in the html page? kind regards On Aug 9, 12:22 pm, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com wrote: You can use the external keyword to say gwt that the class should not be obfuscated. ui:style

Re: Gwt-platform vs Guit

2010-09-13 Thread Nicolas ANTONIAZZI
Hello all, just about your sentence Chistian : That's why, I'm giving a little more work to my views that apply to simple local task that isn't relevant to the presenter, thus simplifying my code and making it more easy to understand and more easy to read. Yes I have to test it, but I have

GPE not refreshing xxxx.gwt.rpc in dev mode on linux / tomcat

2010-09-21 Thread Nicolas ANTONIAZZI
idea. Maybe someone has already met this problem and found a solution ? Thanks, Nicolas ANTONIAZZI -- 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

CSS Opacity on IE8

2010-09-27 Thread Nicolas ANTONIAZZI
Hello, I think that there is a problem with the Dom Implementation of opacity in IE8. getElement().getStyle.setOpacity(value); The standard way of setting a css opacity is opacity : value with IE6 or 7, it is : filter : alpha(opacity=value); with IE8, it is the same. but there is only a

Re: Browser specific styles with UIBinder

2010-02-02 Thread Nicolas ANTONIAZZI
Did you try with conditional css preprocessor ? In my opinion, this is the best way to inserts some css code specific to a platform. This is done at compilation time, so CSS generated for IE is not same as the Firefox one. Only css specific to the target platform will be transfered :

GWT 2.1 and Place with token

2010-10-27 Thread Nicolas ANTONIAZZI
Hello, I converted all my project to GWT 2.1 Activity/Place following the concept described on http://code.google.com/intl/fr/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html But, doing this work, I came to a question : Why do we have to set a name in the place constructor ? A place

Re: GWT 2.1 and Place with token

2010-10-27 Thread Nicolas ANTONIAZZI
. Sebastian On Wed, Oct 27, 2010 at 9:36 AM, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com wrote: Hello, I converted all my project to GWT 2.1 Activity/Place following the concept described on http://code.google.com/intl/fr/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html But, doing

Re: Nested Views in MVP

2010-11-03 Thread Nicolas ANTONIAZZI
Hello, I migrated all my code to GWT 2.1. I was a bit surprised to not find any NestedPresenter helper. I created my own with an interface called NestedPresenter that provides a start(HasWidgets.ForIsWidget container); method. I prefered doing it this way instead of using multiple

Re: Nested Views in MVP

2010-11-03 Thread Nicolas ANTONIAZZI
different between Activity and Presenter (excepts name). Thanks Tomas. Nicolas. 2010/11/3 Thomas Broyer t.bro...@gmail.com On 3 nov, 11:16, Nicolas ANTONIAZZI nicolas.antonia...@gmail.com wrote: Would not be easier to create a Presenter interface that provides a start() method, that would

Re: Nested Views in MVP

2010-11-03 Thread Nicolas Antoniazzi
Thanks for your comments. Do you mind sharing with us what would go in the Presenter interface to allow you to fully use MVP? We're very much open to ideas from the community as to how to make it work better. Well, in my opinion, it would be clearer to create 2 new interfaces : 1) a

why EventBus in start method of Activity in 2.1

2010-11-04 Thread Nicolas Antoniazzi
Hello, This is just a quick question to gwt developpers to know what is the reason to pass the EventBus to the start() method of Activity ? Is there something special about this instance ? Because if we use a ClientFactory, like described in the MVP doc on the website, (or we inject with Gin),

Re: why EventBus in start method of Activity in 2.1

2010-11-04 Thread Nicolas Antoniazzi
Oh yes, that's nice. It's great to wrap the original event bus so we can still use it to send fireEvent() and use the instance from start() to add new handler. Very cool. Thanks Thomas. 2010/11/4 Thomas Broyer t.bro...@gmail.com On 4 nov, 09:46, Nicolas Antoniazzi nicolas.antonia

Re: Nested Views in MVP

2010-11-04 Thread Nicolas Antoniazzi
Very interresting Thomas. It is similar in some ways to the gwt-presenter project. Just a question. You says that views are singleton. I understand the reason (efficiency). But does not it leads to UI state problems ? By instance, if you call a method on your view that adds a new css class to an

Gwt 2.1 Activities + Code splitting + Gin

2010-11-05 Thread Nicolas Antoniazzi
Hello, I am trying to use CodeSplitting with Activites on 2.1. I read this very interresting thread http://code.google.com/p/google-web-toolkit/issues/detail?id=5129 and T.Broyer says that the best approach is to use an AsyncProxy for Activities. It makes sense but I have problem with it since

Re: Gwt 2.1 Activities + Code splitting + Gin

2010-11-06 Thread Nicolas Antoniazzi
? Is the AsyncProvider even usable right now if we compile from source? On Nov 6, 9:27 am, Thomas Broyer t.bro...@gmail.com wrote: On 6 nov, 01:24, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hello, I am trying to use CodeSplitting with Activites on 2.1. I read this very interresting

Re: Gwt 2.1 Activities + Code splitting + Gin

2010-11-07 Thread Nicolas Antoniazzi
together behind the same split point. ProviderBundle makes that really easy to do. ProviderBundle is totally usable without the rest of GWTP. (Although I'd love to hear your reason for not using it. ;)) Cheers, Philippe On Nov 6, 4:40 pm, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote

Re: Gwt 2.1 Activities + Code splitting + Gin

2010-11-08 Thread Nicolas Antoniazzi
Hi Phillipe, Also, I think it's a bit unfair to call GWTP's code generation magic when GWT relies on it for so many different things... But if you really want to write proxys yourself, GWTP's allows it. Yes, I agree that I was a bit unfair with GWTP. In my opinion, it would be a geater tool

Re: Entire Site in GWT?

2010-11-08 Thread Nicolas Antoniazzi
In my opinion, a full website can be built with GWT (uiBinder is a great helper for this). This is the way that we chose in our company. it is really fantastic to code with gwt and it allows to use so many optimizations for the client side (client bundle, conditional css, ...). Every pages of the

Re: Gwt 2.1 Activities + Code splitting + Gin

2010-11-08 Thread Nicolas Antoniazzi
Phillipe :) Cheers, Nicolas Cheers, Philippe On Nov 8, 1:35 am, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi Phillipe, Also, I think it's a bit unfair to call GWTP's code generation magic when GWT relies on it for so many different things... But if you really

Re: design pattern for common functionality between Activities

2010-11-08 Thread Nicolas Antoniazzi
I can give you what I did in my application. Maybe that you will prefer this method : * When the application loads, the server store a login/logout status of the user in a json format (just for optimization like this : http://code.google.com/intl/fr/webtoolkit/articles/dynamic_host_page.html. You

Re: Entire Site in GWT?

2010-11-09 Thread Nicolas Antoniazzi
For our project we use Tomcat / Postgresql on server side. It works great. The hardest part is to be able to configure maven (if you use it) with gwt + wtp (eclipse tomcat plugin). But with the latest version of all the eclipse plugins, it should work fine. Nicolas. 2010/11/9 mike.cann

Re: MVP : VP to VP and Nested View communication

2010-11-11 Thread Nicolas Antoniazzi
Hi, We implemented nested VP in our app. The inner presenter has an interface that the outer can talk to. Only presenter talk each other, never views. Views are just the responsability of the associated presenter. 2010/11/11 zixzigma zixzi...@gmail.com Hello Everyone, Problem: a View and

Re: Calling RPC

2010-11-15 Thread Nicolas Antoniazzi
No it is not possible since RPC call are simple XmlHttpRequests and Security implementation in browser does not allow cross server call. But, you can forward your RPC requests from the Serve1r to your Server2 Client1 -- Server1 -- Server2. 2010/11/15 Raju rajus...@gmail.com Hi, I am new to

simplify i18n usage

2010-11-17 Thread Nicolas Antoniazzi
Hello, I am trying to use the internationalization feature of GWT. When I have read the doc, it was great, but now that I am in the code, it is a bit harder. I was afraid by the i18n management of uiBinder but thanks to mergelocales from gwtp, it is now really simple. All translations are store

Re: design pattern for common functionality between Activities

2010-11-18 Thread Nicolas Antoniazzi
Hello Koen, I never used Requestfactory so I do not know if it is similar to RPC. In my case, all my RPC Services can send a ServiceRemoteException (declared in Services interfaces). (ServiceRemoteException is a custom exception that I extended for my needs) @RemoteServiceRelativePath(GWT.rpc)

Re: Eclipse Plugin open source

2010-11-19 Thread Nicolas Antoniazzi
On my side I would like to extend it to simplify the generation of some code like Activity / View / Place (juste creates stub). Like what is already done for uiBinder / ClientBundle, ... I am very interested to know this date too. Thanks Nicolas. 2010/11/19 jbroquefere

Re: How to highlight word under mouse in TextArea?

2010-11-21 Thread Nicolas Antoniazzi
I do not know the low level functions for doing this, but it is possible. We use a tool called CodeMirror on our project. It is a rich text area with code parser and syntax highlight. There are methods it the api to select portion of text. http://codemirror.net/ http://codemirror.net/

Re: GWT 2.2 on linux: Designer not wokring

2011-02-24 Thread Nicolas Antoniazzi
Hi, I am running Ubunbtu 10.04 with eclipse 3.6 and GWT 2.2. the GWT Designer is working on my machine. I had few problem because my view uses the @UiTemplate to reference the associated xml, instead of letting the system default (name of the inner interface in Composite). But except this, it's

Re: Spring GWT Integration

2011-02-25 Thread Nicolas Antoniazzi
Just because gin/guice is better than spring ;) 2011/2/24 lascarayf lascar...@gmail.com Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION DOCUMENT?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: TextBox KeyPressEvent doesn't function in Firefox 4

2011-04-08 Thread Nicolas Antoniazzi
As a workaround, you can use event.getNativeEvent().getKeyCode() == KeyCodes.KEY_ENTER 2011/4/8 Gabriel volpegabr...@gmail.com Eg. txtPwd.addKeyPressHandler(new KeyPressHandler() { @Override public void onKeyPress(KeyPressEvent event) {

Do you think to release handlers ?

2011-04-30 Thread Nicolas Antoniazzi
I just realized that I never called removeHandler() on some of handler that I was using. HandlerRegistration h = Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { height = event.getHeight(); width = event.getHeight(); } }); In the case of a

High-performance GWT: best practices for writing smaller, faster apps

2011-05-13 Thread Nicolas Antoniazzi
Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I have gone to youtube, on the google developer chanel http://www.youtube.com/user/GoogleDevelopers but I cannot see the video about this presentation. Is someone from google reading this message can tell us

Re: High-performance GWT: best practices for writing smaller, faster apps

2011-05-13 Thread Nicolas Antoniazzi
...@gmail.com Here's the link : http://www.youtube.com/wat http://www.youtube.com/watch?v=imiquTOLl64 ch?v=imiquTOLl64 http://www.youtube.com/watch?v=imiquTOLl64 Cheers, On Fri, May 13, 2011 at 9:42 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi, in the Google I/O, David

Re: High-performance GWT: best practices for writing smaller, faster apps

2011-05-14 Thread Nicolas Antoniazzi
Thanks, Great pres ! 2011/5/14 Daniel paradoxpi...@gmail.com Here you go: http://www.youtube.com/watch?v=0F5zc1UAt2Y On May 13, 4:42 pm, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: Hi, in the Google I/O, David Chandler did a presentation about best practices with GWT. I

Re: UiBinder can't handle CSS to make image transpency rule:filter:alpha(opacity=40)

2011-05-14 Thread Nicolas Antoniazzi
Maybe use : filter: literal(alpha(opacity=40)); I did not try. 2011/5/14 Alex Luya alexander.l...@gmail.com It seems like UiBinder's CSS mechnism can't this CSS rule: filter:alpha(opacity=40)

Is there a way to not compile the default locale ?

2011-05-17 Thread Nicolas Antoniazzi
Hello, I'm using i18n with uiBinder. In my gwt config file, I declared 2 locales : !-- French language, independent of country -- extend-property name=locale values=fr/ !-- English language, independent of country -- extend-property name=locale values=en/ Then I assigned the default

Re: Competitor for world's most useless JavaDoc comment

2011-05-17 Thread Nicolas Antoniazzi
Greg, If you think that the Javadoc is not correct, send a patch. If you think that the package is not usable, do not use it. If you think that gwt code is not good, do not use gwt... And write your clone with your best comments, But please do not flame like this. 2011/5/17 Alain Ekambi

Re: Re : Is there a way to not compile the default locale ?

2011-05-17 Thread Nicolas Antoniazzi
Thanks Thomas, it fixed it. 2011/5/17 Thomas Broyer t.bro...@gmail.com See http://code.google.com/p/google-web-toolkit/issues/detail?id=5769 You have to set-property name=locale value=en, fr / (with en, fr being the list of all known locales) -- You received this message because you are

Re: Presenters management

2011-05-27 Thread Nicolas Antoniazzi
Maybe that I did not really understand, but you cannot instantiate sub presenters directly from uiBinder. You have to instantiate it from the parent one, and the child presenter has to instantiate its own view. 2011/5/27 Issam boualem.is...@gmail.com Sorry but I'm not talking about replacing a

Re: Apache Shiro or Spring Security??

2011-06-22 Thread Nicolas Antoniazzi
Here, we use Shiro since it is really easy to integrate. Moreover, Shiro is not tight to Spring... And that's a good thing for us since we use Gin on client and Guice on Server (to not multiply API). 2011/6/22 Elhanan Maayan elh.mailg...@gmail.com we are exploring apache shiro with gwt

Datagrid with ScrollPanel

2011-08-16 Thread Nicolas Antoniazzi
I would like to implement a Custom Pager for datagrid wich has quite the same behaviour as PageSizePager (show more button), but triggered by the scrollbar (show more called every time that the scrollbar reach the bottom of the table). I would like to add a new ScrollHandler on DataGrid, but the

Re: Datagrid with ScrollPanel

2011-08-16 Thread Nicolas Antoniazzi
Thanks jeff ! I'm going to try this :) 2011/8/16 Jeff Larsen larse...@gmail.com HeaderPanel panel = (HeaderPanel) dataGrid.getWidget(); CustomScrollPanel scrollPanel = (CustomScrollPanel) panel.getContentWidget(); -- You received this message because you are subscribed to the Google Groups

Re: how to test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
If you use MVP, you might use some kind of factory for your objects, like the PlaceController. The best is to use dependency injection for this (with Gin). The PlaceController is Injected in the Activity (or in your custom factory). When it comes to testing, you can use a special factory (or

Re: how to test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
Yes, indeed, I did not realized this ! That's a good question :) ! 2011/8/17 tanteanni tantea...@hotmail.com thx i already use gin. but how to get a testable PlaceController - Placecontroller is a class not an interface? my only idea is to give null? -- You received this message because

Re: how to test presenter that is activity

2011-08-17 Thread Nicolas Antoniazzi
One solution could be to create an interface in your project around PlaceController and bind this interface on an inherited version of PlaceController. Then, inject the interface instead of the concrete implementation. But there is certainly an easyier way of doing it... 2011/8/17 Nicolas

Re: JQuery like animation

2011-08-21 Thread Nicolas Antoniazzi
We use gwt-fx in our project. It is only focused on FX and it does it well. http://code.google.com/p/gwt-fx/ 2011/8/21 Manuel Carrasco MoƱino man...@apache.org On Fri, Aug 19, 2011 at 12:42 PM, Tomasz Gawel tomaszga...@op.pl wrote: 1. But Animation class in gwt seems to be quite handy. All

Re: Use Uploaded Image as Panel Background

2011-08-22 Thread Nicolas Antoniazzi
As soon as your image is uploaded, you can have a link to it. something like http://my.site.com/images/uploaded_img.png Then, you only have to dynamically change the background of your element : myWidget.getElement().getStyle().setBackgroundImage( http://my.site.com/images/uploaded_img.png); The

Re: GWT vs Applet

2011-09-21 Thread Nicolas Antoniazzi
GWT is just javascript, so you cannot access hardware from javascript, except if you use HTML 5 features (like webgl to use video cards, websockets, ...) And, yes, you can interact with applet, the same way that you can do it with javascript. 2011/9/21 Manoj Behera manoj.behera@gmail.com

Re: Performance Tip for IE browsers : Java garbage collection is NOT Javascript garbage Collection

2011-09-26 Thread Nicolas Antoniazzi
Interresting. But in this case, is not it the same problem for all anonymous classes ? Do not you have this problem with event handler ? myButton.addClickHanler(new ClickHandler() { public void onClick(ClickEvent e) {...} } 2011/9/26 Rokesh Jankie rjan...@gmail.com Almost there... method

New GWT App for hackers

2011-10-10 Thread Nicolas Antoniazzi
Hello, We have just released our new GWT App to test coders. We built the full website with GWT/Gin + Guice/Shiro/MyBatis. If you like coding challenges, you can try the java demo on http://www.weecod.com/demo (Only for real hackers ;) ) Feedback welcome ! And many thanks to the community for

Re: New GWT App for hackers

2011-10-11 Thread Nicolas Antoniazzi
Thank you both for your comments ! Ungarida, you are right, we are going to work on a version that is more compatible with large screen. It was easier to start with fixed width version for our first release, but we are planning to improve the UI. Thanks for feedbacks ! That's funny to see

Re: Full page in GWT or just parts?

2011-10-11 Thread Nicolas Antoniazzi
You can build the full page with GWT but you have to keep in mind, that it will bring some problems too. The main problem will be Search Engine. You will have to rely on htmlunit to fix it (generates static version of webpages). The other problem, is that pages will be a bit slower to load (for

Re: Full page in GWT or just parts?

2011-10-12 Thread Nicolas Antoniazzi
The main problem will be Search Engine. You will have to rely on htmlunit to fix it (generates static version of webpages). The search engine result isn't important. What do you main by htmlUnit to fix it? HtmlUnit is a tool that embed a browser (firefox) and can execute javascript code

Re: ImageResource, Sprites and Data: URL

2011-10-17 Thread Nicolas Antoniazzi
If your resource is declared from an interface, you can use a @DoNotEmbed annotation above specific resources instead of disabling it for all your application. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/client/DataResource.java?r=10282

Re: multiple selection file-upload

2011-12-21 Thread Nicolas Antoniazzi
did you try gwt-upload ? 2011/12/21 Robert Fix rob3rt...@googlemail.com hi, i need a file-upload like it is used in Google+ and want to implement it in a gwt-project. In GWT i can only find a FileUpload with single selection. I hope you can help me because i don't want to use a javascript

Video from io 2012 : The History and Future of Google Web Toolkit

2012-07-06 Thread Nicolas Antoniazzi
Does anyone know if there is a video about the gwt session from io 2012: The History and Future of Google Web Toolkit by Ray Cromwell? I know that it was not live streamed, but I tought that we could get a delayed video. -- You received this message because you are subscribed to the Google