Re: Accessing HTTPSession in ServiceLocator or DAO

2011-12-20 Thread Bestmacfly
No one here who wants to give me some hints? We want to start our first productive project with GWT soon and I would like to understand the best way of session handling before... Best regards Mark On 15 Dez., 11:53, Bestmacfly mark.mesc...@googlemail.com wrote: Hi, I'm new to GWT and just

Re: Removing Injected CssResources at Runtime

2011-12-20 Thread Ed
I don't think that GWT is currently well suited for doing this dynamically. It is however well suited to do this statically through a refresh of the page. I do it statically by using @eval in my css files that reference preference classes. Preference classes are selected through a theme and the

Re: Removing Injected CssResources at Runtime

2011-12-20 Thread Thomas Broyer
How about making other rules apply rather than changing the content of the rules that apply? I.e. have .theme1 .someClass in theme1 and .theme2 .someClass in theme2, and simply switch the class name on the Document.get().getBody() to switch theme. That way, you don't need to uninstall the

Re: Removing Injected CssResources at Runtime

2011-12-20 Thread Ed Bras
Yes of course, simple and straight forward... Just change the parent (cascading) style. On Tue, Dec 20, 2011 at 11:28 AM, Thomas Broyer t.bro...@gmail.com wrote: How about making other rules apply rather than changing the content of the rules that apply? I.e. have .theme1 .someClass in theme1

GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread saurabh saurabh
Hi everyone, I am very delighted to announce the release of gwt- rcharts to GWT community. It renders interactive charts on client side based on SVG and VML with cross browser support*. The library is based on a popular javascript library rapheaeljs and

Re: Accessing HTTPSession in ServiceLocator or DAO

2011-12-20 Thread Jens
You could for example create a public static method in your custom RequestFactoryServlet that delegates to RequestFactoryServlet.getThreadLocalRequest().getSession(). Or you just use some other class that stores the session as a ThreadLocal. But if you do it yourself, keep in mind to clear the

Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread saurabh saurabh
Oops!! I forgot to mention the links, here they are : http://code.google.com/p/gwt-rcharts/ and http://www.gwt-charts.com/ -- 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-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread Giuseppe La Scaleia
+1 here. Great work 2011/12/20 saurabh saurabh saurabh.bl...@gmail.com Oops!! I forgot to mention the links, here they are : http://code.google.com/p/gwt-rcharts/ and http://www.gwt-charts.com/ -- You received this message because you are subscribed to the Google Groups Google Web

Re: Accessing HTTPSession in ServiceLocator or DAO

2011-12-20 Thread Bestmacfly
Thank you a lot, Jens, I just accessed the session via my DAO, exactly what I was looking for! With this I can implement some filters in my DAO without having to send ID's as method parameter, perfect! I didn't seen before that there are already some static methods for accessing the request...that

Re: Non-Cloud development with GWT

2011-12-20 Thread MagusDrk
Thanks for your quick answers, guys. I suppose its easy to find info about how to use my own server, datastorage, etc. in order to develop non-cloud apps with GWT. I'm very quiet (and my boss will be). Anyway, I'll be asking for help and advice. Magus. -- You received this message because you

Caused by: java.lang.IllegalArgumentException: Cannot fetch unpersisted entity

2011-12-20 Thread tzhotmail
Hi, I have a base Entity class with subclasses as shown below. I can view and update my entities but I get the exception java.lang.IllegalArgumentException: Cannot fetch unpersisted entity whenever I try to save /persist a new entity. Does request factory support inheritance ?

GWT POPUP Z AXiS Order and after Keypress data change handler

2011-12-20 Thread RAY RAY
Dear Friends, i have a project on going and i need some help from you guys I have 2 questions I create a TabSet and a newTAB in it. inside the TAB i put a TextBox 1- I add an eventhandler to text box every time event fired a popup is set to be shown and after a while set to be hide.

Re: Entry Point

2011-12-20 Thread Maximilian Eberl
I do the following: Create an application in a war named ROOT.war - when deployed to Tomcat this reacts to www.myserver.com/index.html Let us assume You want three entry points / - (the main application - public) /membersonly - login secured area /admin - the admin area So create two folders in

