Opening same application with two different url - GWT

2013-01-07 Thread Fhatu
Hi, I want to open/access my application using two different url, one with parameters and one without in GWT. Regards, Fhatu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

How to test my Spring service from GWT ui using GWTTestCase?

2013-01-07 Thread Saeed Zarinfam
I have configured a GWT project using Spring MVC (for RPC calling and server side dependency injection). I have tested gwt-test-utilshttps://github.com/gwt-test-utils/gwt-test-utilslib, it was working with Spring and Spring MVC nice but my GWT ui is complicated and it could not parse my

Re: Binding Driver To A List

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 8:39:40 AM UTC+1, paran...@gmail.com wrote: Hi Thomas, yes that sounds like exactly what I need. What I don't really understand is: -- you loop over the PropertyDto-s and push their values to the corresponding text box -- how do I gain access to the

Re: Opening same application with two different url - GWT

2013-01-07 Thread Thomas Broyer
And? What's your problem? On Monday, January 7, 2013 9:10:29 AM UTC+1, Fhatu wrote: Hi, I want to open/access my application using two different url, one with parameters and one without in GWT. Regards, Fhatu -- You received this message because you are subscribed to the Google Groups

Re: CSS DropShadow for DockLayoutPanel?

2013-01-07 Thread Thomas Broyer
On Wednesday, January 2, 2013 10:12:10 AM UTC+1, membersound wrote: Hi, I'm trying to apply a dropshadow around a DockLayoutPanel area. But can't get it to work: .shadow { -moz-box-shadow: 3px 3px 4px #000; -webkit-box-shadow: 3px 3px 4px #000; box-shadow:

Re: Opening same application with two different url - GWT

2013-01-07 Thread Fhatu
Thanks for the reply Thomas Im very new on GWT, in my application an email will be send to a user containing a hyperlink which the user can click to access the application. This link will contain workitem tag to determine whick item to open in a celltable list and other url wont contain the

Re: Opening same application with two different url - GWT

2013-01-07 Thread Fhatu
First scenario i'm using this link http://dtwtest02:8080/Enforcements/launch.html#Login which is working perfectly, but i want to have something like this http://dtwtest02:8080/Enforcements/launch.html?casenum=95669qname=BIA-Central-T1stepname=DEPTRESP#bpm which is another way to access the

Re: Opening same application with two different url - GWT

2013-01-07 Thread Thomas Broyer
What have you tried? What was the result? (hint: com.google.gwt.user.client.Window.Location.getParameter(casenum)) On Monday, January 7, 2013 10:43:42 AM UTC+1, Fhatu wrote: First scenario i'm using this link http://dtwtest02:8080/Enforcements/launch.html#Login which is working

GWT rpc callback does not call after calling in GWTTestCase

2013-01-07 Thread Saeed Zarinfam
I have written a GWTTestCase like this: public void testClickButton() { SampleView view = new SampleView(); RootPanel.get().add(view); view.textBox.setText(Saeed Zarinfam); assertEquals(, view.label.getText()); //

Re: GWT rpc callback does not call after calling in GWTTestCase

2013-01-07 Thread Thomas Broyer
Answered on http://stackoverflow.com/questions/14194561/gwt-rpc-callback-does-not-call-after-calling-in-gwttestcase On Monday, January 7, 2013 12:04:23 PM UTC+1, Saeed Zarinfam wrote: I have written a GWTTestCase like this: public void testClickButton() { SampleView view = new

How to center an Image?

2013-01-07 Thread membersound
How can I center an image using uibinder? This is what I tried and does not work: .myImage { horizontal-align: bottom; vertical-align: bottom; text-align: bottom; } g:SimplePanel styleName={style.myImage} g:Image styleName={style.myImage}/ /g:SimplePanel -- You received this

Changing label style in uibinder?

2013-01-07 Thread membersound
The following Label is not bold. What am I missing here? ui:style .gwt-label { font-style: bold !important; } /ui:style gwt:Labelbold/gwt:Label -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

Ultimate GWT + GAE + Datanucleus + Eclipse + Maven Guide

2013-01-07 Thread Benjamin Possolo
Hey all, I wrote this guide on setting up a project that uses GAE, GWT, Datanucleus, Eclipse and Maven. It is a case study of a complicated project and should be useful to those of you wishing to move to a Maven-based build system.

Re: Changing label style in uibinder?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 1:12:36 PM UTC+1, membersound wrote: The following Label is not bold. What am I missing here? Many, many things. 1. The default style name for a Label is gwt-Label, not gwt-label 2. to turn text bold, the property to use is font-weight, not font-style 3.

Re: How to center an Image?

2013-01-07 Thread Benjamin Possolo
an img element is, by default, an inline element (as opposed to a block element). That means you can simply use the following css property to center it: .myImage { text-align: center; } g:SimplePanel g:Image styleName={style.myImage}/ /g:SimplePanel the image will be centered within the

How to validate TextBox fields?

2013-01-07 Thread membersound
I'm having problems in getting started with GWT Validation. I just want to validate some form fields on a page. I started like this, but don't know how to go on: class Person { @Size(min = 4, message = Name too short.) private String name; Person(name) { this.name = name; } }

Re: Changing label style in uibinder?

2013-01-07 Thread membersound
Thanks for that comprehensive answer. Helps me alot! -- 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/-/s0aih3bG7HkJ. To post to this group, send

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
Take a look at: https://developers.google.com/web-toolkit/doc/latest/DevGuideValidation The GWT SDK also contains a small validation example project that validates a Person before sending it to the server. -- J. -- You received this message because you are subscribed to the Google Groups

how to preload the result of an RPC call on the initial loading page

2013-01-07 Thread Chii
I have an gwt app that needs some initial data during load. I'd like to minimize the http calls the app makes, and this initial data is user specific, but doesn't change very much per user (imagine user preferences). I want to preload the result of the call onto the page (but i don't want a

Re: How to validate TextBox fields?

2013-01-07 Thread membersound
Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) - how to display an

How to only allow digits to be entered in a textbox?

2013-01-07 Thread membersound
Hi, I have a textbox where I want to user to only enter digits. Moreover I want to prevent him entering other characters. This is what I tried but it does not work: @UiHandler(textbox) void onInputsKeyPress(KeyPressEvent event) { if (!Character.isDigit(event.getCharCode())) {

How to preserve session state with a canvas?

2013-01-07 Thread membersound
Hi, I'm creating a canvas where the user can draw some elements himself. Is it possible with GWT to preserve the user session somehow? And if he refreshes the browser, all his drawings should be still there / beeing recreated? Coming from JSF I'd just use @SessionScoped, but how can this be

Re: how to preload the result of an RPC call on the initial loading page

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 3:07:36 PM UTC+1, Chii wrote: I have an gwt app that needs some initial data during load. I'd like to minimize the http calls the app makes, and this initial data is user specific, but doesn't change very much per user (imagine user preferences). I want to

Re: JWebSocket using GWT

2013-01-07 Thread mukarev
I made a wrapper for the jWebSocket client stuff - have a look here - https://github.com/mukarev/gWebSocket Am Samstag, 23. April 2011 03:34:50 UTC+2 schrieb GWT Kid: Folks , I am build a chat Server App in GWT .I came across JWebSocket . (http://jwebsocket.org/) This seems to be useful .

Re: How to validate TextBox fields?

2013-01-07 Thread Jens
Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a valid age before creating the person object) Your validation

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of numbers like int age; There I'd first like the validator to catch if it's a

Maintaining security in an additional servlet

2013-01-07 Thread Flying-w
I have a GWT application that among many things shows PDFs that are stored on the server side. I have a security related question, as described below. When a user logs in through a dialogue on the client side, I make a note of the userid they entered while processing the login on the server

Re: Binding Driver To A List

2013-01-07 Thread Petar Tahchiev
It works great now. Thanks 2013/1/7 Thomas Broyer t.bro...@gmail.com: On Monday, January 7, 2013 8:39:40 AM UTC+1, paran...@gmail.com wrote: Hi Thomas, yes that sounds like exactly what I need. What I don't really understand is: -- you loop over the PropertyDto-s and push their

Re: How to validate TextBox fields?

2013-01-07 Thread Nick Chalko
On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate the name before creating the person object (which I'm looking for in terms of

Re: Maintaining security in an additional servlet

2013-01-07 Thread Jeffrey Chimene
On 1/7/2013 8:43 AM, Flying-w wrote: I have a GWT application that among many things shows PDFs that are stored on the server side. I have a security related question, as described below. When a user logs in through a dialogue on the client side, I make a note of the userid they entered

Re: How to validate TextBox fields?

2013-01-07 Thread Thomas Broyer
On Monday, January 7, 2013 4:50:03 PM UTC+1, Nick Chalko wrote: On Mon, Jan 7, 2013 at 7:42 AM, Thomas Broyer t.br...@gmail.comjavascript: wrote: On Monday, January 7, 2013 3:45:53 PM UTC+1, membersound wrote: Yes I know this side. But it still does not tell me: - how to validate

Re: Code Splitting Simple Example Still getting Thrown into Left Overs

2013-01-07 Thread Ashton Thomas
Ed, thanks for the reply. I did some more digging off of the link you sent and, although I don't think this is the same issue, I found the following issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5069 (Note: I switched versions to 2.4 and still had the same problem) It

Re: Code Splitting Simple Example Still getting Thrown into Left Overs

2013-01-07 Thread Ashton Thomas
Ed, thanks for the reply. I did some more digging off of the link you sent and, although I don't think this is the same issue, I found the following issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=5069 (Note: I switched versions to 2.4 and still had the same problem) It

Re: Maintaining security in an additional servlet

2013-01-07 Thread Flying-w
Thanks for the reply. The PDF content is highly valuable, so each request must be authenticated and the pdf content must be delivered to the browser securely. Recommendations for other delivery methods? Perhaps the ideal solution is to have the PDF content delivered in the response to a GWT

Re: Maintaining security in an additional servlet

2013-01-07 Thread Jeffrey Chimene
On 01/07/2013 09:23 AM, Flying-w wrote: Thanks for the reply. The PDF content is highly valuable, so each request must be authenticated and the pdf content must be delivered to the browser securely. Recommendations for other delivery methods? There is no reason to deliver the content

Re: Code Splitting Simple Example Still getting Thrown into Left Overs

2013-01-07 Thread Jens
Currently using http://code.google.com/p/google-web-toolkit/issues/detail?id=5129#c18 and so far I haven't seen an issue with it. I also proxy complete ActivityMappers so I can freely decide if I want to code split a single activity or a group of activities because it does not buy you anything

gwt v2.0 with newer eclipse version

2013-01-07 Thread john . strockmeyer
i initially created a gwt 2.0-based application using eclipse 3.5. however, when i upgraded to newer eclipse version 3.6, the gwt plugin stopped working. i am no longer able to perform gwt compile in eclipse, nor the runtime debugging. is there a way to make older gwt versions work with newer

Re: gwt-compile issue

2013-01-07 Thread Rahul Chauhan
Hi,Naveen Gayar it help for you Make sure your Eclipse gives priority to GWT hosted mode libraries. Go to your GWT project properties (In project Explorer right click on the project and select Properties). Then navigate to J*ava Build Path-Order And Export tab. Move the GWT SDK bundle above

Facebook + hosted.html

2013-01-07 Thread Brian Henry
A Facebook app I've been working on has stopped working in hosted mode. Some editing of hosted.html was always necessary to get it running inside the Facebook canvas, as per: http://code.google.com/p/google-web-toolkit/issues/detail?id=4468 I've updated Eclipse (4.2.1), GWT (201212122042), the

Using JSNI to create Labeled Marker cause Object function MarkerLabel_(marker, crossURL, handCursorURL){ …} has no method 'getSharedCross'

2013-01-07 Thread bonnv4
I tried to create a *Label Marker* by using *JSNI* to call *google-maps-utility-library-v3 's markerwithlabel.js* . However, I always receive this exception : com.google.gwt.core.client.JavaScriptException: (TypeError)

GWT Support for WebSockets

2013-01-07 Thread SecondThought
Hi, I found some posts about this but they are all outdated so I decided to ask for an up-to-date statement about this. Is there currently an official WebSocket implementation in GWT? (Not talking about Comet or other related projects) If not, is anything planned or any release in sight?

Re: Form factor support using GIN

2013-01-07 Thread Alexandre Senecal
Thank you for this example, it was quite helpful! One small correction, the form factor specific Ginjectors should extend the MyGinjector interface as follows: @GinModules(SharedGinModule.class, DesktopGinModule.class) interface DesktopGinjector extends *MyGinjector *{ // nothing special

GWT with javascripted web templates

2013-01-07 Thread Łukasz J
Hi, I have question, is gwt framework is good for using with web templates that are based on javascript? Actually Iam trying to put whole html from template to UiBinder but page is rendered without javascript I think. Because there is a lot js scripts in my template I search for quick solution

DOM manipulation - setting the height and top in onMouseDown has flakey results

2013-01-07 Thread jkenoyer
We are trying to resize a DOM Div element on the mouse down event by setting the element top and height attribute. This seems to randomly set one or the other or sometimes both. The result is as the user drags the mouse the div keeps flicking and changing size. We tried setting one of the

Re: Changing label style in uibinder?

2013-01-07 Thread RyanZA
Hi Thomas Do you know if there are any plans to move the gwt-* css styles into the CssResource system directly? It's confusing to have all of the default GWT widgets use external styles when it's also recommended for users to use CssResource? On Monday, January 7, 2013 2:30:49 PM UTC+2, Thomas

Re: Facebook + hosted.html

2013-01-07 Thread Michael Joyner
Have you tried changing your plugin's settings to be able to access on a non 127.0.0.1 address and access it that way? (Changing the URL to match of course...) On Sun, Jan 6, 2013 at 7:28 PM, Brian Henry brian.hen...@gmail.com wrote: A Facebook app I've been working on has stopped working in

Re: DOM manipulation - setting the height and top in onMouseDown has flakey results

2013-01-07 Thread emurmur
I don't know exactly what your code looks like, but generally, you can listen for the mousedown on the target div, but the mousemove and mouseup you may want to listen on the body element or some enclosing parent div, because you are constantly moving the mouse out of the div. Also, make sure

Re: Maintaining security in an additional servlet

2013-01-07 Thread Flying-w
Once again thanks for the suggestions. Email won't work here however, as the GWT application is an interactive workflow management tool. When a user wishes to see a PDF, they need to see it right now rather than wait for a link to be supplied via email. If browser is the only way forward,

Re: Maintaining security in an additional servlet

2013-01-07 Thread Andy Stevko
If the content is highly sensitive, then using adobe's own method of securing it would be the simplest method. Encrypting / Password protecting a pdf file is pretty basic security that would stop the casual hacker. Your service needs to prevent request record and replay attacks. Viewing

Re: Maintaining security in an additional servlet

2013-01-07 Thread Michael Joyner
On Mon, Jan 7, 2013 at 2:23 PM, Flying-w simonjone...@googlemail.comwrote: Once again thanks for the suggestions. Email won't work here however, as the GWT application is an interactive workflow management tool. When a user wishes to see a PDF, they need to see it right now rather than wait

Re: GWT application runtime memory size is too large (client side)

2013-01-07 Thread Benjamin Possolo
+1 to this code splitting will be the biggest improvement you can make. if you are using activities/places then it is easy to introduce split points around every activity (using AsyncProxy). If your UiBinder templates are innefficiently written then it will impact memory a lot. prefer using

Re: ByteBuffer to String

2013-01-07 Thread Benjamin Possolo
ByteBuffer is not supported in GWT client code as documented here https://developers.google.com/web-toolkit/doc/latest/RefJreEmulation#Package_java_io so you should re-evaluate whatever you are doing with those first. I dont know if that google library you are using for the charsets class works

Re: GWT CustomFieldSerializer Recursivity

2013-01-07 Thread Brandon Donnelson
Sounds good. Once I saw where the white list .gwt.rpc was getting built this made more sense. Its probably splitting hairs optimizing for that recursion :) On Sunday, January 6, 2013 4:30:32 AM UTC-8, Thomas Broyer wrote: On Wednesday, January 2, 2013 6:39:47 PM UTC+1, Thomas Broyer wrote:

Re: Ultimate GWT + GAE + Datanucleus + Eclipse + Maven Guide

2013-01-07 Thread Brandon Donnelson
Wow, great article. Nice job! On Monday, January 7, 2013 4:23:13 AM UTC-8, Benjamin Possolo wrote: Hey all, I wrote this guide on setting up a project that uses GAE, GWT, Datanucleus, Eclipse and Maven. It is a case study of a complicated project and should be useful to those of you

Re: dynamic dialog works in dev environment but not when deployed

2013-01-07 Thread Jirka
Looking back in time, I found the problem. It was Java autoboxing wackiness which happened to manifest itself @ the wrong time. There is discussion about it on http://bexhuff.com/java-autoboxing-wackiness. Figured someone might be interested. -J On Friday, January 14, 2011 7:57:30 PM UTC+1,

help to understand uiRenderer

2013-01-07 Thread Axel REGNOULT
Hi, I am trying to use a CellList with a CellRenderer and I did a simple example that is just using a contact name in the .ui.xml. I have tried https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Rendering_HTML_for_Cellsbut I have a problem... Indeed, in my list of contact,

adding scroll panel to popup panel

2013-01-07 Thread sreenivas
Hi, I have a popup panel which opens on a button click event. Popup panel height should be fixed and if contents of popup panel exceeds the height of popup panel, then a vertical scroll bar needs to be attached to it, and i should be able to scroll it to see the contents. How to achieve this?

How can i say GWTTesCase use web.xml configuration instead of servlet tags define inside *.gwt.xml?

2013-01-07 Thread Saeed Zarinfam
I understand that GWTTesCase does not use web.xml for test gwt widgets and use servlet tags define inside *.gwt.xml (module file). I was wondering how can i define filter or listener or context-param or 'servlet init-param' for using in GWTTesCase or How can i say GWTTesCase use web.xml

[gwt-contrib] Add a new debug CSS obfuscation style [obfuscatedName-javaTypeName-cssClassName] useful for da... (issue1881803)

2013-01-07 Thread ehwang
Reviewers: skybrian, Description: Add a new debug CSS obfuscation style [obfuscatedName-javaTypeName-cssClassName] useful for day-to-day development work. It avoids name conflicts and isn't too long while still having enough information to easily find the source. Please review this at

[gwt-contrib] Re: Add a new debug CSS obfuscation style [obfuscatedName-javaTypeName-cssClassName] useful for da... (issue1881803)

2013-01-07 Thread skybrian
LGTM. Thanks! http://gwt-code-reviews.appspot.com/1881803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors