Re: GWT/CSS text align problem

2012-12-18 Thread Thomas Broyer


On Tuesday, December 18, 2012 8:43:54 AM UTC+1, Magnus wrote:
>
> Hello,
>
> assume a rectangular region at the bottom of the browsers content, used as 
> a statusbar. 
>
> There should be three containers for text: 
>
> - left edge, vertically centered, defined left padding 
> - right edge, vertically centered, defined right padding 
> - center, vertically centered 
>
> +-+ 
> | left center   right | 
> +-+ 
>
> I used to realize this with a lot of panels and onResize events, until I 
> learned in this group that I should better do it with CSS.
>
> Then, I found a solution using CSS, which worked for me:
>
>  
>   
>
>LEFT 
>
>   
> RIGHT 
>  
> CENTER
>  
>
> I create this code with a class "Bar" as shown below.
>
> However, I found that it does not work in IE8: The text "RIGHT" is not at 
> the right edge of the bar, but below the word "LEFT".
>

Haven't looked in details but if you use display:table why are you using 
floats? why not use display:table-cell to split your row into 3 cells?

-- 
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/-/pRv8tHe-NAkJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Magnus
Hi Thomas,

I assume you mean something like this:
http://jsfiddle.net/3EJ7A/19/

In this case the cells all are aligned to the left.
How can we position them left, right and centered?

Magnus

-- 
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/-/jRT__75i34wJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



how to show horizontal scrollbar in scrollpanel automatically?

2012-12-18 Thread tong123123
I have a scrollpanel enclosing a tree. when the tree node expands, the 
scrollpanel can show the vertical scrollbar automatically. but it cannot 
show the horizontal scrollbar automatically, instead, only eclipse (...) is 
shown for overflow item.
so how to show the horizontal scrollbar automatically when the tree expand 
inside a scrollpanel?

-- 
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/-/uY9yg8fSGzwJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Can I get the URL where the User want's to go ?

2012-12-18 Thread Dominic Warzok
Hi all, 

I'm looking for a while now to find a method which gives me the URL the 
USer typed in. 

For example: the user is on my webpage www.xyz.com/www/mysite.html  and now 
he types in the browser bar www.google.de and hit enter. 

It is possible to get the new url in my webapp? 


Thanks in advance 

Dominic 

-- 
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/-/36ln8L93WugJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT performance optimization singleton classes, RPC types, server round-trips

2012-12-18 Thread s3cure
Using GWT 2.5, I am currently going through performance optimizations of a 
reasonable size GWT client application which is served by C# .NET RPC 
interfaces on the server side. I have been through the Google I/O video and 
we have made significant impovements by reducing number of widgets and 
third party library dependencies, introducing split points and reducing 
round trips etc. There are a few area that I am not sure of that I would 
like your views on. 

1. I have a buttons toolbar (using our custom button which extends GWT 
Button) which is frequently redrawn based on the state of the aplication 
and there are about *150 *buttons to select from to add/remove to the 
toolbar. Currently I have a singleton class per button which extends my 
custom base button class. How does this translates into JS and whether 
using singleton classes like this have any impact on the application size 
and performance? What happens when a singleton button is removed from 
parent and re-added? Would it stay in memory from the first instantiation 
for the life time of the app?
2. As I am using .NET on the server side, I am using a simple open source 
third-party JSON-RPC library to make calls to the server. Is there any 
thing I can do for example exclude GWT-RPC implementation from the JS to 
reduce the size? Would blacklisting *.* make any difference?
3. One of the things mentioned in the GWT performance videos was to 
determine the user-agent on the server and dispatch the appropriate JS to 
avoid a round trip. However I can not figure out how to compile the 
application so that I can know which .cache JS file belongs to which 
browser implemntation unless I compile it for each user-agent one at a time?

thanks

-- 
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/-/IChJavT94oIJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT app does not work with Safari?

2012-12-18 Thread Magnus
Hi,

my GWT app does not start under Safari.
http://www.bavaria64.de:8080/bcst/index.html?testStatusBar

The app first shows a loading indicator, which is then removed and 
substituted by the app's main panel, a DockLayoutPanel:

  RootPanel p = RootPanel.get("apl-Indicator");
  Element e = p.getElement();
  e.removeFromParent();  
  ...  
  RootLayoutPanel.get().add(mainPanel);

The Safari user reports that the loading indicator shows up forever...

Is this a mistake or doesn't GWT support this platform?

Thanks
Magnus

-- 
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/-/D1Hkxw7x1_UJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT performance optimization singleton classes, RPC types, server round-trips

2012-12-18 Thread Thomas Broyer


On Tuesday, December 18, 2012 10:54:06 AM UTC+1, s3cure wrote:
>
> Using GWT 2.5, I am currently going through performance optimizations of a 
> reasonable size GWT client application which is served by C# .NET RPC 
> interfaces on the server side. I have been through the Google I/O video and 
> we have made significant impovements by reducing number of widgets and 
> third party library dependencies, introducing split points and reducing 
> round trips etc. There are a few area that I am not sure of that I would 
> like your views on. 
>
> 1. I have a buttons toolbar (using our custom button which extends GWT 
> Button) which is frequently redrawn based on the state of the aplication 
> and there are about *150 *buttons to select from to add/remove to the 
> toolbar. Currently I have a singleton class per button which extends my 
> custom base button class. How does this translates into JS and whether 
> using singleton classes like this have any impact on the application size 
> and performance? What happens when a singleton button is removed from 
> parent and re-added? Would it stay in memory from the first instantiation 
> for the life time of the app?
>

It's a singleton, so yes it's kept alive until you leave the app.
 

> 2. As I am using .NET on the server side, I am using a simple open source 
> third-party JSON-RPC library to make calls to the server. Is there any 
> thing I can do for example exclude GWT-RPC implementation from the JS to 
> reduce the size? Would blacklisting *.* make any difference?
>

If you don't use GWT-RPC you shouldn't have anything related to GWT-RPC in 
the generated JS.
 

> 3. One of the things mentioned in the GWT performance videos was to 
> determine the user-agent on the server and dispatch the appropriate JS to 
> avoid a round trip. However I can not figure out how to compile the 
> application so that I can know which .cache JS file belongs to which 
> browser implemntation unless I compile it for each user-agent one at a time?
>