Why com.google.gwt.dev.DevMode doesn't recognize the argument -style?

2011-12-20 Thread hallmit
Hi folks, I'm experiencing a little bit problem. I would like to launch my application in development mode (known also as Hosted mode). My current GWT version is 2.3.0. For debug reasons, I want to inspect the generated JavaScript in my browser but the default format is a non-human readable

Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread Maximilian Eberl
Hi Saurabh, this looks great! I am going to try it out. Maximilian Oh man! How long did I fuzzle around with embedded Flash Animations throwing data into them with JavaScript -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Unowned relationships on unsaved data objects.

2011-12-20 Thread MagusDrk
Hi, additionally, I need to use and reference unsaved objects by id, but before being saved, they have null Id, how can I handle it? Help, please. -- 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: Motion Chart - line and background color

2011-12-20 Thread llefler
Has anyone ever been able to do this, or looked into doing it? Thanks! On Dec 19, 3:53 pm, llefler lakota.lef...@gmail.com wrote: Hello, I am working on fixing up the GWT -MotionChartand wanted to know if anyone knows a good way of approaching an implementation for changing or regulate the

popuppanel always has an offsetwidth of 10 and offsetheight of 0

2011-12-20 Thread Dennis Haupt
i use: popup.showRelativeTo(widget...) in my debugger i can see that during the callback: public final void showRelativeTo(final UIObject target) { // Set the position of the popup right before it is shown. setPopupPositionAndShow(new PositionCallback() { public void

Re: Caused by: java.lang.IllegalArgumentException: Cannot fetch unpersisted entity

2011-12-20 Thread Thomas Broyer
On Monday, December 19, 2011 10:59:16 PM UTC+1, tzhotmail wrote: Hi, I have a base Entity class with subclasses as shown below. I can view and update my entities but I get the exception java.lang.IllegalArgumentException: Cannot fetch unpersisted entity whenever I try to save /persist a

Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread Alfredo Quiroga-Villamil
Like it a lot, neat and seems very simple to use. Good work! On Tue, Dec 20, 2011 at 6:28 AM, saurabh saurabh saurabh.bl...@gmail.comwrote: Oops!! I forgot to mention the links, here they are : http://code.google.com/p/gwt-rcharts/ and http://www.gwt-charts.com/ -- You received this

Re: Why com.google.gwt.dev.DevMode doesn't recognize the argument -style?

2011-12-20 Thread Thomas Broyer
On Tuesday, December 20, 2011 12:05:14 PM UTC+1, hallmit wrote: Hi folks, I'm experiencing a little bit problem. I would like to launch my application in development mode (known also as Hosted mode). My current GWT version is 2.3.0. For debug reasons, I want to inspect the generated

Re: Non-Cloud development with GWT

2011-12-20 Thread Thomas Broyer
On Tuesday, December 20, 2011 2:07:01 PM UTC+1, MagusDrk wrote: Thanks for your quick answers, guys. I suppose its easy to find info about how to use my own server, datastorage, etc. in order to develop non-cloud apps with GWT. GWT is mostly about client code; on the server it's only

Re: Entry Point

2011-12-20 Thread Ed Bras
I do the following: It's not a very elegant solution and you still have only one entry point. You mainly dispatch depending on the action found in the url. I would definitely get ride of the refresh action which causes an extra server-client round trip. Round trips should be minimized as much as

Re: Unowned relationships on unsaved data objects.

2011-12-20 Thread Ed
Which widgets are you using ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TjJYrGJPTxIJ. To post to this group, send email to

Re: GWT POPUP Z AXiS Order and after Keypress data change handler

2011-12-20 Thread Ed
1- I add an eventhandler to text box Sounds like a css issue. Use Firebug to solve this. Probably the z-index isn't correct. 2 - i add keypress event handler to text box See the Event class for the possible events that you can use. For example: Event.ONCHANGE -- You received this

Re: Poor quality code produced by uiBinder when using CSSResources

2011-12-20 Thread Paul Stockley
That isn't the case, I can tell a measurable difference. This change was introduced when uiBinder switched to use SafeHTMLTemplates. You can use the following to disable its use set-configuration-property name=UiBinder.useSafeHtmlTemplates value=false/ In a more extreme example, I was using a

How to set a Presenter in a composite Widget?

2011-12-20 Thread James Drinkard
Hello All, I have a GWT 2.4 app using MVP, clientFactory, activities, places, and uiBinder. I have a composite widget that I created as a standalone object with it's own ui.xml file. I reference that class and insert it into the main viewImpl.ui.xml file. The composite widget receives some data

Clientbundle mearges all images into one and displays the mearged image

2011-12-20 Thread Deepak Singh
Hi, GWT 2.4 I have a client bundle and generates images and background images as follows, Document.get().getElementById(hbhtopbar2).getStyle(). setBackgroundImage(url(+HomePageClientBundle.INSTANCE.topbar2().getSafeUri().asString()+)); Image hbtopbar3 =

UiBinder use ImageResource height and width to specify a elements height and width

2011-12-20 Thread Patrick Tucker
I'm trying to convert one of my Widgets to a UiBinder in GWT 2.4. The current Widget uses the width from an ImageResource to size a parent TD element. The parent TD has to be the exact same size as the image or the overall Widget will not look right. I do not want to hard code the value... I

Re: Clientbundle mearges all images into one and displays the mearged image

2011-12-20 Thread Patrick Tucker
Take a look at image sprites. On Dec 20, 1:44 pm, Deepak Singh deepaksingh...@gmail.com wrote: Hi, GWT 2.4 I have a client bundle and generates images and background images as follows, Document.get().getElementById(hbhtopbar2).getStyle().

RequestFactory ValidationTool

2011-12-20 Thread Mike Breytenbach
Hi I'm trying to learn how to use RequestFactory. I created a new App Engine Connected Android project. In the shared MyRequestFactory class I then add RequestString getSomethingElse(); to the code below, just before the closing curly bracket.

Can't deploy to appengine with Eclipse Google Plugin 2.5 (using maven)

2011-12-20 Thread Mathieu Clavel
Hello, I'm developping a gwt/gae project on eclipse indigo. It's a maven project. I'm using the google plugin, and the m2e plugin to manage the project. The project has a maven webapp folder : src/main/webapp When using the develop server, all is put by the maven plugin in the folder

Remote Logging

2011-12-20 Thread Keith Bennett
I have Remote Logging enabled, and any data logged in my GWT client code only shows up in my Tomcat console. I have logback configured and correctly logging data to log files for server code. Does anyone know how I can configure GWT remote logging so that my client log data gets directed to my

Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread Erez Lirov
Nice! I added this to a GXT LayoutContainer with a FitLayout. Any idea how to allow dynamic sizing? Doing this in the onRender() function seems to work only for the initial size. Once I add it into the container though, if I try to resize, the chart stays the same size and just clips if the

Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2011-12-20 Thread Jesus Urenda
I just wanted to say that I'm having the same issue. Any help is greatly appreciated. Thanks. On Dec 10, 9:39 am, Ruben Leal rusol...@gmail.com wrote: Hello guys, I'm trying to test gwt2.4 RequestFactory technology with Hibernate validator 4.2. After adding libs to my WEB-INF/lib I have

Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem

2011-12-20 Thread Jesus Urenda
I was able to fix this issue in my environment but I'm not 100% sure why. Basically all I did was to remove the hibernate jar out of the WEB-INF/lib but made sure it was still part of the projects build path. Contents of WEB-INF/lib appengine-api-1.0-sdk-1.6.0.jar appengine-api-labs-1.6.0.jar

Remote Logging

2011-12-20 Thread Thomas Broyer
GWT only uses java.util.logging, so you have to configure the Slf4j bridge to redirect the logs to logback. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Clientbundle mearges all images into one and displays the mearged image

2011-12-20 Thread Thomas Broyer
Use @sprite in a CssRessource so it sets the appropriate background position. If you have an Image widget, pass the ImageRessource to setRessource. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: GWT-RCharts Released (An interactive client side Charting Library with 3D CHARTS)

2011-12-20 Thread saurabh saurabh
Hi Erez, nice question, actually its going to be an issue to attend, Thanks for drawing attention over this. Anyway work around solution could be like : making and adding a new chart instance with new dimension and removing the old chart. -- You received this message because you are subscribed

Re: Unowned relationships on unsaved data objects.

2011-12-20 Thread MagusDrk
Sorry, I don't understand widgets, I'm refering to Data (DAO) classes and JDO persistence. On 20 dic, 10:18, Ed post2edb...@gmail.com wrote: Which widgets are you using ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: Unowned relationships on unsaved data objects.

2011-12-20 Thread Ed Bras
Sorry, I don't understand widgets, Exactly my point... I think you posted your message in the wrong forum. On Tue, Dec 20, 2011 at 11:34 PM, MagusDrk magus@googlemail.com wrote: Sorry, I don't understand widgets, I'm refering to Data (DAO) classes and JDO persistence. On 20 dic, 10:18,

Re: UiBinder use ImageResource height and width to specify a elements height and width

2011-12-20 Thread Ed
Try 22px BTW: I these day's I would build my widgets tabless as much as possible -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HogMhVzLBmYJ.

Re: Validation framework fails to compile due to ScriptAssertValidator

2011-12-20 Thread koma
I found it... I started out with GWTVF (Gwt validation framework, another library. That one required this JVM setting : -Dgwt.validation.excluded.ValidatorClassesRegexp=^org.hibernate.* which was still set. Removing it fixed my issue. -- You received this message because you are subscribed to

Re: GWT POPUP Z AXiS Order and after Keypress data change handler

2011-12-20 Thread Jens
2 - i add keypress event handler to text box this eventhandler is called before the data changes inside the textbox so i recall keypress handler twice to get the data change after every key press. this is a work around, how can i handle the data change after a keypress Use the

GWT Date Formatting

2011-12-20 Thread Vemuri Karthik
I have a customized GWT Date -Time widget which is a combination of two text boxes, one to hold the date and one to hold time. When I enter the date 04/09/1956 12:00 AM (in the Date widget), internally in the ValueChangeHandler for my widget I run it through the GWT's DateTimeFormat class'

Re: GWT 2.1 cell table paging bug?

2011-12-20 Thread Steve
This behavior deviates from widespread usage of pagination across the web so I don't see how it's desirable to do something unexpected by users unless it's clearly superior. When I navigate from one page to another it's because I want to see the next set of results/data and I expect the stuff

How to adjust height of richtextbox dynamically based on inner content?

2011-12-20 Thread Alex Luya
public class AutoResizeBox extends RichTextArea { public AutoResizeBox() { set(getElement()); } public static native void set(Element f) /*-{ console.log(f.tagName) ; // console.log(f.document.body.scrollHeight + 'px'); }-*/; } RichTextBox is based on

Re: Is GWT preferable for large scale projects similar to FB?

2011-12-20 Thread -sowdri-
If speed is critical for your application then there are 2 things to consider: 1. Speed after the application is loaded. 2. Speed in which the application loads up. If you are concerned about latter, then you have to either use code splitting or consider moving to jsp. Because in a

Re: I could use some Guru recommendations on MapV3 API Event bindings model?

2011-12-20 Thread Brandon Donnelson
So far this is what I have and seems to be working good. I'll stick with this for now I think and change it if something better comes up. public class MapHandlerRegistration { /** * create a handler for eventName * @param w * @param eventName * @param handler * @return */

Re: I could use some Guru recommendations on MapV3 API Event bindings model?

2011-12-20 Thread Brandon Donnelson
And using it in MapWidget: public HandlerRegistration addClickHandler(ClickMapHandler handler) { return MapHandlerRegistration.addHandler(this, click, handler); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this

STS Dynamic web project vs GWT project

2011-12-20 Thread sampath sai
Hi , I am using Spring STS to build GWT and Spring web application. I created dynamic project and added GWT to it. when i am compile i am getting below error. Please help, if i am missing anything. Compiling module com.base.HelloWorld [ERROR] Unexpected internal compiler error

Showing loading image in cell table

2011-12-20 Thread Nitin
Hi friends, I am using ListDataProvider to load the data into the celltable. I have also set an EmptyTableWidget using setEmptyTableWidget which shows an HTML panel when the table is empty. I want to know if there are any ways to get the loading symbol by removing the empty table widget while the

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread t . broyer
Starting to add unit tests for JsonRpc support in RF would be great (though not easy, as GWT doesn't provide any server-side utility). Otherwise, LGTM (but see comments below).

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread t . broyer
I'm not keen on the proposed changes to setAcceptableValues and setValue. ValuePicker is supposed to be usable as a thin wrapper around a CellList, without even calling setAcceptableValues. With your proposed changes, setValue would break the list as soon as you use pagination (getVisibleItems()

[gwt-contrib] Re: Reducing the unsafe URI log warning to an info. If you use a String in a URI context, we sanitiz... (issue1616804)

2011-12-20 Thread jlabanca
committed as r10804 http://gwt-code-reviews.appspot.com/1616804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread rdayal
http://gwt-code-reviews.appspot.com/1618806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread rdayal
Thanks very much for the review! Your point is taken on tests; I'm currently in the process of writing some rudimentary tests for JSON-RPC in RequestFactory. As you mention, these tests will not be integration-level tests at first, as there is no RF server side in the testing infrastructure (as

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread rdayal
(to be clear, the patch with test will be part of a separate issue). http://gwt-code-reviews.appspot.com/1618806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread stephen . haberman
I'm not keen on the proposed changes to setAcceptableValues and setValue. Okay, I'll back off of that then; I was thinking, albeit naively, that behaving as much as like ValueListBox as possible would be a good thing. But good point on the paging. Thanks for the review!

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread stephen . haberman
http://gwt-code-reviews.appspot.com/1614807/diff/1/user/src/com/google/gwt/user/client/ui/ValuePicker.java File user/src/com/google/gwt/user/client/ui/ValuePicker.java (right): http://gwt-code-reviews.appspot.com/1614807/diff/1/user/src/com/google/gwt/user/client/ui/ValuePicker.java#newcode50

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread t . broyer
LGTM http://gwt-code-reviews.appspot.com/1618806/diff/2001/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java File user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java (right):

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread stephen . haberman
http://gwt-code-reviews.appspot.com/1614807/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread t . broyer
Not sure about the test details (documenting the differences with ValueListBox which are another issue –that might need to be addressed too, but independently as this one) but overall LGTM. Be sure to see my comment on getValue() though.

[gwt-contrib] Re: Adding an option to change the debug id property and prefix. Some users prefer to use a random a... (issue1618804)

2011-12-20 Thread unnurg
On 2011/12/16 17:38:57, jlabanca wrote: LGTM http://gwt-code-reviews.appspot.com/1618804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] 2.4 Uibinder code inefficiency

2011-12-20 Thread Paul Stockley
I use a lot of HTML panels so I can use native html for as much layout and styling as possible for performance reasons. I try and minimize the number of widgets I use which is especially helpful on mobile devices. As a result, I use quite a lot of css class references to either local uibinder

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread rdayal
On 2011/12/20 20:21:45, skybrian wrote: http://gwt-code-reviews.appspot.com/1618806/diff/1003/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java File user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java (right):

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread rdayal
On 2011/12/20 22:31:52, rdayal wrote: On 2011/12/20 20:21:45, skybrian wrote: http://gwt-code-reviews.appspot.com/1618806/diff/1003/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java File

[gwt-contrib] Re: Properly encode request parameters that use Collections when in JSON-RPC mode. (issue1618806)

2011-12-20 Thread Brian Slesinsky
On Tue, Dec 20, 2011 at 2:36 PM, rda...@google.com wrote: On second thought, even though List and Set are the two that are technically allowed, there's really no problem with JSON-RPC and the encoding of a Collection, as its done in the exact same way regardless of the collection; I don't

[gwt-contrib] Re: Add ProvidesKey support to ValuePicker (issue1614807)

2011-12-20 Thread stephen . haberman
http://gwt-code-reviews.appspot.com/1614807/diff/6001/user/src/com/google/gwt/user/client/ui/ValuePicker.java File user/src/com/google/gwt/user/client/ui/ValuePicker.java (right):

[gwt-contrib] Re: Add null check to ValueListBox.updateListBox (issue1619803)

2011-12-20 Thread stephen . haberman
http://gwt-code-reviews.appspot.com/1619803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors