Re: How to create DOM Element or Node from SafeHtml

2011-02-03 Thread Ryan Mehregan
One solution is to clone an already existing node and then manipulating it. 1- clone an already existing node eg. Node node = parent.cloneNode(false) 2- cast this Node to Element eg. Element element = Element.as(node) 3- manipulate this element eg. element.setInnerHTML(html.asString) // using th

Re: Bind form values when sending to server

2011-02-03 Thread $ a r j i t h Pullithodi
Thanks buddy... donno this gonna work in my scenario, but had decided to give it a try. Thanks a lot. please do share if anyone has a better idea or any alternative for this, so that we don't miss anything. Thanks once again...!! -- Sarjith On Thu, Feb 3, 2011 at 2:42 PM, Thomas Broyer wrot

How to create DOM Element or Node from SafeHtml

2011-02-03 Thread zixzigma
GWT has Element and Node class which are wrappers for low level DOM elements/nodes. do you know How I can convert SafeHtml to Element or Node ? for example using the code below, I create a SafeHtml. SafeHtml html = SafeHtmlUtils.fromSafeConstant("XXXYYY"); but I could not find a way to create

Re: CellList with ListDataProvider does not get redrawn on data change

2011-02-03 Thread Peter Ondruska
Hi, I have exactly the same problem.. Either I misunderstood documentation or something is broken, still trying to find the way.. On Feb 2, 6:51 pm, Daniel Francisco wrote: > Hi. > > I'm working on a project with GWT 2.1 and mvp4g. In a view, I'm using > a CellList backed with a ListDataProvider.

What is the correct way for CellTable cells to communicate ?

2011-02-03 Thread zixzigma
I have a CellTable. when an event occurs in Cell A, I would like to take action and modify Cell B. (user clicks on Cell A, I would like to modify Cell B, in the same row to keep things simple) could you please provide some pointers on how this can be correctly implemented ? do you think we nee

Re: local script variables in nocache.js

2011-02-03 Thread Colin Alworth
In your *.nocache.js content, you say you will have 'this.resourceUrl = "content-replaced-by-velocity";' – what is 'this' in this context? If it is the shared window that all the portlets use, they will each overwrite the resourceUrl property. If each portlet will use a different module, you cou

Re: How to get "id" of the new inserted row, issued by RequestFactory "persist()"

2011-02-03 Thread Dominik Mayer
I found the answer here http://groups.google.com/group/google-web-toolkit/msg/fa25840137b26e72: > InstanceRequest persist(); > instead of > InstanceRequest persist(); But I'm still not sure I get the concept. If I use this way I can access the persisted object in the onSuccess(...) method. B

How to implement Expandable-Collapsible Rows in CellTable ?

2011-02-03 Thread zixzigma
Hello Everyone, Could you please provide some tips on how to implement Collapsible Rows in CellTable ? for example, clicking on a Row, result in Row to be expanded, and display some custom widget in it. so far, I was able to put a custom widget (label, button, text box) within the cell, this w

Re: Separate Widgets & CSS+JS

2011-02-03 Thread Hilco Wijbenga
On 2 February 2011 16:17, Thomas Broyer wrote: > You can automate it by writing a linker that concatenates the CSS files into > a single one (same for JS ?) and emit a new artifact for the all-in-one > file. > There's no built-in solution for that, because the

Re: @UiHandler and method scope

2011-02-03 Thread Christopher
Thanks. -- 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 to google-web-toolkit+unsubscr...@googlegroups.com. For more opti

Re: @UiHandler and method scope

2011-02-03 Thread Hilco Wijbenga
On 3 February 2011 18:12, Christopher wrote: > Thanks. I'll declare them explicitly as protected (package private). Just to be clear: protected != package private. Making your UiHandlers protected will work fine, though. -- You received this message because you are subscribed to the Google Grou

Re: @UiHandler and method scope

2011-02-03 Thread Christopher
Thanks. I'll declare them explicitly as protected (package private). Kind regards, Christopher -- 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 t

Re: @UiHandler and method scope

2011-02-03 Thread Hilco Wijbenga
On 3 February 2011 16:05, Christopher wrote: > I've noticed in the examples that @UiHandler annotated methods are declared > with no scope - so I'm assuming that its regular practice to rely on > protected scope. Is this correct? You mean package private scope? The UiHandler methods may not be pr

@UiHandler and method scope

2011-02-03 Thread Christopher
Hi there, I've noticed in the examples that @UiHandler annotated methods are declared with no scope - so I'm assuming that its regular practice to rely on protected scope. Is this correct? Kind regards, Christopher -- You received this message because you are subscribed to the Google Groups

Re: Working with collection of entities in requestFactory

2011-02-03 Thread FrugoFrog
do you see the persistent elements in DB? Can you see the elements if you change FetchType.LAZY to EAGER? 2011/2/2 JB : > Hi, > > I'm having troubles in using collection (list) of entities with > requestFactory. > > The persistence of the whole graph is OK, but whenever I try to > retrieve it,

Re: First column in CellBrowser - width not working

2011-02-03 Thread sevendays
See https://groups.google.com/d/topic/google-web-toolkit/T8ObWAWDPqI/discussion for a workaround. -- 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 fro

Re: Setting first column width CSS in CellBrowser via DOM API

2011-02-03 Thread sevendays
This worked. Thank you John. -- 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 to google-web-toolkit+unsubscr...@googlegrou

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Gal Dolber
Thanks On Thu, Feb 3, 2011 at 7:02 PM, zixzigma wrote: > I am not sure if this helps, > but there is a feature called Binding Annotations, > you can use BindingAnnotation to differentiate the Provider used in Class > A, > from the one used in Class B. > > http://code.google.com/p/google-guice/wi

Re: Help on using JSNI from within a GWTTestCase

2011-02-03 Thread Christopher
My bad - my JSON was incorrectly formatted by the servlet. I hope that the code I provided might be useful in illustrating a method of making JSON requests and be useful to someone anyhow. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Re: Collection of entities & RequestFactory

2011-02-03 Thread Vasily
Confirmed. Should use requestFactory.contactRequest().findAllContacts().with("tags").fire(...); SOLVED. Thx! On Feb 3, 6:33 pm, Vasily wrote: > No,... probably that's the case... Thx > > On Feb 3, 5:55 pm, Y2i wrote: > > > Are you using > > with("tags")?http://code.google.com/webtoolkit/doc/la

Final wrapper for custom widget

2011-02-03 Thread dazz
I made a button widget. Currently the outermost container has an explicit "display: inline-block" applied to it. But I want an outer container with that property built-in (like a span) so that users of uibinder can use styleName='...' with the widget rather than having to use addStyleNames='...

Re: GWT CellTable: very confused about T and C in Column and HasCell

2011-02-03 Thread zixzigma
Thank You for very clear explanation, I understand it now : ) -- 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 to google-w

Re: How to remove the check of the findxxx() static method in domain entity

2011-02-03 Thread David Chandler
RequestFactory docs on trunk have been updated to show value proxies, Locator, and ServiceLocator. http://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.html HTH, /dmc On Thu, Feb 3, 2011 at 11:45 AM, Thomas Broyer wrote: > > > On Thursday, February 3, 2011 2:25:30 PM UTC+1, Patri

Re: History.replaceItem?

2011-02-03 Thread Ben Imp
I have a possible alternative suggestion - instead of messing with the browser's history function, simply don't use the history tokens for navigating through the results list. Then your back button will work as you will want it to. I do this in my application, and it seems to work quite well. -B

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread zixzigma
I am not sure if this helps, but there is a feature called Binding Annotations, you can use BindingAnnotation to differentiate the Provider used in Class A, from the one used in Class B. http://code.google.com/p/google-guice/wiki/BindingAnnotations -- You received this message because you are su

Re: How to get "id" of the new inserted row, issued by RequestFactory "persist()"

2011-02-03 Thread Dominik Mayer
Does anyone have answers to these questions? What I'm doing is listening for an EntityProxyChange PERSIST. But that only has the ProxyId so I have to do a request.find(proxyId).fire() in order to get the task. The problem is: This causes an EntityProxyChange UPDATE which again only has the ProxyI

History.replaceItem?

2011-02-03 Thread Jason
Before I start, I'm working with GWT 2.1.1 In the example below the user goes to a list, pages through results, views a record and then clicks Back. Everything works as expected, the user is viewing page 4, clicks a row and views the record, clicks Back and they land on page 4. But if they click

Re: how can i implement Focusable (and HasAllKeyHandlers) on a TabLayoutPanel?

2011-02-03 Thread k.balaji9940759583 k.bala
K On Thu, Feb 3, 2011 at 9:39 PM, Jeff Larsen wrote: > public class MyTabLayoutPanel extends TabLayoutPanel implements Focusable, > HasAllKeyboardHandlers{ > > > -- In your constructor add -- > > sinkEvents(Event.FOCUS | EVENT.KEYEVENTS); > > } > > and that *Should work. > > also, you probably w

Re: DecoratedTabPanel setWidth and setHeight not working as expected

2011-02-03 Thread cvh
Using GWT2.1.1, I had some limited success setting the height of the DecoratedTabPanel by including this in my CSS file: .gwt-TabPanelBottom { height: 10%; } see the Javadoc for DecoratedTabPanel which indicates that two CSS style rules are used: .gwt-DecoratedTabPanel { the tab pane

celltable BeforeSelectionEvent?

2011-02-03 Thread Mike Wyszinski
i am implementing a screen with a CellTable & detail form. I want to be able to intercept selection change events AND CANCEL THEM, if the user has made unsaved changes in the detail form. Is there any way to do this with the cell table? Thanks Mike -- You received this message because you are

Re: Firefox ONPASTE: Get the text to be pasted?

2011-02-03 Thread mike b
On second thought... Change this line -> this.setValue(newValue, true); To this --> ValueChangeEvent.fireIfNotEqual(this, this.getValue(), newValue); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to

Re: GWT CellTable: very confused about T and C in Column and HasCell

2011-02-03 Thread Thomas Broyer
Assuming you have a List you want to display in a CellTable: Column firstName = new TextColum() { public String getValue(Person p) { return p.getFirstName(); } }; Column birthDate = new Column(new DateCell()) { public Date getValue(Person p) { return p.getBirthDate(); } }; Does that help? --

Re: GWT CellTable: very confused about T and C in Column and HasCell

2011-02-03 Thread Jack
When using a CellTable that displays contacts you may have a column that displays the name for each contact. Thus this column would be defined as Column implements HasCell So T is the type of objects you want to display (the rows, e.g. Contact, Car, ...) and C is the type of the property of T tha

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Gal Dolber
Sorry, the example should be with "SimpleInstanceProvider", not with "Provider" On Thu, Feb 3, 2011 at 6:05 PM, Gal Dolber wrote: > If I inject a provider on 2 different classes I expect them to return a > different instance, but each provider must return the same one. > > class A { > @Injec

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Gal Dolber
If I inject a provider on 2 different classes I expect them to return a different instance, but each provider must return the same one. class A { @Inject public Provider p; // p.get() returns always the same instance } class B { @Inject public Provider p; // p.get() returns always

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread zixzigma
I am using the same technique as Ryan suggested. Your comment : "non-singleton class that return always the same instance" isn't a "non-singleton class that always return the same instance" in fact the very definition of Singleton ? : ) I have read that there is a difference between Singleton De

Re: ActivityManager and TabLayoutPanel

2011-02-03 Thread Jack
Well I am not very familiar with the GWT MVP Framework but from what I've read I would use one Place and one Activity for the whole TabLayoutPanel an put it into a "display region" ( = AcceptsOneWidget). I guess that should be fine in most situations. For example a GWT application may have a place

GWT CellTable: very confused about T and C in Column and HasCell

2011-02-03 Thread zixzigma
I am very confused about HasCell and Column. I am using Cell types available by GWT (TextCell, ActionCell etc), and I can get them to work. However, when I try to create custom Cell for CellTable, I realize I do not fully understand what I'm doing, and the confusion is from not fully understandi

Re: is there any release notes for GWT 2.2-M1 ?

2011-02-03 Thread David Chandler
Not yet. There will be release notes for the actual 2.2 release. On Wed, Feb 2, 2011 at 4:25 PM, zixzigma wrote: > Hello Everyone, > > is there any release notes for GWT 2.2-M1 ? > I would like to know about the features added or modification to API. > > Thank You > > -- > You received this mess

Re: GWT 2.1.1. + Deploy in Tomcat

2011-02-03 Thread Gabriel
Thanks for your time Thomas, I guess I understand concept and I can deploy in Tomcat 6. Greetings! On Jan 28, 5:25 pm, Thomas Broyer wrote: > On Friday, January 28, 2011 6:59:30 PM UTC+1, Gabriel wrote: > > > Hi Florian, Thomas, thanks for reply. > > > I have this on WEB-INF\lib: > > > * db4o-7.

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Gal Dolber
No idea why you answer 3 times the same, but please read again my question. I am using providers. As I already imagined gin doesn't have what I need. I was looking for other solutions people were using. What I need is: A provider of a non-singleton class that return always the same instance. I am

Re: RequestFactoryEditorDriver example?

2011-02-03 Thread George Moschovitis
OK, will give another try to identify the problem. -g. -- 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 to google-web-too

Re: Setting first column width CSS in CellBrowser via DOM API

2011-02-03 Thread John LaBanca
We haven't had a change to fix this yet. CellBrowser uses a SplitLayoutPanel that has a fairly complicated structure, so DOM manipulation isn't likely to work. As a workaround, you can get access to the SplitLayoutPanel in CellBrowser and set the widget width directly. Subclass CellBrowser and o

Re: the Honeycomb presentation, GWT and Android

2011-02-03 Thread George Moschovitis
Similar thoughts passed through my head while watching the honeycomb video... But I don't see such support for Android materializing soon (if ever...) -g. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email

Re: CellTable and GAE Datastore cursors

2011-02-03 Thread George Moschovitis
thanks for the pointer, will have a look... -g. -- 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 to google-web-toolkit+un

ActivityManager and TabLayoutPanel

2011-02-03 Thread Ernesto Reig
Hello everybody, I don´t know if this problem can be solved easily or maybe I have to think of another approach. The thing is that I want a TabLayoutPanel, so that the ActivityManager keeps track of all the activity´s of the different tabs, but the first problem I find is setting the Display. The A

Re: How to remove the check of the findxxx() static method in domain entity

2011-02-03 Thread Thomas Broyer
On Thursday, February 3, 2011 2:25:30 PM UTC+1, Patrice De Saint Steban wrote: > > Hello, > > We use the request factory with spring and classic services, and for find a > new entity, we use a method in the service and not in the domain entity. > We create a ServiceLayerDecorator to override th

Re: How to add datetimepiker in GWT

2011-02-03 Thread Jeff Schwartz
I haven't tested it but DatePicker's getValue method returns a Date object. What I am not sure of is if the Date object reflects the current time when a user selects a date from the calendar. The returned Date's getTime() method needs to be tested to see if it does or doesn't. Jeff On Thu, Feb 3

Re: how can i implement Focusable (and HasAllKeyHandlers) on a TabLayoutPanel?

2011-02-03 Thread Jeff Larsen
public class MyTabLayoutPanel extends TabLayoutPanel implements Focusable, HasAllKeyboardHandlers{ -- In your constructor add -- sinkEvents(Event.FOCUS | EVENT.KEYEVENTS); } and that *Should work. also, you probably want to add the layout panel to RootLayoutPanel, not RootPanel. -- You

Re: How to add datetimepiker in GWT

2011-02-03 Thread Ben Imp
I think you missed the bit about capturing the time portion as well. -Ben On Feb 3, 8:47 am, Jeff Schwartz wrote: > Using UiBinder in some ui.xml file: > >     xmlns:g="urn:import:com.google.gwt.user.client.ui" >     xmlns:dp="urn:import:com.google.gwt.user.datepicker.client"> > ... > >      

Re: Collection of entities & RequestFactory

2011-02-03 Thread Vasily
No,... probably that's the case... Thx On Feb 3, 5:55 pm, Y2i wrote: > Are you using > with("tags")?http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this

how can i implement Focusable (and HasAllKeyHandlers) on a TabLayoutPanel?

2011-02-03 Thread chm124
how can i implement Focusable (and HasAllKeyHandlers) on a TabLayoutPanel? Hi In my App, the outermost "Panel" is a TabLayoutPanel (which must be attached to RootPanel via RootPanel.get().add(TabLayoutPanel)), otherwise its tab-contents are invisible. I would like to implement my outermost "Panel"

Re: Collection of entities & RequestFactory

2011-02-03 Thread Y2i
Are you using with("tags")? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships -- 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

Re: How to add datetimepiker in GWT

2011-02-03 Thread Jeff Schwartz
Using UiBinder in some ui.xml file: ... Date of purchase ... Then, in the .java file: ... @UiField DateBox dopDateBox; ... dopDateBox.setFormat(new DateBox.DefaultFormat(DateTimeFormat.getFormat(" d

Re: How to add datetimepiker in GWT

2011-02-03 Thread Ben Imp
As far as I am aware, there is no such widget. You will have to make one. -Ben On Feb 3, 3:24 am, sujit mishra wrote: > Hi , > >      I need help regards datetimepicke widget . I am using GWT but not > found any widget that able to capture date and time both at a >      time  from user. > >    

Re: Calculate age

2011-02-03 Thread Ben Imp
Indeed. The alternative of sending all date operations to the server is ... incredibly inconvenient at best. -Ben On Feb 3, 7:20 am, Jeff Schwartz wrote: > I think you will find that you are not alone in your opinion regarding using > deprecated methods and that you are in fact in good company.

Re: how can i add my voice in my gwt application as time of registration

2011-02-03 Thread Ben Imp
I don't believe a web browser will let you access anything like a microphone. A flash plugin can access such things, but thats about it. -Ben On Feb 2, 11:08 pm, dhruti wrote: > hi > i m gwt designer. > i working with app in which i want to enroll users voice at the time > of registration and t

Re: GWT debuggin in Chrome - why is so slow?

2011-02-03 Thread Edson Richter
Hi, Chris! Thanks for your answer - even if I hit the "Ignore" or "Continue" button (I don't remember the exact text appears in the button face, because I do use "Portuguese Brazilian" here...), Chrome fronzen until it dies with the "Crash page". The NPObject error did not happen since latest plu

Re: GWT debuggin in Chrome - why is so slow?

2011-02-03 Thread Edson Richter
I'm working with the following environment: a) Windows 7 Home Premium 64bit b) Sun Java JDK 1.6.0_22 32bit and JRockit 4 (1.6.0_20) 32bit c) NetBeans 6.9.2 on Sun JDK 1.6.0_22 32bit d) Apache Tomcat 6.0.30 on Sun JDK 1.6.0_22 or JRockit 1.6.0.20 (both 32bit) e) Front-end Google Chrome (8.0.552.237

Re: GWT debuggin in Chrome - why is so slow?

2011-02-03 Thread Edson Richter
Thanks for the tip, but my IE problem is that scripts are 100 times slower, and one process at time make RPC impossible to work with... and my application deals with huge amounts of data (obejcts) received through RPC. Regards, Edson. On 2 fev, 15:56, Eric wrote:... -- You received this messa

Re: local script variables in nocache.js

2011-02-03 Thread bconoly
If it helps any I need the following: nocache.js: this.resourceUrl = "$resourceUrl"; GWT jsni: /** * Returns the resource url set in nocache.js after it has been replaced by the template. */ private native String getResourceUrl /*-{ return resourceUrl; }-*/ Thanks On Feb 2, 8:16 am, bconoly

How to remove the check of the findxxx() static method in domain entity

2011-02-03 Thread Patrice De Saint Steban
Hello, We use the request factory with spring and classic services, and for find a new entity, we use a method in the service and not in the domain entity. We create a ServiceLayerDecorator to override the loadDomainObject to load the object without use the static method findxxx() in the entity.

Re: Calculate age

2011-02-03 Thread Jeff Schwartz
I think you will find that you are not alone in your opinion regarding using deprecated methods and that you are in fact in good company. On Thu, Feb 3, 2011 at 7:35 AM, kkpirri wrote: > Thank you! JsDate worked perfectly. > > Maybe I am too picky but I don't like using deprecated methods and >

Re: Multimodule projects

2011-02-03 Thread Alex Solovyev
Hi, André. My project need`s same features, and i` ve searched for that. There is a code splitting feature in GWT, it can be helpful for you. (http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html) But i think, it a past of full decision. if you find an multiple entry-points exam

How to add datetimepiker in GWT

2011-02-03 Thread sujit mishra
Hi , I need help regards datetimepicke widget . I am using GWT but not found any widget that able to capture date and time both at a time from user. So , please help me how to add datetimepicke using GWT Thanks Sujit Mishra -- You received this message because you are subscribe

Re: Calculate age

2011-02-03 Thread kkpirri
Thank you! JsDate worked perfectly. Maybe I am too picky but I don't like using deprecated methods and neither suppress warning tags. Thank you. On 3 feb, 10:17, Thomas Broyer wrote: > If you want "JVM forwards compatibility", then use Calendar. > If you want "GWT compatibility", then use java

Bug: Re: Range start can not be less than 0

2011-02-03 Thread Deepak Singh
So Should we assume that it is a bug? On Thu, Feb 3, 2011 at 3:01 PM, bond wrote: > I've the same problem! > > Thanks > > Daniele > > On 1 Feb, 14:56, Deepak Singh wrote: > > Hi All, > > > > I have cell table working fine. > > But when i move through the results fast using arrow keys, i sometim

Collection of entities & RequestFactory

2011-02-03 Thread Vasily
Hi All, here is my code: @Entity public class Contact { ... @OneToMany(mappedBy="contact", targetEntity=Tag.class, fetch=FetchType.EAGER) private List tags; ... } I'm using RequestFactory to fetch ContactProxy, but .getTags() on value returns NULL I've tried to inspect the contactProxy

Re: Multi-Module Project and Servlet Mappings

2011-02-03 Thread newnoise
Got it. Reading your post several times got me to it. Thanks. On 2 Feb., 22:26, newnoise wrote: > Hi, > > I'm having kind of the same problem, but dont understand what you > actually did. Could you maybe post a sample web.xml? > > Thanks in advance! > Tom > > On 14 Jan., 09:37, rsimon wrote: > >

Re: GWT + GILEAD + AXIS2 POJO PROBLEM

2011-02-03 Thread Stefan Ollinger
Hi Daniele, this seems to be a similar problem like before. Hibernate puts a proxy around your objects, so your domain objects have hibernate-specific properties. Axis2 has problems serializing them. You can configure Axis2 appropriately. See this link for a more detailled explanation: http

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
if you do not want your objects to be in Singleton scope, just use Provider in following fashion. no configuration is necessary. public class MyClass { private final Provider fooProvider; @Inject public MyClass(Provider fooProvider){ this.fooProvider = fooProvider; } public void myMethod(){ Fo

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
if you do not want your objects to be in Singleton scope, just use Provider in following fashion. no configuration is necessary. public class MyClass { private final Provider fooProvider; @Inject public MyClass(Provider fooProvider){ this.fooProvider = fooProvider; } public void myMethod(){ Fo

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
if you do not want your objects to be in Singleton scope, just use Provider in following fashion. no configuration is necessary. public class MyClass { private final Provider fooProvider; @Inject public MyClass(Provider fooProvider){ this.fooProvider = fooProvider; } public void myMethod(){ Fo

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
if you do not want your objects to be in Singleton scope, just use Provider in following fashion. no configuration is necessary. MyClass { private final Provider fooProvider; @Inject public MyClass(Provider fooProvider){ this.fooProvider = fooProvider; } public void myMethod(){ Foo foo = fooPr

Re: Range start can not be less than 0

2011-02-03 Thread bond
I've the same problem! Thanks Daniele On 1 Feb, 14:56, Deepak Singh wrote: > Hi All, > > I have cell table working fine. > But when i move through the results fast using arrow keys, i sometimes get > this exception > > (Impl.java:216) 2011-02-01 19:23:53,859 [FATAL] Uncaught Exception: > java.l

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
using a Provider always result in delayed on-demand instantiation, the object is not create unless you get() it. however, if you don't bind it in Singleton scope, this deferred on-demand instantiation will create a new instance every time you call get() on the Provider. in cases where you only ne

Re: GWT + GILEAD + AXIS2 POJO PROBLEM

2011-02-03 Thread bond
HI, any news about this problem? Thanks Regards Daniele On 24 Gen, 18:00, bond wrote: > Hi Stefan, > thanks for your suggestion. I thought about using Request Factory > without Gilead but I should rewrite many lines of code because the > project is very large. > > I think you're right; maybe t

Re: Calculate age

2011-02-03 Thread Thomas Broyer
If you want "JVM forwards compatibility", then use Calendar. If you want "GWT compatibility", then use java.util.Date and ignore the warnings: your code doesn't run in a JVM, what matters is what GWT understands. You can alternatively use JsDate

Re: Bind form values when sending to server

2011-02-03 Thread Thomas Broyer
Yes: the Editor framework! See: http://code.google.com/webtoolkit/doc/latest/DevGuideUiEditors.html http://tbroyer.posterous.com/gwt-21-editors Don't miss the "before / after" sample: https://gist.github.com/780560 -- You received this message because you are subscribed to the Google Groups "G

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Gal Dolber
Yes, I know about singletons. This is not the case. What I am talking about is delayed instantiation. In most of my current use cases the binded object aren't singletons. On Thu, Feb 3, 2011 at 5:03 AM, Ryan Mehregan wrote: > yes, it is totally unnecessary. > > 1- you can annotate your Foo clas

Re: Calculate age

2011-02-03 Thread kkpirri
Isn't there a better solution? I don't like ignoring deprecations because doing that in the future my application won't work. I want to make it compatible with future JVM versions. I am thinking in calculating it with a Javscript script. I would prefer to do it in Java but I think it's a better so

Re: Gin, SingleInstanceProvider?

2011-02-03 Thread Ryan Mehregan
yes, it is totally unnecessary. 1- you can annotate your Foo clas with @Singleton annotation. 2- alternatively you can use bind(Foo.class).in(Singleton.class) in your GIN Module configure() method. now you can use your Provider as you normally would, and it gives you the same Foo instance all th