Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread coderinabstract
+ 1...

Working on web apps since web came to existence asp, jsp, cgi, DHTML, 
javascript, struts and it was a real mess and did not truly enjoy it. 
Also,apps created were error prone with code bloat and good design was 
messy and a challenge.

The power of true OO, with Java, generics and good design with GWT is a 
complete game changing innovation compared to the page based development, 
untyped and script based frameworks in creating highest quality end user 
experiences. 

Sincerely hope thats GWTs power with HTML5/CSS and supporting a truly open 
standard already qualifies this to be the best design experience for 
someone like me who really enjoys good application design. Augmenting GWT 
with frameworks like GWTP and other opensource frameworks makes this 
a formidable high performing application design architecture out there. I 
have yet to find a solid scalable OO/Java based design framework with this 
kind of pure OO and componentization power for user experience 
management... combine that with GIN/GUICE and it keeps on getting better.

I sincerely hope Google continues to promote this awesome framework and 
continue to make web development so much fun. Was kind of disappointed to 
see it go away from the front page of the new google developers site, 
however agree that this is a large and formidable community which shall 
continue to move forward.

Best...

On Tuesday, April 3, 2012 12:54:53 PM UTC-4, Alan Chaney wrote:
>
> Hi Joseph
> On 04/03/2012 08:34 AM, Joseph Lust wrote:
> > Alan,
> >
> > Thanks as always for your courteous replies. I'm grateful for the 
> > efforts the Google developers put into GWT, as any other enterprise 
> > building such a framework would most certainly charge the Earth for it 
> > while also crippling its functionality in exchange for customer 
> > lock-in. Google just makes great software.
> >
> > However, I work in a large enterprise where our GWT Community of 
> > Practice group must make a case for why any new application should use 
> > GWT. It is important to management to know the future of GWT and a 
> > roadmap is how this is commonly done. While I don't personally think 
> > GWT will suffer from the recent project pogroms at Google, a roadmap 
> > and rough release schedule will lend greater confidence to others in 
> > the stability and longevity of the framework needed before a company 
> > is willing to build multi-million dollar projects with it.
> >
>
> Have you seen this thread on Google+?
> https://plus.google.com/117487419861992917007/posts/6YWpsHpqMqZ
>
> especially Ray Cromwell's comment about half-way down? Also Eric 
> Clayberg's - I suggest you read the whole thread, but I've copied and 
> pasted two comments which caught me eye.
> 
> Ray Cromwell: "Many of Google's services are still being written in GWT 
> and won't change anytime soon, for example AdWords and AdSense, from 
> which Google derives the majority of their revenue, are written in GWT, 
> so given that fact alone, GWT will be around for a long time and 
> continue to be improved. The loss of Ray Ryan and Bob were a big set 
> back (unrelated to Dart), and we have people trying to get up to speed 
> on their contributions to maintain them, but honesty, we rely on many of 
> our top external users like Thomas Broyer and Stephan Haberman to fill 
> the gap until that time. (Thanks guys) Turnover is natural and happens 
> at all companies, and it's always rough.
>
> The next release or two of GWT may include more core improvements than 
> the last few point releases of GWT so far, consider:
> 1) Compiler optimizations that reduce code by size by 30% uncompressed, 
> and 15% gzipped
> 2) SourceMap support and Source-Level Java debugging in Chrome (and 
> hopefully Firefox)
> 3) A "super draft mode" that can recompile many apps in under 10 seconds 
> and most under 5
> 4) New "to the metal" "modern browser" HTML bindings
> 5) Testing framework that makes GUI testing delightful
> 6) Incremental compile support to speed up production compiles
>
> So code will be getting smaller, faster, easier to debug (in some 
> situations) and test, and compiles will go quicker. This reflects 
> somewhat the shift in GWT team composition, but as people ramp up on 
> other parts of the SDK (e.g. MVP stuff), I'm sure there will be improved 
> responsiveness to fixing bugs in that area as well.
>
> Obviously, we want Dart to be a huge success, but even if it is, Java 
> isn't going away anytime soon. :)"
> 
> 
> Eric Clayberg: "I can assure you that GWT is not in maintenance mode. 
> Not even close! Quite the contrary, GWT is very healthy, and the GWT 
> team continues to focus on making GWT a great choice for building 
> structured web applications now and in the future. If you have the need 
> to start a new web app project, GWT would be an excellent choice, and 
> there is no reason to avoid it. The GWT team is fully staffed, and we 
> have very ambitious plans for GWT's future. GWT is used by m

How to unsubscribe handler from EventBus?

2012-04-03 Thread Alex Luya
Hello
   I have two widgets,and both of them implement same event
handler,subscribe to same EventBus to  listen same event.What I expect
is after view switching from widget1 to widget2,widget1 can be
unsubscribed from EventBus and collected by browser,so when event is
fired again,only widget2 will handle it.But actually,widget1 still live
and will handle the event.How can I solve this problem?

-- 
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: CustomScrollPanel issue (extra div overlays generated impacting performance?)

2012-04-03 Thread GWTter
Hi Deepak,

The most you should need to do is the following:

AbsolutePanel absPanel = new AbsolutePanel();
for(int i = 0; i < 10; i++){
 SimplePanel simp = new SimplePanel();
 simp.setHeight("100px");
 simp.setWidth("500px");
 simp.getElement().getStyle().setBackgroundColor("green");
 absPanel.add(simp);
}

MyScrollPanel scrollPanel = new MyScrollPanel();
scrollPanel.setHeight("500px");
scrollPanel.setWidth("100px");

scrollPanel.add(absPanel);

RootPanel.get().add(scrollPanel);

If the above code does not give you a green scrollable box then you should 
recheck your code. With the code I sent you and the above code, you should 
have a custom scroll bar (not native). You should at the very least have 
the above code working. Hope this helps. Let me know.

-Seth


On Tuesday, April 3, 2012 1:59:33 PM UTC-4, Deepak Singh wrote:
>
> Hi Seth,
>
> I added the styles to myVerticalScrollBar. and added the entire page 
> content to MyScrollpanel but still the default scrollbar is there.
>
> Its not overridden.
>
>
> On Mon, Apr 2, 2012 at 9:39 PM, GWTter  wrote:
>
>> Hi Deepak,
>>
>> Yes, you would need to apply some style to your scrollbar so that it at 
>> least has width (or height if you were using the horizontal scrollbar). If 
>> you look at the MyVerticalScrollBar constructor, the line 
>> 'this.setStyleName("verticalScrollBar")' sets the style for the scrollbar. 
>> This style is not defined in the myScrollPanel.css as that CSS file is only 
>> meant for the cornerpanel styling. You would need to define the style 
>> "verticalScrollBar" in your main CSS file. For example: 
>>
>> .verticalScrollBar{
>>   width: 10px;
>>   background: blue;
>> }
>>
>> Also, make sure that the content you're scrolling is within the 
>> MyScrollPanel, since only content within the MyScrollPanel will have the 
>> custom scroll bars, anything not within a CustomScrollPanel will still 
>> default to the native implementation. Hope this helps.
>>
>> -Seth
>>
>> -Seth
>>
>>
>> On Monday, April 2, 2012 11:44:57 AM UTC-4, Deepak Singh wrote:
>>>
>>> Nothing more than what i sent you.
>>>
>>> I have just myScrollPanel.css as mention above.
>>>
>>> Could you pls guide me with css if i need to apply some css over 
>>> vertical scrollbar?
>>>
>>> Thanks in advance
>>> Deepak
>>>
>>> On Mon, Apr 2, 2012 at 8:19 PM, GWTter  wrote:
>>>
 Hi Deepak,

 This looks good to me. What style are you using for the vertical 
 scrollbar?

 And thanks for the repost.

 -Seth


 On Sunday, April 1, 2012 3:50:12 PM UTC-4, Deepak Singh wrote:
>
> Hi Seth,
>
> I am posting my code here:
>
> myScrollPanel.css
> @CHARSET "ISO-8859-1";
>
> .customScrollPanel{
> }
> .customScrollPanelCorner{
> opacity: 0.0;
> }
>
> MyScrollPanel.java
>
> public class MyScrollPanel extends CustomScrollPanel {
>  /**
>  * Extends the CustomScrollPanel Resources interface so that we can 
> add our own css file and still reuse the Resources and Style interfaces 
> from CustomScrollPanel
>  * @author SL
>  *
>  */
>  public interface MyScrollResources extends Resources{
>
> @Source("com/pdstechi/client/**m**yScrollPanel.css")
>  Style customScrollPanelStyle();
> }
>  public MyScrollPanel(){
> super((MyScrollResources)GWT.**c**reate(MyScrollResources.**class)**);
>  this.setVerticalScrollbar(new MyVerticalScrollBar(), 
> MyVerticalScrollBar.**getScrollB**arWidth());
> // this.setHorizontalScrollbar(**ne**w MyHorizontalScrollBar(), 
> MyHorizontalScrollBar.**getScrol**lBarHeight());
>  }
>
> }
>
>
> MyVerticalScrollBar.java
>
> public class MyVerticalScrollBar extends Widget implements 
> VerticalScrollbar {
> private double scrollBarHeight = 0.0;
>  private double scrollBarPosition = 0.0;
> private double scrollWindowPercentage = 1.0;
>  private double scrollWindowHeight = 0;
>  private int totalScrollContentHeight = 0;
>  private static final int SCROLL_BAR_WIDTH = 10;
> private Element elem;
>   public MyVerticalScrollBar(){
>  this.elem = Document.get().**createDivElemen**t();
> setElement(this.elem);
> this.setStyleName("**verticalScr**ollBar");
>  }
>  public static int getScrollBarWidth(){
>  return SCROLL_BAR_WIDTH;
> }
>
> @Override
>  public int getMaximumVerticalScrollPosition() {
> return (int)(this.scrollWindowHeight-this.scrollBarHeight);
>  }
>
> @Override
> public int getMinimumVerticalScrollPosition() {
>  return 0;
> }
>
> @Override
>  public int getVerticalScrollPosition() {
> return (int)this.scrollBarPosition;
>  }
>  @Override
>  public void setVerticalScrollPosition(int position) {
> this.scrollBarPosition = Math.floor(position*this.**scrol**
> lWindowPercentage);
>  //make sure we don't go o

Referencing a GWT project from another - CreateProcess error=206, The filename or extension is too long

2012-04-03 Thread InViVe


I am already using an open source GWT project (iServe) and I would like to 
integrate into it another open source GWT project (PetalsBPM), by which I 
mean being able to call it and reference its methods.

Both projects (which include multiple modules) have been imported  into 
Eclipse successfully, but whenever I try to add a specific PetalsBPM module 
(the one containing its entrypoint) to iServe through Properties -> Java 
Build Path -> Projects, although it does not cause any errors immediately, 
I cannot launch iServe anymore. It produces the following error:

"*Exception occurred executing command line. Cannot run program "C:\Program 
Files\Java\jre7\bin\javaw.exe" (in directory 
"C:...iserve-sal-gwt-1.0.0-SNAPSHOT"): CreateProcess error=206, The 
filename or extension is too long*"

 

Trying to figure out the source of this error, I attempted to simplify the 
problem, so I performed the following moves:


   1. I created two new simple GWT projects and tried to reference one from 
   the other. Worked fine
   2. I referenced the module I actually want to use (PetalsBPM) from the 
   simple one I just created. Also works fine.
   3. I referenced the new simple project from the original one I want to 
   use (iServe). Also works fine.
   4. Tried referencing a different module of the PetalsBPM project, and it 
   still does not produce this error (with some modules it runs without any 
   errors, with others it produces errors that are different and fixable).
   5. Finally, I tried switching workspaces. I created a new workspace in 
   C:\, and moved the actual projects there, in case the filenames were indeed 
   too long. Still it did not work. :(
   
   

Based on the above, I ‘m guessing that the problem is that each of the 
modules I m trying to integrate is based on many other modules, so their 
“sum” ends up too big. But I don’t know how to fix such a problem.

I have read elsewhere to try and set java forking to false, and disable 
enhancements, but I don’t know how to do the first or if it would help, and 
my project does not use Google’s AppEngine (or ORM)

Any help would be appreciated! 

-- 
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/-/UQzNFUPv0TkJ.
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

2012-04-03 Thread monal
How to download & use projectCreator

-- 
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.



Fetching images for users: where to put them?

2012-04-03 Thread Sam W
Hello,

I haven't been able to figure this out after spending 3 hours on
Google.

I can fetch an image, but I don't know where to put them.
If I just use "new File("image.jpg")", it will end up in my tomcat
bin/ folder.

Some sugggests to use getServletContext().getRealPath("/"); but it
would block forever at "getServletContext", I don't know why.

What should I do so it will be part of the war, thus clients can
access it via "http://path.to/appname/images/someimage.jpg";?

What is the best practice on this?

Thank you so much.
Sam

-- 
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.



Error in DTD "gwt-module.dtd"

2012-04-03 Thread Rick Fisher
My dear friends at Google,

Are you aware the following DTD has an error?

 "http://google-web-toolkit.googlecode.com/svn/tags/2.4.0/distro-
source/core/src/gwt-module.dtd"

: BEGIN :::
This page contains the following errors:

error on line 17 at column 2: StartTag: invalid element name
Below is a rendering of the page up to the first error.
: END :::

It is causing errors in our projects - "IntelliJ compile"

Can someone fix it?  :-)

Thank you

-- 
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: What is the substitute for "package com.google.gwt.event.dom.client" does not exist for 1.5.3

2012-04-03 Thread Mithun Hore
Hi,

I have posted following post on GWT groups on yesterday. But I am not able
to see it through GWT google groups. Please let me know how can I see the
post over there.

Thanks,
Mithun

On Tue, Apr 3, 2012 at 3:56 PM, Mithun Hore  wrote:

> Can Someone please help me out on this?
>
> Regards,
> Mithun
>
> On Mon, Apr 2, 2012 at 6:48 PM, mithun.h...@gmail.com <
> mithun.h...@gmail.com> wrote:
>
>> Hi Guys,
>>
>> What is the substitute way for "package
>> com.google.gwt.event.dom.client" as it does not exist for 1.5.3? I am
>> migrating codes from GWT 2.0.3 to 1.5.3, so above package is not there
>> in 1.5.3. So It would be very helpful if someone can tell me how
>> should I proceed for down-gradation.
>>
>> Found in GWT Release (e.g. 2.4.0, 2.5.0 RC):
>> 1.5.3
>>
>> Encountered on OS / Browser (e.g. WinXP, IE8-9, FF7):
>> Windows XP
>>
>> Detailed description (please be as specific as possible):
>> We are doing code migration from one project which has GWT version
>> 1.5.3 to another project which has GWT version 2.0.3. So at the time
>> of migrating GWT codes, I am getting an error that
>>
>> "package com.google.gwt.event.dom.client does not exist" in GWT 1.5.3.
>> So couple of methods (ex.
>>
>> HasClickHandlers,DistDataTextBox,ClickHandler,removeAllRows,ValueChangeHandler,KeyPressHandler,
>> clearCurves,getYAxis,setChartTitle,update)that used in 2.0.3 is not
>> able to compile in 1.5.3. Please let me know how should proceed on
>> this.
>>
>> Shortest code snippet which demonstrates issue (please indicate where
>> actual result differs from expected result):
>>
>> Here I am putting error report rather code snippet:
>>
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
>> plugin:2.0.2:compile (default-compile) on project planningmaint-web:
>> Compilation failure: Compilation failure:
>> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
>> \src\main\java\com\ccna\supplychain\planningmaint\client
>> \DistDataGrid.java:[14,38] package com.google.gwt.event.dom.client
>> does not exist
>>
>> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
>> \src\main\java\com\ccna\supplychain\planningmaint\client
>> \DistDataGChart.java:[11,7] cannot access
>> com.google.gwt.event.dom.client.HasClickHandlers
>> class file for com.google.gwt.event.dom.client.HasClickHandlers not
>> found
>> public class DistDataGChart extends GChart {
>>
>> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
>> \src\main\java\com\ccna\supplychain\planningmaint\client
>> \DistDataGrid.java:[415,9] cannot find symbol
>> symbol  : class DistDataTextBox
>> location: class
>> com.ccna.supplychain.planningmaint.client.demandprofile.DistDataGrid
>>
>> Thanks and Regards,
>> Mithun
>
>
>

-- 
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.



Selection gets lost for multiple selections (when Scroll-Bar is used) in IE

2012-04-03 Thread sharath kumar
What steps will reproduce the problem?
1. Select first text field
2. Scroll till the end to select all the items (Use scroll-bar to
select the below item)
3. Press shift and try to select last text field in order to select
all the items in the window. The selection gets lost.

What is the expected output? What do you see instead?
All the text fields should be selected. But the selection gets lost
and one text field is selected randomly.

What version of the product are you using? On what operating system?
GXT 2.2.5   with Windows 7.

Please provide any additional information below.

Multiple selection happens if we don't select using scroll bar. If we
use scroll bar, then only problem is coming.

-- 
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.



What is the substitute way for "package com.google.gwt.event.dom.client" as it does not exist for 1.5.3 in 2.0.3

2012-04-03 Thread Mithun
What is the substitute way for "package
com.google.gwt.event.dom.client" as it does not exist for 1.5.3? I am
migrating codes from GWT 2.0.3 to 1.5.3, so above package is not there
in 1.5.3. So It would be very helpful if someone can tell me how
should I proceed for down-gradation.

Found in GWT Release (e.g. 2.4.0, 2.5.0 RC):
1.5.3

Encountered on OS / Browser (e.g. WinXP, IE8-9, FF7):
Windows XP

Detailed description (please be as specific as possible):
We are doing code migration from one project which has GWT version
1.5.3 to another project which has GWT version 2.0.3. So at the time
of migrating GWT codes, I am getting an error that

"package com.google.gwt.event.dom.client does not exist" in GWT 1.5.3.
So couple of methods (ex.
HasClickHandlers,DistDataTextBox,ClickHandler,removeAllRows,
ValueChangeHandler,KeyPressHandler,
clearCurves,getYAxis,setChartTitle,update)that used in 2.0.3 is not
able to compile in 1.5.3. Please let me know how should proceed on
this.

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):

Here I am putting error report rather code snippet:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.0.2:compile (default-compile) on project planningmaint-web:
Compilation failure: Compilation failure:
J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGrid.java:[14,38] package com.google.gwt.event.dom.client
does not exist

J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGChart.java:[11,7] cannot access
com.google.gwt.event.dom.client.HasClickHandlers
class file for com.google.gwt.event.dom.client.HasClickHandlers not
found
public class DistDataGChart extends GChart {

J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGrid.java:[415,9] cannot find symbol
symbol  : class DistDataTextBox
location: class
com.ccna.supplychain.planningmaint.client.demandprofile.DistDataGrid

-- 
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/-/j2QaupLOuRwJ.
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.



Smart GWT use for commercial software development.

2012-04-03 Thread sanika joshi
Hi All,
  Wanted to know if smart GWT can be used for commercial application
development.Do I have to purchase a  license for the same or can it be
installed and used without any purchase of a license.
Talking of more detail if Smart GWT is free to use then can all the
widgets which are included in the smart GWT page be implemented as
they can be in simple GWT?
Thanks alot!

-- 
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.



App Engine Connected

2012-04-03 Thread ShakaDima
Hello Everyone,
first of all I'm developing on Ubuntu 10.04 with Eclipse 3.7.2, GWT 2.4.0, 
App Engine 1.6.4 and Android 2.2. Right now I'm doing tutorial from this 
site: https://developers.google.com/eclipse/docs/appeng_android_install_setup 


My problem is that the same tutorial done on Windows works fine, but on 
Linux environment things went rather poor. Everything under linux is 
compiling well and there is no error, but when I deploy application on my 
phone or emulator things getting worse:  first error is connected with 
missing class MyRequestFactory:
04-04 00:09:10.251: E/AndroidRuntime(7695): Caused by: 
java.lang.NoClassDefFoundError: com.mytasks.client.MyRequestFactory
which is present in project

Second thing is missing:
java.lang.NoClassDefFoundError: com.google.android.c2dm.C2DMessaging
Of course I have put it in Build Path or as external jar, but still after 
run it is missing (In Eclipse everything looks ok).

So my question is am I missing some configuration under Eclipse, or maybe 
my Ubuntu is messing something up or maybe I do everything wrong? 

Thanks in advance for help!
ShakaDima

-- 
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/-/3B3EOLDFFkAJ.
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: What is the substitute for "package com.google.gwt.event.dom.client" does not exist for 1.5.3

2012-04-03 Thread Mithun Hore
Can Someone please help me out on this?

Regards,
Mithun
On Mon, Apr 2, 2012 at 6:48 PM, mithun.h...@gmail.com  wrote:

> Hi Guys,
>
> What is the substitute way for "package
> com.google.gwt.event.dom.client" as it does not exist for 1.5.3? I am
> migrating codes from GWT 2.0.3 to 1.5.3, so above package is not there
> in 1.5.3. So It would be very helpful if someone can tell me how
> should I proceed for down-gradation.
>
> Found in GWT Release (e.g. 2.4.0, 2.5.0 RC):
> 1.5.3
>
> Encountered on OS / Browser (e.g. WinXP, IE8-9, FF7):
> Windows XP
>
> Detailed description (please be as specific as possible):
> We are doing code migration from one project which has GWT version
> 1.5.3 to another project which has GWT version 2.0.3. So at the time
> of migrating GWT codes, I am getting an error that
>
> "package com.google.gwt.event.dom.client does not exist" in GWT 1.5.3.
> So couple of methods (ex.
>
> HasClickHandlers,DistDataTextBox,ClickHandler,removeAllRows,ValueChangeHandler,KeyPressHandler,
> clearCurves,getYAxis,setChartTitle,update)that used in 2.0.3 is not
> able to compile in 1.5.3. Please let me know how should proceed on
> this.
>
> Shortest code snippet which demonstrates issue (please indicate where
> actual result differs from expected result):
>
> Here I am putting error report rather code snippet:
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
> plugin:2.0.2:compile (default-compile) on project planningmaint-web:
> Compilation failure: Compilation failure:
> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
> \src\main\java\com\ccna\supplychain\planningmaint\client
> \DistDataGrid.java:[14,38] package com.google.gwt.event.dom.client
> does not exist
>
> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
> \src\main\java\com\ccna\supplychain\planningmaint\client
> \DistDataGChart.java:[11,7] cannot access
> com.google.gwt.event.dom.client.HasClickHandlers
> class file for com.google.gwt.event.dom.client.HasClickHandlers not
> found
> public class DistDataGChart extends GChart {
>
> J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
> \src\main\java\com\ccna\supplychain\planningmaint\client
> \DistDataGrid.java:[415,9] cannot find symbol
> symbol  : class DistDataTextBox
> location: class
> com.ccna.supplychain.planningmaint.client.demandprofile.DistDataGrid
>
> Thanks and Regards,
> Mithun

-- 
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.



Configuring HTMLUnit to accept self signed SSL certificate

2012-04-03 Thread Hendrik Bilges
Hi,

I'm trying to run a GWTTestCase which tries to access a
SslSocketConnector which I have configured together with a Jetty
server in the Maven pom.xml. It seems that the integrated HTMLUnit is
not configured to allow SSL connections using a self signed
certificate (API:
com.gargoylesoftware.htmlunit.WebClient#setUseInsecureSSL). Is there
some way to access this configuration setting via the configuration
options for the gwt-maven-plugin?

-- 
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.



com.google.gwt.user.client.rpc.StatusCodeException: 404

2012-04-03 Thread PJR
I have launched mgwt showcase demo project to my PC and able to do all
actions what i am seeing on http://mobilegwt.appspot.com/showcase/#
from source code (with Eclipse Helios) . The problem is when I add RPC
in order to contact server (local) getting
com.google.gwt.user.client.rpc.StatusCodeException: 404.
I have taken all the notes/precautions given by techies on  "servlet
pattern url" but no luck.

Any other insights and areas to check in mgwt showcase project to make
work PRC.

Thanks in advance !!

-- 
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.



Can I do this with GWT..?

2012-04-03 Thread Carsten
I am a beginner and try to find out if what I want to do is possible
with GWT and how one should do it:

1. load a font and render words (possibly rotated) on the screen
2. animate drawn objects like words, e.g. make them 'fly' from one
side of the screen to the other.
3. do transformation operations on 'shapes', like translation,
rotation, scale.

Maybe somebody knows GWT apps  which are capable of
some of the features I mentioned above?

What would you use to load fonts, render words on the screen, rotate
words and render them and do animations?

HTML5 Canvas? CSS animations?

This are only keywords I found using Google but I don't know how it
will look in action and what is possible or not. A few links to web
apps that are capable of the features I mentioned above (build on GWT
or possible to build with GWT) would be really helpful

Thanks,
Carsten

-- 
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.



GWT Maven mutli module project with i18n results in duplicate class errors

2012-04-03 Thread Gilad Garon
Hello,

We're working on a large scale project with GWT and Maven as it's build 
system
For every application sub system, we've created a separated GWT module.
Each module, is a simple jar with gwt module xml with the following maven 
config (for example):

events
jar

  





org.codehaus.mojo
gwt-maven-plugin
2.4.0



resources
i18n





 ...
 





There is also one central module that contains the EntryPoint and depends 
on the other modules.
I have a problem, every time I try to compile an application module with 
i18n goal, I get an error, duplicate class, which relates to a Message 
interface (I get an error for each Message interface in that module).

Am I doing something wrong? should the i18n goal be activated in the 
application module?
Thank you,
Gilad


-- 
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/-/4PNBQ_wv4QwJ.
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.



Help required for eclipse setup for gwt project

2012-04-03 Thread tomo india
Hi,

I am trying to setup my eclipse IDE for gwt development.

I am following the instructions from the below URL

https://developers.google.com/web-toolkit/usingeclipse

I downloaded the eclipse and installed the plugins and restarted the
eclipse.

As per the above article, when i tried to create web application, i am
not seeing web application project in File-->New--> menu.

What am i missing ?

Please advice.

Thanks in advance.

-- 
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.



Issue with logout icon

2012-04-03 Thread sharath kumar
We are facing issue with loading icon edges for logout. If we set
light gray for corners of the icon, it is looking good when background
is light. But when the background is dark, corners are visible and not
looking good.

The loading file is a GIF file.









-- 
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.



Error running ValidationTool using Maven on Eclipse Indigo 3.7.2

2012-04-03 Thread eggyal
Dear all,

I have followed the instructions in the GWT Wiki[1], including the
lifecycle mapping required to execute plugins under Indigo.  However,
I receive the following (rather uninformative) error on build:

> Error executing 
> (org.bsc.maven:maven-processor-plugin:2.0.5:process:process:generate-sources)

Grateful for any suggestions on what might be causing this error, or
how one can resolve it?

It may be worthy of note that others have reported the same issue in
other forums[2][3], with only one suggested fix (running Eclipse under
JVM from JDK 1.6) that does not work for me.  I have also posted on
the m2e users list[4] for advice on how to debug plugin execution
errors of this sort.

Thank you in advance for your help.

Kind regards,
-- Alan

  [1]: 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#Maven_builds
  [2]: http://stackoverflow.com/questions/8756431/
  [3]:
http://googlewebtoolkit.blogspot.co.uk/2011/09/working-with-maven-and-requestfactory.html?showComment=1317832186161#c2291986363903653400
  [4]: http://dev.eclipse.org/mhonarc/lists/m2e-users/msg02407.html

-- 
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.



What is the substitute for "package com.google.gwt.event.dom.client" does not exist for 1.5.3

2012-04-03 Thread mithun.h...@gmail.com
Hi Guys,

What is the substitute way for "package
com.google.gwt.event.dom.client" as it does not exist for 1.5.3? I am
migrating codes from GWT 2.0.3 to 1.5.3, so above package is not there
in 1.5.3. So It would be very helpful if someone can tell me how
should I proceed for down-gradation.

Found in GWT Release (e.g. 2.4.0, 2.5.0 RC):
1.5.3

Encountered on OS / Browser (e.g. WinXP, IE8-9, FF7):
Windows XP

Detailed description (please be as specific as possible):
We are doing code migration from one project which has GWT version
1.5.3 to another project which has GWT version 2.0.3. So at the time
of migrating GWT codes, I am getting an error that

"package com.google.gwt.event.dom.client does not exist" in GWT 1.5.3.
So couple of methods (ex.
HasClickHandlers,DistDataTextBox,ClickHandler,removeAllRows,ValueChangeHandler,KeyPressHandler,
clearCurves,getYAxis,setChartTitle,update)that used in 2.0.3 is not
able to compile in 1.5.3. Please let me know how should proceed on
this.

Shortest code snippet which demonstrates issue (please indicate where
actual result differs from expected result):

Here I am putting error report rather code snippet:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:2.0.2:compile (default-compile) on project planningmaint-web:
Compilation failure: Compilation failure:
J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGrid.java:[14,38] package com.google.gwt.event.dom.client
does not exist

J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGChart.java:[11,7] cannot access
com.google.gwt.event.dom.client.HasClickHandlers
class file for com.google.gwt.event.dom.client.HasClickHandlers not
found
public class DistDataGChart extends GChart {

J:\workspace\PlanningMaintenance_Project\main\modules\planningmaint-web
\src\main\java\com\ccna\supplychain\planningmaint\client
\DistDataGrid.java:[415,9] cannot find symbol
symbol  : class DistDataTextBox
location: class
com.ccna.supplychain.planningmaint.client.demandprofile.DistDataGrid

Thanks and Regards,
Mithun

-- 
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.



how can i add a double click event to Tree component

2012-04-03 Thread dayanandabv
Hi All,

Very good morning,

how can I add a double click event to Tree component. please help on
this regard.
appreciate your help.

Thanks
Daya

-- 
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.



Error in docs

2012-04-03 Thread Andy Jefferson
On this page
https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory
you claim *"In persistence frameworks like JDO and JPA, entities are 
annotated with @Entity"*
This is completely incorrect for JDO. It doesn't have @Entity, it has 
@PersistenceCapable. Simple review of the JDO spec would reveal this. 
Please do not misrepresent a standard; it is a standard for a reason.

-- 
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/-/W_T8jtL6wMUJ.
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.



Nitin Thakur wants to chat

2012-04-03 Thread Nitin Thakur
---

Nitin Thakur wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-c29e5f6f40-5a216f8369-2GWrRBK3CmPjqqrTLgmmB6UgxZk
You'll need to click this link to be able to chat with Nitin Thakur.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Nitin Thakur, visit:
http://mail.google.com/mail/a-c29e5f6f40-5a216f8369-2GWrRBK3CmPjqqrTLgmmB6UgxZk

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into "conversations"
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
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: JSR303 Pre-Persist / Pre-Persist / Pre-Remove Validation not covered by onConstraintViolations() and throws Exception

2012-04-03 Thread Patrick Julien
Only the default validation group is supported GWT at this time.  I have no 
good solution for using another validation group because if you throw a 
validation exception from an handler, it triggers the wrong method of the 
Receiver on the client side (onServerFailure instead of on constraint 
violation)



On Tuesday, April 3, 2012 4:40:04 PM UTC-4, Romain BIARD wrote:
>
> Hi all,
>
>
> I'm writing Custom Validators (server side I mean) in order to validate an 
> entity before a persist() call (and only in this specific case).
>
> Actually my final goal is to display localized messages when users want to 
> insert a duplicate entry in my CRUD Webapp.
>
>
> To do this, i have tried to play with validation groups and validation 
> triggers. In Hibernate you can associate Custom ValidationGroup (Here  
> com.test.cis.server.validator.PreRemove 
> , com.test.cis.server.validator.PrePersist, com.test.cis.server.validator
> .PreUpdate) and validation triggers.
>
> *
> *
>
> *persistence.xml*
>
>
> 
>
>  "javax.validation.groups.Default,com.test.cis.server.validator.PrePersist"
> />
>
>  "javax.validation.groups.Default,com.test.cis.server.validator.PreUpdate"
> />
>
>
> On my bean, I've put my custom annotation with 
> com.test.cis.server.validator.PrePersist.class as validation group.
>
>
> @MyConstraint(groups=com.test.cis.server.validator.PrePersist.class)
>
>
> So my problem turns around the GWT validation with requestfactory : the 
> validation is done *before* (so the validation will not execute my custom 
> validator at this time ) the call to persist (which will trigger 
> myConstraint validator) so GWT can't handle Constraint Violation exception 
> that occurs during a method call(i.e during method execution). In this 
> case, the exception is catch by the standard ExceptionHandling mechanism 
> and every informations / Localized messages are lost.
>
>
> javax.validation.ConstraintViolationException: validation failed for 
> classes [com.test.domain.entity.CatalogueEntity] during persist time for 
> groups [javax.validation.groups.Default, 
> com.test.cis.server.validator.PrePersist, ]
>
>
> Have you ever been in this case ? Another solution ?
>
>
>
>

-- 
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/-/fP_Sv_g8V-4J.
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: JSR303 Pre-Persist / Pre-Persist / Pre-Remove Validation not covered by onConstraintViolations() and throws Exception

2012-04-03 Thread Romain BIARD
Maybe i have to override SimpleRequestProcessor.process(RequestMessage req, 
ResponseMessage resp)

around 

// Validate entities

List errorMessages = validateEntities(source);


 if (!errorMessages.isEmpty()) {

resp.setViolations(errorMessages);

return;

}


 RequestState returnState = new RequestState(source);


 // Invoke methods

List invocationResults = new ArrayList();

List invocationSuccess = new ArrayList();

*processInvocationMessages*(source, req, invocationResults, 
invocationSuccess, returnState);



Le mardi 3 avril 2012 22:40:04 UTC+2, Romain BIARD a écrit :
>
> Hi all,
>
>
> I'm writing Custom Validators (server side I mean) in order to validate an 
> entity before a persist() call (and only in this specific case).
>
> Actually my final goal is to display localized messages when users want to 
> insert a duplicate entry in my CRUD Webapp.
>
>
> To do this, i have tried to play with validation groups and validation 
> triggers. In Hibernate you can associate Custom ValidationGroup (Here  
> com.test.cis.server.validator.PreRemove 
> , com.test.cis.server.validator.PrePersist, com.test.cis.server.validator
> .PreUpdate) and validation triggers.
>
> *
> *
>
> *persistence.xml*
>
>
> 
>
>  "javax.validation.groups.Default,com.test.cis.server.validator.PrePersist"
> />
>
>  "javax.validation.groups.Default,com.test.cis.server.validator.PreUpdate"
> />
>
>
> On my bean, I've put my custom annotation with 
> com.test.cis.server.validator.PrePersist.class as validation group.
>
>
> @MyConstraint(groups=com.test.cis.server.validator.PrePersist.class)
>
>
> So my problem turns around the GWT validation with requestfactory : the 
> validation is done *before* (so the validation will not execute my custom 
> validator at this time ) the call to persist (which will trigger 
> myConstraint validator) so GWT can't handle Constraint Violation exception 
> that occurs during a method call(i.e during method execution). In this 
> case, the exception is catch by the standard ExceptionHandling mechanism 
> and every informations / Localized messages are lost.
>
>
> javax.validation.ConstraintViolationException: validation failed for 
> classes [com.test.domain.entity.CatalogueEntity] during persist time for 
> groups [javax.validation.groups.Default, 
> com.test.cis.server.validator.PrePersist, ]
>
>
> Have you ever been in this case ? Another solution ?
>
>
>
>

-- 
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/-/frbG_i_qp4AJ.
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.



JSR303 Pre-Persist / Pre-Persist / Pre-Remove Validation not covered by onConstraintViolations() and throws Exception

2012-04-03 Thread Romain BIARD


Hi all,


I'm writing Custom Validators (server side I mean) in order to validate an 
entity before a persist() call (and only in this specific case).

Actually my final goal is to display localized messages when users want to 
insert a duplicate entry in my CRUD Webapp.


To do this, i have tried to play with validation groups and validation 
triggers. In Hibernate you can associate Custom ValidationGroup (Here  
com.test.cis.server.validator.PreRemove 
, com.test.cis.server.validator.PrePersist, com.test.cis.server.validator
.PreUpdate) and validation triggers.

*
*

*persistence.xml*









On my bean, I've put my custom annotation with 
com.test.cis.server.validator.PrePersist.class 
as validation group.


@MyConstraint(groups=com.test.cis.server.validator.PrePersist.class)


So my problem turns around the GWT validation with requestfactory : the 
validation is done *before* (so the validation will not execute my custom 
validator at this time ) the call to persist (which will trigger 
myConstraint validator) so GWT can't handle Constraint Violation exception 
that occurs during a method call(i.e during method execution). In this 
case, the exception is catch by the standard ExceptionHandling mechanism 
and every informations / Localized messages are lost.


javax.validation.ConstraintViolationException: validation failed for 
classes [com.test.domain.entity.CatalogueEntity] during persist time for 
groups [javax.validation.groups.Default, 
com.test.cis.server.validator.PrePersist, ]


Have you ever been in this case ? Another solution ?



-- 
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/-/HOHWp0VmVN8J.
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 make label auto click

2012-04-03 Thread Hilco Wijbenga
On 3 April 2012 12:38, Boris_siroB  wrote:
>> GWT doesn't really support programmatically creating browser events.
>
> Not quite true. See this SO post.

I wrote "doesn't really", not "doesn't". :-) Still, all this mucking
about in the DOM is very hard to (unit) test. In most cases, creating
these events yourself is an anti-pattern. So possible but not
advisable (in general).

-- 
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 to make label auto click

2012-04-03 Thread Deepak Singh
No probs. I solved my prob by changing Div to HtmlPanel.

Thanks for your support.

On Wed, Apr 4, 2012 at 1:08 AM, Boris_siroB  wrote:

> GWT doesn't really support programmatically creating browser events.
>>
>
> Not quite true. See this SO 
> post.
>
>
> --
> 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/-/p9U0rHL7pC8J.
>
> 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.
>



-- 
Deepak Singh

-- 
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 to make label auto click

2012-04-03 Thread Boris_siroB

>
> GWT doesn't really support programmatically creating browser events.
>

Not quite true. See this SO 
post.
 

-- 
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/-/p9U0rHL7pC8J.
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.



Handling History items when using FilteredActivityMapper and CachingActivityMapper

2012-04-03 Thread Shaun Tarves
I am using a FilteredActivityMapper to redirect requests, in front of a 
CachingActivityMapper, but I'm getting strange behavior.

My filter has defined the following:

if (agreement not accepted): return Place B
if (not logged in): return Place C
return Place A

I initialize my browser history in the standard way, with a default place 
(say, Place A) to go to. Navigation to that place gets "interrupted" by the 
filter and returns a different place (Place B). Place B has a button to 
accept an agreement. On click, I call placeController.goTo(Place A). 
However, if the filter tries to redirect to Place C, I get stopped by the 
CachingActivityMapper saying that I'm attempting to return to the same 
(Place A) so nothing happens. It looks like the history isn't updated for 
the new place, only the original place.

I guess my general question is, do I need to manually add History items if 
a FilteredActivityMapper redirects to a new place? That is, should I be 
listening for PlaceChangeEvents somewhere. If so, where's the best place to 
do that?

-- 
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/-/AUCNumTttmcJ.
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 make label auto click

2012-04-03 Thread Hilco Wijbenga
On 3 April 2012 10:57, Deepak Singh  wrote:
> I have wrapped a div into Label. Added clickhandler to label.

Why? If you want to use a container, then I would suggest SimplePanel
or FlowPanel. I would keep Labels for displaying simple text.

> Now i want that at some point of time, this label should be autoclicked but
> we dont have anything like click() method for label as we have for
> button.click().

Why not simply call the corresponding onClick (or what ever you called
it) method directly? GWT doesn't really support programmatically
creating browser events.

-- 
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: Filter Tree in GWT

2012-04-03 Thread Qrunk
Can some one refer the below link and let us know about FilterTree

http://stackoverflow.com/questions/9991133/getting-all-suggestions-from-the-suggestbox-in-gwt/9993597#9993597

Thanks


On Tuesday, 3 April 2012 15:39:20 UTC+5:30, Qrunk wrote:
>
> Hi 
> How to create a filter tree in *GWT* using *CellTre*e, a filter tree is 
> some Tree which has an filter(TextBox) where we can enter values for the 
> leaf node. Once we start entering values we get the tree branches along 
> with leaf nodes reflected on the Tree panel(we have our tree inside a 
> panel). For reference : 
> http://www.sencha.com/examples/explorer.html#filtertree 
>
> We can develop such FilterTree easily in GXT, but we have an requirement 
> to develop it in GWT, not in GXT. Can I have some replies with a short and 
> simple sample code on FilterTree in GWT, or at least any links to refer to. 
>

On Tuesday, 3 April 2012 15:39:20 UTC+5:30, Qrunk wrote:
>
> Hi 
> How to create a filter tree in *GWT* using *CellTre*e, a filter tree is 
> some Tree which has an filter(TextBox) where we can enter values for the 
> leaf node. Once we start entering values we get the tree branches along 
> with leaf nodes reflected on the Tree panel(we have our tree inside a 
> panel). For reference : 
> http://www.sencha.com/examples/explorer.html#filtertree 
>
> We can develop such FilterTree easily in GXT, but we have an requirement 
> to develop it in GWT, not in GXT. Can I have some replies with a short and 
> simple sample code on FilterTree in GWT, or at least any links to refer to. 
>

-- 
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/-/cOkflY9CcA8J.
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: CustomScrollPanel issue (extra div overlays generated impacting performance?)

2012-04-03 Thread Deepak Singh
Hi Seth,

I added the styles to myVerticalScrollBar. and added the entire page
content to MyScrollpanel but still the default scrollbar is there.

Its not overridden.


On Mon, Apr 2, 2012 at 9:39 PM, GWTter  wrote:

> Hi Deepak,
>
> Yes, you would need to apply some style to your scrollbar so that it at
> least has width (or height if you were using the horizontal scrollbar). If
> you look at the MyVerticalScrollBar constructor, the line
> 'this.setStyleName("verticalScrollBar")' sets the style for the scrollbar.
> This style is not defined in the myScrollPanel.css as that CSS file is only
> meant for the cornerpanel styling. You would need to define the style
> "verticalScrollBar" in your main CSS file. For example:
>
> .verticalScrollBar{
>   width: 10px;
>   background: blue;
> }
>
> Also, make sure that the content you're scrolling is within the
> MyScrollPanel, since only content within the MyScrollPanel will have the
> custom scroll bars, anything not within a CustomScrollPanel will still
> default to the native implementation. Hope this helps.
>
> -Seth
>
> -Seth
>
>
> On Monday, April 2, 2012 11:44:57 AM UTC-4, Deepak Singh wrote:
>>
>> Nothing more than what i sent you.
>>
>> I have just myScrollPanel.css as mention above.
>>
>> Could you pls guide me with css if i need to apply some css over vertical
>> scrollbar?
>>
>> Thanks in advance
>> Deepak
>>
>> On Mon, Apr 2, 2012 at 8:19 PM, GWTter  wrote:
>>
>>> Hi Deepak,
>>>
>>> This looks good to me. What style are you using for the vertical
>>> scrollbar?
>>>
>>> And thanks for the repost.
>>>
>>> -Seth
>>>
>>>
>>> On Sunday, April 1, 2012 3:50:12 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 I am posting my code here:

 myScrollPanel.css
 @CHARSET "ISO-8859-1";

 .customScrollPanel{
 }
 .customScrollPanelCorner{
 opacity: 0.0;
 }

 MyScrollPanel.java

 public class MyScrollPanel extends CustomScrollPanel {
  /**
  * Extends the CustomScrollPanel Resources interface so that we can add
 our own css file and still reuse the Resources and Style interfaces from
 CustomScrollPanel
  * @author SL
  *
  */
  public interface MyScrollResources extends Resources{

 @Source("com/pdstechi/client/**m**yScrollPanel.css")
  Style customScrollPanelStyle();
 }
  public MyScrollPanel(){
 super((MyScrollResources)GWT.**c**reate(MyScrollResources.**class)**);
  this.setVerticalScrollbar(new MyVerticalScrollBar(),
 MyVerticalScrollBar.**getScrollB**arWidth());
 // this.setHorizontalScrollbar(**ne**w MyHorizontalScrollBar(),
 MyHorizontalScrollBar.**getScrol**lBarHeight());
  }

 }


 MyVerticalScrollBar.java

 public class MyVerticalScrollBar extends Widget implements
 VerticalScrollbar {
 private double scrollBarHeight = 0.0;
  private double scrollBarPosition = 0.0;
 private double scrollWindowPercentage = 1.0;
  private double scrollWindowHeight = 0;
  private int totalScrollContentHeight = 0;
  private static final int SCROLL_BAR_WIDTH = 10;
 private Element elem;
   public MyVerticalScrollBar(){
  this.elem = Document.get().**createDivElemen**t();
 setElement(this.elem);
 this.setStyleName("**verticalScr**ollBar");
  }
  public static int getScrollBarWidth(){
  return SCROLL_BAR_WIDTH;
 }

 @Override
  public int getMaximumVerticalScrollPosition() {
 return (int)(this.scrollWindowHeight-this.scrollBarHeight);
  }

 @Override
 public int getMinimumVerticalScrollPosition() {
  return 0;
 }

 @Override
  public int getVerticalScrollPosition() {
 return (int)this.scrollBarPosition;
  }
  @Override
  public void setVerticalScrollPosition(int position) {
 this.scrollBarPosition = Math.floor(position*this.**scrol**
 lWindowPercentage);
  //make sure we don't go out of bounds with the scrollbar
 if(this.scrollBarPosition > this.**getMaximumVerticalScrollP**ositi**
 on()){
  this.scrollBarPosition = this.**getMaximumVerticalScrollP**ositi**
 on();
 }
  this.elem.getStyle().setTop(**th**is.scrollBarPosition, Unit.PX);
 }

  @Override
 public HandlerRegistration addScrollHandler(ScrollHandler handler) {
  Event.sinkEvents(this.**getEleme**nt(), Event.ONSCROLL);
 return this.addHandler(handler, ScrollEvent.getType());
  }

 @Override
 public Widget asWidget() {
  return this;
 }

 @Override
  public int getScrollHeight() {
 return this.totalScrollContentHeight;
 }
  @Override
 public void setScrollHeight(int height) {
  //TODO: HAVE TO FIND A WAY TO GET THE SIZE OF THE CORNER BOX, OR
 BETTER YET, IF THE CORNER BOX IS ENABLED BECAUSE THE HORIZONTAL SCROLL BAR
 IS ALSO VISIBLE
  this.totalScrollContentHeight = height;
 this.scrollW

How to make label auto click

2012-04-03 Thread Deepak Singh
Hi,

I have wrapped a div into Label. Added clickhandler to label.
Now i want that at some point of time, this label should be autoclicked but
we dont have anything like click() method for label as we have for
button.click().

So how can i achieve this ?

Thanks
Deepak Singh

-- 
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread Alan Chaney

Hi Joseph
On 04/03/2012 08:34 AM, Joseph Lust wrote:

Alan,

Thanks as always for your courteous replies. I'm grateful for the 
efforts the Google developers put into GWT, as any other enterprise 
building such a framework would most certainly charge the Earth for it 
while also crippling its functionality in exchange for customer 
lock-in. Google just makes great software.


However, I work in a large enterprise where our GWT Community of 
Practice group must make a case for why any new application should use 
GWT. It is important to management to know the future of GWT and a 
roadmap is how this is commonly done. While I don't personally think 
GWT will suffer from the recent project pogroms at Google, a roadmap 
and rough release schedule will lend greater confidence to others in 
the stability and longevity of the framework needed before a company 
is willing to build multi-million dollar projects with it.




Have you seen this thread on Google+?
https://plus.google.com/117487419861992917007/posts/6YWpsHpqMqZ

especially Ray Cromwell's comment about half-way down? Also Eric 
Clayberg's - I suggest you read the whole thread, but I've copied and 
pasted two comments which caught me eye.


Ray Cromwell: "Many of Google's services are still being written in GWT 
and won't change anytime soon, for example AdWords and AdSense, from 
which Google derives the majority of their revenue, are written in GWT, 
so given that fact alone, GWT will be around for a long time and 
continue to be improved. The loss of Ray Ryan and Bob were a big set 
back (unrelated to Dart), and we have people trying to get up to speed 
on their contributions to maintain them, but honesty, we rely on many of 
our top external users like Thomas Broyer and Stephan Haberman to fill 
the gap until that time. (Thanks guys) Turnover is natural and happens 
at all companies, and it's always rough.


The next release or two of GWT may include more core improvements than 
the last few point releases of GWT so far, consider:
1) Compiler optimizations that reduce code by size by 30% uncompressed, 
and 15% gzipped
2) SourceMap support and Source-Level Java debugging in Chrome (and 
hopefully Firefox)
3) A "super draft mode" that can recompile many apps in under 10 seconds 
and most under 5

4) New "to the metal" "modern browser" HTML bindings
5) Testing framework that makes GUI testing delightful
6) Incremental compile support to speed up production compiles

So code will be getting smaller, faster, easier to debug (in some 
situations) and test, and compiles will go quicker. This reflects 
somewhat the shift in GWT team composition, but as people ramp up on 
other parts of the SDK (e.g. MVP stuff), I'm sure there will be improved 
responsiveness to fixing bugs in that area as well.


Obviously, we want Dart to be a huge success, but even if it is, Java 
isn't going away anytime soon. :)"



Eric Clayberg: "I can assure you that GWT is not in maintenance mode. 
Not even close! Quite the contrary, GWT is very healthy, and the GWT 
team continues to focus on making GWT a great choice for building 
structured web applications now and in the future. If you have the need 
to start a new web app project, GWT would be an excellent choice, and 
there is no reason to avoid it. The GWT team is fully staffed, and we 
have very ambitious plans for GWT's future. GWT is used by many large, 
important projects within Google (and outside Google), and that is 
unlikely to change any time soon."




I accept that its not an official roadmap - but it seems to give a clear 
indication of a continued commitment to developing GWT, albeit on a 
slower scale than before. I shoudl add that I have no commercial 
affliation with Google whatsoever, I just use GWT in a couple of 
different projects in two different companies.


Alan



If GWT retains buy-in at Google, I don't understand why such planning 
would be detrimental to the GWT team. As I see it, such public 
planning will only drive more companies and startups to join the GWT 
bandwagon.


Sincerely,
Joseph


--
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/-/5rzWGy06oFgJ.

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: GWT history handling library - give it a try

2012-04-03 Thread Thomas Broyer


On Tuesday, April 3, 2012 5:58:54 PM UTC+2, Kostya Kulagin wrote:
>
> When writing an application I don't want speak on a language of params 
> in URL, parsing those and update state of components. 
> I want to speak on a Object language. My object has a state - it saves 
> it, it restores it. Serialization is a lib's job.


This is unfortunately (or fortunately) not how the Web works. Not that it's 
impossible to do it (on the contrary), just that in the end it does more 
harm than good to your users; and the *user* experience matters more than 
the developer's one.

I strongly suggest that you approach the problem from the other side: you 
"name" things (give them URLs, and use a Place –or whatever, but Place 
exists so why not use it?– to make a type-safe representation) and then you 
make your app reflect that thing. Going to a new place will translate into 
changing its internal state for a given component. Actions within a 
component do not necessarily have to be *replaced* by place changes, you 
can do the change in the internal state *and* go to a new place (and as I 
already said, you can factor that out using events of a "navigator" 
abstraction if you don't want your component to deal with places); the 
place change will go back to your component, but it'll be a no-op as the 
internal state already matches the one to "attain" given the new place.
Every state that's not in the "name" of the thing should IMO either not be 
persisted, or simply stored in localStorage or similar.
The browser's history is tightly bound to this, and this is the guide to 
draw the line between "named things" and the other states: for instance, 
going to the second "page" of a paged list/table should in most cases be 
reflected in the URL and the browser's history; which items are 
expanded/collapsed in a tree, which field has the focus, or which row has 
the "keyboard highlight" in a list/table should not.

On Tuesday, April 3, 2012 5:58:54 PM UTC+2, Kostya Kulagin wrote:
>
> Thank you for a response. 
>
> If I understood you correctly - you propose some kind of Place which 
> will contain props of all components. (sorry if I misunderstood you) 
> Personally myself don't like this solution. 
> Place has nothing to do with its components state. 
>
> When writing an application I don't want speak on a language of params 
> in URL, parsing those and update state of components. 
> I want to speak on a Object language. My object has a state - it saves 
> it, it restores it. Serialization is a lib's job. 
>
> This is an idea. 
>
> thanks! 
>
>
> On 2 avr, 11:33, Kostya Kulagin  wrote: 
> > So, for me to resume (my opinion): 
> > 
> > 1) Using components state for bookmarks is a bad idea - URL should 
> > contain only 'Place' information. If you need to have an ability to 
> > bookmark state different then initial page state - use 
> > different Place. As an example - if in a gmail I want to have a 
> > shortcut to some of my favorite folders (for example:
> https://mail.google.com/mail/#label/hello_thomas;-) )- this is rather 
> > different Place, not a state of all Components on a page. 
> > 
> > 2) For a history navigation probably it would be better to have some 
> > key generated. Components states should be stored under that key 
> > (either in cookies or in HTMLs 5 browser cache) 
> > 
> > 3) If an application does not use Places and Activities - I should 
> > think what to do in that case. 
> > 
> > Will make necessary updates, though. 
> > 
> > thanks! 
> > 
> > On 30 mar, 17:09, Thomas Broyer  wrote: 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > > On Friday, March 30, 2012 3:49:11 PM UTC+2, Kostya Kulagin wrote: 
> > 
> > > > > > What you'll have to do to be assured that sub-params (or there 
> is an 
> > > > > > other way to do it?) in the browser history string does not 
> intercept? 
> > 
> > > > > Create a specific Place that can hold those two "parameters" and 
> > > > navigate 
> > > > > from place to place, changing only one value at a time? 
> > > > > If you want to decouple your pagers from the places then, well, 
> abstract 
> > > > > that out behind some "navigator" component that'll manage the 
> places for 
> > > > > you (e.g. moveSecondPager(2) would navigate to a place with the 
> same 
> > > > value 
> > > > > for the first pager and the value 2 for the second pager; the 
> "second 
> > > > > pager" doesn't need to know about that). 
> > > > This is a bad approach from my point of view (see big comment 
> above). 
> > > > Place should not depend or know anything about components inside of 
> > > > it. It is mostly like marker. 
> > 
> > > A Place is a type-safe representation of the URL. No more, no less. If 
> you 
> > > want to put something in the URL, then put it in a Place and have a 
> > > PlaceTokenizer transform it to your URL (and back when navigating to 
> the 
> > > URL, either through a bookmark, link, or browser history). 
> > 
> > > As I said, there might be cases where you want some histor

Re: GWT history handling library - give it a try

2012-04-03 Thread l.denardo
To be clear, I looked into your library.

If I understand it correctly what you do (just like in the sample I
posted above) is to map an URL from/to a ComponentState, which has a
representation of the state of the object as a Map.
Your ComponentState is at last a wrapper of the string map.
A Place is similar in concept, with the difference that you don't have
just a Map but a series of methods to have the
properties with their correctly typed class.

The ComponentStateSerializer builds an history token using that map,
or breaks your current history token to the map.
This is the same as a PlaceTokenizer will do, with the difference that
the PlaceTokenizer returns a Place, which is a typed object and has
typed accessors.

Your library is very similar tho the one I developed when Places were
not in GWT, and if you look at my code above you'll notice it's
similar to your
DefaultComponentStateSerializer.toHistoryString(ComponentState ), the
only difference being some more configuration options for yours.

Just spend a couple of hours trying out the Places tutorial Thomas
Broyer posted and you'll immediately see the benefits of Places over
the approach you are using (which is not bad: I used it succesfully
for a long time. Places do the same, but better :-))

Regards
Lorenzo

On Apr 3, 5:58 pm, Kostya Kulagin  wrote:
> Thank you for a response.
>
> If I understood you correctly - you propose some kind of Place which
> will contain props of all components. (sorry if I misunderstood you)
> Personally myself don't like this solution.
> Place has nothing to do with its components state.
>
> When writing an application I don't want speak on a language of params
> in URL, parsing those and update state of components.
> I want to speak on a Object language. My object has a state - it saves
> it, it restores it. Serialization is a lib's job.
>
> This is an idea.
>
> thanks!
>
> On 2 avr, 11:33, Kostya Kulagin  wrote:
>
>
>
>
>
>
>
> > So, for me to resume (my opinion):
>
> > 1) Using components state for bookmarks is a bad idea - URL should
> > contain only 'Place' information. If you need to have an ability to
> > bookmark state different then initial page state - use
> > different Place. As an example - if in a gmail I want to have a
> > shortcut to some of my favorite folders (for 
> > example:https://mail.google.com/mail/#label/hello_thomas;-) )- this is 
> > rather
> > different Place, not a state of all Components on a page.
>
> > 2) For a history navigation probably it would be better to have some
> > key generated. Components states should be stored under that key
> > (either in cookies or in HTMLs 5 browser cache)
>
> > 3) If an application does not use Places and Activities - I should
> > think what to do in that case.
>
> > Will make necessary updates, though.
>
> > thanks!
>
> > On 30 mar, 17:09, Thomas Broyer  wrote:
>
> > > On Friday, March 30, 2012 3:49:11 PM UTC+2, Kostya Kulagin wrote:
>
> > > > > > What you'll have to do to be assured that sub-params (or there is an
> > > > > > other way to do it?) in the browser history string does not 
> > > > > > intercept?
>
> > > > > Create a specific Place that can hold those two "parameters" and
> > > > navigate
> > > > > from place to place, changing only one value at a time?
> > > > > If you want to decouple your pagers from the places then, well, 
> > > > > abstract
> > > > > that out behind some "navigator" component that'll manage the places 
> > > > > for
> > > > > you (e.g. moveSecondPager(2) would navigate to a place with the same
> > > > value
> > > > > for the first pager and the value 2 for the second pager; the "second
> > > > > pager" doesn't need to know about that).
> > > > This is a bad approach from my point of view (see big comment above).
> > > > Place should not depend or know anything about components inside of
> > > > it. It is mostly like marker.
>
> > > A Place is a type-safe representation of the URL. No more, no less. If you
> > > want to put something in the URL, then put it in a Place and have a
> > > PlaceTokenizer transform it to your URL (and back when navigating to the
> > > URL, either through a bookmark, link, or browser history).
>
> > > As I said, there might be cases where you want some history entries to
> > > change the URL and some others that won't (but honestly, I still cannot
> > > find any use case). In that case, I'd investigate HTML5's pushState to see
> > > if it supports the use case, and if it does then simply punt for browsers
> > > that don't support it (only handle the case where it changes the URL, i.e.
> > > true navigation, not intermediate "state").
> > > I believe it'd be possible to mix a hidden iframe "hidden state change" 
> > > and
> > > manipulating the URL's #hash for "navigation", I'm really not sure it's
> > > worth it => use pushState and let oldIE users with a "not as good"
> > > experience as others (and possibly have them installChrome Frame, so you
> > > could use pushState).
>
> > > And I sti