The xsiframe linker generates a compilation-mappings.txt which you can read 
on the server-side to generate the appropriate HTML host page (that's 
assuming all deferred binding properties can be resolved server-side; if 
you can't, I suppose you'll have to collapse their values: strong 
permutations are those selected on the server-side, and soft permutations 
are selected at runtime; see 
https://code.google.com/p/google-web-toolkit/wiki/SoftPermutations)
The problem then is to "install" the selected permutation. I believe you'll 
have to use CrossSiteIframeLinker and  to use installScriptAlreadyIncluded.js instead of 
installScriptEarlyDownload.js.
Looking at Google Groups, it seems like they're using a variation of 
CrossSiteIframeLinker where all permutations include the bootstrap code 
from the selection script. At first glance, I'd say they extended 
CrossSiteIframeLinker to override shouldIncludeBootstrapInPrimaryFragment 
to return 'true' (see also the javadoc for this method).

I've never tried those approaches, so if you do, can you please get back to 
me? (to tell me if you succeeded, if I missed something, etc.)

-- 
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/-/CnkGRNE5QKMJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Andrea Boscolo
There is a typo in the table-row div (missing display). Then use text-align 
if you want to align just the text.
See http://jsfiddle.net/a4RmK/
I'd rather try a cleaner solution though, like http://jsfiddle.net/nnpGb/

On Tuesday, December 18, 2012 9:46:15 AM UTC+1, Magnus wrote:
>
> Hi Thomas,
>
> I assume you mean something like this:
> http://jsfiddle.net/3EJ7A/19/
>
> In this case the cells all are aligned to the left.
> How can we position them left, right and centered?
>
> Magnus
>

-- 
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/-/KrvqTsIR4qcJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT performance optimization singleton classes, RPC types, server round-trips

2012-12-18 Thread s3cure
Thank you Thomas. 
I should probably start thinking about changing my button singletons to 
instantiate them on-demand and discard on detach. Regarding the selection 
of correct permutation on the server, given the caveats, I may leave this 
until I become too eager and if I do I will get back to you with the 
results. regards

On Tuesday, December 18, 2012 10:47:01 AM UTC, Thomas Broyer wrote:
>
>
>
> On Tuesday, December 18, 2012 10:54:06 AM UTC+1, s3cure wrote:
>>
>> Using GWT 2.5, I am currently going through performance optimizations of 
>> a reasonable size GWT client application which is served by C# .NET RPC 
>> interfaces on the server side. I have been through the Google I/O video and 
>> we have made significant impovements by reducing number of widgets and 
>> third party library dependencies, introducing split points and reducing 
>> round trips etc. There are a few area that I am not sure of that I would 
>> like your views on. 
>>
>> 1. I have a buttons toolbar (using our custom button which extends GWT 
>> Button) which is frequently redrawn based on the state of the aplication 
>> and there are about *150 *buttons to select from to add/remove to the 
>> toolbar. Currently I have a singleton class per button which extends my 
>> custom base button class. How does this translates into JS and whether 
>> using singleton classes like this have any impact on the application size 
>> and performance? What happens when a singleton button is removed from 
>> parent and re-added? Would it stay in memory from the first instantiation 
>> for the life time of the app?
>>
>
> It's a singleton, so yes it's kept alive until you leave the app.
>  
>
>> 2. As I am using .NET on the server side, I am using a simple open source 
>> third-party JSON-RPC library to make calls to the server. Is there any 
>> thing I can do for example exclude GWT-RPC implementation from the JS to 
>> reduce the size? Would blacklisting *.* make any difference?
>>
>
> If you don't use GWT-RPC you shouldn't have anything related to GWT-RPC in 
> the generated JS.
>  
>
>> 3. One of the things mentioned in the GWT performance videos was to 
>> determine the user-agent on the server and dispatch the appropriate JS to 
>> avoid a round trip. However I can not figure out how to compile the 
>> application so that I can know which .cache JS file belongs to which 
>> browser implemntation unless I compile it for each user-agent one at a time?
>>
>
> The xsiframe linker generates a compilation-mappings.txt which you can 
> read on the server-side to generate the appropriate HTML host page (that's 
> assuming all deferred binding properties can be resolved server-side; if 
> you can't, I suppose you'll have to collapse their values: strong 
> permutations are those selected on the server-side, and soft permutations 
> are selected at runtime; see 
> https://code.google.com/p/google-web-toolkit/wiki/SoftPermutations)
> The problem then is to "install" the selected permutation. I believe 
> you'll have to use CrossSiteIframeLinker and  name="installScriptJs"> to use installScriptAlreadyIncluded.js instead of 
> installScriptEarlyDownload.js.
> Looking at Google Groups, it seems like they're using a variation of 
> CrossSiteIframeLinker where all permutations include the bootstrap code 
> from the selection script. At first glance, I'd say they extended 
> CrossSiteIframeLinker to override shouldIncludeBootstrapInPrimaryFragment 
> to return 'true' (see also the javadoc for this method).
>
> I've never tried those approaches, so if you do, can you please get back 
> to me? (to tell me if you succeeded, if I missed something, etc.)
>

-- 
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/-/b0AH1s1pPeIJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: FastButton? Handling touch events for mobile?

2012-12-18 Thread Mark Wyszomierski
This is great Ashton. Will the press handlers fire when you're scrolling a
page? For example:

   1. User presses down on a button.
   2. User starts to drag downward.
   3. Page starts scrolling (if page content tall enough for scrolling)
   4. User releases outside original button rectangle.
   5. Does that original button still fire a push event?

I tried this on the "Fast Clear" button at the bottom as a test,

Thanks


On Mon, Dec 17, 2012 at 8:58 AM, Ashton Thomas  wrote:

> Also, to get the full benefits of this you will want to test on a mobile
> device (that handles touch events and puts a delay on onClick).
>
> On a desktop browser, you should notice no difference since onClick is
> fired immediately and there are no touch events.
>
> To really see the benefit, rapidly click the "fast" buttons (using
> fast-press) and then try the same with the "slow" buttons (using regular
> clickHandler)
>
> - Ashton
>
>
> On Sunday, December 16, 2012 5:36:17 PM UTC-5, Ashton Thomas wrote:
>>
>> I wanted to take a shot at this implementation using the previous answer
>> and Ed's comments:
>>
>> http://stackoverflow.com/**questions/9596807/converting-**
>> gwt-click-events-to-touch-**events/13906134#13906134
>>
>> Example with code:
>> http://gwt-fast-touch-press.**appspot.com/
>>
>> Not sure if I hit all the edge cases so if someone notices anything
>> wrong, please let me know
>>
>>
>> - Ashton
>>
>>
>> On Monday, November 5, 2012 2:18:11 PM UTC-5, emurmur wrote:
>>>
>>> Anyplace I wrote event.preventDefault I really
>>> meant event.stopPropagation.
>>>
>>> Ed
>>>
>>> On Monday, November 5, 2012 10:57:44 AM UTC-8, emurmur wrote:

 I took a quick look at the code you linked to in stackoverflow.  I
 think the code as written has a few problems.

 (NOTE: I'm looking at code I wrote using the Elemental library as
 reference, so some of the calls might be different in the user library).

 a) The code is not filtering touches aimed at the button; it calls
 TouchEvent.getTouches().  You want to call TouchEvent.getTargetTouches() on
 touchstart and touchmove to get the the touches just for your button.  You
 want to call TouchEvent.**getChangedTouches() on touchend to get the
 end touch.
 b) The code does not take into account multitouch.  On touchstart, you
 can check that a single touch is available and bail out if there is more
 than one.  Also, on touchstart, stash away the id of touch, then use this
 in touchmove and touchend to find your touch id in the array that is
 returned (in case the user has touched another finger later on).  You can
 also simplify and check for multiple touches on touchmove and touchend and
 bail again there.
 c) I believe you need to call stopPropagation on touchstart, since you
 are handling the event. I don't see where they call event.preventDefault on
 the touchstart event  You can see that this happens in the click handlers,
 but not the touchstart.

 There is also a simpler way.  If you don't care about dragging starting
 on a button, then you can simply call your click logic in the touchstart
 event (and make sure you call event.preventDefault,
 TouchEvent.getTargetTouches() and  check for single touch) and ignore
 touchmove and touchend.  All the touchmove and touchend stuff is to handle
 the case of allowing dragging to start on the button.

 Ed

 On Monday, November 5, 2012 5:29:53 AM UTC-8, markww wrote:
>
> Hi,
>
> I've got some buttons on a page which will primarily be used from
> mobile devices. The click handlers fire only after a 300ms delay
> (intentional on mobile devices as detailed here [
> https://developers.google.**com/mobile/articles/fast_**buttons]
> ).
>
> Looks like someone has tried to implement the above for GWT:
> http://stackoverflow.com/**questions/9596807/converting-**
> gwt-click-events-to-touch-**events
>
> but I'm getting strange behavior from that FastButton implementation.
> Is there something baked into GWT 2.5 that does this for us?
>
> Thanks
>
  --
> 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/-/y2H4Yk7xV5MJ.
>
> 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 options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You r

Re: FastButton? Handling touch events for mobile?

2012-12-18 Thread Ashton Thomas
The PressEvent should only fire if the touchEnd happens over the element. If I 
understand correctly, the event should not fire if you scroll or somehow move 
your finger off the target. 

However,  there may be a situation on browsers with the elastic scroll where 
you try to scroll but there is no content so the browser shows the 
stretch/elastic animation -  so physically your finger is off of the button but 
the browser still registers the touchEnd as over the element. This should fire 
a pressEvent. 

I haven't looked into what happens in this situation. 

-- 
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/-/46hqRjhER18J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Dynamic canvas resize without grawings rescaled?

2012-12-18 Thread RyanZA
When you resize an html5 canvas, the contents will be cleared. You can get 
around this by creating a second canvas without attaching it to the DOM, 
and then
1.drawing the original canvas on to the new temporary canvas
2.resize the original canvas (which will clear it) - make sure to use 
setCoordinateSpaceWidth so that the actual pixel size remains consistent 
with the new canvas size.
3.draw the temporary canvas onto the original canvas in the correct position

Regarding resizing on canvas and panels in general: the best way is to make 
sure that the entire chain of panels from the root layout panel all 
implement, and create a FocusWidget that implements RequiresResize, and 
override this method in the widget:

public void onResize() {
int width = this.getElement().getParentElement().getClientWidth();
int height = this.getElement().getParentElement().getClientHeight();

if (this.getCoordinateSpaceWidth() != width)
this.setCoordinateSpaceWidth(width);
if (this.getCoordinateSpaceHeight() != height)
this.setCoordinateSpaceHeight(height);
}

On Monday, December 17, 2012 9:32:25 PM UTC+2, membersound wrote:
>
> I have a gwt canvas which should take the whole space of the main centered 
> contend in a docklayout.
>
> 
> //...
>   
> 
> 
> 
>   
>
>
> Now, If I resize the browser window, I do NOT want the painted graphics to 
> be resized. Only the "outer" canvas drawing area should be resized along 
> with the browser so that the canvas is still visible. But some of the 
> already drawings may be cutted.
>
> (Similar to google maps, where the map stays the same all the time 
> nomatter how the browser window changes size).
>
> How could I do this?
>
> Thanks
>

-- 
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/-/3EKxrlyFCEAJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Duplicated entry in DeobfuscatorBuilder for maven compile

2012-12-18 Thread Thomas Broyer


On Tuesday, December 18, 2012 2:50:04 PM UTC+1, SiJa wrote:
>
> The error can be reproduced with this project. If you call "mvn clean 
> package" and check WebInterfaceRequestFactoryDeobfuscatorBuilder.java you 
> can see the duplicated entry for bean OPAssertionWithInformation. Eclipse 
> compile also gives you two entries. If you rename APWithInfEntityProxy.java 
> in ANPWithInfEntityProxy.java Eclipse compile gives you only one entry.
>

I'm sorry I don't reproduce using either OpenJDK 7u9 (Ubuntu package) or 
Oracle JDK 6u27 with "mvn clean compile" (or "mvn clean package"). I 
haven't tried in Eclipse yet.
I'm afraid you'll have to try to debug it. It might have to do with 
multiple invocations of the annotation processor and/or the fact that we 
use ExecutableElement instances as keys in maps (I've seen some comments in 
a Dagger pull request about the fact the compiler objects are not 
guaranteed to be reused between rounds, and Dagger is thus using Strings as 
keys in internal maps: see https://github.com/square/dagger/pull/111
 and https://github.com/square/dagger/pull/108).

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-19-generic", arch: "amd64", family: "unix"

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-19-generic", arch: "amd64", family: "unix"

 

> Am Dienstag, 11. Dezember 2012 14:52:46 UTC+1 schrieb SiJa:
>>
>> We use: 
>> java version "1.6.0_35"
>> Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
>> Java HotSpot(TM) Client VM (build 20.10-b01, mixed mode, sharing)
>>
>> Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
>>
>> We fixed the bug by renaming an EntityProxy, which is not a sub oder 
>> supeproxy of OPAssertionWithMinInformationProxy. The proxy 
>> APWithInEntityProxy is now called ANPWithInfEntityProxy and everything is 
>> ok. We have no idea why renaming solved the problem. We are trying to 
>> create a small project which reproduces the issue. But I am not sure if we 
>> are successful, because the issue happens in a complex application.
>>
>> Thank you for your help so far.
>>
>> Am Dienstag, 11. Dezember 2012 10:48:57 UTC+1 schrieb Thomas Broyer:
>>>
>>> Which JDK are you using? (OpenJDK? Oracle? 6? 7?)
>>>
>>> Please file an issue with as much information as possible, and if you 
>>> can make a small project that reproduces the issue it'd be even better.
>>>
>>> On Tuesday, December 11, 2012 9:15:33 AM UTC+1, SiJa wrote:

 It doesn´t matter which GWT version I use. It´s the same behaviour in 
 version 2.4.0 and 2.5.0. It happens during "mvn clean compile" and "mvn 
 compile". Before I used "mvn clean compile" I deleted every generated 
 source code and eclipse automatically build was disabled. The 
 ValidationTool runs during maven-compiler-plugin. That´s the entry in 
 pom-file.

 
>maven-compiler-plugin
>2.5.1
>
>   1.6
>   1.6
>
>
>   
>  com.google.web.bindery
>  requestfactory-apt
>  ${gwtVersion}
>   
>
> 
>

 Am Montag, 10. Dezember 2012 18:38:24 UTC+1 schrieb Thomas Broyer:
>
> How are you running the ValidationTool? (I suppose annotation 
> processing during maven-compiler-plugin) Does it happen during "mvn clean 
> compile" or only "mvn compile"?
> Feel free to file an issue after you double-check it's not an 
> environmental issue (e.g. some classes compiled by Eclipse and others by 
> javac, etc.)
> Also, is this GWT 2.4.0 or 2.5.0? Try requestfactory-apt:2.5.0 before 
> reporting an issue.
>
> On Monday, December 10, 2012 5:41:37 PM UTC+1, SiJa wrote:
>>
>> Hallo,
>>
>> there is a duplicated entry in DeobfuscatorBuilder class when I 
>> compile the application with maven and the lists with the proxies for 
>> the 
>> duplicated bean are different. But if I compile the application with 
>> eclipse-compiler, there is no duplicated entry and nothing went wrong 
>> (only 
>> the first entry of the list above for OPAssertionWithInformation).
>>
>> withOperation(new OperationKey("KUn4aunHWrVyneYsWoPuvNECTaM="),
>>>   new OperationData.Builder()
>>>   
>>> .withClientMethodDescriptor("(Lxxx/gui/shared/beans/rf/proxies/filtering/FilterLoadConfigProxy;Lxxx/gui/shared/beans/rf/proxies/paging/PagingLoadConfigProxy;)Lcom/google/web/bindery/requestfactory/shared/Request;")
>>>   
>>> .withDomainMethodDescriptor("(Lxxx/editor/loadconfig/FilterLoadConfig;Lxxx/editor/loadconfig/PagingLoadConfig;)Lxxx/editor/loadconfig/PagingLoadResultOPAssertion;")
>

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread James
Is it promising to use this library for reporting to replace other third 
party chart libraries such as GWT Visualization?

On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
wrote:
>
> Forgot to mention ... You can also add a touch end handler and apply the 
> same concept. This way it will work on mobile devices as well.
>
> Sent from my iPhone
>
> On Dec 17, 2012, at 4:58 PM, Zach > wrote:
>
> Rather than create a new shape, I found I'm able to simply create a 
> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
> events I can draw a PolyLine and add points to it. After any mouseUp event 
> I can then JSONify the Layer and send that, which will have all shapes 
> within it. 
>
> -- 
> 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/-/eY8mcIzdLn4J.
> To post to this group, send email to 
> google-we...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com .
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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/-/ec4JGx0RqasJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Alfredo Quiroga-Villamil
Hi James,

I am unfortunately not familiar with GWT Visualization. I've seen threads
about it though. But to answer your question, yes, it would be fairly
straight forward to create a slick charting library. That doesn't mean it
would be simple. The devil is usually as people say in the details.

However, because the core things are there all implemented in Lienzo, I
don't personally think it would be that hard either and it would be crazy
slick. What's even better it would run on anything that supports the HTML5
canvas spec. Now days that's a lot of devices out there, mobile, desktop.
The charts could have some crazy animations also.

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:transform_3_points

Move the three red dots around the screen and hit "animate". This is just
one line of code for the user of the Lienzo API. The transform and all the
details are worked out for the user behind the scenes.

Just to play around, for fun really, we created this pie chart. We didn't
make it pretty or anything. Just made it draggable, no animation, shadows,
cool gradients, nothing, a crud pie chart and it was just a few lines of
code:

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:pie_chart

Hope that helps.

Regards.

Alfredo


On Tue, Dec 18, 2012 at 9:55 AM, James  wrote:

> Is it promising to use this library for reporting to replace other third
> party chart libraries such as GWT Visualization?
>
>
> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil
> wrote:
>
>> Forgot to mention ... You can also add a touch end handler and apply the
>> same concept. This way it will work on mobile devices as well.
>>
>> Sent from my iPhone
>>
>> On Dec 17, 2012, at 4:58 PM, Zach  wrote:
>>
>> Rather than create a new shape, I found I'm able to simply create a
>> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse
>> events I can draw a PolyLine and add points to it. After any mouseUp event
>> I can then JSONify the Layer and send that, which will have all shapes
>> within it.
>>
>> --
>> 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/-/**eY8mcIzdLn4J
>> .
>> To post to this group, send email to google-we...@**googlegroups.com.
>>
>> To unsubscribe from this group, send email to google-web-toolkit+**
>> unsubscr...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/**
>> group/google-web-toolkit?hl=en
>> **.
>>
>>  --
> 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/-/ec4JGx0RqasJ.
>
> 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 options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Ed
Can somebody tell me if the above is expected behavior or a bug?
So should I put it in the issue tracker?
Of should the doc be more specific about the above usage?

Please test it yourself ..
- Ed

Op zondag 16 december 2012 13:15:21 UTC+1 schreef Ed het volgende:
>
> (Using version 2.5.0)
>
> I am a bit surprised the way gwt decide to include code in a split point, 
> or left over.
>
> Example: creation of a controller in a split point. (without 
> the -XfragmentCount option)
> 1) Safe way that always works:  create controller in an anonymous 
> RunAsyncCallback.onSuccess() method:
> 
> public void createSomeController(final AsyncCallback 
> callback, final Bla args) {
>  final RunAsyncCallback async = new RunAsyncCallback() {
>public void onSuccess() {
> callback.onSuccess(new SomeControllerDefault(args));
>}
>public void onFailure(Throwable ex) {
> callback.onFailure(ex);
>}
>  };
> GWT.runAsync(async);
> }
> 
> The above gives the same result when not creating  the async variable but 
> passing the RunAsyncCallback directly to the GWT.runAsync() method. Which 
> might sound logic, but nothing is like it seems...
> Above results in my case in (Soyc report):
>  Total code size: 1.1 MB
>  Initial size: 350 KB
>  left over: 550 KB
>
> 2) However when I replace the above line  "GWT.runAsync(async)" by the 
> following:
> ---
> if (GWT.isScript()) {
> GWT.runAsync(async);
> }
> else {
>new CommandDeferred() { 
>  public void execute() { 
>  GWT.runAsync(callback); 
>   } 
> }; 
> }
> 
> I do the above because I want   the runAsync to be run decoupled when 
> running in dev mode to get the exact same behavior as in script mode. This 
> is due to an open issue (bug) that hasn't been solved yet, that is: in dev 
> mode the behavior is different as it's not decoupled that can lead to 
> strange app bugs..
> Anyway: the point here is: that it will always run the "
> GWT.runAsync(async);" command just like above but then through an if 
> statement...
> Surprisingly however, the above results in a much bigger left over:
> ---
>  Total code size: 1.1 MB
>  Initial size: 350 KB
>  left over: *750* KB
> ---
> Interesting, so the GWT compiler doesn't use the runtime dependency path 
> like you would expect...
> BTW: this is a bumper so that I can never use this construction, such that 
> my behavior in web and dev mode are (too) different... (mentioned above)
>
> This is just one of the tests that was I was surprised of.
> I another test I did:
> 3) Just like 1) but pass in a Creator method, like this: 
> ---
> public void createSomeController(final AsyncCallback 
> callback, final CreatorSimple creator) {
>final RunAsyncCallback async = new RunAsyncCallback() {
> public void onSuccess() {
> callback.onSuccess(creator.create());
> }
>
> public void onFailure(Throwable ex) {
> callback.onFailure(ex);
> }
>   };
>   GWT.runAsync(async);
> }
> ---
> I call the above code like this for example (the above usage makes it nice 
> to share split points in case it works anyway):
> ---
> final CreatorSimple creator = new 
> CreatorSimple() {
>public SomeController create() {
> return new SomeControllerDefault(args);
>}
> };
> getLazyLoader().createLoonController(callback, creator);
> ---
> Also this results in the same big left over :(..
> I am surprised about this as the creation of the controller is only called 
> through the GWT.runAsync() and NEVER through another piece of code...
> So why is my left over so big? Why is GWT deciding it's not included in 
> it's own split point?
> I don't understand the difference with construction 1), as besides it's 
> another construction, it leads to the same result you would expect
> I tried more constructions like putting the controller creation in it's 
> own class instead of through an anonymous class, but it all results to the 
> same big left over...
>
> Idea's, your experience ?
>
> My experience/advice: always use the less flexible construction 1) which 
> makes it difficult to share split points and workaround the 
> dev-mode-script-mode (bug) difference.. But at least that results in 
> "correct" split points...
>
> - Ed
>
>
>
>
>

-- 
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/-/XRjFOyG3UcYJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Jens
Your compile report should tell you why your controller is now in the left 
over fragment. Its always hard to tell whats going on without knowing the 
whole code and the compile report.

For example a wild guess: In your second example you have two 
GWT.runAsync() calls with the same AsyncCallback (I assume that 
GWT.runAsync(callback) is a typo in your execute method and it should be 
GWT.runAsync(async)..). At first sight you have 2 possible paths now to 
load your controller. Maybe at the time the split points are calculated the 
GWT compiler has not yet optimized your IF statement to if(true) { .. } and 
pruned useless code and thus the CodeSplitter algorithm still sees two 
possible paths (although I think that its not the case, but I don't know 
the compiler flow).


-- J.

-- 
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/-/zxVHoeCpma0J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem with SuggextBox as table cell

2012-12-18 Thread jorge vasquez
Hi Ande , sorry i forgot put this method but i can explain you, the method 
implementarEstilos(suggestBox); set a styleName to the object suggestBox  ,
and the popupStyleName is a constant  with the name that you put to 
suggestBox popup (because is the unique way how we can found the popup 
hidden in the code generated), you must evaluate that the last 
child popupStyleName is called equal to the popup that you showed and then 
delete when close the popup
this is the method 
// popupStyleName is necesary for show and delete popup
 private void implementarEstilos(final SuggestBox suggestBox) {
if (!styleName.isEmpty()) {
  suggestBox.setStyleName(styleName);
}
if (!popupStyleName.isEmpty()) {
  suggestBox.setPopupStyleName(popupStyleName);
}
  }

if you have another question, ask me.

I hope I can clear your doubts.

Jorge Vasquez.

El miércoles, 12 de diciembre de 2012 10:40:27 UTC-5, Ande escribió:
>
> Hi Jorge Vasquez,
>
> I tried to follow your solution, but I can not figure out what this method 
> does:
>
>   implementarEstilos(suggestBox);
>>
>  
> Also I have no idea where you retrieve the popupStyleName in this line:
>
> if(popupStyleName.equals(classNameLastChild)) {
>>
>
>
> greetings
> Ande
>  
>

-- 
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/-/k_JiGR3JM-kJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Ed
Thanks Jens.

>Your compile report should tell you why your controller is now in the left 
over fragment.
I am aware of that, and that was exactly why I post this, as the soyc 
report shows a compiler-code path, and no "dependency path". Like 
mentioned, the controller creation code is ONLY called through the 
GWT.runAsnc(...) code but still the socy show like if it was called from 
"different" method. The report isn't very clear on these details, it just 
shows a list of methods even do they are not related, that is, they don't 
call each other direct or indirectly (even not when walking through the 
complete path or setting breakpoints).

> I assume that GWT.runAsync(callback) is a typo in your execute method and 
it should be GWT.runAsync(async)..)
Yes, thanks.

> and pruned useless code and thus the CodeSplitter algorithm still sees 
two possible paths
Good point, thanks for noticing...


Op dinsdag 18 december 2012 16:54:40 UTC+1 schreef Jens het volgende:
>
> Your compile report should tell you why your controller is now in the left 
> over fragment. Its always hard to tell whats going on without knowing the 
> whole code and the compile report.
>
> For example a wild guess: In your second example you have two 
> GWT.runAsync() calls with the same AsyncCallback (I assume that 
> GWT.runAsync(callback) is a typo in your execute method and it should be 
> GWT.runAsync(async)..). At first sight you have 2 possible paths now to 
> load your controller. Maybe at the time the split points are calculated the 
> GWT compiler has not yet optimized your IF statement to if(true) { .. } and 
> pruned useless code and thus the CodeSplitter algorithm still sees two 
> possible paths (although I think that its not the case, but I don't know 
> the compiler flow).
>
>
> -- J.
>

-- 
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/-/frRSlTenatsJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
GWT Visualization is just for charting, and uses Googles services, Lienzo 
can be used for Charting, ( as well as any other 2D graphics )... and we 
are building a charting package that should equal or surpass GWT 
Visualization or Highcharts

On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James wrote:
>
> Is it promising to use this library for reporting to replace other third 
> party chart libraries such as GWT Visualization?
>
> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
> wrote:
>>
>> Forgot to mention ... You can also add a touch end handler and apply the 
>> same concept. This way it will work on mobile devices as well.
>>
>> Sent from my iPhone
>>
>> On Dec 17, 2012, at 4:58 PM, Zach  wrote:
>>
>> Rather than create a new shape, I found I'm able to simply create a 
>> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
>> events I can draw a PolyLine and add points to it. After any mouseUp event 
>> I can then JSONify the Layer and send that, which will have all shapes 
>> within it. 
>>
>> -- 
>> 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/-/eY8mcIzdLn4J.
>> To post to this group, send email to google-we...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>

-- 
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/-/aBsdgimaMm8J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Matthew Dempsky
On Tue, Dec 18, 2012 at 7:25 AM, Ed  wrote:

> Can somebody tell me if the above is expected behavior or a bug?


We're aware there are issues with the current split-point algorithm that
results in dead code being included in fragments.  It's on our list of
higher priority issues to investigate and fix, but I'm not sure how far
along that is.  Ray Cromwell and/or Roberto Lublinerman would know.

So should I put it in the issue tracker?
>

If you con put together a minimal and easy-to-reproduce test case, it
wouldn't hurt.

-- 
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
GWT Visualization is just for charting, and uses Google's services, Lienzo 
can be used for Charting, ( as well as any other 2D graphics )... and we 
are building a charting package that should  surpass GWT Visualization or 
Highcharts

Charts in general are not all that hard, the math is pretty easy, and the 
primitive types for drawing them are available in Lienzo, the complexity 
comes in when you start adding all the configuration options.

Still, it's on the working list of future things to come. Not just charts, 
but DAG visualization and layout,  diagrams ( Heat Maps, etc ), and 
visualizations ala InfoVis

:-)

On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James wrote:
>
> Is it promising to use this library for reporting to replace other third 
> party chart libraries such as GWT Visualization?
>
> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
> wrote:
>>
>> Forgot to mention ... You can also add a touch end handler and apply the 
>> same concept. This way it will work on mobile devices as well.
>>
>> Sent from my iPhone
>>
>> On Dec 17, 2012, at 4:58 PM, Zach  wrote:
>>
>> Rather than create a new shape, I found I'm able to simply create a 
>> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
>> events I can draw a PolyLine and add points to it. After any mouseUp event 
>> I can then JSONify the Layer and send that, which will have all shapes 
>> within it. 
>>
>> -- 
>> 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/-/eY8mcIzdLn4J.
>> To post to this group, send email to google-we...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>

-- 
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/-/3-9-bLVl0ogJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Jens


> We're aware there are issues with the current split-point algorithm that 
> results in dead code being included in fragments.  It's on our list of 
> higher priority issues to investigate and fix, but I'm not sure how far 
> along that is.  Ray Cromwell and/or Roberto Lublinerman would know.
>

Poor Ray, he already has a bad boy bug assigned where wrong code is 
generated in split points :)

-- J.

>  

-- 
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/-/cOpckcLFXFIJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Magnus
Hi Andrea,

I would also prefer a cleaner solution, and I explicitely tried your 
approach (using the code below). But it also gets misaligned in IE8:
http://www.bavaria64.de:8080/bcst/index.html?testStatusBar

The word "RIGHT" is not aligned to the right, but below the word "LEFT".

There must be a solution that also works for IE... 
Can you fix this?

Thank you
Magnus

---

 private void init_4 ()
 {
  final String stl_outer = "width:100%;";
  final String stl_lf = "float:left;";
  final String stl_ct = "text-align:center;";
  final String stl_rt = "float:right;";
  
  pnl_lf = createHTML (stl_lf);
  pnl_ct = createHTML (stl_ct);
  pnl_rt = createHTML (stl_rt);

  FlowPanel outer = new FlowPanel ();
  setStyle (outer,stl_outer);
  outer.add(pnl_lf);
  outer.add(pnl_ct);
  outer.add(pnl_rt);
  
  add(outer);
  
  addStyleName ("apl-StatusBar");

  pnl_lf.setHTML("LEFT!");
  pnl_rt.setHTML("RIGHT!");
  pnl_ct.setHTML("CENTER!");
 }

-- 
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/-/wzhFDv2vQjMJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to dynamicaly localize datepicker

2012-12-18 Thread tarish
I want to dynamicaly localize datepicker is there any work around for this??

-- 
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/-/vTcXus2p-BQJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-18 Thread Manuel Alejandro Fernandez Casado
Hi.

I´m searching for information about how to secure an application with GWT + 
GAE + Request Factory. Again, information is disperse, official 
documentation is a little incomplete, and best advices comes from 
experience.

My application has next features:

   - It uses his own users: i mean, this is a web portal with typical users 
management. Users are enlisted with a registration form, etc. In the future 
i will like to add OAuth for Facebook, Twitter, and also work with Google 
users, but now this is not the information i am looking for.

   - It uses Request Factory and not RPC. The information i am interesting 
is essentially ensure information between client and server, as well as 
handle authentication and authorization.

   - I don´t use Spring Security. Now it´s not an option for the 
development. I would like to test another approach.

Any comments would be appreciated. If you need more information, just tell 
me.

Regards.


-- 
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/-/terDm4Ak81EJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Problem getting my GWT RPC to work when I deploy to app engine

2012-12-18 Thread James Frain
I have been following the StockWatcher tutorial and have an RPC service on 
my local server which is successfully invoked when I open my HTML page and 
add a new stock.
Now,  I deployed my app to the GAE but when I go to the same page on the 
GAE hosted app it no longer calls the RPC service.  What must I change in 
my app to tell the GWT generated JavaScript, you are now running on the GAE 
and so call the RPC service on the GAE.
My GAE app url is 
http://stockwatcherjf.appspot.com/StockWatcher.html

-- 
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/-/43wKIy1xIpgJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Reloading the page without reloading images, sounds, ...

2012-12-18 Thread scarlatine
Hi,
I have a GWT application running on a touch screen used as a sort of kiosk. 
I would like that every day at midnight the browser checks if a new version 
exists (new background color, ...). So I wrote Window.Location.reload(). 
That works great, but it also reloads all the images and sounds that were 
in the browser cache (these images and sounds are stored as blobs, so once 
loaded they will not change). Is there a way to reload the page without 
reloading images and sounds (I also found nothing in pure javascript) ? 
Thanks...

P.S.: To be clear, I would like my application to do the same thing as when 
I hit return several times after the URL in Internet Explorer (in Firefox 
it reloads all the resources). 

-- 
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/-/h8Ys1jVoS94J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Change DatePicker language

2012-12-18 Thread Piyu D
Hi,
I have the same problem. I want to change datepicker language without doing 
changes in html or .gwt.xml file.  I want it to be done dynamically using 
properties file and dictionary. You have any idea on how to do it?
Thanks,
Piyu

On Wednesday, 21 March 2012 18:32:27 UTC+5:30, nicanor.babula wrote:
>
> Hi everyone,
>
> How can I change the display language of the DatePicker object? My app is 
> internationalized on a GWT level, but enabling more than 1 language in 
> module.gwt.xml generates a war too big to be deployed on Appengine, 
> therefore I am stuck with the default which I assume is english. Is there a 
> way to change only the locale of the DatePicker or to change the default 
> locale?
>
> Thanks,
> Cristian.
>

-- 
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/-/RLRo1a_uN3cJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to dynamically localize datepicker

2012-12-18 Thread Piyu D


I want to localize datepicker component dynamically withouht using html 
settings of LOCALE. Any idea about how to do it?

-- 
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/-/abofxVDmqP0J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error processing @WithTokenizers, cannot find type

2012-12-18 Thread sean . langford
Hi Tony,

Having same problem - did you find a resolution to this?

Thanks

Sean

On Monday, December 17, 2012 5:00:25 PM UTC-5, Tony B wrote:
>
> Hello,
>I have a weird situation.  I am getting the following error in my 
>
>> 16:48:34.027 [ERROR] [wmsapp] Error processing @WithTokenizers, cannot 
>> find type 
>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer
>>
>
> The problem is that I know this exists.   First of all, this happens in 
> the following code:
>
>> package com.wmsvision.wmsapp.client;
>>
>> import com.google.gwt.place.shared.PlaceHistoryMapper;
>> import com.google.gwt.place.shared.WithTokenizers;
>> import 
>> com.wmsvision.wmsapp.client.activities.HomePlace.HomePlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.WmsListPlace.WmsListPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.about.AboutPlace.AboutPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.configuration.ConfigPlace.ConfigPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.login.LoginPlace.LoginPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace.ProductSummaryMasterPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryPlace.ProductSummaryPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.receiving.ReceivingPlace.ReceivingPlaceTokenizer;
>> import 
>> com.wmsvision.wmsapp.client.activities.relocation.RelocationPlace.RelocationPlaceTokenizer;
>>
>> @WithTokenizers({ HomePlaceTokenizer.class,
>> LoginPlaceTokenizer.class,
>> AboutPlaceTokenizer.class,
>> WmsListPlaceTokenizer.class,
>> ReceivingPlaceTokenizer.class,
>> RelocationPlaceTokenizer.class,
>> ProductSummaryPlaceTokenizer.class,
>> ProductSummaryDetailPlaceTokenizer.class,
>> ProductSummaryMasterPlaceTokenizer.class,
>> ConfigPlaceTokenizer.class})
>> public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {
>> }
>>
>
> I have a similar place defined in the same package that seems to work fine 
> ( it is called "import 
> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace"
>  
> ).  Anyway, the "DetailPlace" should only be accessible from the 
> "MasterPlace", so maybe I don't need it in my AppPlaceHistoryMapper above.  
> But I would still like to understand why it is not working.
>
> Here is the class file in question, the one it cannot seem to find:
>
>> package com.wmsvision.wmsapp.client.activities.productsearch;
>>
>> import com.google.gwt.place.shared.Place;
>> import com.google.gwt.place.shared.PlaceTokenizer;
>>
>> public class ProductSummaryDetailPlace extends Place {
>> private String product;
>> private long index;
>> private String id;
>> private final String separator = "#:PRODUCTINDEX:#";
>> 
>> public ProductSummaryDetailPlace(String product, long index) {
>> super();
>> this.product = product;
>> this.index = index;
>> 
>> createId();
>> }
>> 
>> public ProductSummaryDetailPlace( String id ) {
>> this( "", 0 );
>> 
>> String tokens[] = ( id != null ? id.split(separator) : null );
>> 
>> if( tokens != null && tokens.length >= 1 ){
>> this.product = tokens[0];
>> 
>> if( tokens.length >= 2 ){
>> this.index = Long.getLong( tokens[1] );
>> }
>> 
>> createId();
>> }
>> }
>> 
>> private void createId( ) {
>> this.id = product.trim() + separator + index;
>> }
>>
>>
>> public String getProduct() {
>> return product;
>> }
>>
>>
>>
>> public void setProduct(String product) {
>> String oldProduct = this.product;
>> 
>> this.product = product;
>> 
>> // Product changed, so recalculate id
>> if( !oldProduct.equals(product)) {
>> createId();
>> }
>> }
>>
>>
>>
>> public long getIndex() {
>> return index;
>> }
>>
>>
>>
>> public void setIndex(long index) {
>> long oldIndex = this.index;
>> 
>> this.index = index;
>> 
>> // Index changed, so recalculate id
>> if( oldIndex != index ) {
>> createId();
>> }
>> }
>>
>>
>>
>> public String getId() {
>> return id;
>> }
>> 
>> public static class ProductSummaryDetailPlaceTokenizer
>> implements PlaceTokenizer {
>>
>> @Override
>> public ProductSummaryDetailPlace getPlace(String token) {
>> return new ProductSummaryDetailPlace

ValueListBox Handlers

2012-12-18 Thread bongy_Cabs
Hi,

I am using gwt 2.4 , I am trying to get focus of the valuelistbox, Does 
anyone know how to get the focus handler , I need to reduce the size after 
selection has been done.

Thanks,
Bongy

-- 
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/-/45IZtb6FF18J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Andrea Boscolo
I see it misaligned even on firefox.
Anyway simply add the divs to the outer panel in the left, right, center 
order (not left, center, right as you did). Recheck my last fiddle.
AFAIK should work also in IE.

On Tuesday, December 18, 2012 6:27:19 PM UTC+1, Magnus wrote:
>
> Hi Andrea,
>
> I would also prefer a cleaner solution, and I explicitely tried your 
> approach (using the code below). But it also gets misaligned in IE8:
> http://www.bavaria64.de:8080/bcst/index.html?testStatusBar
>
> The word "RIGHT" is not aligned to the right, but below the word "LEFT".
>
> There must be a solution that also works for IE... 
> Can you fix this?
>
> Thank you
> Magnus
>
> ---
>
>  private void init_4 ()
>  {
>   final String stl_outer = "width:100%;";
>   final String stl_lf = "float:left;";
>   final String stl_ct = "text-align:center;";
>   final String stl_rt = "float:right;";
>   
>   pnl_lf = createHTML (stl_lf);
>   pnl_ct = createHTML (stl_ct);
>   pnl_rt = createHTML (stl_rt);
>
>   FlowPanel outer = new FlowPanel ();
>   setStyle (outer,stl_outer);
>   outer.add(pnl_lf);
>   outer.add(pnl_ct);
>   outer.add(pnl_rt);
>   
>   add(outer);
>   
>   addStyleName ("apl-StatusBar");
>
>   pnl_lf.setHTML("LEFT!");
>   pnl_rt.setHTML("RIGHT!");
>   pnl_ct.setHTML("CENTER!");
>  }
>
>

-- 
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/-/e2kcvNPnhFcJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



addClickHandler vs addClickListener

2012-12-18 Thread Aldin Habibović
Hi,

What is the difference between *addClickHandler *and*
addClickListener*methods. I think there is no difference
between it, except
*addclickHandler *returns HandlerRegistration (used to remove this handler)
and by *addClickListener *return* *type *is void.

*
What 's better to use?*
*


-- 
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread James

I am feeling this library can provide good chart potential abilities. I can 
wait for a couple of months for my project. Do you have a road map for 
chart features?

James
On Tuesday, December 18, 2012 12:17:12 PM UTC-5, Dean S. Jones wrote:
>
> GWT Visualization is just for charting, and uses Google's services, Lienzo 
> can be used for Charting, ( as well as any other 2D graphics )... and we 
> are building a charting package that should  surpass GWT Visualization or 
> Highcharts
>
> Charts in general are not all that hard, the math is pretty easy, and the 
> primitive types for drawing them are available in Lienzo, the complexity 
> comes in when you start adding all the configuration options.
>
> Still, it's on the working list of future things to come. Not just charts, 
> but DAG visualization and layout,  diagrams ( Heat Maps, etc ), and 
> visualizations ala InfoVis
>
> :-)
>
> On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James wrote:
>>
>> Is it promising to use this library for reporting to replace other third 
>> party chart libraries such as GWT Visualization?
>>
>> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
>> wrote:
>>>
>>> Forgot to mention ... You can also add a touch end handler and apply the 
>>> same concept. This way it will work on mobile devices as well.
>>>
>>> Sent from my iPhone
>>>
>>> On Dec 17, 2012, at 4:58 PM, Zach  wrote:
>>>
>>> Rather than create a new shape, I found I'm able to simply create a 
>>> LienzoPanel that has a Layer in it. This Layer will be the canvas: on mouse 
>>> events I can draw a PolyLine and add points to it. After any mouseUp event 
>>> I can then JSONify the Layer and send that, which will have all shapes 
>>> within it. 
>>>
>>> -- 
>>> 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/-/eY8mcIzdLn4J.
>>> To post to this group, send email to google-we...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>

-- 
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/-/Ph8OVHvGYEcJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: addClickHandler vs addClickListener

2012-12-18 Thread Jens
Use addClickHandler.

addClickListener is deprecated and will probably be removed soon.

-- J.

-- 
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/-/iN13MzY7nxEJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to show horizontal scrollbar in scrollpanel automatically?

2012-12-18 Thread Andrei
This is not a standard behavior. You must have a CSS style applied to your 
scroll panel or its content which resets overflow property. It should be 
overflow:auto. 

-- 
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/-/NX1QhsV7i84J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: FastButton? Handling touch events for mobile?

2012-12-18 Thread Ashton Thomas
I have since updated the FastPressElement to fix some issues pointed out by 
mark. I have also cleaned up some things. All the code is on Github. 
Feedback from people needing this solution would be awesome.

I believe this will work very well in the situations that call for it. 
(It's a huge difference once you start using it)

https://github.com/ashtonthomas/gwt-fast-touch-press

http://gwt-fast-touch-press.appspot.com/

- Ashton


On Tuesday, December 18, 2012 9:17:01 AM UTC-5, Ashton Thomas wrote:
>
> The PressEvent should only fire if the touchEnd happens over the element. 
> If I understand correctly, the event should not fire if you scroll or 
> somehow move your finger off the target. 
>
> However,  there may be a situation on browsers with the elastic scroll 
> where you try to scroll but there is no content so the browser shows the 
> stretch/elastic animation -  so physically your finger is off of the button 
> but the browser still registers the touchEnd as over the element. This 
> should fire a pressEvent. 
>
> I haven't looked into what happens in this situation. 
>
>

-- 
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/-/yQrbP1Pcq0oJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How Gwt runAsync decides to include code... be careful...?

2012-12-18 Thread Ed Bras
Thanks for your feedback.
I will open an issue these days and will links the issue and this topic.
I will put a minimum test-case on my "todo", I will do my best to add it in
the comming weeks..
- Ed

On Tue, Dec 18, 2012 at 6:24 PM, Jens  wrote:

>
> We're aware there are issues with the current split-point algorithm that
>> results in dead code being included in fragments.  It's on our list of
>> higher priority issues to investigate and fix, but I'm not sure how far
>> along that is.  Ray Cromwell and/or Roberto Lublinerman would know.
>>
>
> Poor Ray, he already has a bad boy bug assigned where wrong code is
> generated in split points :)
>
> -- J.
>
>>   --
> 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/-/cOpckcLFXFIJ.
>
> 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 options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error processing @WithTokenizers, cannot find type

2012-12-18 Thread Tony B
Sadly, not yet.   If I found out something, I will update this thread.

On Tuesday, December 18, 2012 9:51:26 AM UTC-5, 
sean.l...@perceptivesoftware.com wrote:
>
> Hi Tony,
>
> Having same problem - did you find a resolution to this?
>
> Thanks
>
> Sean
>
> On Monday, December 17, 2012 5:00:25 PM UTC-5, Tony B wrote:
>>
>> Hello,
>>I have a weird situation.  I am getting the following error in my 
>>
>>> 16:48:34.027 [ERROR] [wmsapp] Error processing @WithTokenizers, cannot 
>>> find type 
>>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer
>>>
>>
>> The problem is that I know this exists.   First of all, this happens in 
>> the following code:
>>
>>> package com.wmsvision.wmsapp.client;
>>>
>>> import com.google.gwt.place.shared.PlaceHistoryMapper;
>>> import com.google.gwt.place.shared.WithTokenizers;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.HomePlace.HomePlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.WmsListPlace.WmsListPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.about.AboutPlace.AboutPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.configuration.ConfigPlace.ConfigPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.login.LoginPlace.LoginPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace.ProductSummaryMasterPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryPlace.ProductSummaryPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.receiving.ReceivingPlace.ReceivingPlaceTokenizer;
>>> import 
>>> com.wmsvision.wmsapp.client.activities.relocation.RelocationPlace.RelocationPlaceTokenizer;
>>>
>>> @WithTokenizers({ HomePlaceTokenizer.class,
>>> LoginPlaceTokenizer.class,
>>> AboutPlaceTokenizer.class,
>>> WmsListPlaceTokenizer.class,
>>> ReceivingPlaceTokenizer.class,
>>> RelocationPlaceTokenizer.class,
>>> ProductSummaryPlaceTokenizer.class,
>>> ProductSummaryDetailPlaceTokenizer.class,
>>> ProductSummaryMasterPlaceTokenizer.class,
>>> ConfigPlaceTokenizer.class})
>>> public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {
>>> }
>>>
>>
>> I have a similar place defined in the same package that seems to work 
>> fine ( it is called "import 
>> com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace"
>>  
>> ).  Anyway, the "DetailPlace" should only be accessible from the 
>> "MasterPlace", so maybe I don't need it in my AppPlaceHistoryMapper above.  
>> But I would still like to understand why it is not working.
>>
>> Here is the class file in question, the one it cannot seem to find:
>>
>>> package com.wmsvision.wmsapp.client.activities.productsearch;
>>>
>>> import com.google.gwt.place.shared.Place;
>>> import com.google.gwt.place.shared.PlaceTokenizer;
>>>
>>> public class ProductSummaryDetailPlace extends Place {
>>> private String product;
>>> private long index;
>>> private String id;
>>> private final String separator = "#:PRODUCTINDEX:#";
>>> 
>>> public ProductSummaryDetailPlace(String product, long index) {
>>> super();
>>> this.product = product;
>>> this.index = index;
>>> 
>>> createId();
>>> }
>>> 
>>> public ProductSummaryDetailPlace( String id ) {
>>> this( "", 0 );
>>> 
>>> String tokens[] = ( id != null ? id.split(separator) : null );
>>> 
>>> if( tokens != null && tokens.length >= 1 ){
>>> this.product = tokens[0];
>>> 
>>> if( tokens.length >= 2 ){
>>> this.index = Long.getLong( tokens[1] );
>>> }
>>> 
>>> createId();
>>> }
>>> }
>>> 
>>> private void createId( ) {
>>> this.id = product.trim() + separator + index;
>>> }
>>>
>>>
>>> public String getProduct() {
>>> return product;
>>> }
>>>
>>>
>>>
>>> public void setProduct(String product) {
>>> String oldProduct = this.product;
>>> 
>>> this.product = product;
>>> 
>>> // Product changed, so recalculate id
>>> if( !oldProduct.equals(product)) {
>>> createId();
>>> }
>>> }
>>>
>>>
>>>
>>> public long getIndex() {
>>> return index;
>>> }
>>>
>>>
>>>
>>> public void setIndex(long index) {
>>> long oldIndex = this.index;
>>> 
>>> this.index = index;
>>> 
>>> // Index changed, so recalculate id
>>> if( oldIndex != index ) {
>>> createId();
>>> }
>>> }
>>>
>>>
>>>
>>>

Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
well, we have already started

http://www.emitrom-lienzo.appspot.com/#ExplorerPlaceImpl:pie_chart

that is a pretty poor excuse for a pie chart, but the math is right, and 
it's only 50 LOC

As for timelines, we have a few things to solidify in Lienzo core, so it 
will be at least the end of January before we can get to work on it. All of 
us have full time day jobs,and families, so we get to it as time permits... 
but..

I have already coded a full GWT binding to Highcharts I use at my day job, 
much of it is reusable. I just need to study that codebase, it's quite a 
few years old.

On Tuesday, December 18, 2012 4:01:57 PM UTC-5, James wrote:
>
>
> I am feeling this library can provide good chart potential abilities. I 
> can wait for a couple of months for my project. Do you have a road map for 
> chart features?
>
> James
> On Tuesday, December 18, 2012 12:17:12 PM UTC-5, Dean S. Jones wrote:
>>
>> GWT Visualization is just for charting, and uses Google's services, 
>> Lienzo can be used for Charting, ( as well as any other 2D graphics )... 
>> and we are building a charting package that should  surpass GWT 
>> Visualization or Highcharts
>>
>> Charts in general are not all that hard, the math is pretty easy, and the 
>> primitive types for drawing them are available in Lienzo, the complexity 
>> comes in when you start adding all the configuration options.
>>
>> Still, it's on the working list of future things to come. Not just 
>> charts, but DAG visualization and layout,  diagrams ( Heat Maps, etc ), and 
>> visualizations ala InfoVis
>>
>> :-)
>>
>> On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James wrote:
>>>
>>> Is it promising to use this library for reporting to replace other third 
>>> party chart libraries such as GWT Visualization?
>>>
>>> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
>>> wrote:

 Forgot to mention ... You can also add a touch end handler and apply 
 the same concept. This way it will work on mobile devices as well.

 Sent from my iPhone

 On Dec 17, 2012, at 4:58 PM, Zach  wrote:

 Rather than create a new shape, I found I'm able to simply create a 
 LienzoPanel that has a Layer in it. This Layer will be the canvas: on 
 mouse 
 events I can draw a PolyLine and add points to it. After any mouseUp event 
 I can then JSONify the Layer and send that, which will have all shapes 
 within it. 

 -- 
 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/-/eY8mcIzdLn4J.
 To post to this group, send email to google-we...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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/-/F9dGWZ9MH-0J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Whiteboard (freehand drawing)

2012-12-18 Thread Dean S. Jones
in the meantime, here is a mandelbrot app you can have fun with, just for 
kicks, it's all in-browser

http://graphics4j-test.appspot.com

;-)

On Tuesday, December 18, 2012 4:01:57 PM UTC-5, James wrote:
>
>
> I am feeling this library can provide good chart potential abilities. I 
> can wait for a couple of months for my project. Do you have a road map for 
> chart features?
>
> James
> On Tuesday, December 18, 2012 12:17:12 PM UTC-5, Dean S. Jones wrote:
>>
>> GWT Visualization is just for charting, and uses Google's services, 
>> Lienzo can be used for Charting, ( as well as any other 2D graphics )... 
>> and we are building a charting package that should  surpass GWT 
>> Visualization or Highcharts
>>
>> Charts in general are not all that hard, the math is pretty easy, and the 
>> primitive types for drawing them are available in Lienzo, the complexity 
>> comes in when you start adding all the configuration options.
>>
>> Still, it's on the working list of future things to come. Not just 
>> charts, but DAG visualization and layout,  diagrams ( Heat Maps, etc ), and 
>> visualizations ala InfoVis
>>
>> :-)
>>
>> On Tuesday, December 18, 2012 9:55:11 AM UTC-5, James wrote:
>>>
>>> Is it promising to use this library for reporting to replace other third 
>>> party chart libraries such as GWT Visualization?
>>>
>>> On Monday, December 17, 2012 5:34:17 PM UTC-5, Alfredo Quiroga-Villamil 
>>> wrote:

 Forgot to mention ... You can also add a touch end handler and apply 
 the same concept. This way it will work on mobile devices as well.

 Sent from my iPhone

 On Dec 17, 2012, at 4:58 PM, Zach  wrote:

 Rather than create a new shape, I found I'm able to simply create a 
 LienzoPanel that has a Layer in it. This Layer will be the canvas: on 
 mouse 
 events I can draw a PolyLine and add points to it. After any mouseUp event 
 I can then JSONify the Layer and send that, which will have all shapes 
 within it. 

 -- 
 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/-/eY8mcIzdLn4J.
 To post to this group, send email to google-we...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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/-/6KIc9yYVT0oJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT cant get data from Spring REST

2012-12-18 Thread taha
I wrote an Spring REST application.I tested it with curl command, it worked 
truly. And in another GWT Ajax applictaion i have an RequestBuilder object 
that it doesn't work with my Spring Rest . after calling sendRequest method 
, onResponseReceived event fired but getText method returns empty string :( 
, What should i do?

-- 
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/-/aIyc1AFKy08J.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



UnEscape Html

2012-12-18 Thread J.Ganesan
Is there any utility to unescape html stuff from a String ?
Input :  gwt&
Output : gwt&

J.Ganesan

-- 
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/-/b8I4bia9d7YJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Magnus
Hi,

in the meantime I tried more than 5 different approaches, using divs with 
float or display:table/row/cell and that. All approaches work with all 
browsers except IE8! So I found that the problem may not be located within 
the CSS! 

The key observation for me is that the problem went away while playing 
around with IE's display and document "modes": When switching to "IE8 
standards mode", it works fine! When it didn't work, IE was in "IE 7 
standards mode (page standard)". 

So the non-working "IE 7 standards mode" is the "page standard". One 
approach could be to make IE asume that the working "IE 8 standards mode" 
is the "page standard". But how? 
I found that my host page simply begins with "". I know that 
this means "strict mode", but can we extend this so that IE assumes its 
"IE8 standards mode"? 

My current goal is to make IE switch to "IE8 standards mode" automatically. 
I believe that it could be a solution to guide IE into that direction... 

Magnus 

-- 
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/-/oonw1nr3ttEJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Upgrading from 2.4 to 2.5: Issues with Generics?

2012-12-18 Thread objectuser
I'm working through the upgrade to 2.5 and I'm having trouble with my use 
of generics when used with an RPC service.  My app works fine in 2.4, but 
if I change it to use 2.5, my service calls never make it to the server.

I've been able to reproduce the problem by using a generic method.

If I have something like this, it's fine:

  public Result execute(Command command) { ... }

However, if it's like this, the method is never invoked on the server:

  public  Result execute(Command command) { ... }

Has anyone else encountered something similar?

-- 
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/-/vZTt3ebl6jYJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: how to show horizontal scrollbar in scrollpanel automatically?

2012-12-18 Thread Kei Kei
No, the scrollpanel overflow property is already auto, but the horizontal
scrollbar cannot be shown in ie8 or FF13
I set the css using

> scrollPanel.getElement().setAttribute("style",
> "width:210px;height:247px;border:1px solid #B5BBC8; overflow:auto;");
>

In FireFox, I use firebug and see
element.style{
   border: 1px solid #B5BBC8;
   height: 247px;
   overflow: auto;
   width: 210px;
}

On Wed, Dec 19, 2012 at 5:20 AM, Andrei  wrote:

> This is not a standard behavior. You must have a CSS style applied to your
> scroll panel or its content which resets overflow property. It should be
> overflow:auto.
>
> --
> 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/-/NX1QhsV7i84J.
>
> 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 options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Equivalent to javascript confirmdialog ind GWT

2012-12-18 Thread Milan Cvejic
You could use event.preventDefault() in onWindowClosing method, 
display custom dialog box and if user confirmed close logout him.

Best,
Milan

On Monday, December 17, 2012 5:10:52 PM UTC+1, Dominic Warzok wrote:
>
> The solution is posted her on 
> Stackoverflow
> . 
>
> And here is my code (it's only a extract of the full class) :
>
> *public class MainPresenter*
> *extends BasicPresenter*
> *implements HistoryTokens, MainViewControl, LoginEventHandler, 
> Window.ClosingHandler,*
> *CloseHandler*
> *{*
> * *
> * Window.addWindowClosingHandler( this );*
> *Window.addCloseHandler( this );*
> *
> *
> **
> *
> *
> *  /***
> *   * Diese Methode wird naufgerufen wenn das Browsertab geschlossen 
> werden soll*
> *   */*
> *  @Override*
> *  public void onWindowClosing( ClosingEvent in_event )*
> *  {*
> *if ( model.isUserlogin() )*
> *{*
> *  in_event.setMessage( 
> CONSTANTS.web_client_MainPresenter_AenderungenSpeichernHinweis() );*
> *}*
> *  }*
> *
> *
> *  /***
> *   * Diese Methode wird naufgerufen wenn das Browsertab geschlossen wird*
> *   */*
> *  @Override*
> *  public void onClose( CloseEvent event )*
> *  {*
> *if ( model.isUserlogin() )*
> *{*
> *  camWebServiceAsync.logout( new AsyncCallback()*
> *  {*
> *
> *
> *@Override*
> *public void onSuccess( Void in_result )*
> *{*
> *  *
> *}*
> *
> *
> *@Override*
> *public void onFailure( Throwable in_caught )*
> *{*
> *}*
> *  } );*
> *}*
> *  }*
> *
> *
> *}*
>
>

-- 
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/-/8PHJaoorKCQJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Equivalent to javascript confirmdialog ind GWT

2012-12-18 Thread RyanZA
Hey

The 'proper' way to do the confirm dialog is to use the Activies and Places 
framework in GWT.

https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces#Activities

/**
 * Ask user before stopping this activity
 */
@Override
public String mayStop() {
return "Please hold on. This activity is stopping.";
}



On Monday, December 17, 2012 1:28:39 PM UTC+2, Dominic Warzok wrote:
>
> Hey together, 
>
> I try about a day to find an equvalent to the javascript confirm-dialog. 
>
> My problem is that when the user reload the webpage, he should get a 
> dialog with a "Yes" and a "No" button where he can decide to only reload 
> the page or to log off from the page. 
>
> I found a jQueryUi Dialog but this dilog don't interrup the reload 
> process. 
>
> After this I found this 
> Project but 
> I can't call it from a native Method... 
>
> Maybe someone of you know a solution ? 
>
> Thanks in advance ;) 
> Dominic 
>

-- 
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/-/-cZpI36OzekJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-18 Thread Manuel Alejandro Fernandez Casado
Any? :(

-- 
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/-/s3sy6jBMjMwJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT/CSS text align problem

2012-12-18 Thread Andrea Boscolo
Actually a  declaration means standard mode, not strict. So 
you are fine with it.
See 
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Standards
To force IE8 standard mode try to add in the head element




See http://code.google.com/p/google-web-toolkit/wiki/IE8Support


On Wednesday, December 19, 2012 3:17:54 AM UTC+1, Magnus wrote:
>
> Hi,
>
> in the meantime I tried more than 5 different approaches, using divs with 
> float or display:table/row/cell and that. All approaches work with all 
> browsers except IE8! So I found that the problem may not be located within 
> the CSS! 
>
> The key observation for me is that the problem went away while playing 
> around with IE's display and document "modes": When switching to "IE8 
> standards mode", it works fine! When it didn't work, IE was in "IE 7 
> standards mode (page standard)". 
>
> So the non-working "IE 7 standards mode" is the "page standard". One 
> approach could be to make IE asume that the working "IE 8 standards mode" 
> is the "page standard". But how? 
> I found that my host page simply begins with "". I know 
> that this means "strict mode", but can we extend this so that IE assumes 
> its "IE8 standards mode"? 
>
> My current goal is to make IE switch to "IE8 standards mode" 
> automatically. I believe that it could be a solution to guide IE into that 
> direction... 
>
> Magnus 
>

-- 
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/-/Wn9z4pvQRIIJ.
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 options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.