Re: Adjusting height of GWT Panels based on content dynamically

2012-08-08 Thread Alexandre Ardhuin
Hi, Have you look at com.google.gwt.user.client.ui.HeaderPanel ? Alexandre 2012/8/8 Santosh santosh.ku...@darkhorseboa.com We have many screens where different types of GWT panels are used. One common problem across many screens is that, content size is derived at runtime. So, if I define

Re: RequestBuilder passes SOP without notice.

2012-07-24 Thread Alexandre Ardhuin
Hi, The response of the first request contains the header access-control-allow-origin: *. This is known as Cross-Origin Resource Sharing ( see http://www.w3.org/TR/cors/ ) and allows to call other domain with XHR. Be careful, not all browser support this feature. Alexandre 2012/7/24 KutaBeach

Re: JAVA Generics with ValueProxy

2012-06-21 Thread Alexandre Ardhuin
getData(); } Alexandre 2012/6/21 tzhotmail mwakat...@gmail.com Thanks Alexandre , but that did not work as well On Tuesday, 19 June 2012 11:56:18 UTC-4, Alexandre Ardhuin wrote: The value attribute in @ProxyForName should be com.vo.GenericTreeNode instead of com.vo.GenericTreeNode**Account

Re: How to change name of Send button in SingleUploader

2012-06-21 Thread Alexandre Ardhuin
You can use SingleUploader#setI18Constants ( http://gwtupload.googlecode.com/svn/trunk/website/javadoc/all/gwtupload/client/SingleUploader.html#setI18Constants%28gwtupload.client.IUploader.UploaderConstants%29) Alexandre 2012/6/21 dev anshul2...@gmail.com I'm using SingleUploader in my

Re: JAVA Generics with ValueProxy

2012-06-19 Thread Alexandre Ardhuin
The value attribute in @ProxyForName should be com.vo.GenericTreeNode instead of com.vo.GenericTreeNodeAccount Alexandre 2012/6/19 tzhotmail mwakat...@gmail.com Please help on GWT JAVA Generics with ValueProxy I have the following Domain class public class GenericTreeNodeT implements

Re: 3-tier architecture /gwt

2012-06-01 Thread Alexandre Ardhuin
Hi Juan, Was you triing with the latest version ? Could you try to update gwt-maven-archetypes ( in gwt-maven-archetypes folder : git pull ) and reinstall the plugin ( mvn clean install ) ? The latest version works fine for me. Alexandre 2012/6/1 Juan Pablo Gardella

Re: [gwt-contrib] Contributor License Agreements question

2012-05-30 Thread Alexandre Ardhuin
Ok, thanks. 2012/5/29 Rajeev Dayal rda...@google.com Just verified that you're added to the corporate CLA list. I think I was looking at an outdated spreadsheet. You're all good! On Fri May 25 10:15:54 GMT-400 2012, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Confirmation

[gwt-contrib] Contributor License Agreements question