Re: GWT history handling library - give it a try

2012-04-03 Thread l.denardo
You're partly right in my opinion.

What I exposed is (part of) a (siplified) "library" approach VS the
typed, Place approach.

A Place is an Object Oriented representation of a client side URL,
tied to your browser history, and offers you typed methods to have in
an object oriented way all the parameters (from the URL) you need to
have to restore your objects' state correctly, and to save them to an
URL.

To have an efficient serialization the recommended approach is to have
a base Place with its tokenizer, i.e. one class handling serialization
and deserialization from and to your URL, then extend it.
It's just the matter to write a single serialization/deserialization
class (or a library, if you prefer).

The point is that all this comes in standard GWT, so looks like
there's no need to develop a separate library to do exactly the same.

regards
Lorenzo

On Apr 3, 11:58 am, Kostya Kulagin  wrote:
> Thank you for a response.
>
> If I understood you correctly - you propose some kind of Place which
> will contain props of all components. (sorry if I misunderstood you)
> Personally myself don't like this solution.
> Place has nothing to do with its components state.
>
> When writing an application I don't want speak on a language of params
> in URL, parsing those and update state of components.
> I want to speak on a Object language. My object has a state - it saves
> it, it restores it. Serialization is a lib's job.
>
> This is an idea.
>
> thanks!
>
> On 2 avr, 11:33, Kostya Kulagin  wrote:
>
>
>
>
>
>
>
> > So, for me to resume (my opinion):
>
> > 1) Using components state for bookmarks is a bad idea - URL should
> > contain only 'Place' information. If you need to have an ability to
> > bookmark state different then initial page state - use
> > different Place. As an example - if in a gmail I want to have a
> > shortcut to some of my favorite folders (for 
> > example:https://mail.google.com/mail/#label/hello_thomas;-) )- this is 
> > rather
> > different Place, not a state of all Components on a page.
>
> > 2) For a history navigation probably it would be better to have some
> > key generated. Components states should be stored under that key
> > (either in cookies or in HTMLs 5 browser cache)
>
> > 3) If an application does not use Places and Activities - I should
> > think what to do in that case.
>
> > Will make necessary updates, though.
>
> > thanks!
>
> > On 30 mar, 17:09, Thomas Broyer  wrote:
>
> > > On Friday, March 30, 2012 3:49:11 PM UTC+2, Kostya Kulagin wrote:
>
> > > > > > What you'll have to do to be assured that sub-params (or there is an
> > > > > > other way to do it?) in the browser history string does not 
> > > > > > intercept?
>
> > > > > Create a specific Place that can hold those two "parameters" and
> > > > navigate
> > > > > from place to place, changing only one value at a time?
> > > > > If you want to decouple your pagers from the places then, well, 
> > > > > abstract
> > > > > that out behind some "navigator" component that'll manage the places 
> > > > > for
> > > > > you (e.g. moveSecondPager(2) would navigate to a place with the same
> > > > value
> > > > > for the first pager and the value 2 for the second pager; the "second
> > > > > pager" doesn't need to know about that).
> > > > This is a bad approach from my point of view (see big comment above).
> > > > Place should not depend or know anything about components inside of
> > > > it. It is mostly like marker.
>
> > > A Place is a type-safe representation of the URL. No more, no less. If you
> > > want to put something in the URL, then put it in a Place and have a
> > > PlaceTokenizer transform it to your URL (and back when navigating to the
> > > URL, either through a bookmark, link, or browser history).
>
> > > As I said, there might be cases where you want some history entries to
> > > change the URL and some others that won't (but honestly, I still cannot
> > > find any use case). In that case, I'd investigate HTML5's pushState to see
> > > if it supports the use case, and if it does then simply punt for browsers
> > > that don't support it (only handle the case where it changes the URL, i.e.
> > > true navigation, not intermediate "state").
> > > I believe it'd be possible to mix a hidden iframe "hidden state change" 
> > > and
> > > manipulating the URL's #hash for "navigation", I'm really not sure it's
> > > worth it => use pushState and let oldIE users with a "not as good"
> > > experience as others (and possibly have them installChrome Frame, so you
> > > could use pushState).
>
> > > And I still strongly believe that if you have two truly independent things
> > > on a page, only one should affect the browser history, or you have a
> > > serious design issue ("Er, I clicked the back button 3 times, now if I
> > > click it once more, will it change the left side or the right side of the
> > > screen?").
> > > That was the main issue with frames (apart from "addressability", i.e.
> > > "bookmarkability"), tha

Re: GWT history handling library - give it a try

2012-04-03 Thread Kostya Kulagin
Thank you for a response.

If I understood you correctly - you propose some kind of Place which
will contain props of all components. (sorry if I misunderstood you)
Personally myself don't like this solution.
Place has nothing to do with its components state.

When writing an application I don't want speak on a language of params
in URL, parsing those and update state of components.
I want to speak on a Object language. My object has a state - it saves
it, it restores it. Serialization is a lib's job.

This is an idea.

thanks!


On 2 avr, 11:33, Kostya Kulagin  wrote:
> So, for me to resume (my opinion):
>
> 1) Using components state for bookmarks is a bad idea - URL should
> contain only 'Place' information. If you need to have an ability to
> bookmark state different then initial page state - use
> different Place. As an example - if in a gmail I want to have a
> shortcut to some of my favorite folders (for 
> example:https://mail.google.com/mail/#label/hello_thomas;-) )- this is rather
> different Place, not a state of all Components on a page.
>
> 2) For a history navigation probably it would be better to have some
> key generated. Components states should be stored under that key
> (either in cookies or in HTMLs 5 browser cache)
>
> 3) If an application does not use Places and Activities - I should
> think what to do in that case.
>
> Will make necessary updates, though.
>
> thanks!
>
> On 30 mar, 17:09, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > On Friday, March 30, 2012 3:49:11 PM UTC+2, Kostya Kulagin wrote:
>
> > > > > What you'll have to do to be assured that sub-params (or there is an
> > > > > other way to do it?) in the browser history string does not intercept?
>
> > > > Create a specific Place that can hold those two "parameters" and
> > > navigate
> > > > from place to place, changing only one value at a time?
> > > > If you want to decouple your pagers from the places then, well, abstract
> > > > that out behind some "navigator" component that'll manage the places for
> > > > you (e.g. moveSecondPager(2) would navigate to a place with the same
> > > value
> > > > for the first pager and the value 2 for the second pager; the "second
> > > > pager" doesn't need to know about that).
> > > This is a bad approach from my point of view (see big comment above).
> > > Place should not depend or know anything about components inside of
> > > it. It is mostly like marker.
>
> > A Place is a type-safe representation of the URL. No more, no less. If you
> > want to put something in the URL, then put it in a Place and have a
> > PlaceTokenizer transform it to your URL (and back when navigating to the
> > URL, either through a bookmark, link, or browser history).
>
> > As I said, there might be cases where you want some history entries to
> > change the URL and some others that won't (but honestly, I still cannot
> > find any use case). In that case, I'd investigate HTML5's pushState to see
> > if it supports the use case, and if it does then simply punt for browsers
> > that don't support it (only handle the case where it changes the URL, i.e.
> > true navigation, not intermediate "state").
> > I believe it'd be possible to mix a hidden iframe "hidden state change" and
> > manipulating the URL's #hash for "navigation", I'm really not sure it's
> > worth it => use pushState and let oldIE users with a "not as good"
> > experience as others (and possibly have them installChrome Frame, so you
> > could use pushState).
>
> > And I still strongly believe that if you have two truly independent things
> > on a page, only one should affect the browser history, or you have a
> > serious design issue ("Er, I clicked the back button 3 times, now if I
> > click it once more, will it change the left side or the right side of the
> > screen?").
> > That was the main issue with frames (apart from "addressability", i.e.
> > "bookmarkability"), that are now officially dead (as 
> > in:http://www.w3.org/TR/html5/obsolete.html#frames)
>
> > Of course, YMMV.

-- 
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread Dipti Sharma
+1

On Tue, Apr 3, 2012 at 10:42 AM, Alfredo Quiroga-Villamil  wrote:

> While I think that the GWT community is one of the best ones out there and
> I have no doubt about our ability to pick this up should it ever be dropped
> by Google, I have to agree with Joseph. I've already been told a few times
> that the future of GWT is uncertain. Again, while I know and I am confident
> in the ability of this community and contributors to run with it, a rough
> idea for things to come or a list of things that the community would like
> to see implemented would go a long way in the enterprise world as Joseph
> mentioned.
>
>
> On Tue, Apr 3, 2012 at 11:34 AM, Joseph Lust  wrote:
>
>> Alan,
>>
>> Thanks as always for your courteous replies. I'm grateful for the efforts
>> the Google developers put into GWT, as any other enterprise building such a
>> framework would most certainly charge the Earth for it while also crippling
>> its functionality in exchange for customer lock-in. Google just makes great
>> software.
>>
>> However, I work in a large enterprise where our GWT Community of Practice
>> group must make a case for why any new application should use GWT. It is
>> important to management to know the future of GWT and a roadmap is how this
>> is commonly done. While I don't personally think GWT will suffer from the
>> recent project pogroms at Google, a roadmap and rough release schedule will
>> lend greater confidence to others in the stability and longevity of the
>> framework needed before a company is willing to build multi-million dollar
>> projects with it.
>>
>> If GWT retains buy-in at Google, I don't understand why such planning
>> would be detrimental to the GWT team. As I see it, such public planning
>> will only drive more companies and startups to join the GWT bandwagon.
>>
>> Sincerely,
>> Joseph
>>
>>
>>  --
>> 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/-/5rzWGy06oFgJ.
>> 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.
>

-- 
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread Alfredo Quiroga-Villamil
While I think that the GWT community is one of the best ones out there and
I have no doubt about our ability to pick this up should it ever be dropped
by Google, I have to agree with Joseph. I've already been told a few times
that the future of GWT is uncertain. Again, while I know and I am confident
in the ability of this community and contributors to run with it, a rough
idea for things to come or a list of things that the community would like
to see implemented would go a long way in the enterprise world as Joseph
mentioned.

On Tue, Apr 3, 2012 at 11:34 AM, Joseph Lust  wrote:

> Alan,
>
> Thanks as always for your courteous replies. I'm grateful for the efforts
> the Google developers put into GWT, as any other enterprise building such a
> framework would most certainly charge the Earth for it while also crippling
> its functionality in exchange for customer lock-in. Google just makes great
> software.
>
> However, I work in a large enterprise where our GWT Community of Practice
> group must make a case for why any new application should use GWT. It is
> important to management to know the future of GWT and a roadmap is how this
> is commonly done. While I don't personally think GWT will suffer from the
> recent project pogroms at Google, a roadmap and rough release schedule will
> lend greater confidence to others in the stability and longevity of the
> framework needed before a company is willing to build multi-million dollar
> projects with it.
>
> If GWT retains buy-in at Google, I don't understand why such planning
> would be detrimental to the GWT team. As I see it, such public planning
> will only drive more companies and startups to join the GWT bandwagon.
>
> Sincerely,
> Joseph
>
>
>  --
> 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/-/5rzWGy06oFgJ.
> 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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-03 Thread Joseph Lust
Alan,

Thanks as always for your courteous replies. I'm grateful for the efforts 
the Google developers put into GWT, as any other enterprise building such a 
framework would most certainly charge the Earth for it while also crippling 
its functionality in exchange for customer lock-in. Google just makes great 
software.

However, I work in a large enterprise where our GWT Community of Practice 
group must make a case for why any new application should use GWT. It is 
important to management to know the future of GWT and a roadmap is how this 
is commonly done. While I don't personally think GWT will suffer from the 
recent project pogroms at Google, a roadmap and rough release schedule will 
lend greater confidence to others in the stability and longevity of the 
framework needed before a company is willing to build multi-million dollar 
projects with it.

If GWT retains buy-in at Google, I don't understand why such planning would 
be detrimental to the GWT team. As I see it, such public planning will only 
drive more companies and startups to join the GWT bandwagon.

Sincerely,
Joseph


-- 
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/-/5rzWGy06oFgJ.
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.



Any widget in GWT to filter node in Tree widget

2012-04-03 Thread vaibhav bhalke
Hi,

Is there any widget in GWT to filter node in Tree widget?

-- 
Best Regards,
Vaibhav




-- 
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: capture image from mysql

2012-04-03 Thread Leonardo Terrão
Oh how wonderful!

began to work without any changes! I believe it was some cache or even
eclipse the browser that was forcing the error!

Thanks guys!

-- 
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 to make a hourglass pointer?

2012-04-03 Thread Jens
You have to set the CSS rule "cursor:wait" or "cursor:progress" on the 
element where the mouse cursor should be changed. If it should change for 
the whole site, you would add it to the body tag (accessible through 
RootPanel.get()) or to a glasspane like div that you maybe already have for 
disabling all mouse events.

-- J.

Am Dienstag, 3. April 2012 12:07:10 UTC+2 schrieb tong123123:
>
> For lengthy process, I want to set the mouse pointer to hourglass, how to 
> do it in GWT?
>

-- 
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/-/gdov4VIG5Q4J.
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.



Filter Tree in GWT

2012-04-03 Thread Qrunk
Hi 
How to create a filter tree in *GWT* using *CellTre*e, a filter tree is 
some Tree which has an filter(TextBox) where we can enter values for the 
leaf node. Once we start entering values we get the tree branches along 
with leaf nodes reflected on the Tree panel(we have our tree inside a 
panel). For reference : 
http://www.sencha.com/examples/explorer.html#filtertree 

We can develop such FilterTree easily in GXT, but we have an requirement to 
develop it in GWT, not in GXT. Can I have some replies with a short and 
simple sample code on FilterTree in GWT, or at least any links to refer to. 

-- 
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/-/Y1WHpVXaeBEJ.
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 make a hourglass pointer?

2012-04-03 Thread tong123123
For lengthy process, I want to set the mouse pointer to hourglass, how to 
do it in GWT?

-- 
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/-/Cr_XE1mC8bwJ.
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.



Leaks with IFrames and JSONP

2012-04-03 Thread stuckagain
Hi,
 
I have been spending now 5 days trying to track down memory leaks in my big 
GWT application. 
 
I noticed that every time I call a JSONP service that I am leaking (size 
depends on the data received from that service).
I also noticed that when I put GWT in an IFrame and remove that IFrame 
there is a big leak as well. GWT does not seem to ever cleanup its expandos 
when the IFrame is being disposed - I assume that that results in a ref 
cycle between JS and the DOM ?
 
I tried many workarounds I found on the internet but it just keeps on 
leaking. 
 
It seems that the JSONP leak is well know since bugs have been reported on 
jQuery and Dojo at a certain point in time and some blogs have been written 
about this as well. But the strange thing is: I tried these workarounds 
(using a garbage bin in IE, clearing attributes, ... etc) but the problems 
remains. In my application I lose upto 10 MB per iteration which makes the 
memory footprint grow very quickly to 500MB or more, which is not really 
acceptable. So is there something specific to GWT that keeps a ref to the 
script and its contents ?
 
It leaks both on IE8 and FireFox 10 (I don't have access to other browser 
from my dev machine). 
Reloading the root page does not clear all the memory. I tried using tools 
like sIEve but that one gave me no results ... no leaks except the __ 
expando fields that GWT applications install.
 
Anybody have some extra ideas I might try out to solve this issue ? Is 
there some shutdown method available that I could start in the IFrame to 
make GWT detach completely from the DOM ?
 
David

-- 
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/-/DLTWoZF9XtsJ.
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 2.5 and beyond

2012-04-03 Thread Joshua Kappon
I second that

On Friday, March 30, 2012 1:43:32 PM UTC+3, jimo wrote:
>
> Hello, 
>
> I'm currently using GWT for a project and am interested in its future, as 
> I've noticed that there hasn't been much activity (source changes, etc.) of 
> late ...
>
> Thanks, 
> Jim
>
>

-- 
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/-/8VJWvSdMQZMJ.
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: Exporting Instance Methods to Hand-Written Javascript

2012-04-03 Thread Thomas Broyer

On Monday, April 2, 2012 10:26:27 PM UTC+2, Geoffrey Wiseman wrote:
>
> I have a piece of GWT code that I wanted to invoke from outside 
> handwritten JavaScript. There's an example shown here under "Calling a Java 
> method from Handwritten JavaScript":
>
> https://developers.google.com/web-toolkit/doc/latest/DevGuideCodingBasicsJSNI
>
> That example uses a static method; I can make that work, but my first 
> instinct was that i'd rather use an instance, so using the syntax shown 
> under JSNI invocations, I tried:
>
> /* package */ native void exportJavascriptMethods( PreviewPane x ) /*-{
>$wnd.imageSelected =
>   $entry(this
> @ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected
> (Ljava/lang/String;Ljava/lang/String;));
>   }-*/;
>
> That doesn't work. Eclipse (and the GWT compiler) complain:
> "JavaScript parsing: Missing ) after argument list PreviewPane.java"
>

You're missing the '.' before the '@', so it might be the issue (the parser 
chokes on the '@' and says the $entry() call is missing its closing paren, 
or something like that).

You'll have another issue when you fix this syntax error though: you get a 
reference on the method but, like in Java with java.lang.reflect.Method, 
the instance it's called on has to be given at call time.
You have to write:
   var that = this;
   $wnd.imageSelected = $entry(function(s1, s2) {
 return 
th...@ca.cpp.spike.gwtapplet.client.PreviewPane::imageSelected(Ljava/lang/String;Ljava/lang/String;)(s1,
 
s2);
  });

About the "var that = this;", see 
http://www.yuiblog.com/blog/2012/03/30/what-is-the-meaning-of-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/-/arV8TNOAk7gJ.
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.