2012-05-25 Thread Alexandre Ardhuin
Hi all, A few days ago I submitted a patch ( http://gwt-code-reviews.appspot.com/1712803/ ) after having followed the steps described at https://developers.google.com/web-toolkit/makinggwtbetter#submittingpatches. My CTO had signed the Corporate Contributor License Agreement (

Re: [gwt-contrib] Re: Contributor License Agreements question

2012-05-25 Thread Alexandre Ardhuin
2012/5/25 Thomas Broyer t.bro...@gmail.com On Friday, May 25, 2012 2:55:21 PM UTC+2, Alexandre Ardhuin wrote: I don't see the review made by Thomas in this contributors group and I wonder why. Ah, you didn't CC google-web-toolkit-contributors@googlegroups.com.http://groups.google.com

Re: [gwt-contrib] Contributor License Agreements question

2012-05-25 Thread Alexandre Ardhuin
some more digging to see what happened. Did you receive any sort of confirmation e-mail? If so, could you forward it to me directly? Thanks, Rajeev On Fri May 25 08:55:21 GMT-400 2012, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Hi all, A few days ago I submitted a patch

Re: 2 RequestFactory with 2 differents Proxy on the same domain class

2012-05-21 Thread Alexandre Ardhuin
2012/5/21 Thomas Broyer t.bro...@gmail.com On Wednesday, May 9, 2012 4:47:47 PM UTC+2, Thomas Broyer wrote: Yes, please file a bug for that. If you can contribute the patch to gwt-code-reviews.appspot.com it'd be even better (see https://developers.**google.com/web-toolkit/**

Re: CalendarUtil has no hour, minute, seconds options

2012-02-06 Thread Alexandre Ardhuin
Hi, You can do : Date now = new Date(); Date date5minutesAgo = new Date(now.getTime() - TimeUnit.MINUTES.toMillis(5)); Date date5hoursAgo = new Date(now.getTime() - TimeUnit.HOURS.toMillis(5)); Alexandre 2012/2/7 tong123123 tong123...@gmail.com as gwt has no Calendar class, how to do

Re: Scroll are not coming while using DockLayoutPanel

2011-12-05 Thread Alexandre Ardhuin
Hi, You have to explicitly add ScrollPanel in your DockLayoutPanel to make the area scrollable. Alexandre 2011/12/5 saurabh saurabh saurabh.bl...@gmail.com Hi everyone, I got the following lines of code here: DockLayoutPanel doc = new DockLayoutPanel(Unit.PX); //some

Re: How to handle Browser History using UiBinder ?

2011-11-30 Thread Alexandre Ardhuin
Hi, see http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html Alexandre 2011/11/30 suresh babu sureshgbab...@gmail.com Thank you for your quick reply, so how can I manage history without using MVP framework. On Tue, Nov 29, 2011 at 10:01 PM, Thomas Broyer

Re: Debugging application on external server

2011-11-30 Thread Alexandre Ardhuin
Hi, To debug a remote server you have to : - start DevMode on your localhost, - connect to your remote server with the normal url - add gwt.codesvr=localhost:9997 parameter to the url where 9997 is the port on witch DevMode is listening As exemple if you have your app running on

Re: Game Development Resources for GWT

2011-11-03 Thread Alexandre Ardhuin
Hi, You can look at the great tutorial Building Games With Google Technologies http://proppy-playn101.appspot.com/#1 Alexandre 2011/11/2 James Butler jnbutler1...@gmail.com If anyone else knows of online tutorials, books, or other game resources for GWT, please reply here and list them for

NPE with RequestFactory (GWT 2.4.0) when returned List contains a null value

2011-09-27 Thread Alexandre Ardhuin
Hi, After migrate from gwt-2.3.0 to gwt-2.4.0, I face the following NPE when the requestFactory method returns a List containing a null value : 27 sept. 2011 10:10:39 com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost GRAVE: Unexpected error java.lang.NullPointerException

Re: initWidget(uiBinder.createAndBindUi(this));

2011-09-27 Thread Alexandre Ardhuin
Hi, As javadoc of Composite.initWidget() says : Sets the widget to be wrapped by the composite. The wrapped widget must be set before calling any {@link Widget} methods on this object, or adding it to a panel. This method may only be called once for a given composite. So, it doesn't matter where

Re: NPE with RequestFactory (GWT 2.4.0) when returned List contains a null value

2011-09-27 Thread Alexandre Ardhuin
Oups, I had searched on this group but not in issue tracker. Thanks Thomas -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email

Re: Remote Logging

2011-09-22 Thread Alexandre Ardhuin
Hi, If you use the SimpleRemoteLogHandler, you have to add an URL mapping in your web.xml servlet servlet-nameremoteLogging/servlet-name servlet-classcom.google.gwt.logging.server.RemoteLoggingServiceImpl/servlet-class /servlet servlet-mapping

Re: RequestBuilder doesnt work

2011-09-08 Thread Alexandre Ardhuin
Hi, You can not call an other domain with xmlHttpRequest. This is known as same origin policy. Alexandre. 2011/9/8 wahaha il...@yahoo.com.cn i tested the RequestBuilder class,it does not work. final RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,

Re: onModuleLoad() - what is it in javascript

2011-09-08 Thread Alexandre Ardhuin
Hi, Although I can not find an up-to-date version of this file in 2.4 documentation, some informations on the bootstrap sequence are available at http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideBootstrap Alexandre. 2011/9/8 dreamer venugopal.vasire...@gmail.com

Re: JSNI - Managing arrays in native method

2011-09-07 Thread Alexandre Ardhuin
Hi, As said in http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#passing-java, Java arrays appear to javascript as opaque value that can only be passed back into Java code. You have to use JsArray, JsArrayBoolean, JsArrayInteger, JsArrayNumber or JsArrayString to pass

Re: JSNI - Managing arrays in native method

2011-09-07 Thread Alexandre Ardhuin
with single objects like numbers or strings, but with a custom Java object. Do I need to build a wrapper for doing It? -something like JsLocationArray-, and add in there the possibility of pushing a Location instead of the JSON structure I'm using? Jésica. On Sep 7, 5:13 am, Alexandre Ardhuin

Re: ResourceBundle an Properties

2011-09-06 Thread Alexandre Ardhuin
Hi, GWT has a built-in support for internationalization. If you only want to write translated messages, use com.google.gwt.i18n.client.Constants (see http://code.google.com/webtoolkit/doc/latest/DevGuideI18nConstants.html) or com.google.gwt.i18n.client.Messages if you need to substitute

Re: JSNI Unkown callback

2011-09-06 Thread Alexandre Ardhuin
Hi, You can define an interface like : package myPackage; interface GetUrlCallback{ String getUrl(Bounds bounds); } and change the method TMSOptions#setGetURL() to accept a GetUrlCallback parameter : public native void setGetURL(GetUrlCallback callback)/*-{ this.getURL =

Re: custom tabs

2011-09-01 Thread Alexandre Ardhuin
Hi, You can use CSS to do this .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab { background-color: #123456; } .gwt-TabLayoutPanel .gwt-TabLayoutPanelTab-selected { background-color: #654321; } Alexandre 2011/9/1 nf...@pevco.com nf...@pevco.com I'm using TabLayoutPanel and would like to

Re: Deferred Binding in gwt

2011-08-30 Thread Alexandre Ardhuin
Hi, Like property's definition of user.agent ( see http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml?r=4347) you can define a property ( or extend user.agent ) to detect chrome or safari. define-property name=myProperty

Re: Access static file from onModuleLoad() method

2011-08-30 Thread Alexandre Ardhuin
Hi, You should have the following : /MyModule.gwt.xml /public/config.xml Then, you can access file with the URL : GWT.getModuleBaseURL() + config.xml An other way to load content is to use a TextResource with ClientBundle ( see

Re: files generated with very long name

2011-06-24 Thread Alexandre Ardhuin
Thanks Thomas, As you suggest, I tried to use gen${project.build.directory}/gwt-generated.jar/gen but unfortunately it does not work ( gwt-generated.jar is just a folder in the build directory ). I will wait 2.4 release to use longer names. Alexandre. 2011/6/24 Thomas Broyer t.bro...@gmail.com

files generated with very long name

2011-06-23 Thread Alexandre Ardhuin
Hi all, I'm on a encypted file system that does not support more than 256 characters for file names. My gwt project does not compile because of this restriction. One of generated files is named :

Re: RequestFactory with Collections of ValueProxy in a ValueProxy

2011-06-21 Thread Alexandre Ardhuin
it looks like http://code.google.com/p/google-web-toolkit/issues/detail?id=6354 Alexandre. 2011/6/20 Alexandre Ardhuin alexandre.ardh...@gmail.com Hi all, I face a very strange behavior on requestFactory with GWT-2.3. Sometimes, java.util.SetT collections are not deserialized as expected

RequestFactory with Collections of ValueProxy in a ValueProxy

2011-06-20 Thread Alexandre Ardhuin
Hi all, I face a very strange behavior on requestFactory with GWT-2.3. Sometimes, java.util.SetT collections are not deserialized as expected (java.util.ListT works well). Some elements are missing. Here's the code that illustrates the problem : // -- //

Re: GWT remote logging

2011-05-25 Thread Alexandre Ardhuin
Have you add an URL mapping in your web.xml ? servlet servlet-nameremoteLogging/servlet-name servlet-classcom.google.gwt.logging.server.RemoteLoggingServiceImpl/servlet-class /servlet servlet-mapping servlet-nameremoteLogging/servlet-name

Re: How to select a row on click of any cell in that row - Celltable

2011-05-02 Thread Alexandre Ardhuin
Define a SingleSelectionModel and add it to CellTable : final SingleSelectionModelT ssm = new SingleSelectionModelT(); cellTable.setSelectionModel(ssm); ssm.addSelectionChangeHandler(new Handler() { @Override public void onSelectionChange(final SelectionChangeEvent event) {

Re: Using native methods in a JavascriptObject class

2011-04-21 Thread Alexandre Ardhuin
This test case shows you how to do : http://code.google.com/p/gwt-google-apis/source/browse/trunk/ajaxloader/ajaxloader/test/com/google/gwt/ajaxloader/client/ClientLocationTest.java Alexandre 2011/4/16 muggs muggs...@gmail.com I'm currently trying out my first gwt app with gwt-map library. I'm

Re: Implement select all in CellTable

2011-04-19 Thread Alexandre Ardhuin
Hi, You can use a com.google.gwt.view.client.MultiSelectionModel with your CellTable MultiSelectionModelT msm = new MultiSelectionModelT(); cellTable.setSelectionModel(msm); for (T item : cellTable.getVisibleItems()) { msm.setSelected(item, true); } Alexandre 2011/4/18 Subhrajyoti Moitra

Re: Usage of constants/property files based on arbitrary property rather than locale

2011-04-16 Thread Alexandre Ardhuin
but that doesn't appear to work with ui binders where the constants interface is utilized within the ui.xml file. Did your project use the approach of the constants being referenced directly in the ui.xml file? Thanks, Jeff On Fri, Apr 15, 2011 at 12:03 AM, Alexandre Ardhuin

Re: Usage of constants/property files based on arbitrary property rather than locale

2011-04-15 Thread Alexandre Ardhuin
I have something similar in my project. I resolved the problem with Deferred Binding. In HTML page, I can set a js variable : var profil = profil1; This js variable will be re-use in Module.gwt.xml to replace default i18n by a specific one: !-- 'profil' property -- define-property

Re: Creating a DockLayoutPanel with non-fixed sizes ?

2011-04-15 Thread Alexandre Ardhuin
Suppose that you have : g:DockLayoutPanel unit='PX' ui:field=dlp g:north size='100' g:SimplePanel ui:field=headerContainer g:HTMLPanel ui:field=headerContent (... content that can change ...) /g:HTMLPanel

Re: DockLayoutPanel -- Get Width/Height of center panel

2011-04-12 Thread Alexandre Ardhuin
Hi, You can retrieve the container element of your center and then get height and width. Widget centerWidget = ... ; // the widget at center Element container = myDockLayoutPanel.getWidgetContainerElement(centerWidget); int width = container.getOffsetWidth(); int height =

Re: How to hide a Cell in a Cell List (com.google.gwt.user.cellview.client.CellList)

2011-04-12 Thread Alexandre Ardhuin
Hi, You probably have to update data in the cellList (with #setRowData) to show only items matching your filter. Moreover, hiding some elements in list could lead to differences between the number of visible items and result of methods like #getRowCount() . Alexandre. 2011/4/11 waldo2188

Re: Transfer DataTable object from server to client

2011-04-12 Thread Alexandre Ardhuin
Have you look at ValueProxy with RequestFactory ? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#valueProxies Your proxyfied object doesn't need to implement Serializable. Alexandre 2011/4/10 Phalgun Guduthur phalgun.gudut...@gmail.com Can someone tell me which is

Re: CellTable Row Color

2011-04-11 Thread Alexandre Ardhuin
You can use com.google.gwt.user.cellview.client.CellTable.setRowStyles(RowStylesT) to provide a class name by row. Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Is it possible to change the bakcround colors of certain rows in a CellTable ie in a table of persons :

Re: CellTable Row Color

2011-04-11 Thread Alexandre Ardhuin
{ background-color: blue; } Alexandre 2011/4/11 Patrick Cailly metronome.ba...@worldonline.fr Any example showing this ? thanks anyway Patrick - Original Message - *From:* Alexandre Ardhuin alexandre.ardh...@gmail.com *To:* google-web-toolkit@googlegroups.com *Sent:* Monday, April 11

Re: Comet and GWT

2011-04-06 Thread Alexandre Ardhuin
You can use the atmosphere framework and his GWT module : http://code.google.com/p/atmosphere-gwt-comet/ Alexandre. 2011/4/6 Lucas Garcia somentelu...@gmail.com Is there someone working with Comet in GWT? I tried to look for it, there are some libraries in which allow you to do it, but I

Re: Switching an image by using OnMouseOverHandler

2011-04-05 Thread Alexandre Ardhuin
Hi, You can also use a com.google.gwt.user.client.ui.PushButton that have a constructor with 2 images as parameter. Alexandre. 2011/4/5 Zak Linder zakn...@gmail.com Hi Arilene- You need to set the original image with a MouseOutHandler as well. img_p1.addMouseOverHandler(new

Re: Passing data from Dialog Box

2011-04-05 Thread Alexandre Ardhuin
If you use a com.google.gwt.user.client.ui.DialogBox to collect data. Thus you are still in the same window. Alexandre 2011/4/5 Mittal mitt...@gmail.com I have following use case, Master Form - has button called Add Row - that shall open Dialog Box to collect data, lets say First Name ,

Re: StackPanel

2011-04-05 Thread Alexandre Ardhuin
Hi, You should use StackLayoutPanel to have integration with uiBinder. See the exemple at http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/user/client/ui/StackLayoutPanel.html: g:StackLayoutPanel unit='PX' g:stack g:header size='3'bHTML/b header/g:header

Re: StackPanel

2011-04-05 Thread Alexandre Ardhuin
change the standard blue color still unchangeable :( thanks in advance On 5 avr, 11:27, Issam boualem.is...@gmail.com wrote: I am very thankful for your rapid answer thank you very much Issam On 5 avr, 11:13, Alexandre Ardhuin alexandre.ardh...@gmail.com wrote: Hi

Re: update html field in JSP from Java (GWT)

2011-04-04 Thread Alexandre Ardhuin
Hi, Are you sure the textarea contains the good id attribute ? Are you sure to enter the if statement ? You don't have to use JSNI to update the textarea. Use instead : Element element = Document.get().getElementById(fieldId); if (element != null) { GWT.log(found element with id: +

Re: data-icon

2011-03-27 Thread Alexandre Ardhuin
Not natively, but you can easily set this attribute : Anchor a = a.getElement().setAttribute(data-icon, delete); Alexandre. 2011/3/24 mtrebizan mtrebi...@gmail.com Does GWT support data-icon attribute for anchors? -- You received this message because you are subscribed to the Google

Re: Questions on image cell showing images, please help

2011-03-23 Thread Alexandre Ardhuin
Hi, If you have ImageResource, you can use com.google.gwt.cell.client.ImageResourceCell . If you have only urls, you can create your own ImageCell like com.google.gwt.cell.client.ImageCell and change html template used : public class MyImageCell extends AbstractCellString { interface Template

Re: GWT - Replace g:center of DockLayoutPanel in UiBinder dynamically

2011-03-23 Thread Alexandre Ardhuin
I have something like that in my code. I use a com.google.gwt.user.client.ui.LayoutPanel g:center g:LayoutPanel ui:field=placeholder / /g:center and in java code : @UiField LayoutPanel placeholder; public void setPlaceHolder(IsWidget w) { placeholder.clear();

Re: GWT 2.2 Celltable Paging

2011-03-23 Thread Alexandre Ardhuin
Hi, I think you should use : cellTable.setRowCount(result.size()); cellTable.setRowData(0, result); instead of : cellTable.setRowData(result); Javadoc of com.google.gwt.user.cellview.client.AbstractHasData.setRowData(List? extends T) tells : Set the complete list of values to display on one

Re: expand ListBox as droplist using keyboard

2011-03-23 Thread Alexandre Ardhuin
ListBox use html SELECT element. Thus, you have natively (without keypresshandler) keys up/down to change selection and : - in Firefox and IE : ALT+DOWN/ALT+UP to expand/collapse select. - in chrome : Space/esc to expand/collapse select. I don't know if you can expand select with javascript.

Re: Necessary ORM

2011-03-22 Thread Alexandre Ardhuin
I use RequestFactory without JPA and I have no problem. You just have to respect some rules listed at http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideRequestFactory.html#interface If you only use RequestFactory to retrieve data, you can even use ValueProxy instead of EntityProxy.