BUG(chrome): TextBox inside FocusPanel can't be clicked

2010-01-16 Thread Sky
The following is a bug that only occurs in Chrome and therefore may be
a Chrome bug and not a GWT bug.

If I create a FocusPanel and place a TextBox inside it, it takes
several (more than 4) mouse clicks on the TextBox to give focus to the
TextBox so you can start typing. This problem does not exist in IE nor
FF.

This is easily reproducible. I created a new blank project and simply
put a TextBox inside a FocusPanel.

I want to find a workaround. If anyone can help me find one, that
would be great!

I currently do not know what is causing the problem, but I am curious
as to the existence of the  that is created as the
first inner child of all FocusPanel divs. I do not understand why that
is necessary. Any DIV can have the key events, mouse events and focus
events added to them, so why is that invisible input needed?

I am thinking of writing my own version of the FocusPanel, but I'm not
going to do that right away.

GWT 2.0
App Engine 1.3
-- 
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-tool...@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: BUG(chrome): TextBox inside FocusPanel can't be clicked

2010-01-19 Thread Sky
Hi Thomas, thanks for your reply!

I copied/pasted the xml you gave into my gwt.xml file and the DevMode
was unable to find it. Here is the error:

"[ERROR] [myproject] Unable to find 'myproject.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?"

The xml you gave me was the only change that resulted in that error.
Any idea what I might be doing wrong? I put it inside of 
right at the end.

Many thanks :)

On Jan 17, 9:51 am, Thomas Broyer  wrote:
> On Jan 17, 2:34 am, Sky  wrote:
>
>
>
>
>
> > The following is a bug that only occurs in Chrome and therefore may be
> > a Chrome bug and not a GWT bug.
>
> > If I create a FocusPanel and place a TextBox inside it, it takes
> > several (more than 4) mouse clicks on the TextBox to give focus to the
> > TextBox so you can start typing. This problem does not exist in IE nor
> > FF.
>
> > This is easily reproducible. I created a new blank project and simply
> > put a TextBox inside a FocusPanel.
>
> > I want to find a workaround. If anyone can help me find one, that
> > would be great!
>
> > I currently do not know what is causing the problem, but I am curious
> > as to the existence of the  that is created as the
> > first inner child of all FocusPanel divs. I do not understand why that
> > is necessary. Any DIV can have the key events, mouse events and focus
> > events added to them, so why is that invisible input needed?
>
> > I am thinking of writing my own version of the FocusPanel, but I'm not
> > going to do that right away.
>
> It looks like issue 1471 which will be fixed in the upcoming GWT 2.0.1
> release:http://code.google.com/p/google-web-toolkit/issues/detail?id=1471
>
> The workaround for now (accesskeys won't work though, and the
> FocusPanel won't be focusable in Safari 3) is to add the following to
> your gwt.xml:
>    
>        name='com.google.gwt.user.client.ui.impl.FocusImpl' />
>       
>    
-- 
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-tool...@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: about the limitation of MVC

2010-01-20 Thread Sky
"For example, one of
a simple case is how to implement this functionality of making one
button becoming grayed if detecting a specific button is clicked by
twice."

That's just logic that belongs in the View. There are numerous ways of
structuring that logic and it depends on how abstract you want it to
be. The simplest code that pops into mind immediately is to define
your own class that extends the Button widget (say its called
MyButton) and give it a private variable pointing to a Button and
through a setter method you can set it to the button that is going to
turn gray. Give a counter variable to your MyButton and add a
MouseUpHandler that counts how many clicks have occurred. When it has
clicked twice you set the other Button's background style property as
you desire.

I fail to see why this is a limitation of MVC. All of this kind of
interaction should only occur in the View. The Model doesn't typically
try to deal with how the GUI reacts to user input... the Model handles
user data input and gives the View new or modified data to display to
the user based on the user's input... it is the View's job to decide
what kind of logic is needed to decided how to display the data it
gets from the Model.

At least that's my take on MVC... I'm not exactly an expert on it.

On Jan 20, 9:26 am, Alexander  wrote:
> Had you read about MVP?
>
> 2010/1/20 yu.cu...@126.com 
>
>
>
>
>
> > Hi,
> > Recently I am researching the MVC in GWT and meet a problem. According
> > to my understanding, in essentially, the benefits of MVC are 1)
> > decouple the viewer and model 2) make the widgets coordinating each
> > other. And the second point is very important to my application. So my
> > question is how to make several of widgets work well in a panel when
> > there is no abstracted model under these widgets. For example, one of
> > a simple case is how to implement this functionality of making one
> > button becoming grayed if detecting a specific button is clicked by
> > twice.
>
> > In fact, it's a typical FSM problem, what we should do is building the
> > FSM rules and executing the FSM to update the view/widgets. so, there
> > is no MVC model instead it is the viewer and FSM based controller
> > model. Does any one meet the same problem or have the same solution?
>
> > Thanks
> > Yu
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Regards,
> Alexander
-- 
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-tool...@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.




BUG(IE): Animation can't be canceled... click events are not happening during animation.

2010-01-27 Thread Sky
I have a simple FadeAnimation (extending Animation) that fades (using
opacity style) an object in and out of visibility when the user clicks
on a button. My MouseDownHandler is not being invoked during the
animation in IE8. It does get invoked in FF and Chrome.

If I make the animation take a long time (500ms) and I click in rapid
succession, my first click starts the animation, my second click
ALWAYS does nothing, my third click will sometimes be registered and
it cancels the animation and does what I expect. My third click
appears to be around 250ms (outputting the progress value to console),
half way through the animation. My second click must be happening
around 100ms and it is not being registered. If my animation is only
200ms, clicks during the animation are never registered. This is not
acceptable.

The Animation class does the schedule interval for 25ms.
Unfortunately, there is no setter so that I can change this value to
see if IE could respond to clicks if the events weren't so close
together. Though 25ms is a good value and I think it would be
ridiculous if IE simply can't monitor user events if very simple code
is running every 25ms (indeed, the fading code is very simple!).

Has anyone else had any similar experiences?

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



Blur event on FocusPanel is triggered immediately following MouseDown event

2010-02-01 Thread Sky
I click on my FocusPanel and before MouseUp event fires, but after
MouseDown event, the Blur event is fired, which is very much
undesired.

This only happens in Chrome, so it may be a Chrome bug. It does not
happen in FF and IE.

It may be my fault, but I am not explicitly setting focus on any
elements in my MouseDown code. I do set other aspects of other
elements, like visibility.

Has anyone else experienced something like this before?

-- 
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-tool...@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: Blur event on FocusPanel is triggered immediately following MouseDown event

2010-02-01 Thread Sky
Wow! Now another FocusPanel's MouseDown event doesn't even fire!
Except I can make it fire if I do the following. When I click on this
element (object B) another element (object A) is losing focus, so if I
put a breakpoint in the onBlur event on that item (object A), then
when I click on the other item (object B) Eclipse breaks into that
code, I hit F8 to continue and what do you know, the MouseDown event
actually fires and everything runs. Do you understand? The MouseDown
event on object B ONLY fires if I have a breakpoint in OnBlur event
for object A!

These problems are ONLY in chrome. All other browsers act as expected.

I can't possibly fix something like this. Can anyone help me? These
problems must be a GWT bug(s).

I'm using GWT 2.0.0, the latest Eclipse, Stable channel of Chrome.

On Feb 1, 6:15 pm, Sky  wrote:
> I click on my FocusPanel and before MouseUp event fires, but after
> MouseDown event, the Blur event is fired, which is very much
> undesired.
>
> This only happens in Chrome, so it may be a Chrome bug. It does not
> happen in FF and IE.
>
> It may be my fault, but I am not explicitly setting focus on any
> elements in my MouseDown code. I do set other aspects of other
> elements, like visibility.
>
> Has anyone else experienced something like this before?

-- 
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-tool...@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: Blur event on FocusPanel is triggered immediately following MouseDown event

2010-02-04 Thread Sky
FIXED! GWT 2.0.1 fixed all of these issues!!! I am so incredibly
happy! Well done, GWT team! Pat on the back! Good job!

I hope you (GWT development team) feel appreciated for your hard work!

cheers!

On Feb 1, 7:04 pm, Sky  wrote:
> Wow! Now another FocusPanel's MouseDown event doesn't even fire!
> Except I can make it fire if I do the following. When I click on this
> element (object B) another element (object A) is losing focus, so if I
> put a breakpoint in the onBlur event on that item (object A), then
> when I click on the other item (object B) Eclipse breaks into that
> code, I hit F8 to continue and what do you know, the MouseDown event
> actually fires and everything runs. Do you understand? The MouseDown
> event on object B ONLY fires if I have a breakpoint in OnBlur event
> for object A!
>
> These problems are ONLY in chrome. All other browsers act as expected.
>
> I can't possibly fix something like this. Can anyone help me? These
> problems must be a GWT bug(s).
>
> I'm using GWT 2.0.0, the latest Eclipse, Stable channel of Chrome.
>
> On Feb 1, 6:15 pm, Sky  wrote:
>
>
>
> > I click on my FocusPanel and before MouseUp event fires, but after
> > MouseDown event, the Blur event is fired, which is very much
> > undesired.
>
> > This only happens in Chrome, so it may be a Chrome bug. It does not
> > happen in FF and IE.
>
> > It may be my fault, but I am not explicitly setting focus on any
> > elements in my MouseDown code. I do set other aspects of other
> > elements, like visibility.
>
> > Has anyone else experienced something like this before?

-- 
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-tool...@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: BUG(chrome): TextBox inside FocusPanel can't be clicked

2010-02-04 Thread Sky
Fixed! GWT 2.0.1 solved the problem. Good job GWT development team!
Very much appreciated!

On Jan 19, 9:53 pm, Sky  wrote:
> Hi Thomas, thanks for your reply!
>
> I copied/pasted the xml you gave into my gwt.xml file and the DevMode
> was unable to find it. Here is the error:
>
> "[ERROR] [myproject] Unable to find 'myproject.gwt.xml' on your
> classpath; could be a typo, or maybe you forgot to include a classpath
> entry for source?"
>
> The xml you gave me was the only change that resulted in that error.
> Any idea what I might be doing wrong? I put it inside of 
> right at the end.
>
> Many thanks :)
>
> On Jan 17, 9:51 am, Thomas Broyer  wrote:
>
>
>
> > On Jan 17, 2:34 am, Sky  wrote:
>
> > > The following is a bug that only occurs in Chrome and therefore may be
> > > a Chrome bug and not a GWT bug.
>
> > > If I create a FocusPanel and place a TextBox inside it, it takes
> > > several (more than 4) mouse clicks on the TextBox to give focus to the
> > > TextBox so you can start typing. This problem does not exist in IE nor
> > > FF.
>
> > > This is easily reproducible. I created a new blank project and simply
> > > put a TextBox inside a FocusPanel.
>
> > > I want to find a workaround. If anyone can help me find one, that
> > > would be great!
>
> > > I currently do not know what is causing the problem, but I am curious
> > > as to the existence of the  that is created as the
> > > first inner child of all FocusPanel divs. I do not understand why that
> > > is necessary. Any DIV can have the key events, mouse events and focus
> > > events added to them, so why is that invisible input needed?
>
> > > I am thinking of writing my own version of the FocusPanel, but I'm not
> > > going to do that right away.
>
> > It looks like issue 1471 which will be fixed in the upcoming GWT 2.0.1
> > release:http://code.google.com/p/google-web-toolkit/issues/detail?id=1471
>
> > The workaround for now (accesskeys won't work though, and the
> > FocusPanel won't be focusable in Safari 3) is to add the following to
> > your gwt.xml:
> >    
> >        > name='com.google.gwt.user.client.ui.impl.FocusImpl' />
> >       
> >    

-- 
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-tool...@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.0.1 out but Eclipse says "There is nothing to update"

2010-02-04 Thread Sky
Go to Help -> Install new software...
then choose "Google Plugin - http://dl.google.com/eclipse/plugin/3.5";
from the drop down or else add it if it isn't already there. It should
show both the App Engine and GWT under SDKs.

Check SDKs and click Next.

I had the same thing as you, but this way worked for me.
Hope this helps.

On Feb 4, 6:15 pm, Jaroslav Záruba  wrote:
> I"ve just noticed GWT 2.0.1 has been released, so I wanted to check
> how does "my" bug do in the new release, but Eclipse says there's
> nothing to update from the update site.
>
> When I browse available software from Google within "Available
> Software" the new version is actually listed (also when I check "Hide
> items that are already installed").
>
> Am I the only one experiencing this? Am I missing something?
>
> Regards
>   J. Záruba

-- 
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-tool...@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: BUG(IE): Animation can't be canceled... click events are not happening during animation.

2010-02-05 Thread Sky
Bump.

This is a really annoying problem and it's important to me to fix it.
I've made animations in plain old Javascript that I could interrupt
via mouse clicks and it works in the other browsers so there must be
either a GWT bug going on or something I could do differently but I
don't know.

Many thanks on any input :)

On Jan 27, 8:29 pm, Sky  wrote:
> I have a simple FadeAnimation (extending Animation) that fades (using
> opacity style) an object in and out of visibility when the user clicks
> on a button. My MouseDownHandler is not being invoked during the
> animation in IE8. It does get invoked in FF and Chrome.
>
> If I make the animation take a long time (500ms) and I click in rapid
> succession, my first click starts the animation, my second click
> ALWAYS does nothing, my third click will sometimes be registered and
> it cancels the animation and does what I expect. My third click
> appears to be around 250ms (outputting the progress value to console),
> half way through the animation. My second click must be happening
> around 100ms and it is not being registered. If my animation is only
> 200ms, clicks during the animation are never registered. This is not
> acceptable.
>
> The Animation class does the schedule interval for 25ms.
> Unfortunately, there is no setter so that I can change this value to
> see if IE could respond to clicks if the events weren't so close
> together. Though 25ms is a good value and I think it would be
> ridiculous if IE simply can't monitor user events if very simple code
> is running every 25ms (indeed, the fading code is very simple!).
>
> Has anyone else had any similar experiences?

-- 
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-tool...@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: Announcing GWT 2.0.1

2010-02-05 Thread Sky
Thanks so much to the GWT development team for this update! This fixed
a couple of key functionality issues I had with Chrome. Very much
appreciated!

On Feb 5, 8:48 am, Michel  wrote:
> Hi.
>
> - The development mode server will, by default, only bind to localhost
>    which will break cross-machine debugging. You can get the old
> behavior by
>    specifying -bindAddress 0.0.0.0. Please see issue
> (#4322 id=4322>)
>    for more details. For webAppCreator-generated ant files, you can
> pass this
>    with ant -Dgwt.args="-bindAddress 0.0.0.0" devmode.
>
> I just didn't understand why didn't you do the other way around:
> left that untouched, and the ones having troubles with this, should
> set -binAddress to 127.0.0.1
>
> For me, that use cross-machine debugging for multi/browser tests, that
> would be the preferred way.
>
> Is there a reason for changing the default?
>
> Regards,
> Michel
>
> On Feb 3, 3:01 am, Miguel Méndez  wrote:
>
>
>
> > The GWT 2.0.1 point release is now available for download. It contains fixes
> > for bugs found in the 2.0.0 release.
>
> > Potentially breaking changes and fixes
>
> >    - Fixed a bug in how code generators collect method arguments from
> >    generated source, which impacted the Messages interfaces generated for
> >    UiBinder template files. In GWT 2.0, such argument names were incorrectly
> >    changed to ARGn. Most GWT applications will be unaffected, but external
> >    systems relying on these names may need to be updated.
> >    - The development mode server will, by default, only bind to localhost
> >    which will break cross-machine debugging. You can get the old behavior by
> >    specifying -bindAddress 0.0.0.0. Please see issue
> > (#4322)
> >    for more details. For webAppCreator-generated ant files, you can pass 
> > this
> >    with ant -Dgwt.args="-bindAddress 0.0.0.0" devmode.
> >    - The CurrencyList/CurrencyData APIs are now public - if you were relying
> >    upon these classes in their non-public location, you should only need to
> >    update your imports.
>
> > Noteworthy Fixed Issues
>
> >    - UiBinder Image class with resource attribute, removes styles on that
> >    image 
> > (#4415
> >    )
> >    - Widgets lose focus if its placed on FocusPanel (Opera, Safari)
> > (#1471
> >    )
> >    - Standard.css missing new layout styles
> > (#4429
> >    )
> >    - Remove method in SplitLayoutPanel is broken
> > (#4217
> >    )
> >    - Splitter constructor hard codes the background color of the splitter to
> >    white 
> > (#4335
> >    )
> >    - Image should provide method to set alternative text
> > (#4335
> >    )
> >    - CssResource cannot parse unescaped '-', '_' in class selectors and
> >    unknown at-rules
> > (#3946
> >    )
> >    - Focusable implementation breaks ScrollPanels in Safari
> > (#1313
> >    )
> >    - RequestBuilder restricted to GET and POST
> > (#3388
> >    )
> >    - HTMLTable.Cell.getElement() calls getCellFormatter().getElement() with
> >    row and column swapped RequestBuilder restricted to GET and POST
> > (#3757
> >    )
> >    - MenuBar steals focus when hovered
> > (#3884
> >    )
> >    - TabLayoutPanel tabs don't line up properly on IE
> > (#4447
> >    )
> >    - webAppCreator produces ant build files which support the gwt.args
> >    property for passing additional flags to the gwtc and devmode rules, 
> > such as
> >    ant -Dgwt.args="-style PRETTY" gwtc.
>
> > See the GWT issue tracker for the complete list of bug fixes and
> > enhancements
> > in
> > this release.
>
> > --
>
> > Miguel on behalf of the GWT Team

-- 
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-tool...@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: Digest for google-web-toolkit@googlegroups.com - 21 Messages in 14 Topics

2010-02-05 Thread Sky
No one is going to click on that link until you describe what it is
and convince us that you aren't spamming us with a malicious website.
The address even looks suspicious.

On Feb 5, 9:30 am, Marcos Alcantara  wrote:
> Hi guys,
>
> What do you guys think about this tool?
>
> http://280atlas.com/what.php
>
> How great would be it if we had one like that for GWT? =)
>
> Best regards,
>
> Marcos Alcantara

-- 
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-tool...@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: Init Frame while invisible?

2010-02-05 Thread Sky
It probably needs to be attached to the DOM in order to set the URL.
Attach it to the DOM after setting it's visibility to false, then set
the URL. Change it's visibility to true when you want the user to see
it.

Pretty sure that should work.

Email me if you can't get it to work.

On Feb 5, 2:56 am, goolie  wrote:
> Hi,
>
> I've a problem where I have an external webapp running inside a Frame
> in my GWT project. I create the Frame and set the URL at startup of my
> app but I'm not showing it until the user wants to see it. The problem
> seems to be that the frame is not actually initialized until it is
> visible and I need it to be initialized at startup since it is
> listening to events that I'm sending to it.
>
> Is there a way to init the Frame without actually showing it?
>
> BR
> Oskar

-- 
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-tool...@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: Cannot get code splitting to work

2010-02-05 Thread Sky
Hi Jonathan.

I just tried making some of my own code split using the async callback
for the first time and I was successful. I get a deferredjs folder and
I can see that in the initial download report my class is only 30
bytes (because I call a method returning a static string outside of
the async callback) and I get a split point location in the report
saying my class is 216 bytes. Prior to making it async the class was
246 bytes. So it split it absolutely perfectly!

I don't know what you are doing wrong (or could be encountering a
special case bug...) but you seem to know how to use it quite well. I
can only suggest that you may still have some code somewhere that
calls "new Bob()" and thus it isn't being split. I'm sure you've
triple checked so it must not be your problem.

Try reading through the following two pages again to see if you can
glean any more information that might help you.
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html
http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

Sorry I couldn't help :(

gl

On Feb 4, 1:30 pm, Jonathan  wrote:
> If I create a basic GWT 2.0 project, and add some basic code
> splitting, it works perfectly fine.
>
> But our main application is pretty massive and complex.  I cannot get
> it to split ANY code whatsoever - even the most basic test.  I
> generally confirm this by looking at the soyc compile report but it's
> also obvious since there's no deferredjs folder.
>
> My most basic test involves creating an incredibly basic POJO class
> and referencing this class only from the onSuccess() method of the
> runAsync callback.
>
> GWT.runAsync(new RunAsyncCallback()
> {
>       public void onSuccess()
>       {
>               Info.display("Title", (new Bob("Code splitting
> worked").getName()));
>       }
>
>       public void onFailure(Throwable reason)
>       {
>               Info.display("Code splitting failed", "Code splitting
> failed");
>
>       }
>
> });
>
> public class Bob
> {
>       private final String name;
>
>       public Bob(String name)
>       {
>               this.name = name;
>       }
>
>       public String getName()
>       {
>               return name;
>       }
>
> }
>
> The info messages (basic GXT class to display debug message) displays
> "Code splitting worked".  But the report doesn't show any splits.  And
> the class Bob shows up in the initial download. No matter where I put
> these code splits and what I try to split, I cannot get any code split
> to show.  There's no errors in the GWT compiler output.  We're using
> the standard linker.  I really don't know how to proceed from here.
> Can anyone provide any help?  Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: Init Frame while invisible?

2010-02-05 Thread Sky
Yes, container.add(frameInstanceName) where frameInstanceName is the
variable pointing to the frame, will work. However you need to make
sure that container has also been attached to the DOM, and the
container of container, and so on, until you reach all the way up to
RootPanel. ONLY when the entire hierarchy of widgets are added
together and added to the RootPanel, will the frame be attached to the
DOM. If in the onModuleLoad you instantiate your own custom widget and
then add it to the rootpanel, but if it's during the instantiation of
the custom widget that ultimately leads up to the setting of the url
of the frame, then you need to have some sort of init() method (that
sets the url) propagating down to the widget that controls the
frame... call the init() method AFTER adding the top widget to the
rootpanel.

Make sense?

On Feb 5, 11:56 am, mariyan nenchev  wrote:
> Aaam one q:How to attach it? with container.add() because this is not
> working.
> On Fri, Feb 5, 2010 at 7:48 PM, mariyan nenchev
> wrote:
>
>
>
>
>
> > Thanks that is exactly what i needed too, i will try it.
>
> > On Fri, Feb 5, 2010 at 7:36 PM, Sky  wrote:
>
> >> It probably needs to be attached to the DOM in order to set the URL.
> >> Attach it to the DOM after setting it's visibility to false, then set
> >> the URL. Change it's visibility to true when you want the user to see
> >> it.
>
> >> Pretty sure that should work.
>
> >> Email me if you can't get it to work.
>
> >> On Feb 5, 2:56 am, goolie  wrote:
> >> > Hi,
>
> >> > I've a problem where I have an external webapp running inside a Frame
> >> > in my GWT project. I create the Frame and set the URL at startup of my
> >> > app but I'm not showing it until the user wants to see it. The problem
> >> > seems to be that the frame is not actually initialized until it is
> >> > visible and I need it to be initialized at startup since it is
> >> > listening to events that I'm sending to it.
>
> >> > Is there a way to init the Frame without actually showing it?
>
> >> > BR
> >> > Oskar
>
> >> --
> >> 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-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com >>  cr...@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-tool...@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: GlassPanel in IE6 -- color changes when scrolling

2010-02-05 Thread Sky
There is no GlassPanel in GWT, so I'll assume it's your own panel. I
don't know much about "iframe shim" other than a quick skim of the
first site I found doing a search. Why don't you just use a
transparent png image set as the background of your panel? That's what
I would do.

On Feb 4, 9:53 am, Skyfort  wrote:
> Hello internet!
>
> I am using a GlassPanel to black out the background a bit when I open
> a modal. In IE6, which of course uses the iframe shim, the color of
> the GlassPanel is going from a dark grey to a light grey after I
> scroll (sort of whiting out the background instead).
>
> I can provide code if necessary, but mayhaps this is a problem that
> has been seen before?
>
> Thanks!
> SKYFORT

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



Code Splitting: lots of overhead. Too much?

2010-02-05 Thread Sky
I successfully used code splitting on a few classes in my project. By
looking at the compilation report it appears to me that code splitting
has an incredibly large amount of overhead.

I've gone through the report carefully and the code that I'm splitting
is indeed being split and not included in the Initial download.

For the IE8 permutation, while splitting one 100 line class my Initial
download size jumped from 115kb to 141kb. That's 26kb and 22% increase
in my project size. Yeah the Full code size is indeed almost a 3kb
larger than the 141kb, though 10% of that is some code splitter code
that ends up being split along with class I split (and the widgets it
uses).

Now, if I split another six 60 line classes you would think the
overhead wouldn't change much at all but it does. The initial download
size increases from the above 141kb to 145kb and the Full code size
increases from 144kb to 152kb.

So ok, I would have expected that even if you split a gazillion small
pieces of code you would only pay for a fixed overhead on the async
code, but since I don't know how it works internally I can admit that
this may very well not be a good way to do code splitting. Similarly,
spinning off multiple threads/processes has a fixed amount of overhead
per thread/process in terms of memory used.

However, I must complain that the overhead is just way too large. It
is 25% of my current project size. I estimate that maybe only around
20-30% of my app will be able to be code split when I am done, but
because of this overhead that makes it completely pointless for me. It
appears that it would only be useful if your app becomes significantly
larger than 200kb. Maybe code splitting the odd 10kb of code here and
there with a total of 60kb isn't exactly saving a whole lot of space
off a 200kb app, but it would help the app to start up just that much
quicker. Besides, what about an app that will end up having hundreds
of those little 5-10kb "pages" that really only need to be lazy
loaded?

Does anyone have anything to say or pointers on how to decrease the
overhead? Maybe I did something wrong, I am a novice at using GWT's
code splitting after all.

-- 
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-tool...@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: Code Splitting: lots of overhead. Too much?

2010-02-05 Thread Sky
It appears I am wrong.

If you notice this, don't bother reading my entire blurb above,
instead learn from what I will explain here that was my mistake.

I put inside my onFailure() method a call to the method that calls
GWT.runAsync() and creates the async "handler", effectively making it
retry to download the code (limiting the number of retries of course
before handling the error). Seemed like a good idea to retry because
connection errors can happen and simply retrying may be successful.

However, doing this clearly was my downfall and resulted in the
terrible overhead and getting no reduction in the initial download
size. By removing that one line of code the scenario completely
reversed; the initial download size reduced appropriately and the Full
code size increased only by 5kb.

So, unless someone proposes a better way to "retry" without creating
the above nightmare, I am not going to bother retrying.

cheers

On Feb 5, 3:57 pm, Sky  wrote:
> I successfully used code splitting on a few classes in my project. By
> looking at the compilation report it appears to me that code splitting
> has an incredibly large amount of overhead.
>
> I've gone through the report carefully and the code that I'm splitting
> is indeed being split and not included in the Initial download.
>
> For the IE8 permutation, while splitting one 100 line class my Initial
> download size jumped from 115kb to 141kb. That's 26kb and 22% increase
> in my project size. Yeah the Full code size is indeed almost a 3kb
> larger than the 141kb, though 10% of that is some code splitter code
> that ends up being split along with class I split (and the widgets it
> uses).
>
> Now, if I split another six 60 line classes you would think the
> overhead wouldn't change much at all but it does. The initial download
> size increases from the above 141kb to 145kb and the Full code size
> increases from 144kb to 152kb.
>
> So ok, I would have expected that even if you split a gazillion small
> pieces of code you would only pay for a fixed overhead on the async
> code, but since I don't know how it works internally I can admit that
> this may very well not be a good way to do code splitting. Similarly,
> spinning off multiple threads/processes has a fixed amount of overhead
> per thread/process in terms of memory used.
>
> However, I must complain that the overhead is just way too large. It
> is 25% of my current project size. I estimate that maybe only around
> 20-30% of my app will be able to be code split when I am done, but
> because of this overhead that makes it completely pointless for me. It
> appears that it would only be useful if your app becomes significantly
> larger than 200kb. Maybe code splitting the odd 10kb of code here and
> there with a total of 60kb isn't exactly saving a whole lot of space
> off a 200kb app, but it would help the app to start up just that much
> quicker. Besides, what about an app that will end up having hundreds
> of those little 5-10kb "pages" that really only need to be lazy
> loaded?
>
> Does anyone have anything to say or pointers on how to decrease the
> overhead? Maybe I did something wrong, I am a novice at using GWT's
> code splitting after all.

-- 
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-tool...@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: Code Splitting: lots of overhead. Too much?

2010-02-05 Thread Sky
Sorry, I have to retract that last post entirely! I made a mistake in
testing it when I removed that one line of code. I forgot that I was
no longer actually calling GWT.runAsync() and thus it had gone back to
it's original Initial download size. Even removing the "retry" code,
but properly using GWT.runAsync() I encounter the original nightmare
of overhead.

Sorry about the confusion.

On Feb 5, 4:10 pm, Sky  wrote:
> It appears I am wrong.
>
> If you notice this, don't bother reading my entire blurb above,
> instead learn from what I will explain here that was my mistake.
>
> I put inside my onFailure() method a call to the method that calls
> GWT.runAsync() and creates the async "handler", effectively making it
> retry to download the code (limiting the number of retries of course
> before handling the error). Seemed like a good idea to retry because
> connection errors can happen and simply retrying may be successful.
>
> However, doing this clearly was my downfall and resulted in the
> terrible overhead and getting no reduction in the initial download
> size. By removing that one line of code the scenario completely
> reversed; the initial download size reduced appropriately and the Full
> code size increased only by 5kb.
>
> So, unless someone proposes a better way to "retry" without creating
> the above nightmare, I am not going to bother retrying.
>
> cheers
>
> On Feb 5, 3:57 pm, Sky  wrote:
>
>
>
> > I successfully used code splitting on a few classes in my project. By
> > looking at the compilation report it appears to me that code splitting
> > has an incredibly large amount of overhead.
>
> > I've gone through the report carefully and the code that I'm splitting
> > is indeed being split and not included in the Initial download.
>
> > For the IE8 permutation, while splitting one 100 line class my Initial
> > download size jumped from 115kb to 141kb. That's 26kb and 22% increase
> > in my project size. Yeah the Full code size is indeed almost a 3kb
> > larger than the 141kb, though 10% of that is some code splitter code
> > that ends up being split along with class I split (and the widgets it
> > uses).
>
> > Now, if I split another six 60 line classes you would think the
> > overhead wouldn't change much at all but it does. The initial download
> > size increases from the above 141kb to 145kb and the Full code size
> > increases from 144kb to 152kb.
>
> > So ok, I would have expected that even if you split a gazillion small
> > pieces of code you would only pay for a fixed overhead on the async
> > code, but since I don't know how it works internally I can admit that
> > this may very well not be a good way to do code splitting. Similarly,
> > spinning off multiple threads/processes has a fixed amount of overhead
> > per thread/process in terms of memory used.
>
> > However, I must complain that the overhead is just way too large. It
> > is 25% of my current project size. I estimate that maybe only around
> > 20-30% of my app will be able to be code split when I am done, but
> > because of this overhead that makes it completely pointless for me. It
> > appears that it would only be useful if your app becomes significantly
> > larger than 200kb. Maybe code splitting the odd 10kb of code here and
> > there with a total of 60kb isn't exactly saving a whole lot of space
> > off a 200kb app, but it would help the app to start up just that much
> > quicker. Besides, what about an app that will end up having hundreds
> > of those little 5-10kb "pages" that really only need to be lazy
> > loaded?
>
> > Does anyone have anything to say or pointers on how to decrease the
> > overhead? Maybe I did something wrong, I am a novice at using GWT's
> > code splitting after all.

-- 
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-tool...@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: Newbee CSS questions

2010-02-05 Thread Sky
I just include my own CSS file (you can include it in the top html
file) and create styles inside it and set the style name via
myWidget.setStyleName().

If I just want to change one or two CSS properties I use a global
method: MyJS.setStyle(Widget w, String style, String value)
{w.getElement().getStyle().setProperty(style, value);} cause you can't
rely on their Style object being able to set/get ALL styles, plus it's
shorter than calling getElement().getStyle() EVERY time I want to set
a style.

If I was on the GWT dev team I would create a setStyle(String style,
String value){} method right on the Widget class.

On Feb 5, 6:35 pm, Gal Dolber  wrote:
> You can...
>
> ..copy the entire theme and customized it.
> or
> ..overlap the css classes that you want to customize in a css and include it
> (on each Widget there is a description of what css classes it uses)
>
> 2010/2/5 dhoffer 
>
>
>
> > How can I make some simple changes to the CSS GWT 2.0 uses for the
> > standard theme?
>
> > How can I change the font family/name used for everything?  (Is there
> > a global place for this?)
> > How can I change the color of the font used for everything?  (Is there
> > a global place for this?)
> > How can I change the size of the font used by a some HTML widgets?
>
> > I know these are basic questions, but would really appreciate help
> > getting started making some CSS changes.
>
> > Some more questions...do I have to copy the GWT CSS, make changes, and
> > then include mine and not include GWT's?  Or can I leave GWT's in
> > place and extend it somehow?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: Newbee CSS questions

2010-02-05 Thread Sky
There is no global way to override more specific styles. Thats just
how CSS works. The more specific style is going to override the more
general style.

If you have no need for GWT's css, remove it from your project and
create your own. Then you can specify font styles for the body, which
will be taken by all elements.

I don't know how to safely remove GWT's css... cuz the Widgets will
still refer to them. If you copy all their style classes and change
them to not have anything, or just removing what you don't want, then
that would work.

On Feb 5, 7:29 pm, dhoffer  wrote:
> So is there a global way to change all font?  Or is this done per
> class and completely separate from each other?
>
> I've tried just adding some css to my app's css (which is specified in
> the html) like:
>
> .qwt-Label{
>     color: #DF0101;
>     font: normal 12px tahoma, arial, helvetica, sans-serif;
>     border: 1px solid #99bbe8;
>     padding: 14px;
>
> }
>
> .qwt-Button{
>     color: #DF0101;
>     font: normal 12px tahoma, arial, helvetica, sans-serif;
>     border: 1px solid #99bbe8;
>     padding: 14px;
>
> }
>
> .qwt-CheckBox{
>     color: #DF0101;
>     font: normal 12px tahoma, arial, helvetica, sans-serif;
>     border: 1px solid #99bbe8;
>     padding: 14px;
>
> }
>
> and keeping the gwt one in place in the module's xml file but mine
> does not take effect.  Is the GWT one overwriting mine?  How do I get
> might to take effect?
>
> -Dave
>
> On Feb 5, 5:35 pm, Gal Dolber  wrote:
>
>
>
> > You can...
>
> > ..copy the entire theme and customized it.
> > or
> > ..overlap the css classes that you want to customize in a css and include it
> > (on each Widget there is a description of what css classes it uses)
>
> > 2010/2/5 dhoffer 
>
> > > How can I make some simple changes to the CSS GWT 2.0 uses for the
> > > standard theme?
>
> > > How can I change the font family/name used for everything?  (Is there
> > > a global place for this?)
> > > How can I change the color of the font used for everything?  (Is there
> > > a global place for this?)
> > > How can I change the size of the font used by a some HTML widgets?
>
> > > I know these are basic questions, but would really appreciate help
> > > getting started making some CSS changes.
>
> > > Some more questions...do I have to copy the GWT CSS, make changes, and
> > > then include mine and not include GWT's?  Or can I leave GWT's in
> > > place and extend it somehow?
>
> > > Thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@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-tool...@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: Access to AsyncFragmentLoader$HttpDownloadFailure

2010-02-07 Thread Sky
I second this motion. In my opinion you provide a solid argument.
Hopefully the GWT dev team will agree and see fit to make that
exception public.

On Feb 7, 2:16 pm, Vlad Skarzhevskyy  wrote:
> We are using GWT.runAsync to load part of our our application.
>
> The application may run in the client Browser for some time before it would
> need to open the unloaded fragments.
> If during this time the application on server is updated e.g. GWT recompiled
> and deployed we may get exception on client:
> 
> com.google.gwt.core.client.impl.AsyncFragmentLoader$HttpDownloadFailure:
> HTTP download failed with status 404
> 
>
> In RunAsyncCallback.onFailure(Throwable) we can analyze the reason for
> error. If it is status 404 then we can show error:
> "We updated our application.  Reload Yes/No? " and call
> Window.Location.reload();  to gracefully recover from this error.
>
> But the Exception HttpDownloadFailure is private static class inside gwt
> AsyncFragmentLoader implementation.
> Does it make sense to expose the HttpDownloadFailure exception so that
> application would be able gracefully and properly recover from some known
> errors?
>
> BTW the StatusCodeException with nearly the same meaning is public in RPC
> package com.google.gwt.user.client.rpc.
>
> Vlad
>
> PS
>  For now I'm just looking for the string "HTTP download failed with status
> 404" in Throwable message to recover from this errors.

-- 
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-tool...@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: Code Splitting: lots of overhead. Too much?

2010-02-09 Thread Sky
Bump

I'm really curious if anyone can help me understand how code splitting
can be useful given the experience I have had with it. It really makes
little sense why the overhead is so huge.

On Feb 5, 4:16 pm, Sky  wrote:
> Sorry, I have to retract that last post entirely! I made a mistake in
> testing it when I removed that one line of code. I forgot that I was
> no longer actually calling GWT.runAsync() and thus it had gone back to
> it's original Initial download size. Even removing the "retry" code,
> but properly using GWT.runAsync() I encounter the original nightmare
> of overhead.
>
> Sorry about the confusion.
>
> On Feb 5, 4:10 pm, Sky  wrote:
>
>
>
> > It appears I am wrong.
>
> > If you notice this, don't bother reading my entire blurb above,
> > instead learn from what I will explain here that was my mistake.
>
> > I put inside my onFailure() method a call to the method that calls
> > GWT.runAsync() and creates the async "handler", effectively making it
> > retry to download the code (limiting the number of retries of course
> > before handling the error). Seemed like a good idea to retry because
> > connection errors can happen and simply retrying may be successful.
>
> > However, doing this clearly was my downfall and resulted in the
> > terrible overhead and getting no reduction in the initial download
> > size. By removing that one line of code the scenario completely
> > reversed; the initial download size reduced appropriately and the Full
> > code size increased only by 5kb.
>
> > So, unless someone proposes a better way to "retry" without creating
> > the above nightmare, I am not going to bother retrying.
>
> > cheers
>
> > On Feb 5, 3:57 pm, Sky  wrote:
>
> > > I successfully used code splitting on a few classes in my project. By
> > > looking at the compilation report it appears to me that code splitting
> > > has an incredibly large amount of overhead.
>
> > > I've gone through the report carefully and the code that I'm splitting
> > > is indeed being split and not included in the Initial download.
>
> > > For the IE8 permutation, while splitting one 100 line class my Initial
> > > download size jumped from 115kb to 141kb. That's 26kb and 22% increase
> > > in my project size. Yeah the Full code size is indeed almost a 3kb
> > > larger than the 141kb, though 10% of that is some code splitter code
> > > that ends up being split along with class I split (and the widgets it
> > > uses).
>
> > > Now, if I split another six 60 line classes you would think the
> > > overhead wouldn't change much at all but it does. The initial download
> > > size increases from the above 141kb to 145kb and the Full code size
> > > increases from 144kb to 152kb.
>
> > > So ok, I would have expected that even if you split a gazillion small
> > > pieces of code you would only pay for a fixed overhead on the async
> > > code, but since I don't know how it works internally I can admit that
> > > this may very well not be a good way to do code splitting. Similarly,
> > > spinning off multiple threads/processes has a fixed amount of overhead
> > > per thread/process in terms of memory used.
>
> > > However, I must complain that the overhead is just way too large. It
> > > is 25% of my current project size. I estimate that maybe only around
> > > 20-30% of my app will be able to be code split when I am done, but
> > > because of this overhead that makes it completely pointless for me. It
> > > appears that it would only be useful if your app becomes significantly
> > > larger than 200kb. Maybe code splitting the odd 10kb of code here and
> > > there with a total of 60kb isn't exactly saving a whole lot of space
> > > off a 200kb app, but it would help the app to start up just that much
> > > quicker. Besides, what about an app that will end up having hundreds
> > > of those little 5-10kb "pages" that really only need to be lazy
> > > loaded?
>
> > > Does anyone have anything to say or pointers on how to decrease the
> > > overhead? Maybe I did something wrong, I am a novice at using GWT's
> > > code splitting after all.

-- 
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-tool...@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: Any Google Wave developers in this group?

2010-02-09 Thread Sky
I also hope to incorporate wave into my current GWT projects ^_^

It mostly depends on how complete it is. Last I checked (a good number
of months ago) the Wave API was very much in it's infancy. I'm going
to revisit it soon!

On Feb 9, 8:58 am, Christian Goudreau 
wrote:
> Yes I am too !
>
> Christian
>
>
>
> On Tue, Feb 9, 2010 at 9:57 AM, Duong BaTien  wrote:
> > Yes. We use GWT, GAE, and Wave
>
> > Duong BaTien
> > DBGROUPS and BudhNet
>
> > On Tue, 2010-02-09 at 00:32 -0800, dougx wrote:
> > > Yes. I use GWT for all my wave code; please post if you create a
> > > specific group for wave related GWT stuff...
>
> > > ~
> > > Doug.
>
> > > On Feb 9, 1:57 pm, Jonas Huckestein  wrote:
> > > > Hi guys,
>
> > > > I was wondering if there were enough wave developers around here that
> > > > use gwt so that we could start our own group. I feel that in both the
> > > > Wave API group and in this one messages on that subject tend to go
> > > > unnoticed.
>
> > > > Anybody interested?
>
> > > > I am about to publish my own mock implementation of the Wave API for
> > > > GWT that I made to locally test my gadgets, but I guess I might not be
> > > > the only one.
>
> > > > Cheers,
> > > > Jonas
> > > > --
> > > > Jonas Huckestein
>
> > > >http://thezukunft.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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.



MyNamedFrame is better than GWT's NamedFrame

2010-05-19 Thread Sky
Just in case you ever wanted to have a handler for the 's
onload event:


import com.google.gwt.event.dom.client.HasLoadHandlers;
import com.google.gwt.event.dom.client.LoadEvent;
import com.google.gwt.event.dom.client.LoadHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.NamedFrame;

public class MyNamedFrame extends NamedFrame implements
HasLoadHandlers {

public MyNamedFrame(String name) {
super(name);
}

@Override
public HandlerRegistration addLoadHandler(LoadHandler handler) {
return addDomHandler(handler, LoadEvent.getType());
}
}

-- 
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-tool...@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: Using JS to access GWT generated JS code

2010-05-19 Thread Sky
Check out these two sections:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#methods-fields

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling

I believe the second link is what you need.

cheers

On May 19, 8:22 pm, Gabriel Gutierrez  wrote:
> Hey guys,
>
> I know that GWT interfacts with native JS using JSNI, but my question
> is: can I call from native JS to GWT generated code? how?
>
> My idea is to write, in GWT, a class (MyClass) and then, in an HTML
> file import the .nocache.js file and use native JS do something like
> this
>
> 
>     MyClass instance = new MyClass();
>     instance.property = "value";
> 
>
> The reason is that i need to build a complex JS library and i dont
> want to think about browsers compatibility it will take a lot of time.
>
> Thanks on advance your comments.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-tool...@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: MyNamedFrame is better than GWT's NamedFrame

2010-05-21 Thread Sky
As it turns out, IE does NOT support programmatically setting the
onload attribute of the iframe. The solution is to set the onload
attribute in the html tab to call another function, which is the
function you programmatically set.

My following post will include all the code for the new solution,
which works in ALL browsers (well I tested IE, FF and Chrome :P)

On May 20, 12:13 am, Sky  wrote:
> Just in case you ever wanted to have a handler for the 's
> onload event:
>
> import com.google.gwt.event.dom.client.HasLoadHandlers;
> import com.google.gwt.event.dom.client.LoadEvent;
> import com.google.gwt.event.dom.client.LoadHandler;
> import com.google.gwt.event.shared.HandlerRegistration;
> import com.google.gwt.user.client.ui.NamedFrame;
>
> public classMyNamedFrameextends NamedFrame implements
> HasLoadHandlers {
>
>         publicMyNamedFrame(String name) {
>                 super(name);
>         }
>
>         @Override
>         public HandlerRegistration addLoadHandler(LoadHandler handler) {
>                 return addDomHandler(handler, LoadEvent.getType());
>         }
>
> }
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-tool...@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: MyNamedFrame is better than GWT's NamedFrame

2010-05-21 Thread Sky
package com.skystrider.subtabs.client.gwtUtils;

import java.util.ArrayList;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.IFrameElement;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;

/**
 * A {...@link com.google.gwt.user.client.ui.Frame} that has a 'name'
associated
 * with it. This allows the frame to be the target of a
 * {...@link com.google.gwt.user.client.ui.FormPanel}
 *
 * CSS Style Rules
 * 
 * .gwt-Frame { }
 * 
 */
public class MyNamedFrame extends Frame {

private ArrayList loadHandlers = null;

  // Used inside JSNI, so please don't delete this field just because
  // your compiler or IDE says it's unused.
  @SuppressWarnings("unused")
  private static JavaScriptObject PATTERN_NAME;

  static {
if (GWT.isClient()) {
  initStatics();
}
  }

  /**
   * Creates an HTML IFRAME element with a src and name.
   *
   * @param src the src of the frame
   * @param name the name of the frame, which must contain at least
one
   *  non-whitespace character and must not contain reserved
HTML markup
   *  characters such as '<', '>',
   *  or '&'
   * @return the newly-created element
   * @throws IllegalArgumentException if the supplied name is not
allowed
   */
  private static IFrameElement createIFrame(String src, String name)
{
if (name == null || !isValidName(name.trim())) {
  throw new IllegalArgumentException(
  "expecting one or more non-whitespace chars with no '<',
'>', or '&'");
}

// Use innerHTML to implicitly create the . This is
necessary
// because most browsers will not respect a dynamically-set
iframe name.
Element div = DOM.createDiv();

String onload = "onload=\"if(!event){event = window.event;}
this.myonload(event);\"";

div.setInnerHTML("");
return div.getFirstChild().cast();
  }

  private static native void initStatics() /*-{
@com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME = /^[^<>&
\'\"]+$/;
  }-*/;

  /**
   * @param name the specified frame name to be checked
   * @return true if the name is valid, false if
   * not
   */
  private static native boolean isValidName(String name) /*-{
return
@com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME.test(name);
  }-*/;

  /**
   * Constructs a frame with the given name.
   *
   * @param name the name of the frame, which must contain at least
one
   *  non-whitespace character and must not contain reserved
HTML markup
   *  characters such as '<', '>',
   *  or '&'
   *
   * @throws IllegalArgumentException if the supplied name is not
allowed
   */
  public MyNamedFrame(String name) {
// Setting a src prevents mixed-content warnings.
// 
http://weblogs.asp.net/bleroy/archive/2005/08/09/how-to-put-a-div-over-a-select-in-ie.aspx
super(createIFrame("javascript:''", name));
setStyleName("gwt-Frame");
setMyOnload(this.getElement().cast(), this);
  }

  /**
   * Gets the name associated with this frame.
   *
   * @return the frame's name
   */
  public String getName() {
return DOM.getElementProperty(getElement(), "name");
  }

public void addLoadHandler(LoadHandler handler) {
if(loadHandlers == null){
loadHandlers = new ArrayList();
}
loadHandlers.add(handler);
}

public interface LoadHandler {
void onLoad(Event event);
}

public native void setMyOnload(JavaScriptObject elm, MyNamedFrame
frame)/*-{

elm.myonload = function(event){

fra...@com.skystrider.subtabs.client.gwtutils.mynamedframe::onload(Lcom/
google/gwt/user/client/Event;)(event);
};
}-*/;

public void onload(Event event)
{
for (LoadHandler handler : loadHandlers) {
handler.onLoad(event);
}
}
}


On May 20, 12:13 am, Sky  wrote:
> Just in case you ever wanted to have a handler f

RPC callback fails: status code 0

2010-05-23 Thread Sky
Hi all.

I did the Stockwatcher RPC tutorial and it worked beautifully. I then
implemented my own very simple RPC callback for my own project and I
always get status code 0 returned... the callback always fails. Funny
thing is that the server method does indeed run, I debugged into it.
Only the client side seems to think the RPC callback fails. My
implementation is even more simple than the Stockwatcher RPC because I
am simply returning a Long, which is serializable.

I discovered a thread mentioning that RPC doesn't quite work with App-
engine, so I created a new project without app-engine, copied all my
code and files over to that project and I still have the same result.

I don't know what else to tell you to help me out here. I have studied
the RPC guide and am sure I've implemented it all correctly, including
the web.xml file. Not to mention the fact that the server code DOES
run.

Thanks for any insight.

-- 
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-tool...@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: RPC callback fails: status code 0

2010-05-24 Thread Sky
Thanks for the response.

Sorry, when I said the callback failed, I meant that the onFailure()
method gets called, not the onSuccess() method of the AsyncCallback
instance. The status code of the the StatusCodeException that is
thrown is 0, which is not a standard server error response. In other
words, it's not a server error. It must be something in the client
that thinks it can't connect to the server, even though the server
gets the request and runs it's appropriate method.

There are no console errors. I don't know how to check the Jetty
console.

Also, I intend to use google's AppEngine as my Java server, so testing
locally using the AppEngine instead of Jetty would be ideal, but it
appears to not be supported yet.

On May 24, 8:28 am, kozura  wrote:
> Not sure what you mean by status code 0, does your onFailure callback
> get called, and what is the exception sent to it?  Also be sure to
> check both the Jetty console and the client-particular console for any
> errors that show up there.
>
> On May 23, 9:49 pm, Sky  wrote:
>
>
>
>
>
> > Hi all.
>
> > I did the Stockwatcher RPC tutorial and it worked beautifully. I then
> > implemented my own very simple RPC callback for my own project and I
> > always get status code 0 returned... the callback always fails. Funny
> > thing is that the server method does indeed run, I debugged into it.
> > Only the client side seems to think the RPC callback fails. My
> > implementation is even more simple than the Stockwatcher RPC because I
> > am simply returning a Long, which is serializable.
>
> > I discovered a thread mentioning that RPC doesn't quite work with App-
> > engine, so I created a new project without app-engine, copied all my
> > code and files over to that project and I still have the same result.
>
> > I don't know what else to tell you to help me out here. I have studied
> > the RPC guide and am sure I've implemented it all correctly, including
> > the web.xml file. Not to mention the fact that the server code DOES
> > run.
>
> > Thanks for any insight.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-tool...@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: RPC callback fails: status code 0

2010-05-24 Thread Sky
I now understand what caused this callback failure. Nothing was wrong
with my implementation of the whole RPC mechanism. The problem was
very special and specific to the particular browser event in which I
was calling it.

Let me explain, as this may benefit someone else.

Doing an RPC during the Window.onWindowClosing() event will ALWAYS
fail. IOW, invoking an asynchronous callback (xmlhttprequest) during
the window.onbeforeunload event will result in the onFailure() method
of your asynchronous callback instance to be called, even if it was
successful in reaching the server.

You are probably wondering how an asynchronous callback can actually
callback to either success or failure since the callback occurs AFTER
the onWindowClosing event, which by definition means the window has
closed. In my case, the code being ran in my onWindowClosing event
actually prevents the window from closing, because it is in fact "anti
frame buster" code... preventing a "frame buster" website inside an
iframe from "busting" or closing the window.

So the window doesn't actually close in my situation, and I expected
the callback to indeed callback, which it does... the problem is that
it fails and doesn't succeed. Even scheduling the asynchronous request
to happen 1ms after the onWindowClosing event doesn't help. Scheduling
it much later, say a whole second later, does allow it to succeed.

I don't need it to return with success, so I won't be scheduling it. I
just can't rely on getting any data back from the server in this
situation, which I can cope with.


So my problem is solved and I no longer need any help. I hope my
explanation of this very specific situation was adequate, but if
anyone has any questions just let me know.

On May 24, 12:53 pm, Sky  wrote:
> Thanks for the response.
>
> Sorry, when I said the callback failed, I meant that the onFailure()
> method gets called, not the onSuccess() method of the AsyncCallback
> instance. The status code of the the StatusCodeException that is
> thrown is 0, which is not a standard server error response. In other
> words, it's not a server error. It must be something in the client
> that thinks it can't connect to the server, even though the server
> gets the request and runs it's appropriate method.
>
> There are no console errors. I don't know how to check the Jetty
> console.
>
> Also, I intend to use google's AppEngine as my Java server, so testing
> locally using the AppEngine instead of Jetty would be ideal, but it
> appears to not be supported yet.
>
> On May 24, 8:28 am, kozura  wrote:
>
>
>
>
>
> > Not sure what you mean by status code 0, does your onFailure callback
> > get called, and what is the exception sent to it?  Also be sure to
> > check both the Jetty console and the client-particular console for any
> > errors that show up there.
>
> > On May 23, 9:49 pm, Sky  wrote:
>
> > > Hi all.
>
> > > I did the Stockwatcher RPC tutorial and it worked beautifully. I then
> > > implemented my own very simple RPC callback for my own project and I
> > > always get status code 0 returned... the callback always fails. Funny
> > > thing is that the server method does indeed run, I debugged into it.
> > > Only the client side seems to think the RPC callback fails. My
> > > implementation is even more simple than the Stockwatcher RPC because I
> > > am simply returning a Long, which is serializable.
>
> > > I discovered a thread mentioning that RPC doesn't quite work with App-
> > > engine, so I created a new project without app-engine, copied all my
> > > code and files over to that project and I still have the same result.
>
> > > I don't know what else to tell you to help me out here. I have studied
> > > the RPC guide and am sure I've implemented it all correctly, including
> > > the web.xml file. Not to mention the fact that the server code DOES
> > > run.
>
> > > Thanks for any insight.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> g

Re: help with serialization

2010-05-24 Thread Sky
Well, I'm new to GWT serializing, and I don't have lots of experience
with Java or other serialization but to be honest serialization has
always seemed very simple to me. I do not understand why Pair can't be
transient and why that would not tell the GWT compiler to ignore it
when serializing. Is it the case that types inside packages outside of
your client, shared, or server packages aren't seen by the GWT
compiler? If so, I would hazard a guess that the class using said
external type (Pair) would cause a GWT compiling error. It wouldn't
know what to do with members of said external type (Pair). But I
suspect the GWT compiler should be able to see an externally declared
type because it is imported into the class that uses it.

I do believe it is the case that type (class) members (methods and
variables) that are unused on the client are indeed stripped out of
the GWT compiled version of a class. Is this what you mean by GWT not
"seeing" a type? In this situation a type may very well not be
compiled into javascript, but I would still think that making Pair
transient would have to solve the problem.

All that said, I am obviously not of any help, but I am interested and
want to understand more. I am interested in understanding both the
problem as well as whatever solution is eventually discovered.

On May 24, 1:01 pm, "Robert J. Carr"  wrote:
> Hi Gursel-
>
> Thanks for the response, but I don't *want* Pair to serialize.  And
> just marking it as transient doesn't fix the problem.  The Pair class
> is out of the gwt package, and therefore, the gwt compiler can't even
> see it.
>
> Sorry if this doesn't make sense.
>
> On Mon, May 24, 2010 at 5:45 AM, Gursel Koca  wrote:
>
> > gwt.example.util.Pair p should be transient.. GWT serialization is
> > similar to Java serialization. Gwt serializer try to serialize every
> > non transient , final fields.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://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-tool...@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.



History.newItem() and History.getToken() and encoding url fragment (Does not happen in FF)

2010-06-02 Thread Sky
History.newItem() and History.getToken() are supposed to
encodeURIComponent and decodeURIComponent respectively. I looked into
the implemented native methods and they sure appear to do that.

However, in FF 3.5 the encoding does not happen. My browser URL shows
normal spaces instead of %20.

In IE8 the encoding does happen.

Is this a big deal or what?

-- 
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-tool...@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: History.newItem() and History.getToken() and encoding url fragment (Does not happen in FF)

2010-06-03 Thread Sky
You're right! It does give %20 when I copy it and paste it in another
app.

Thanks.

On Jun 3, 9:35 am, Thomas Broyer  wrote:
> On 3 juin, 03:38, Sky  wrote:
>
> > History.newItem() and History.getToken() are supposed to
> > encodeURIComponent and decodeURIComponent respectively. I looked into
> > the implemented native methods and they sure appear to do that.
>
> > However, in FF 3.5 the encoding does not happen. My browser URL shows
> > normal spaces instead of %20.
>
> > In IE8 the encoding does happen.
>
> > Is this a big deal or what?
>
> It's just how the browser chooses to *display* the URL. Firefox
> chooses to make it more readable and user-friendly by %-decoding it.
> I'd expect it to give you a %20 when copying the URL to paste it into
> another app though.

-- 
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-tool...@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: Asynchronous callback

2010-06-05 Thread Sky
It depends how big your request and response objects that are being
send back and forth are. If they are single, relatively normal length
string messages going there and then back, then it's going to be very
inexpensive and very fast. In the situation where your messages are
fairly small like this, the biggest expense is simply PING time. I
just started using RPC callbacks with simple string messages and I
timed it at around (if I remember correctly) about 60-100ms; there and
back. Or maybe that was what I got when I pinged the server. I'm sure
my requests didn't go over 150ms. Anyways, the point is that it's
quite fast, YET having a delay of about 100ms IS very noticeable to
the user! So you should choose wisely and design carefully.

For example, if you want to validate some input sometimes you truly do
have to check it against a database and doing an async callback is
necessary, but if you are just making sure the input is an email and
want to tell the user really fast that it isn't an email address,
validate it on the client (any data saved on the server should be
validated again).

So just keep in mind that code run on the client is (unless you are
crunching through tons of data) going to run instantaneously to the
user, and that they can and will notice delays of 100ms. I certainly
do. The async callbacks would be more expensive if you are
transferring a lot of data, but that's pretty rare. I doubt a large
form with numerous inputs would add much more than a few ms on top of
a single string. But I haven't measured it.

cheers

On Jun 5, 12:44 am, rjcarr  wrote:
> It's a servlet request, just like any other request.  I don't think
> there is a tremendous amount of overhead ... the gwt framework just
> has to dispatch the request to the proper method and deserialize
> whatever you passed.
>
> Making a request is expensive in general, but I don't think rpc calls
> are substantially more expensive than any other request.  What you do
> to compose the response could be expensive, though.
>
> On Jun 2, 11:42 pm, Ren  wrote:
>
>
>
> > Hi Everyone.
>
> > How expensive is the Asynchronous callback to the Impl class?
> > Is it good practice to keep the asynchronous calls to a minimum?
>
> > I see it the same as using a custom taglib to perform an action on the
> > back end, example: checking permission before displaying a table or a
> > hyperlink.

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



Event Delegation: onBrowserEvent() is never called unless there is a handler attached

2010-06-12 Thread Sky
I have a FocusPanel that doesn't have any event handlers attached to
it. I override the FocusPanel's onBrowserEvent() but it never gets
called unless I add a specific handler to it.

What am I doing wrong? I thought the onBrowserEvent() gets called on
any and all Widgets regardless of whether it's even a Widget that can
have event handlers added to it.

-- 
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-tool...@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: CAPS Lock 0n/off

2010-06-12 Thread Sky
Ya, but the user might just be holding the shift key and is
intentionally entering capitol letters. The reality is that there
STILL is no way to directly detect in a browser whether the capslock
button is on/off.

However, I believe it is possible to deduce this logically depending
on whether the shift key is depressed or not. I researched this in the
past, and if I remember correctly the only event that CORRECTLY gives
the keycode in upper/lower case is the onKeyPress event. IOW, during
the onKeyDown and onKeyUp events the keycode ALWAYS gives capitol
letters, regardless of what the user typed.

So this solution is far from perfect because you can only do this
detection when the user types a key... you can't warn them before
they've even started typing. I don't think there is any way to
logically deduce that when they hit caps lock button to turn it off,
that they in fact did hit that button. So your warning won't go away
until they start typing regular characters again. Also, your logic
can't tell when they are entering non-alpha numeric keys, so your
warning may stay even longer depending on their password.

Do a google search for "javascript detect capslock" and you will find
JS that you can easily convert to GWT code, but as I've explained,
it's far from being very useful.

Not to mention detecting the shift key might be quirky across browsers
and OS's... I'm not sure. I just know that sometimes when I'm
detecting keys and I've done my research on compatibility that not
everything is consistently supported.

It's very very sad :(

On Jun 12, 11:40 am, aditya sanas <007aditya.b...@gmail.com> wrote:
> Hello,
>
> You can either register textbox with onkeyuphandler which will give access
> to each keycode entered by using that if character entered is from A-Z that
> you can check as A has value 65...
>
> In this way you can achieve what you are trying to do and to show a message
> you can use anything as per your requirement.
>
> I hope this will solve your issue.
>
> Cheers,
> --
> Aditya
>
>
>
> On Sat, Jun 12, 2010 at 2:53 PM, gopal  wrote:
> > I have some code for login page.
> > There are one dynamic have TextItem and PasswordItem.
>
> > Now when user enter some keys in this textitem or password field i
> > want to set warning for capsLock is on or off on both.
>
> > How can i set this?
>
> > Please give me some proper reply on this i m try to 2-3 days for this.
>
> > Please reply earliest.
>
> > Thanking 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: GMail attachment 'View' functionality accessible from GWT ?

2010-06-12 Thread Sky
No, it does not. GMail is opening it in Google Docs. They wrote their
own pdf reader that converts a pdf to html and display it in your
browser. You will have to do the same if you want to do that.

However, I believe most browsers can view pdfs if you have the Adobe
Reader installed. I suppose a simple anchor link to the actual pdf
file would allow the user to either download it or view it with the
browser in a new tab or something.

On Jun 11, 1:57 pm, Sebastien  wrote:
> Hi,
>
> when I'm sending a email with a pdf as attachment to my GMail account,
> GMail let me access to a "HTML version" of the PDF with following
> step : "view attachment" then "Plain HTML".
>
> Does the GWT SDK provides an API to do that? (e.g. somehow convert pdf
> to html either from a attachment from a email .. or other way)
>
> Thanks,
> Sebastien

-- 
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-tool...@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: Event Delegation: onBrowserEvent() is never called unless there is a handler attached

2010-06-12 Thread Sky
Solved.

Forgot to sinkEvents() in the constructor... my bad. It's been like a
year since I did custom event handling :P

cheers

On Jun 12, 12:48 pm, Sky  wrote:
> I have a FocusPanel that doesn't have any event handlers attached to
> it. I override the FocusPanel's onBrowserEvent() but it never gets
> called unless I add a specific handler to it.
>
> What am I doing wrong? I thought the onBrowserEvent() gets called on
> any and all Widgets regardless of whether it's even a Widget that can
> have event handlers added to it.

-- 
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-tool...@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: Flashing cells for FlexTable

2010-06-12 Thread Sky
Use the Timer class for doing that. It's super easy to create and
schedule Timers for doing asynchronous and delayed work like that.

Or you could even make it better by fading from one color to the next
color as an animation.

Just make a class extend the Animation class and you'll auto override
the necessary methods to change the color incrementally. It's pretty
easy.

On Jun 12, 11:52 am, aditya sanas <007aditya.b...@gmail.com> wrote:
> Hi,
>
> you can set particular styling for that cell for specific period of time say
> for 2 seconds and less than that and just remove this styling after that
> time.
>
> as flexttable has method as
> getFlexCellFormatter().setStyleName("");
>
> remove this style after 2 seconds.
>
> so user will be notified as there is new addition has been done.
>
> Cheers,
> --
> Aditya
>
>
>
> On Sat, Jun 12, 2010 at 12:31 PM, 82man  wrote:
> > Hi all,
>
> > I just started using GWT and so far its been pretty awesome. I am
> > trying to implement a table where if a value changes it will do a
> > flash ? For example, i have 3 cells and Cell A changes values , I
> > would like flash on that cell (background changes color etc) to show
> > the user that this particular cell has changed values.
>
> > Any idea how i can do that?
>
> > Cheers
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: Exception thrown when running on Google Chrome w ith compiler output style set to ‘OBF’

2010-06-12 Thread Sky
Ya, I would seriously suggest upgrading to the GWT 2.0.1 because so
many tiny little bugs have been fixed over all the releases. You'll
have to start a new project and copy your code over to deal with the
structure changes and other little stuff that changed in the project
since GWT 1.5. It's not very hard to convert an app to a new project
with a newer GWT. Most of the deprecated code still works I'm pretty
sure. Event listeners and all that still work.

gl ^_^

On Jun 12, 10:45 am, Thomas Broyer  wrote:
> On 11 juin, 23:05, elifarley  wrote:
>
>
>
>
>
> > I'd like to know if you guys have faced the same problem I'm facing,
> > and how you are dealing with it.
>
> > Sometimes, a small and harmless change in a Java class ensues strange
> > errors at runtime.
>
> > These errors only happen if BOTH conditions below are true:
>
> > 2) the application is run on Google Chrome, and
>
> > 1) the GWT JavaScript compiler output style is set to 'OBF'.
>
> > So, running the application on Firefox or IE always works.
> > Running with the output style set to 'pretty' or 'detailed' always
> > works, even on Google Chrome.
>
> > Here's an example of error message that I got:
>
> >     "((TypeError): Property 'top' of object [object DOMWindow] is not
> > a function stack"
>
> > And here's what I have:
> > - GWT 1.5.3
> > - GXT 1.2.4
> > - Google Chrome 4 and 5
> > - Windows XP
>
> > In order to get rid of this Heisenbug, I have to either deploy my
> > application without obfuscation or endure a time-consuming trial-and-
> > error process in which I re-implement the change in slightly different
> > ways and re-run the application, until the GWT compiler is happy with
> > my code.
>
> > Would you have a better idea on how to avoid this?
>
> Which GWT version are you using?
> This seems related 
> tohttp://code.google.com/p/google-web-toolkit/issues/detail?id=4117
> but it seems to me that this was fixed in GWT 1.6

-- 
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-tool...@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: where to define domain objects

2010-06-12 Thread Sky
Hi Denis.

I'm not going to be of much help, but I am curious and want to
understand what a "Domain Object" is. Is this supposed to be
essentially a global object for the web app that is not user dependent
but all layers need access to it's methods/members? TBH I haven't used
GWT for a fully layered web app, just for front end presentation with
just a tiny bit of basic GWT RPC (super simple, super easy) so I
haven't even dealt with objects that are shared across the server and
client but I've read other posts about them and it sounds powerful. I
look forward to using shared objects in my next project most likely.
So I'm just gonna guess your domain object should go in the shared
folder, maybe?

Regardless, gl with it all

On Jun 11, 3:45 pm, Denis  wrote:
> Hello,
>
> I am new to use GWT RPC.
> I am going to define a domain object which will map to a database
> table and be transported all across the layers from the data
> persistence to business logics and finally GWT presentation layer.
>
> The question is where should I define those domain objects? Inside the
> existing client/server/shared folders or add a new domain folder?
>
> Thanks.
> Denis

-- 
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-tool...@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: app engine with hosted mode

2010-06-12 Thread Sky
I dunno, it just works with Eclipse. A GWT project created in Eclipse
with AppEngine chosen for the server automatically runs the AppEngine
server and it all works beautifully.

lol, I should stick to answering threads specifically about the GWT ui
and widgets cuz that's what I'm pretty good at :P

On Jun 11, 10:23 pm, alexh  wrote:
> No one has tried this?
>
> On Jun 9, 9:12 pm, alexh  wrote:
>
>
>
> > Hi,
>
> > I am currently developing a GWT application that will run on Google
> > App Engine. I have chosen to use Maven and am running my application
> > from the command line for debugging and testing. What I would like to
> > be able to do is run my application in the GWT 2.0 hosted environment
> > but still initialize the App Engine runtime. Can someone help me out
> > with what I need to configure in order to make this happen? I'm
> > currently using gwt-maven-plugin in my pom.xml. Any help with this
> > would be greatly appreciated.
>
> > Thanks,
>
> > Alex

-- 
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-tool...@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: Help to find only clickable panel except focuspanel

2010-06-12 Thread Sky
Why do you want to remove the input box that is auto placed inside the
focus panel? It's hidden and can't be indexed by tabbing. I never
thought it was the case, but GWT claims that not all browsers support
all events on DIV elements and they provide a workaround by using the
hidden textbox (I don't know how the workaround works, but supposedly
it works).

In any case, I don't understand how a hidden textbox can interfere
with your code or the functionality of your website. If you just want
to remove it because you don't know why it is there, then you should
just leave it alone. If it is causing a problem, please be more clear
about what the problem is.

On Jun 12, 3:12 pm, Deepak Bammi  wrote:
> On Wed, Jun 9, 2010 at 10:04 AM, Deepak Bammi wrote:
>
>
>
> > Stefan,
>
> > Can you please help me to remove tab index from focuspanel ?
>
> > Regards,
> > Dev
>
> > On Mon, Jun 7, 2010 at 4:49 PM, stefan bachert 
> > wrote:
>
> >> Hi Deepak,
>
> >> I would prefer to discus in the gwt group.
> >> That may help other peoples, too and maybe other peoples have a good
> >> input, too.
>
> >> Stefan
>
> >> --
> >> *Von:* Deepak Bammi 
> >> *An:* Stefan Bachert 
> >> *Gesendet:* Montag, den 7. Juni 2010, 12:51:26 Uhr
> >> *Betreff:* Re: Help to find only clickable panel except focuspanel
>
> >> Stefan,
>
> >> Thanks for your support !
>
> >> Do you have gmail id ? can you share it with me so that i can explain you
> >> the problem more clearly if you really don't mind.
>
> >> Thanks again !
>
> >> Regards,
> >> Dev.
>
> >> On Tue, Jun 1, 2010 at 12:45 AM, Stefan Bachert 
> >> wrote:
>
> >>> Hi Deepak,
>
> >>> I tried your corrected code (I use g: instead of gwt, gwr).
> >>> However, no  are is created.
>
> >>> I am using FF. May this is a workaround for other browser.
> >>> Did you checked the issues?
>
> >>> --
>
> >>> container.getElement().getChild(container.getTabIndex()).removeFromParent()
> >>>  ;
>
> >>> Please provide your suggestions, is it a correct way to remove this
> >>> tabindex ?
> >>> 
>
> >>> The above may accidently work. Logically it is wrong. A tabIndex is in
> >>> general not a element child index.
>
> >>> Stefan Bachert
> >>>http://gwtworld.de
>
> >>> On 29 Mai, 20:27, Deepak Bammi  wrote:
> >>> > Hi Stefan,
>
> >>> > Thanks for your response.
>
> >>> > I'm using focuspanel to create a simple div element which is clickable
> >>> so
> >>> > that i can embed any widget.
>
> >>> > e.g
> >>> > Using UiBinder.
>
> >>> >  
> >>> >    
> >>> >                // Widget.
> >>> >    
> >>> >  
>
> >>> > The above code creates two div element (one for focuspanel and other
> >>> for
> >>> > flowpanel), but the focus panel will automatically inserts the textbox
> >>> > before the second div element into DOM and i want to remove this
> >>> textbox
> >>> > from fouspanel.
>
> >>> > I think now you will get the problem and if still you have any doubt
> >>> please
> >>> > feel free to share.
>
> >>> > Thanks,
> >>> > Dev
> >>> > On Sat, May 29, 2010 at 7:55 PM, Stefan Bachert <
> >>> stefanbach...@yahoo.de>wrote:
>
> >>> > > Hi Deepak,
>
> >>> > > I use focusPanel with a ClickHandler for the tab of an own TabPanel.
> >>> > > I don't understand what your problem is?
> >>> > > Did you also added a textbox into the focus panel?
>
> >>> > > Or do you call the focus marquise as "input box"?
> >>> > > When yes, remove the attribute "tabIndex".
> >>> > > (getElement().removeArribute())
>
> >>> > > Otherwise we need more information about your issue
>
> >>> > > Stefan Bachert
> >>> > >http://gwtworld.de
>
> >>> > > On 29 Mai, 11:55, Deepak Bammi  wrote:
> >>> > > > Hi All,
>
> >>> > > > I need a panel which is clickable.I found focuspanel but it has one
> >>> > > drawback
> >>> > > > in my case that it automatically embeds the input box which causes
> >>> a
> >>> > > problem
> >>> > > > for me.
>
> >>> > > > Please share to access the input box in the focus panel or to find
> >>> the
> >>> > > > clickable panel.
>
> >>> > > > Thanks,
> >>> > > > Dev
>
> >>> > > --
> >>> > > 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-tool...@googlegroups.com.
> >>> > > To unsubscribe from this group, send email to
> >>> > > google-web-toolkit+unsubscr...@googlegroups.com >>> > >  cr...@googlegroups.com>
> >>>  >>>  nsubscr...@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 >>>  cr...@googlegroups.com>
> >>> .
> >>> For more options, visit t

Re: Cross Site XML-HTTP?

2010-06-12 Thread Sky
You must have had a very old browser indeed to have been able to load
XML from a different server than what is in the browser's address bar
(which is the factor that determines whether a call triggers SOP or
not... it's always fine to set the src or anything (such as 

Re: Cross Site XML-HTTP?

2010-06-12 Thread Sky
The iframe method mentioned above by Kerem won't work for cross site
scripting. That's only useful for doing callbacks to the same server
because the code "window.parent.handleResponse()" being ran by the
iframe won't work since browsers SOP also applies to iframes. If the
src of the iframe is from a different domain, the iframe won't be able
to access any code in the parent frame. That method is just a
convoluted way of doing the exact same thing XMLHTTPRequest does. Both
ways can be used to talk to server A and have server A be a proxy to
server B.

JSONP is the only way to do cross site scripting without a proxy.

cheers.

On Jun 12, 6:47 pm, Sky  wrote:
> You must have had a very old browser indeed to have been able to load
> XML from a different server than what is in the browser's address bar
> (which is the factor that determines whether a call triggers SOP or
> not... it's always fine to set the src or anything (such as 

Re: Bookmarklet with GWT

2010-06-12 Thread Sky
I quickly checked out the link to http://translatebookmarklet.appspot.com/
I have not tried using the actual app yet, but I see several things
that could be improved from the start.

The bookmarklet code:
javascript:(function(){
if(document.getElementById('GTranslatorscript')==null){
gtb=document.createElement('SCRIPT');
gtb.type='text/javascript';
gtb.id='GTranslatorscript';
gtb.src='http://translatebookmarklet.appspot.com/gtb.js';
document.getElementsByTagName('head')[0].appendChild(gtb);
}else{
window.alert('GTranslator is already loaded!');}
})();"

You should NOT user the alert() to tell the user that it is already
loaded. That's just annoying. Just don't do anything if it's already
loaded.

Your youtube video needs audio to explain what you are doing, and more
zooming in to see what you are typing... I couldn't tell exactly what
was going on.

Your homepage needs to be really cleaned up and made more professional
"Bookmarklet gonna save your language preferences" <- using the word
"gonna" is terrible!

Sorry, I don't have time right now to check out the actual product.
Maybe later. Just remember, first impressions are incredibly
important... including to get my interest to check it out and give you
feedback. I'd be much more willing to look for bugs and problems if it
seemed like you had a finished product made to look real professional.

gl and sry for only negative feedback if the app works like it's
supposed to then I bet it's awesome, so good job and keep up the hard
work!

cheers ^_^

On Jun 12, 6:55 pm, KeremTiryaki  wrote:
> Hello
>   I have developed a translate bookmarklet with gwt.
> Could you please try and send some feedback 
> about?http://translatebookmarklet.appspot.com/
>
> Its server side is app engine
> I have usedhttp://code.google.com/p/google-api-translate-java/
> JSONP for cross-domain communication.
> It listens mouse selection and keyboard for rapid results. also saves
> the user preferences, If user logged.

-- 
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-tool...@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: Bookmarklet with GWT

2010-06-12 Thread Sky
Oh, also, I'm SUPER wary of actually running that bookmarklet because
of the fact it is injecting javascript directly into whatever page I
am viewing. This compromises all security if you ever put malicious
code in your app. Not only is there the issue of you being able to
know what sites I visit and bookmark, but you have the power to get my
passwords and credit card numbers if you wanted to and if I clicked on
your bookmarklet on a page that I enter such information.

So I don't know how many users are going to be willing to trust your
app. I don't think I will unless myself or another third party goes
through your code to be sure you aren't trying to get data from input
fields. It would be different if you were a big, well known company
providing this app. If google, yahoo, MS, or even much smaller
companies were offering this, then it could be trusted because no well
established company is going to publish malicious code without reaping
huge consequences.

my 2 cents.

On Jun 12, 7:17 pm, Sky  wrote:
> I quickly checked out the link tohttp://translatebookmarklet.appspot.com/
> I have not tried using the actual app yet, but I see several things
> that could be improved from the start.
>
> The bookmarklet code:
> javascript:(function(){
>         if(document.getElementById('GTranslatorscript')==null){
>                 gtb=document.createElement('SCRIPT');
>                 gtb.type='text/javascript';
>                 gtb.id='GTranslatorscript';
>                 gtb.src='http://translatebookmarklet.appspot.com/gtb.js';
>                 document.getElementsByTagName('head')[0].appendChild(gtb);
>         }else{
>                 window.alert('GTranslator is already loaded!');}
>         })();"
>
> You should NOT user the alert() to tell the user that it is already
> loaded. That's just annoying. Just don't do anything if it's already
> loaded.
>
> Your youtube video needs audio to explain what you are doing, and more
> zooming in to see what you are typing... I couldn't tell exactly what
> was going on.
>
> Your homepage needs to be really cleaned up and made more professional
> "Bookmarklet gonna save your language preferences" <- using the word
> "gonna" is terrible!
>
> Sorry, I don't have time right now to check out the actual product.
> Maybe later. Just remember, first impressions are incredibly
> important... including to get my interest to check it out and give you
> feedback. I'd be much more willing to look for bugs and problems if it
> seemed like you had a finished product made to look real professional.
>
> gl and sry for only negative feedback if the app works like it's
> supposed to then I bet it's awesome, so good job and keep up the hard
> work!
>
> cheers ^_^
>
> On Jun 12, 6:55 pm, KeremTiryaki  wrote:
>
>
>
> > Hello
> >   I have developed a translate bookmarklet with gwt.
> > Could you please try and send some feedback 
> > about?http://translatebookmarklet.appspot.com/
>
> > Its server side is app engine
> > I have usedhttp://code.google.com/p/google-api-translate-java/
> > JSONP for cross-domain communication.
> > It listens mouse selection and keyboard for rapid results. also saves
> > the user preferences, If user logged.

-- 
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-tool...@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 HTTP GET function

2010-06-12 Thread Sky
That won't be very helpful either. The issue is that the call is
happening asynchronously and you have no idea when it's going to come
back with the server response. The idea is that your
onResponseReceived() method calls a some other method, passing the
response. So whatever object needs the response should have a public
method that is called in the onResponseReceived() method.

Make sense?

On Jun 11, 1:43 pm, Jeff Chimene  wrote:
> On 06/10/2010 08:55 AM, Andy wrote:
>
>
>
>
>
> > public void doGet(String myurl) {
>
> >         myurl = URL.encode(myurl);
>
> >         RequestBuilder builder = new
> > RequestBuilder(RequestBuilder.GET, myurl );
>
> >         try {
> >           Request request = builder.sendRequest(null, new
> > RequestCallback() {
> >             public void onError(Request request, Throwable exception)
> > {
> >                    Window.alert("ERROR. Could not connect to server.");
> >             }
>
> >             public void onResponseReceived(Request request, Response
> > response) {
> >               if (200 == response.getStatusCode()) {
> >                     String ServerResponse = response.getText();
>
> >               } else {
> >                      Window.alert("ERROR. Errorcode: " +
> > response.getStatusCode());
> >               }
> >             }
> >           });
>
> > How can i make this function return SereverResponce variable?
>
> You can't. It's a void function. Stash the response in a private
> variable and define a getter for that variable.

-- 
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-tool...@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: Efficient GWT Client-Server Communication methodology

2010-06-12 Thread Sky
I don't know anything about the Itemscript libraries that bill posted
about, but I took a quick glance and it looks worthwhile
investigating. Personally, I suspect that GWT-RPC does not have more
bandwidth overhead but there would be a tad bit more processing
overhead on both the client and server, so sticking with GWT-XML/JSON
is the most lightweight, however I think your design and
implementation for this is the most critical.

I have three major suggestions.

First, IF the data is not dependent on later rows and you merely want
to display the data or make calculations for individual rows or
certain groups then I highly suggest you break it up into numerous
async calls for the data. Get the first 100 rows and then the next
100, continuously. If you can't use any of the data until it's all
there... well it might still be worth breaking it up because an async
call can fail or be interrupted partway through... if the 100th call
fails for some obscure reason you can just repeat the call
indefinitely to continue... thus you won't have lost the first 99
calls of data.

Second, I seriously suggest using compression if the data is mostly
text. It's not hard at all to write a good lossless compression
program using Huffman coding in any language... I'm sure it would be
possible to do it in JavaScript (or GWT) and I'm sure the code would
not be large. I wrote a simple Huffman compression app a couple years
ago in University, it was easy and small. Then you can compress the
data on the server, send it and uncompress it on the client. That
would be awesome! Text can be compressed anywhere from 30%-60%+. That
will directly translate into speed!

Third, whatever you do, don't be sending any kind of html, css or
other UI bits along with that data! (This is assuming you are
displaying some of the contents of the database) You can use logic to
build the UI instead of repeatedly sending data that is surrounded
with html tags.

Goodluck!

On Jun 11, 12:58 pm, bill braasch  wrote:
> Check out the Itemscript libraries.  http://code.google.com/p/itemscript/
> Itemscript includes a JSON RPC with cross platform Java / GWT
> libraries.
>
> There's also an in memory database you might find useful for managing
> the client side.
>
> Bill

-- 
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-tool...@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: Bookmarklet with GWT

2010-06-13 Thread Sky


On Jun 13, 8:27 am, Thomas Broyer  wrote:
> The issue with bookmarklets injecting scripts, is that they can
> "become evil" without your bookmarklet code changing (this is also an
> advantage, as the bookmarklet somehow "updates" itself just as any web
> app).

Indeed, since they are injecting code, they only have to change the JS
code and the bookmarklet becomes "updated".

So ya, I seriously have a hard time trusting a bookmarklet unless it
comes from a legit and well established business. The worst a legit
biz is going to do is do data mining on the things I do... they aren't
going to steal my passwords and credit cards.

Dino, all you have to do is drag his GTB link into the bookmark area
to create a bookmarklet in the Chrome browser. I don't know if any
other browsers support bookmarklets yet. It's got nothing to do with
creating a gwt project.

-- 
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-tool...@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 Simulate KeyPress

2010-06-14 Thread Sky
Lex, here's a thought: can you determine which Widget or DOM element
that you want to gain focus when the user hits ENTER? If you can,
don't bother creating that event, just talk directly to the widget or
the DOM element through JSNI and give it focus. I don't know why your
solution doesn't work, but I think setting the focus on something is
the better approach. Not sure though for your specific situation.

gl

On Jun 14, 3:13 pm, Lex  wrote:
> I have a question related to this.
>
> I have a KeyPressHandler in the TextBox. When the user presses
> "Enter", I want to simulate it as "Tab".
>
> I have added the necessary code to capture the 'Enter" event, and then
> I fire the new event using the DomEvent.fireNativeEvent.
>
> NativeEvent tabEvent = Document.get().createKeyPressEvent(false,
> false, false, false, 9, 9);
> DomEvent.fireNativeEvent(tabEvent, textBox);
>
> What I am hoping to see is the 'tabbing' of the current cursor to the
> next Focusable widget, but it doesn't seem to happen.
>
> What am I missing?
>
> It basically re-enteres the KeyPressHandler since this is the widget
> that is being fired. In short, I need the way to suppress the current
> KeyPressHandler and have the Browser level KeyPressHandler of the
> 'tabbing' to occur.
>
> Any help is appreciated.
>
> Regards
>
> On May 5, 11:01 am, Thomas Broyer  wrote:
>
>
>
> > On May 4, 9:43 pm, Lukas Laag  wrote:
>
> > > It is possible to generate events programmatically in JavaScript. This
> > > page gives a good overview of the topic, includingkeyevents (look
> > > for 'Manually firing events'):
>
> > >http://www.howtocreate.co.uk/tutorials/javascript/domevents.
>
> > > I do not know if generating atabevent like this in a JSNI method
>
> > you actually don't need JSNI: just use Document.get().createXxxEvent()
> > and DomEvent.fireNativeEvent().
>
> > > would solve your focus problem.
>
> > I doubt it would, otherwise people would have proposed it as a
> > workaround:http://stackoverflow.com/questions/2398528/set-textbox-focus-in-mobil...
>
> > (note: according to "the web", it's a bug in WebKit)
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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-tool...@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 Simulate KeyPress

2010-06-14 Thread Sky
I can understand that. I am going to hazard a guess that firing an
event and setting the value of the keycode to the TAB key likely is
only useful for any code that Handles such a keystroke... it won't
actually invoke the Tab keypress event in and of itself. Course, this
is just a guess, I don't know and I'm not going to spend the time
right now to try to do it myself. It is interesting and I would like
to know the truth myself, it just sucks how time is so rare, I wish I
had a lot more of it :(

Hopefully you can make the design so it can nicely keep track of what
widgets are where or just do a search to find the next one. I'm sure
you can do it without too much work.

gl :)

On Jun 14, 9:48 pm, Se Hee Lee  wrote:
> Thanks for your input.
>
> Yes. I know such solution works, but since the order of the widget isn't
> consistent and changes every time the screen is rendered, I need to perform
> some calculation to figure out the next widget with higher tab index to get
> focus.
>
> I was hoping that by firing a key press event with the tab, it would
> naturally position to the Focusable widget with next tab index
> automatically, in much simpler and concise manner.
>
>
>
>
>
> On Mon, Jun 14, 2010 at 9:50 PM, Sky  wrote:
> > Lex, here's a thought: can you determine which Widget or DOM element
> > that you want to gain focus when the user hits ENTER? If you can,
> > don't bother creating that event, just talk directly to the widget or
> > the DOM element through JSNI and give it focus. I don't know why your
> > solution doesn't work, but I think setting the focus on something is
> > the better approach. Not sure though for your specific situation.
>
> > gl
>
> > On Jun 14, 3:13 pm, Lex  wrote:
> > > I have a question related to this.
>
> > > I have a KeyPressHandler in the TextBox. When the user presses
> > > "Enter", I want to simulate it as "Tab".
>
> > > I have added the necessary code to capture the 'Enter" event, and then
> > > I fire the new event using the DomEvent.fireNativeEvent.
>
> > > NativeEvent tabEvent = Document.get().createKeyPressEvent(false,
> > > false, false, false, 9, 9);
> > > DomEvent.fireNativeEvent(tabEvent, textBox);
>
> > > What I am hoping to see is the 'tabbing' of the current cursor to the
> > > next Focusable widget, but it doesn't seem to happen.
>
> > > What am I missing?
>
> > > It basically re-enteres the KeyPressHandler since this is the widget
> > > that is being fired. In short, I need the way to suppress the current
> > > KeyPressHandler and have the Browser level KeyPressHandler of the
> > > 'tabbing' to occur.
>
> > > Any help is appreciated.
>
> > > Regards
>
> > > On May 5, 11:01 am, Thomas Broyer  wrote:
>
> > > > On May 4, 9:43 pm, Lukas Laag  wrote:
>
> > > > > It is possible to generate events programmatically in JavaScript.
> > This
> > > > > page gives a good overview of the topic, includingkeyevents (look
> > > > > for 'Manually firing events'):
>
> > > > >http://www.howtocreate.co.uk/tutorials/javascript/domevents.
>
> > > > > I do not know if generating atabevent like this in a JSNI method
>
> > > > you actually don't need JSNI: just use Document.get().createXxxEvent()
> > > > and DomEvent.fireNativeEvent().
>
> > > > > would solve your focus problem.
>
> > > > I doubt it would, otherwise people would have proposed it as a
> > > > workaround:
> >http://stackoverflow.com/questions/2398528/set-textbox-focus-in-mobil...
>
> > > > (note: according to "the web", it's a bug in WebKit)
>
> > > > --
> > > > 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > > > For more options, visit this group athttp://
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> "Everything should be made as simple as possible, but not simpler."
>
> - Albert Einstein

-- 
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-tool...@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: DockLayoutPanel inside a ScrollPanel

2010-06-15 Thread Sky
If i'm not mistaken you may be running into essentially the same kind
of dilemma I've had to deal with. My site doesn't use a DocLayoutPanel
cuz I made this part of my site long before layout panels existed in
GWT, but I think some of my divs are the same thing as layout panels.
I use css styling; position:absolute along with specific top, right,
bottom, left coords to make a panel that takes up all the the
remaining width and height left in the page. The internal divs are
absolute and set with width and height at 100% and that seems to be
enough to create scroll bars if the contents are larger than the
container. I do actually have the second inner div with overflow set
to auto, but I'm playing with the CSS right now and having that (the
overflow css) NOT set doesn't change the scrollbar or anything. I
guess I don't need it...

So... is my assumption that LayoutPanels have position:absolute and
the four directions set to 0px (or whatever value) correct? If so,
maybe that panel can gain scrollbars by making inner panels have
position:absolute and height:100% as well?

I'm not entirely sure, though I'm sure I could figure it out if I
played with the css on your site. Or you can just use a DOM inspector
on my site at http://subtabs.skystrider.com and see how I accomplish
it.

hope that helps a little bit :)

On Jun 15, 3:25 pm, Gal Dolber  wrote:
> You need to set the docklayoutpanel's height and width.
>
> 2010/6/14 Elben Shira 
>
>
>
> > Hi,
>
> > I have a layout defined by:
> > - ...
> >  - ScrollPanel
> >    - DockLayoutPanel
> >      - north
> >      - west
> >      - center
> >      - east
>
> > The problem is that the dock layout panel is cut off from the window;
> > the scroll bars don't appear. I can force the scroll bars to appear by
> > setting the height of both panels to some pixel, but this is obviously
> > not a useful solution.
>
> > Any hints?
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: exchange image by browser

2010-06-15 Thread Sky
I personally prefer to keep logic in the application's language. I
like to keep CSS for just styling and keep all my logic in JS. Is
there a particular reason you can't just use JS to detect which
browser is running and then grab the right ImageResource for the job
(in this case you then need one ImageResource for each browser)? Of
course, you don't have to comply with my own standards and as such you
would need to use conditional css as was kindly mentioned by fmod.

:)

On Jun 15, 7:38 pm, fmod  wrote:
> I did not try myself, but I think you need conditional 
> css.http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm...
>
> On Jun 15, 11:27 am, Stefan Bachert  wrote:
>
>
>
> > Hi,
>
> > I would like to use ClientBundle and ImageResource.
> > But I would like to supply different images (under the same name) by
> > browser.
>
> > Does anyone have an idea how this could be achieved easily?
>
> > Stefan Bacherthttp://gwtworld.de

-- 
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-tool...@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 play embedded videos on GWT

2010-06-15 Thread Sky
You might have to take up that issue with bramosystems, whoever that
is, cuz I don't have that package and even if the source was visible
we wouldn't be able to change it even if we could find the
problem...unless it's open source.

On Jun 15, 8:11 pm, Bruno Lopes 
wrote:
> Hi,
>
> I am using 
> com.bramosystems.oss.player.flat.client.FlatVideoPlayer %98%82=Padroes/war%5C/WEB-INF%5C/lib%5C/bst-player-api-1.0.jar%3Ccom.bramos 
> ystems.oss.player.flat.client(FlatVideoPlayer.class%E2%98%83FlatVideoPlayer >
> .FlatVideoPlayer
>
> to play videos but it seems not working on firefox and safari on MAC OS
>
> any idea ?

-- 
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-tool...@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: History and server call.

2010-06-15 Thread Sky
Well, I don't know about the event bus and I have yet to watch that
GWT best practices video (but I really should!) and I haven't done MVP
with GWT, BUT I'm super creative so here's what I would do with your
situation! :D

I would have an object that is rather more aware of the all
recoverPanelFromHistory async actions going on. This object would
store a copy of each other object that is performing the
recoverPanelFromHistory for a specific panel. (in other words a list
of objects that have the method(s) controlling all that async
goodness) The code inside recoverPanelFromHistory() that does the
async data retrieval from the server would talk back to this object,
which is the "owner". It tells the Owner that it's finished getting
the data (even when it already had the data cached). Every time the
owner gets told that one of it's "subjects" finished getting data it
checks to see if that was the last "subject" to get it's data, and if
so it talks to the mainContentPanel and gets it to do it's view change
(clear and add). Inside the recoverPanelFromHistory code you can do
your repeatedly trying to obtain the data and even if you don't get
the data until a day later when the user finally reconnects your code
will be able to continue on no prob.

Did that make sense? It makes sense in my head, so if it doesn't make
perfect sense to you ask me to clarify things and I'll do my best!

You'll have to do some refactoring... the code inside
recoverPanelFromHistory() that does the depth search through all
children and fires recoverPanelFromHistory() on all children and their
children you'll want to still happen at the place where you currently
call recoverPanelFromHistory() from the top of the tree... BUT you'll
want to refactor the code that does the data cache check and then
calls the async-data-get out of that method. The depth search of all
children will add each child (aka "subject") to the Owner object.
After the Owner knows about all of it's subjects it then loops through
and calls the recoverPanelFromHistory() code which does the data cache
check and asyn-data-get goodness. This way the owner doesn't think
it's done loading just cuz the first subject added has it's data
cached and immediately tells the owner before any other subjects have
been added. did that make sense?

btw, did I just invent an event bus?

cheers! ^_^

On Jun 15, 8:23 pm, fmod  wrote:
> Using the event bus may help 
> there.http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
> and the two 
> articleshttp://code.google.com/webtoolkit/articles/mvp-architecture.html
>
> On Jun 15, 9:14 am, ping2ravi  wrote:
>
>
>
> > Hi Guys,
> > I have just implemented a multipage(basically multi url) website using
> > History. It works great using history token. But i need something else
> > from GWT which i am not able to solve.
> > Now when user clicks on something(link/button etc) i add the token to
> > History and my history callbacks get called.
> > Now in history value change handler i do something like this
>
> > 1) FInd out what page need to be dispalyed(basically identify the
> > panels etc).
> > 2) now each of my panel which can have history implementing
> > hasHistory(my own) interface, which has function
> > recoverPanelFromHistory.
> > 3) In this function, i check if i have client side data cahced for
> > this panel, if yes then load it into panel and display it(basically
> > add to main panel widget tree).
> > 4) But if no cache data found then go to server and get data.
>
> > one such implementation
> > @Override
> >         public boolean recoverPanelFromHistory(Map
> > historyTokens) {
> >                 String page = historyTokens.get(PAGE_PARAM);
> >                 boolean returnValue = false;
> >                 if("home".equalsIgnoreCase(page))
> >                 {
> >                         returnValue =
> > userHomePanel.recoverPanelFromHistory(historyTokens); //and this
> > function will calls its child panels if they support history
> >                         if(returnValue )
> >                         {
> >                                 mainContentPanel.clear(); //clearing the 
> > mainPanel view of client
> >                                 mainContentPanel.add(userHomePanel); //and 
> > adding the view
> > according to history token value
> >                         }
> >                       else
> >                       {
> >                            //dont change the browser view and stay at
> > current panel/view/page. This also means child panel can not be
> > recovered and there must be some problem with history tokens provided.
> >                       }
>
> >                 }
> >                 if("profile".equalsIgnoreCase(page))
> >                 {
> >                         returnValue =
> > prodilePanel.recoverPanelFromHistory(historyTokens); //and this
> > function will calls its child panels if they support history
> >                         if(returnValue )
> >            

Re: History and server call.

2010-06-16 Thread Sky
Hey Tristan. I am somewhat familiar with MVP frameworks as I've worked
on projects using MVP in IT but I've never dealt with "place services/
managers", local caches or event buses. Caches and event buses I can
at least imagine them cuz those words say a lot in themselves, but I
have no idea what place services/managers are and I did a couple quick
google searches for "mvp place services", "mvp place managers", "mvp
activity mangers" and didn't find any useful guides.

Is the GWT MVP guide sufficient to look into these things? Do you have
any recommendations of some online info so I can learn more?

Thanks ^_^

On Jun 16, 10:18 am, Ravi Sharma  wrote:
> Event bus looks to be promising and can solve this problem. Will try
> it and see how much it can help. But first need to use MVP in my
> project
>
> Thanks
> Ravi.
>
> On Jun 16, 2:23 am, fmod  wrote:
>
>
>
> > Using the event bus may help 
> > there.http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
> > and the two 
> > articleshttp://code.google.com/webtoolkit/articles/mvp-architecture.html
>
> > On Jun 15, 9:14 am, ping2ravi  wrote:
>
> > > Hi Guys,
> > > I have just implemented a multipage(basically multi url) website using
> > > History. It works great using history token. But i need something else
> > > from GWT which i am not able to solve.
> > > Now when user clicks on something(link/button etc) i add the token to
> > > History and my history callbacks get called.
> > > Now in history value change handler i do something like this
>
> > > 1) FInd out what page need to be dispalyed(basically identify the
> > > panels etc).
> > > 2) now each of my panel which can have history implementing
> > > hasHistory(my own) interface, which has function
> > > recoverPanelFromHistory.
> > > 3) In this function, i check if i have client side data cahced for
> > > this panel, if yes then load it into panel and display it(basically
> > > add to main panel widget tree).
> > > 4) But if no cache data found then go to server and get data.
>
> > > one such implementation
> > > @Override
> > >         public boolean recoverPanelFromHistory(Map
> > > historyTokens) {
> > >                 String page = historyTokens.get(PAGE_PARAM);
> > >                 boolean returnValue = false;
> > >                 if("home".equalsIgnoreCase(page))
> > >                 {
> > >                         returnValue =
> > > userHomePanel.recoverPanelFromHistory(historyTokens); //and this
> > > function will calls its child panels if they support history
> > >                         if(returnValue )
> > >                         {
> > >                                 mainContentPanel.clear(); //clearing the 
> > > mainPanel view of client
> > >                                 mainContentPanel.add(userHomePanel); 
> > > //and adding the view
> > > according to history token value
> > >                         }
> > >                       else
> > >                       {
> > >                            //dont change the browser view and stay at
> > > current panel/view/page. This also means child panel can not be
> > > recovered and there must be some problem with history tokens provided.
> > >                       }
>
> > >                 }
> > >                 if("profile".equalsIgnoreCase(page))
> > >                 {
> > >                         returnValue =
> > > prodilePanel.recoverPanelFromHistory(historyTokens); //and this
> > > function will calls its child panels if they support history
> > >                         if(returnValue )
> > >                         {
> > >                                 mainContentPanel.clear(); //clearing the 
> > > mainPanel view of client
> > >                                 mainContentPanel.add(profilePanel); //and 
> > > adding the view
> > > according to history token value
> > >                         }
> > >                       else
> > >                       {
> > >                            //dont change the browser view and stay at
> > > current panel/view/page. This also means child panel can not be
> > > recovered and there must be some problem with history tokens provided.
> > >                       }
>
> > >                 }
> > >                 return returnValue;
>
> > >         }
>
> > > So till now theoretically it sounds good and works good.
>
> > > Problem starts when lets say user lost his Internet connection or call
> > > fail at server because of any system level error..
>
> > > userHomePanel.recoverPanelFromHistory(historyTokens);
>
> > > This function does following things.
> > > 1) get the data from cache for this panel
> > > 2) if found call loadDataIntoPanel(data) function and load it into
> > > panel and return true.
> > > 3)  else call the server to get data.
> > >     Now server call is async and I need to return some value from
> > > userHomePanel.recoverPanelFromHistory(historyTokens);, so if i return
> > > true and call fails at server because of some network problem

Re: GWT and CSS

2010-06-16 Thread Sky
!important doesn't work to override font-family style. GWT's
standard.css has font-family defined for body, table td, select, so I
just wrote my own definition in my .css file for those same elements
and used my own fonts. That was the only way to gain control again.
Before I did that, the only way to make text have the font-family I
desired was to specify font-family directly in the element (div) that
directly contained the text. It wouldn't work if I set font-family for
a div that contained multiple other divs that each contained text. Not
even if I used !important.

That frustrated me sooo much!

On Jun 16, 2:16 pm, Danny Goovaerts  wrote:
> Magnus,
>
> standard.css is "added" after your style sheets are loaded. Unless
> your style definitions are more selective that the definitions in
> standard.css, the definitions in standard.css take precedence.
> There are to possible solutions
>
> - make your selectors more precise(googleon css priority for detailed
> descriptions, much better that I could do here)
> - mark your style definition as !important, for example, that's how I
> override the settings for .gwt-button
>
> .authenticate-button {
>   background: white none  !important ;
>   margin:2px !important;
>
> }
>
> Danny
>
> On Jun 16, 8:54 pm, Magnus  wrote:
>
>
>
> > Hi Sven,
>
> > I think that's an issue for me. When I use addStyleName with padding/
> > margin, it has no effect. I guess it's overwritten. However, copying
> > the standard.css sounds not nice to me. Isn't there another
> > (programmatical) solution?
>
> > Magnus
>
> > On Jun 16, 1:35 pm, Sven  wrote:
>
> > > Hi Magnus,
>
> > > > So what is the way one should use CSS? Is it possible to "inherit" a
> > > > style into another style, e. g. "my-button" inherits "gwt-Button", so
> > > > that I just add my adjustments?
>
> > > just try to use addStyleName() instead of setStylePrimaryName(). By
> > > this you preserve the default standard.css styling of your elements
> > > and you can add additional formatting. More specific, the button would
> > > still have the class gwt-Button followed by your specific class which
> > > you can add to any CSS file linked in the main page.
>
> > > However, as GWT adds its standard.css as last css file you may still
> > > experience strage overruling of your styles (using Firebug helps to
> > > understand what is overruled by what).
>
> > > If that standard.css overruling is an issue for you, my blog post
> > > "GWT's standard.css killed my page layout" may help you:
>
> > >    
> > > http://ililiililililii.blog.de/2010/05/12/gwt-s-standard-css-killed-m...
>
> > > Sven

-- 
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-tool...@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: parsing library for the client side

2010-06-16 Thread Sky
Man, that just sounds kickass! Infinitely better than writing your
parser code twice in two different languages and any time you fix a
bug or add functionality needing to do it twice. Man, if that works
that smoothly you guys will be sooo happy!

Isn't that just exciting! woot :)

On Jun 16, 2:06 pm, Sripathi Krishnan 
wrote:
> Hi Laurent,
>
> You actually have an interesting idea, something I have been thinking about
> for a different context for sometime.
>
> I haven't used ANTLR before, I prefer JAVACC. When I analysed javacc
> generated code, most of it was plain java that GWT could easily convert to
> Javascript. The only classes that needed modifications were the ones that
> read from the File/InputSteam. In the case of javacc, they were just 2 java
> classes that are standard across all javacc projects. So, it should be
> possible to replace those classes with a client specific class that reads
> from textarea.
>
> I suspect when you analyse the antlr generated code, it will follow the same
> pattern. So, it should be possible to parse your "language" on the client
> side without having to make network calls. If latency/user-responsiveness is
> an issue, its definitely a good thing to do.
>
> --Sri
>
> On 16 June 2010 21:54, Stefan Bachert  wrote:
>
>
>
> > Hi Laurent,
>
> > I did not use antlr, yet. However, antlr generates java code and as
> > far it generates ALL, the GWT compiler probably translates generated
> > javacode to javascript.
> > I would just give them a try.
>
> > Stefan Bachert
> >http://gwtworld.de
>
> > On Jun 16, 3:02 pm, Laurent PETIT  wrote:
> > > Hello,
>
> > > I must create a rich editor. We have a custom language, and our
> > > customers will be able to edit "sentences" of this language in their
> > > browser.
> > > Now, on the server side, we already have antlr stuff to parse the
> > language.
>
> > > I'm contemplating whether I should try to reuse to the maximum the
> > > existing stuff, at the (probable) cost of more client/server
> > > communications to benefit from the parser's functionality (hopefully
> > > the client side editor will be "structured") ;
> > > or whether I should rewrite a parser (by hand or with the help of a
> > > third party library which could run on GWT client code) for my client
> > > side ...
>
> > > Any comments / suggestions ?
>
> > > Thanks in advance,
>
> > > --
> > > Laurent
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@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-tool...@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: Pass a Java Object between to Opener Window

2010-06-16 Thread Sky
I'm not really sure... but you could try passing the static field
directly into the native method onWindowClosing and then pass it into
the callback method...

Sorry I can't help more than that... :(

On Jun 16, 12:21 pm, keyvez  wrote:
> Hi,
>
> I am trying to pass a custom Java object to the another window to
> which I have a reference using $wnd.opener.
>
> When I call $wnd.opener.callback(); or $wnd.opener.callback('string'),
> it works, however, when I pass
> $wnd.opener.callback(@com.package.Class::staticField), the staticField
> is received as null by callback.
>
> Here's my code:
>
> Main Window:
>
> -
>     public native void registerCallback() /*-{
>         $wnd.callback =
> $entry(@com.application.web.client.Tv::javaCallback(Lcom/application/
> web/model/User;));
>     }-*/;
>
>     public static void javaCallback( User registeredUser ) {
>
>         Window.alert(Boolean.toString(registeredUser == null));
>         Window.alert(user.getFirstname());
>
>     }
> -
> Child Window:
> -
>      Window.addWindowClosingHandler(new ClosingHandler() {
>
>             @Override
>             public native void onWindowClosing( ClosingEvent event ) /
> *-{
>                if($wnd.opener != null) {
>                     alert('sending request');
>                     var obj =
> @com.application.web.authentication.OAuth::registeredUser;
>                     $wnd.opener.callback(obj);
>                }
>             }-*/;
>       });
> -
>
> Any help is appreciated.
>
> Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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.



Style.setProperty("background", ...) not working in IE7

2010-06-17 Thread Sky
Hi, I've got some custom code that takes a Widget, an ImageResource
and a RepeatStyle and puts that image as the background for that
widget. It works perfectly in IE8, FF, and Chrome, but it does not
work in IE7. The data appears to get messed up in the
Style.setProperty() method for the attribute "background".

In the latest browsers it is using Data URLs for the css background,
but in IE7 it is using normal URLs (ImageResource.getURL() abstracts
this process from me).

An example of the problem is that ImageResource.getLeft() returns the
int value 302 and my code builds the string "url("abcd.cache.png") 302
20 no-repeat" but when I use IE's DOM inspector the string is
"url(abcd.cache.png") #302 no-repeat 20px".

So the Style.setProperty() is changing my values... it added '#', "px"
and moved "no-repeat" in front of the "20px"... how and why and how
can I fix this?

You can see IE7 mess up the On/Off buttons on this page:
http://subtabs.skystrider.com/#stpID1tab2as1pnOptions/General%20Options

See below for my code:

-- 
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-tool...@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: Style.setProperty("background", ...) not working in IE7

2010-06-17 Thread Sky
public static void setBGImage(Widget w, ImageResource img, RepeatStyle
repeatStyle){
String background =
"url(\"" + img.getURL() + "\") " +
img.getLeft() + " " +
img.getTop()
;

if (repeatStyle == RepeatStyle.None
|| repeatStyle == RepeatStyle.Horizontal) {
w.setHeight(img.getHeight() + "px");
}

if (repeatStyle == RepeatStyle.None || repeatStyle ==
RepeatStyle.Vertical) {
w.setWidth(img.getWidth() + "px");
}

if(repeatStyle != RepeatStyle.None){
w.getElement().getStyle().setProperty("overflow", "hidden");
}

String repeatText;
switch (repeatStyle) {
  case None:
repeatText = " no-repeat";
break;
  case Horizontal:
repeatText = " repeat-x";
break;
  case Vertical:
repeatText = " repeat-y";
break;
  case Both:
repeatText = " repeat";
break;
  default:
throw new RuntimeException("Unknown repeatStyle " + repeatStyle);
}
    background += repeatText;

w.getElement().getStyle().setProperty("background", background);
}


On Jun 17, 4:43 pm, Sky  wrote:
> Hi, I've got some custom code that takes a Widget, an ImageResource
> and a RepeatStyle and puts that image as the background for that
> widget. It works perfectly in IE8, FF, and Chrome, but it does not
> work in IE7. The data appears to get messed up in the
> Style.setProperty() method for the attribute "background".
>
> In the latest browsers it is using Data URLs for the css background,
> but in IE7 it is using normal URLs (ImageResource.getURL() abstracts
> this process from me).
>
> An example of the problem is that ImageResource.getLeft() returns the
> int value 302 and my code builds the string "url("abcd.cache.png") 302
> 20 no-repeat" but when I use IE's DOM inspector the string is
> "url(abcd.cache.png") #302 no-repeat 20px".
>
> So the Style.setProperty() is changing my values... it added '#', "px"
> and moved "no-repeat" in front of the "20px"... how and why and how
> can I fix this?
>
> You can see IE7 mess up the On/Off buttons on this 
> page:http://subtabs.skystrider.com/#stpID1tab2as1pnOptions/General%20Options
>
> See below for my code:

-- 
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-tool...@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: Style.setProperty("background", ...) not working in IE7

2010-06-17 Thread Sky
SOLVED!

Ya, nvm, I solved it. I just needed to use negative values on the int
values returned by ImageResource.getLeft() and ImageResource.getTop()
and add "px" to them for the string.

cheers!

On Jun 17, 4:45 pm, Sky  wrote:
> public static void setBGImage(Widget w, ImageResource img, RepeatStyle
> repeatStyle){
>         String background =
>                         "url(\"" + img.getURL() + "\") " +
>                         img.getLeft() + " " +
>                         img.getTop()
>         ;
>
>         if (repeatStyle == RepeatStyle.None
>         || repeatStyle == RepeatStyle.Horizontal) {
>                 w.setHeight(img.getHeight() + "px");
>     }
>
>     if (repeatStyle == RepeatStyle.None || repeatStyle ==
> RepeatStyle.Vertical) {
>         w.setWidth(img.getWidth() + "px");
>     }
>
>     if(repeatStyle != RepeatStyle.None){
>         w.getElement().getStyle().setProperty("overflow", "hidden");
>     }
>
>     String repeatText;
>     switch (repeatStyle) {
>       case None:
>         repeatText = " no-repeat";
>         break;
>       case Horizontal:
>         repeatText = " repeat-x";
>         break;
>       case Vertical:
>         repeatText = " repeat-y";
>         break;
>       case Both:
>         repeatText = " repeat";
>         break;
>       default:
>         throw new RuntimeException("Unknown repeatStyle " + repeatStyle);
>     }
>     background += repeatText;
>
>         w.getElement().getStyle().setProperty("background", background);
>
> }
>
> On Jun 17, 4:43 pm, Sky  wrote:
>
>
>
> > Hi, I've got some custom code that takes a Widget, an ImageResource
> > and a RepeatStyle and puts that image as the background for that
> > widget. It works perfectly in IE8, FF, and Chrome, but it does not
> > work in IE7. The data appears to get messed up in the
> > Style.setProperty() method for the attribute "background".
>
> > In the latest browsers it is using Data URLs for the css background,
> > but in IE7 it is using normal URLs (ImageResource.getURL() abstracts
> > this process from me).
>
> > An example of the problem is that ImageResource.getLeft() returns the
> > int value 302 and my code builds the string "url("abcd.cache.png") 302
> > 20 no-repeat" but when I use IE's DOM inspector the string is
> > "url(abcd.cache.png") #302 no-repeat 20px".
>
> > So the Style.setProperty() is changing my values... it added '#', "px"
> > and moved "no-repeat" in front of the "20px"... how and why and how
> > can I fix this?
>
> > You can see IE7 mess up the On/Off buttons on this 
> > page:http://subtabs.skystrider.com/#stpID1tab2as1pnOptions/General%20Options
>
> > See below for my code:

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



Server Side: Java Servlets or ASP .NET?

2009-07-10 Thread Sky

I want to build fully Ajax applications with GWT using an MVC
framework. I have experience with Java Servlets with Struts and I have
experience with ASP .NET Web Forms but I would use ASP .NET MVC, as I
doubt there would be much of a learning curve.

I just cannot decide which to go with and I would like to discuss it
here with anyone willing to participate.

Java RPC with GWT may be advantageous since easy object communication
between client and server will work out of the box. However,
communicating via JSON overlays (which is not dependent on the server
being Java right?) should be easy. My understanding is that in
comparison those two would have very much the same performance
(payload size), correct?

An advantage of going with Java would be the ability to use Google App
Engine but I have no experience with it.

I like C# and the .NET environment and suspect that there might be a
lot of useful libraries and other stuff in it that I have never used
that will come in handy in future apps.

I have already and will continue to read up on the two technologies to
learn more but I would appreciate any input or further reading you
might have to offer.

Thanks!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Multi paging or Multi module

2009-07-11 Thread Sky

Possibly another approach would be to combine Ajax with one Module per
page. The top module would be in charge of fetching and placing pages
into the main placeholder. The top module takes input from the user
(clicks on a menu or other links within each page itself) and uses the
unique parameter from each event to know which "page" to load. The top
module does an Ajax request to your server to fetch the correct page.
So the added work here is that you have to create a controller on the
server that matches a unique page ID to a particular GWT Module. The
server controller sends the entire top level entry point html file
associated with the specific GWT Module (page) as the response to the
Ajax request. The top module places that html into the main
placeholder and it gets evaluated, the script tag pointing to the
MyPackage.Pagexx.nocache.js file gets evaluated to request for that js
file and thus its onModuleLoad() method will be ran at the end of
that.

I think that would work but I haven't tried it myself.

Like I said, GWT ought to have included a way to do this.

On Jul 10, 4:03 pm, Bhayat  wrote:
> I have been trying about gwt tecnology for 2 weeks,and i try to create
> a web site but,i have some problems.this is start with trying to add
> new page to my application.for example i have a page that is created
> with full gwt and when user enter username and password ,according to
> these information user page or admin page will open but i have no idea
> about opening new pages("i am planing to create these pages with gwt")
> from my main application.
>
> i searched this topic but i cant understand because they are talking
> about multi paging or two separate modules or two entry points in only
> one project but i couldnt make comminication between these pages.
>
> so please give me idea.if you have any example code could you send me
> please to understand easily ??

--~--~-~--~~~---~--~~
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: Multi paging or Multi module

2009-07-11 Thread Sky

Well I certainly am no expert on GWT, but I'm pretty good with it.
Lets see if I can help.

If I understand you correctly it sounds like you might be having some
trouble going from the standard way of giving a user a new page via a
new request to the server to a more Ajax approach.

You could give the user new pages via new get/post requests to the
server but then you would need a separate GWT project for each page.
Actually I think it would work to have multiple html files as starting
points for separate Modules and each Module would have its own
EntryPoint class with its onModuleLoad() method. Your web pages would
simply have links or w/e to each of the html files to load the
different GWT Modules.

Instead, taking a more Ajax approach to your app, I would build all
the pages in one GWT project (and one Module), each page being its own
class inheriting from some higher level container class that you want
to work with (ie. Composite or FlowPanel).  You could create your own
IPage interface to make all your "page" classes implement so that they
all have some sort of generate() method. This method is where you put
all the page specific GWT code to build the page how you want it. The
top level of your site might have a menu or other links from the site
or even just the action of being properly authenticated will call a
GWT method that exists higher up in your GWT app that "directs" the
site to a new "page". Your GWT code simply knows which page to go to
based on the event and instantiates the appropriate "page" class, sets
it as the widget inside a main placeholder and calls its generate()
method.

Something along those lines.

I haven't done a site like this yet, but I was thinking about this
same issue earlier today and I think that is how it's supposed to be
done. The only real problem with it is that it bloats your GWT
javascript and makes the first load of the site potentially large. Not
very large, because the only code adding to its size is the unique
code inside each generate() method. But I suppose that might be
considered like downloading all the html files of a static site at
once (well won't be that bad cuz obviously any site design is gonna be
around the placeholder).

So that extra size all in one download does indeed bother me. If the
site doesn't have too many pages with lots of unique content then it
might not be so bad, but for a large site this might be horrendous. I
do kinda like the idea of loading it all at the start so that the app
is super responsive, but this may not be realistic.

This is indeed problematic. Its too bad GWT doesn't include some sort
of self loader to load separate sections of its code upon need. You
should be able to create separate modules that get auto loaded upon
the first time they become needed.

Does anyone have a much wiser way of doing this?

On Jul 10, 4:03 pm, Bhayat  wrote:
> I have been trying about gwt tecnology for 2 weeks,and i try to create
> a web site but,i have some problems.this is start with trying to add
> new page to my application.for example i have a page that is created
> with full gwt and when user enter username and password ,according to
> these information user page or admin page will open but i have no idea
> about opening new pages("i am planing to create these pages with gwt")
> from my main application.
>
> i searched this topic but i cant understand because they are talking
> about multi paging or two separate modules or two entry points in only
> one project but i couldnt make comminication between these pages.
>
> so please give me idea.if you have any example code could you send me
> please to understand easily ??

--~--~-~--~~~---~--~~
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: User defined html tags and attributes

2009-07-11 Thread Sky

Why would you need to work directly with html tags with GWT? You
should do it with Javascript.

You just define your own class called keyboard and make it inherit
from another component, like a Composite or a Flowpanel (so you can
put whatever you want inside it) then you can attach EventHandlers to
handle events such as keyboard presses and then check to see if the
key pressed was indeed the character '2'. I haven't played with
keyboard events in GWT so I'm unsure if it the EventHandler will fire
for '2' pressed outside of that panel. If it only fires when the focus
is on the panel then maybe your desired functionality requires to
handle that event regardless of where the focus is on the page. You
can do that by putting the eventhandler on a top level component that
encompasses the entire page. There are other ways of doing this too if
you think like a JS programmer. Upon this eventhandler being fired you
would just set your keyboard panel to have focus.

Cake, with GWT.

Hope this helps.

On Jul 10, 11:51 am, circuit  wrote:
> How can I define a custom html tag with user defined attributes...
>
> e.g.
> 
>     focusKey='2',
>     highlightClass='keyHighlight'
>  
>
> ON defining a tag like the above, I can see the attributes
> interpretted as pure text using GWT. This is not the case if I simply
> use the browser (without using GWT).
>
> Any ideas what can do to make this work...
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gmail / facebook like chat

2009-07-11 Thread Sky

Well, I have no idea how gmail/facebook is solving the issue you just
stated, but its obvious that what you are describing would happen
unless you have some sort of state saved either in cookies or else the
server side session. If the chat convos are NOT saved somewhere you
have no hope of getting them back because on any kind of postback the
page is rebuilt and the entire client side state is lost.

It would not be wise to save the entire convo in cookies (could get
very large), instead you should save the convo in a DB and have a
convo ID that you save as a currentConvoID (or a list of current convo
IDs) as a cookie. When the page is refreshed, your GWT code can check
to see if the cookie exists and if it does it can query the server for
the convo(s) and rebuild the convo(s).

Done.

Hope this helps.

On Jul 10, 5:10 am, KC Jagadeep  wrote:
> Dear friends..
>
> I want to Develop a Gmail/Facebook Like chat application in ASP.Net/
> C#,XML/MS SQL
> Is GWT will help me to do the same ?
>
> Now I can do the same with Ajax,Xml, with help of DHTML,  but the chat
> windows r closing in all psotback/ page refresh/ server side
> updations..
>
> But it wont happen in gmail chat.. its always stable...
>
> any one can help me ?
>
> thanks
> KC Jagadeep
--~--~-~--~~~---~--~~
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: Newbie question regarding web-application design

2009-07-11 Thread Sky

Given your description then to be honest I would agree you could do
something better than XML HTTPrequest or Java RPC.

But it seriously depends on how your app works and what your
requirements are.
What I would suggest is that you dump the data onto the page in the
initial page request. Since the data rarely changes and IFF the client
is unlikely to maintain a long session, then this might be a better
approach. You would have to be ok with the fact that they won't get
updated data until they hit the refresh button as opposed to clicking
on the button leading to the "page" containing the 20 check boxes. If
this is unacceptable and you require that when the user clicks on the
menu button or w/e links them to that "page" will build the page
afresh, then your current design is the only correct way (but as
mentioned might be able to have improved performance via Java RPC)

If its ok to just dump it to the initial page request, your server
side code must simply modify the GWT html file, inserting the data as
regular javascript, like an array of values or whatever it is.Your GWT
code would need to interface to some handwritten Javascript that
assumes the name of that javascript array exists and loads its
contents. Pretty easy.

hope this helps

On Jul 10, 11:43 am, Kamal Chandana Mettananda 
wrote:
> Just to add to that; if you are using Java on your server side you may
> be planning to use Servlets. If that's the case you can have a look at
> the following tutorial.
>
> http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...
>
> Cheers.
>
>
>
> On Fri, Jul 10, 2009 at 9:58 PM, Jim wrote:
>
> > If you plan to use Java for your server side, you don't have to use
> > XML http requests. You can use the built-in RPC to retrieve Java
> > objects from server and send to GWT clients or vice versa. That is a
> > big advantage to stick to Java in server side. You can find an example
> > inhttp://www.gwtorm.com/gwtMail.jsp.
>
> > Jim
> >http://www.gwtorm.com
> >http://code.google.com/p/dreamsource-orm/
>
> > On Jul 10, 10:54 am, Neha Chachra  wrote:
> >> Hi,
>
> >> I started using GWT only about a week ago and I have rather little
> >> experience with client-server interactions so I wish to make sure that I am
> >> headed in the right direction. Though, I am guessing that the question is
> >> not directly related to GWT and I apologize for that.
>
> >> Basically, I am making a webpage. Depending on the data in SQL server, I
> >> need to render widgets on the page. As a simple example, if there are 20
> >> data items, then I need to make 20 check boxes with the labels as retrieved
> >> from the server.
>
> >> The data on the server changes rather infrequently.
>
> >> While I am able to do this currently, I have a feeling it's not the best
> >> approach to the problem. I am making XML Http requests to the server, and
> >> then I parse the data and render the widgets accordingly on the fly.
>
> >> I am wondering if that's a good solution... I am confused because it feels
> >> like I have the data already, then I should be able to avoid data requests
> >> and the consequent delay in rendering. But with this approach, I can't 
> >> think
> >> of a way to update the webpage appropriately if the data in the SQL server
> >> changes.
>
> >> Any opinions/suggestions?
>
> >> Thanks a lot,
>
> >> Neha
--~--~-~--~~~---~--~~
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: New GWT user has a simple qustion using eclipse

2009-07-11 Thread Sky

You could write a java app that asks for a single input, the name of
the folder inside the workspace that you want it to run through and
delete the couple extra files and modify the file ProjectName.java
file to contain an empty class and do any other cleanup stuff like
remove the RPC service from that one xml file.

cheers

On Jul 11, 3:01 pm, Flemming Boller  wrote:
> short answer: no  ;.)
>
>
>
> On Sat, Jul 11, 2009 at 4:35 PM, tedpottel  wrote:
>
> > Hi,
> > I was able to use eclipse to create a project and run it. When I
> > create a new project using eclipse it startes out with a simple
> > program instad of empty code. Is there a way to have it so when you
> > create a new project the code is just a empty class?
> > -Ted
--~--~-~--~~~---~--~~
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 more than one service

2009-07-11 Thread Sky

Count how many async calls you make during this burst and then keep a
counter incrementing on each return (success or failure). When this
second counter is equal to the first count they have all returned and
you can proceed. Have a method that you want to call upon completion
that you call when the second counter equals first count.

hope this helps.

On Jul 11, 12:38 am, Paulo Coutinho  wrote:
> when i need do it, i wait finish one to send other.
>
> 2009/7/11 hazy1 :
>
>
>
>
>
>
>
> > 'Better' depends on what you are trying to do.
>
> > It is easy to know when a service finishes because the onSuccess/
> > Failure handler will execute at that time.  You probably need to
> > familiarize yourself with async programming.
>
> > On Jul 10, 5:49 am, retha pasalli  wrote:
> >> Hi guys,
>
> >> I want to know if I need to call more than one service, is it better
> >> if I call them all together, or I need to finish one service call
> >> before calling another service? if calling them together is much
> >> better, how do I know when all service is successfully called? I'm
> >> quite confuse because of the asynchronous issue so we can't detect
> >> which service last sucessfully called.
>
> >> Thx for any replies..
>
> >> Regards,
> >> Retha
>
> --
> Atenciosamente,
> Paulo Coutinho.
> Blog:www.prsolucoes.com/blog
> Site:www.prsolucoes.com
> Msn:  pa...@prsolucoes.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to 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: Interdependent ScrollBars

2009-07-12 Thread Sky

By putting two panels side by side in a horizontal panel or else by
using css float styling of two panels within a FlowPanel, your choice
of which way. Then apply css styling to these two panels to set their
overflow to hidden and scrollbars to true, I forget the CSS for
setting scrollbars, just google it. This problem has nothing to do
with GWT other than you are using Panels instead of DIVs. Go google
your problem and solve it with DIVs and then do the same thing with
Panels in GWT.

If you don't know how to set css styling to a panel go look it up in
the GWT tutorials, there are a couple ways of doing it and it is all
explained quite nicely there.

On Jul 12, 1:18 pm, abhiram  wrote:
> Hi,
>
>   I need to create an application where the screen is split into 2
> scroll bars, one beside the other. Just the way, it is seen in any
> code comparison software!! How do I implement the interdependent
> scroll bars in this case? i.e., if I scroll the left scroll panel, the
> right side scroll panel should also scroll automatically.. How can I
> implement this feature in GWT??
--~--~-~--~~~---~--~~
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: Interdependent ScrollBars

2009-07-12 Thread Sky

By putting two panels side by side in a horizontal panel or else by
using css float styling of two panels within a FlowPanel, your choice
of which way. Then apply css styling to these two panels to set their
overflow to scroll. This problem has nothing to do
with GWT other than you are using Panels instead of DIVs. Go google
your problem and solve it with DIVs and then do the same thing with
Panels in GWT.

If you don't know how to set css styling to a panel go look it up in
the GWT tutorials, there are a couple ways of doing it and it is all
explained quite nicely there.

On Jul 12, 1:18 pm, abhiram  wrote:
> Hi,
>
>   I need to create an application where the screen is split into 2
> scroll bars, one beside the other. Just the way, it is seen in any
> code comparison software!! How do I implement the interdependent
> scroll bars in this case? i.e., if I scroll the left scroll panel, the
> right side scroll panel should also scroll automatically.. How can I
> implement this feature in GWT??
--~--~-~--~~~---~--~~
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: Interdependent ScrollBars

2009-07-12 Thread Sky

Schooled. (me)

Plus I totally forgot you needed them to scroll together.

sry I dropped the ball on that one, good thing Dean picked it up :)

On Jul 12, 9:55 pm, "Dean S. Jones"  wrote:
> Both should be ScrollPanels, add a ScrollListener to each, when one
> scrolls, set the others scroll position based on the values passed on
> on the onScroll() method.
--~--~-~--~~~---~--~~
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 1.5 to 1.6: App won't work in Hosted Mode

2009-07-12 Thread Sky

After converting my GWT app from version 1.5 to 1.6, it does not work
in Hosted Mode but after compiling it, it works 100% fine in any
browser.

I don't get any errors, it simply does not appear to build any widgets
or anything. I put a break point on the first line inside the only
Entry Point Module's onModuleLoad() method and ran it in Hosted Mode
in debug mode (from Eclipse) and the code never reached that line.

Where can I start looking for what the problem is? What other info can
I give you so you can help me?

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to decouple the application into multiple GWT modules?

2009-07-13 Thread Sky

By following the approach that Fred outlined, does that create
multiple .js files and do they only get downloaded when the main
module starts to make use of the other modules?

On Jul 13, 12:49 pm, Fred Sauer  wrote:
> Khoa,
> You can compile multiple modules into a single GWT output. This is in fact
> preferable since you get many savings w.r.t. script size which affect
> execution time and download time.
>
> You can have a single module which inherits all the modules you wish to
> include on your page. You then compile this single module.
>
> Fred
>
>
>
>
>
> On Wed, Jul 8, 2009 at 5:56 AM, Khoa Ngo  wrote:
>
> > Hi all,
>
> > I would like to decouple my application into multiple GWT modules. I
> > use a main module to layout the UI structure:
>
> > 
> >       
> >       
> > 
>
> > The MainWindow contains a MenuBar with a "Home" submenu and the
> > getMenuBar() method that returns the menubar for child modules to
> > reuse.
>
> > Then I would like to create 3 child modules for Articles, Products,
> > Contacts.
>
> > 
> >        
> >        
> >        
> > 
>
> > The Articles class will getMenuBar() and add a submenu "Articles" into
> > it.
>
> > 
> >        
> >        
> >        
> > 
>
> > The Products class will getMenuBar() and add a submenu "Product" into
> > it.
>
> > ...
>
> > The problem is that, I can't group 3 modules above into one
> > application. If the html page includes 3 generated javascript files, I
> > get 3 submenu "Home" in the page. Because I have main.js that renders
> > "Home", and two sub modules articles and products that also renders
> > "Home" since it inherits from the main.
>
> > If I just include articles.js then "Home" isn't duplicated, but I loss
> > the products.js.
>
> > Anybody please lets me know if I can design my application following
> > such way.
>
> > Thanks and Best Regards,
> > Khoa
>
> --
> Fred Sauer
> f...@allen-sauer.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to 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 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

Bump.

I really need help with this, because my app was fine in GWT 1.5 but
with 1.6 I no longer can test functionality on the fly, nor can I
debug. I am at a complete standstill for development.

And there are absolutely no indications of what my problem could be so
I don't even know where to start looking. It would help if anyone can
even suggest more info I can try to get to help you help me.

Many thanks!

On Jul 13, 1:17 am, Sky  wrote:
> After converting my GWT app from version 1.5 to 1.6, it does not work
> in Hosted Mode but after compiling it, it works 100% fine in any
> browser.
>
> I don't get any errors, it simply does not appear to build any widgets
> or anything. I put a break point on the first line inside the only
> Entry Point Module's onModuleLoad() method and ran it in Hosted Mode
> in debug mode (from Eclipse) and the code never reached that line.
>
> Where can I start looking for what the problem is? What other info can
> I give you so you can help me?
>
> Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

Correct, I just see the HTML content with any and all GWT widgets
missing.

I was successful in viewing the default app that comes from the new
app wizard within Hosted Mode browser.
In debug mode I do not reach a breakpoint I set on the very first line
within the module's onModuleLoad() method.

I cleared the error log and ran the web app again and nothing appeared
in the error log.

When I first converted my app to the 1.6 file layout (by creating a
new 1.6 app from wizard and moving my files from previous project into
the new one) the app failed on a static call to a private static
native void method where I call an external javascript method. After
converting all my Listeners to Handlers in my app, this problem went
away magically. Regardless of whether or not I comment out the call to
that method, I get no errors, but it is also impossible to reach that
code because I don't even get inside the onModuleLoad(). Did I break
something when converting my Listeners to Handlers?

On Jul 13, 3:15 pm, Jason Parekh  wrote:
> Hi Sky,
> What exactly do you see in the hosted mode browser?  Just the HTML content
> (with GWT widgets missing)?
>
> I'd suggest a couple things to reduce where we search for the problem:
> - Can you try creating a new GWT app from the wizard and see if it loads in
> the hosted mode browser?  Can you try a breakpoint in this module's
> onModuleLoad?
> - Can you look at the error log (Ctrl-3, then type error log).  See any
> errors there that may pertain to the problem?
>
> jason
>
>
>
> On Mon, Jul 13, 2009 at 3:58 PM, Sky  wrote:
>
> > Bump.
>
> > I really need help with this, because my app was fine in GWT 1.5 but
> > with 1.6 I no longer can test functionality on the fly, nor can I
> > debug. I am at a complete standstill for development.
>
> > And there are absolutely no indications of what my problem could be so
> > I don't even know where to start looking. It would help if anyone can
> > even suggest more info I can try to get to help you help me.
>
> > Many thanks!
>
> > On Jul 13, 1:17 am, Sky  wrote:
> > > After converting my GWT app from version 1.5 to 1.6, it does not work
> > > in Hosted Mode but after compiling it, it works 100% fine in any
> > > browser.
>
> > > I don't get any errors, it simply does not appear to build any widgets
> > > or anything. I put a break point on the first line inside the only
> > > Entry Point Module's onModuleLoad() method and ran it in Hosted Mode
> > > in debug mode (from Eclipse) and the code never reached that line.
>
> > > Where can I start looking for what the problem is? What other info can
> > > I give you so you can help me?
>
> > > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

Strange about not hitting the breakpoint with this simple
project

Just to be clear I meant with my project. Since the sample app works
in hosted mode I am assuming I can debug it perfectly fine.

In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
1.6.4 in the build path.

If it helps to know I am running this with the Google App Engine. The
first time I tried the conversion I didn't do it with the App Engine,
but this time I did... maybe thats the point that it went from having
errors to not having errors. I shall try it again without App Engine.
I don't think I can try the conversion by moving smaller chunks, cuz
the onModuleLoad pretty much instantiates one class and that class
uses everything I've written in GWT.

I'll keep you posted.

On Jul 13, 3:54 pm, Jason Parekh  wrote:
> On Mon, Jul 13, 2009 at 4:35 PM, Sky  wrote:
>
> > Correct, I just see the HTML content with any and all GWT widgets
> > missing.
>
> > I was successful in viewing the default app that comes from the new
> > app wizard within Hosted Mode browser.
> > In debug mode I do not reach a breakpoint I set on the very first line
> > within the module's onModuleLoad() method.
>
> Strange about not hitting the breakpoint with this simple project.  We've
> seen this issue with JDK 1.6.0_14, are you running that version?  Try
> downgrading to 1.6.0_13.  See:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
>
> for more details.
>
> > I cleared the error log and ran the web app again and nothing appeared
> > in the error log.
>
> > When I first converted my app to the 1.6 file layout (by creating a
> > new 1.6 app from wizard and moving my files from previous project into
> > the new one) the app failed on a static call to a private static
> > native void method where I call an external javascript method. After
> > converting all my Listeners to Handlers in my app, this problem went
> > away magically. Regardless of whether or not I comment out the call to
> > that method, I get no errors, but it is also impossible to reach that
> > code because I don't even get inside the onModuleLoad(). Did I break
> > something when converting my Listeners to Handlers?
>
> Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
> someone more knowledgeable could chime in?), but I wouldn't expect your
> changes got you into the current state.
>
> Assuming you're running JDK 1.6.0_14, could you try setting the breakpoint
> again after downgrading?  Hopefully it'll break, and you can step through
> your code to gather more useful data.
>
> How big is your application?  Would it be feasible to try the GWT 1.5 -> 1.6
> process again, except move your code in smaller chunks?
>
> jason
>
>
>
>
>
> > On Jul 13, 3:15 pm, Jason Parekh  wrote:
> > > Hi Sky,
> > > What exactly do you see in the hosted mode browser?  Just the HTML
> > content
> > > (with GWT widgets missing)?
>
> > > I'd suggest a couple things to reduce where we search for the problem:
> > > - Can you try creating a new GWT app from the wizard and see if it loads
> > in
> > > the hosted mode browser?  Can you try a breakpoint in this module's
> > > onModuleLoad?
> > > - Can you look at the error log (Ctrl-3, then type error log).  See any
> > > errors there that may pertain to the problem?
>
> > > jason
>
> > > On Mon, Jul 13, 2009 at 3:58 PM, Sky 
> > wrote:
>
> > > > Bump.
>
> > > > I really need help with this, because my app was fine in GWT 1.5 but
> > > > with 1.6 I no longer can test functionality on the fly, nor can I
> > > > debug. I am at a complete standstill for development.
>
> > > > And there are absolutely no indications of what my problem could be so
> > > > I don't even know where to start looking. It would help if anyone can
> > > > even suggest more info I can try to get to help you help me.
>
> > > > Many thanks!
>
> > > > On Jul 13, 1:17 am, Sky  wrote:
> > > > > After converting my GWT app from version 1.5 to 1.6, it does not work
> > > > > in Hosted Mode but after compiling it, it works 100% fine in any
> > > > > browser.
>
> > > > > I don't get any errors, it simply does not appear to build any
> > widgets
> > > > > or anything. I put a break point on the first line inside the only
> > > > > Entry Point Module's onModuleLoad() method and ran it in Hosted Mode
> > > > > in debug mode (from Eclipse) and the code never reached that line.
>
> > > > > Where can I start looking for what the problem is? What other info
> > can
> > > > > I give you so you can help me?
>
> > > > > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

No change at all when not using Google App Engine.

On the download page there is only version 1.6 and 1.5 and older. I
don't know how to get different revisions.

On Jul 13, 4:02 pm, Sky  wrote:
> Strange about not hitting the breakpoint with this simple
> project
>
> Just to be clear I meant with my project. Since the sample app works
> in hosted mode I am assuming I can debug it perfectly fine.
>
> In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
> 1.6.4 in the build path.
>
> If it helps to know I am running this with the Google App Engine. The
> first time I tried the conversion I didn't do it with the App Engine,
> but this time I did... maybe thats the point that it went from having
> errors to not having errors. I shall try it again without App Engine.
> I don't think I can try the conversion by moving smaller chunks, cuz
> the onModuleLoad pretty much instantiates one class and that class
> uses everything I've written in GWT.
>
> I'll keep you posted.
>
> On Jul 13, 3:54 pm, Jason Parekh  wrote:
>
>
>
> > On Mon, Jul 13, 2009 at 4:35 PM, Sky  wrote:
>
> > > Correct, I just see the HTML content with any and all GWT widgets
> > > missing.
>
> > > I was successful in viewing the default app that comes from the new
> > > app wizard within Hosted Mode browser.
> > > In debug mode I do not reach a breakpoint I set on the very first line
> > > within the module's onModuleLoad() method.
>
> > Strange about not hitting the breakpoint with this simple project.  We've
> > seen this issue with JDK 1.6.0_14, are you running that version?  Try
> > downgrading to 1.6.0_13.  See:
>
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
>
> > for more details.
>
> > > I cleared the error log and ran the web app again and nothing appeared
> > > in the error log.
>
> > > When I first converted my app to the 1.6 file layout (by creating a
> > > new 1.6 app from wizard and moving my files from previous project into
> > > the new one) the app failed on a static call to a private static
> > > native void method where I call an external javascript method. After
> > > converting all my Listeners to Handlers in my app, this problem went
> > > away magically. Regardless of whether or not I comment out the call to
> > > that method, I get no errors, but it is also impossible to reach that
> > > code because I don't even get inside the onModuleLoad(). Did I break
> > > something when converting my Listeners to Handlers?
>
> > Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
> > someone more knowledgeable could chime in?), but I wouldn't expect your
> > changes got you into the current state.
>
> > Assuming you're running JDK 1.6.0_14, could you try setting the breakpoint
> > again after downgrading?  Hopefully it'll break, and you can step through
> > your code to gather more useful data.
>
> > How big is your application?  Would it be feasible to try the GWT 1.5 -> 1.6
> > process again, except move your code in smaller chunks?
>
> > jason
>
> > > On Jul 13, 3:15 pm, Jason Parekh  wrote:
> > > > Hi Sky,
> > > > What exactly do you see in the hosted mode browser?  Just the HTML
> > > content
> > > > (with GWT widgets missing)?
>
> > > > I'd suggest a couple things to reduce where we search for the problem:
> > > > - Can you try creating a new GWT app from the wizard and see if it loads
> > > in
> > > > the hosted mode browser?  Can you try a breakpoint in this module's
> > > > onModuleLoad?
> > > > - Can you look at the error log (Ctrl-3, then type error log).  See any
> > > > errors there that may pertain to the problem?
>
> > > > jason
>
> > > > On Mon, Jul 13, 2009 at 3:58 PM, Sky 
> > > wrote:
>
> > > > > Bump.
>
> > > > > I really need help with this, because my app was fine in GWT 1.5 but
> > > > > with 1.6 I no longer can test functionality on the fly, nor can I
> > > > > debug. I am at a complete standstill for development.
>
> > > > > And there are absolutely no indications of what my problem could be so
> > > > > I don't even know where to start looking. It would help if anyone can
> > > > > even suggest more info I can try to get to help you help me.
>
> > > > > Many thanks!
>
> > > > > On Jul 13, 1:17 am, Sky 

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

No change at all when not using Google App Engine.
On the download page there is only version 1.6.4 and 1.5.3 and older.
I
don't know how to get different revisions like 1.6.013 like Jason
suggested.

On Jul 13, 4:02 pm, Sky  wrote:
> Strange about not hitting the breakpoint with this simple
> project
>
> Just to be clear I meant with my project. Since the sample app works
> in hosted mode I am assuming I can debug it perfectly fine.
>
> In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
> 1.6.4 in the build path.
>
> If it helps to know I am running this with the Google App Engine. The
> first time I tried the conversion I didn't do it with the App Engine,
> but this time I did... maybe thats the point that it went from having
> errors to not having errors. I shall try it again without App Engine.
> I don't think I can try the conversion by moving smaller chunks, cuz
> the onModuleLoad pretty much instantiates one class and that class
> uses everything I've written in GWT.
>
> I'll keep you posted.
>
> On Jul 13, 3:54 pm, Jason Parekh  wrote:
>
>
>
> > On Mon, Jul 13, 2009 at 4:35 PM, Sky  wrote:
>
> > > Correct, I just see the HTML content with any and all GWT widgets
> > > missing.
>
> > > I was successful in viewing the default app that comes from the new
> > > app wizard within Hosted Mode browser.
> > > In debug mode I do not reach a breakpoint I set on the very first line
> > > within the module's onModuleLoad() method.
>
> > Strange about not hitting the breakpoint with this simple project.  We've
> > seen this issue with JDK 1.6.0_14, are you running that version?  Try
> > downgrading to 1.6.0_13.  See:
>
> >http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
>
> > for more details.
>
> > > I cleared the error log and ran the web app again and nothing appeared
> > > in the error log.
>
> > > When I first converted my app to the 1.6 file layout (by creating a
> > > new 1.6 app from wizard and moving my files from previous project into
> > > the new one) the app failed on a static call to a private static
> > > native void method where I call an external javascript method. After
> > > converting all my Listeners to Handlers in my app, this problem went
> > > away magically. Regardless of whether or not I comment out the call to
> > > that method, I get no errors, but it is also impossible to reach that
> > > code because I don't even get inside the onModuleLoad(). Did I break
> > > something when converting my Listeners to Handlers?
>
> > Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
> > someone more knowledgeable could chime in?), but I wouldn't expect your
> > changes got you into the current state.
>
> > Assuming you're running JDK 1.6.0_14, could you try setting the breakpoint
> > again after downgrading?  Hopefully it'll break, and you can step through
> > your code to gather more useful data.
>
> > How big is your application?  Would it be feasible to try the GWT 1.5 -> 1.6
> > process again, except move your code in smaller chunks?
>
> > jason
>
> > > On Jul 13, 3:15 pm, Jason Parekh  wrote:
> > > > Hi Sky,
> > > > What exactly do you see in the hosted mode browser?  Just the HTML
> > > content
> > > > (with GWT widgets missing)?
>
> > > > I'd suggest a couple things to reduce where we search for the problem:
> > > > - Can you try creating a new GWT app from the wizard and see if it loads
> > > in
> > > > the hosted mode browser?  Can you try a breakpoint in this module's
> > > > onModuleLoad?
> > > > - Can you look at the error log (Ctrl-3, then type error log).  See any
> > > > errors there that may pertain to the problem?
>
> > > > jason
>
> > > > On Mon, Jul 13, 2009 at 3:58 PM, Sky 
> > > wrote:
>
> > > > > Bump.
>
> > > > > I really need help with this, because my app was fine in GWT 1.5 but
> > > > > with 1.6 I no longer can test functionality on the fly, nor can I
> > > > > debug. I am at a complete standstill for development.
>
> > > > > And there are absolutely no indications of what my problem could be so
> > > > > I don't even know where to start looking. It would help if anyone can
> > > > > even suggest more info I can try to get to help you help me.
>
> > > >

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

Thx, I tried the Java Development Kit versions 1.6.0_07, 13 and 14.
Same situation.

On Jul 13, 4:31 pm, Jason Parekh  wrote:
> Hey,
> One clarification:  I'm actually talking about the Java Development Kit/Java
> Runtime version and not the GWT SDK version.  You can see your version in
> Eclipse preferences > Java > Installed JREs
>
> jason
>
>
>
> On Mon, Jul 13, 2009 at 5:24 PM, Sky  wrote:
>
> > No change at all when not using Google App Engine.
> > On the download page there is only version 1.6.4 and 1.5.3 and older.
> > I
> > don't know how to get different revisions like 1.6.013 like Jason
> > suggested.
>
> > On Jul 13, 4:02 pm, Sky  wrote:
> > > Strange about not hitting the breakpoint with this simple
> > > project
>
> > > Just to be clear I meant with my project. Since the sample app works
> > > in hosted mode I am assuming I can debug it perfectly fine.
>
> > > In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
> > > 1.6.4 in the build path.
>
> > > If it helps to know I am running this with the Google App Engine. The
> > > first time I tried the conversion I didn't do it with the App Engine,
> > > but this time I did... maybe thats the point that it went from having
> > > errors to not having errors. I shall try it again without App Engine.
> > > I don't think I can try the conversion by moving smaller chunks, cuz
> > > the onModuleLoad pretty much instantiates one class and that class
> > > uses everything I've written in GWT.
>
> > > I'll keep you posted.
>
> > > On Jul 13, 3:54 pm, Jason Parekh  wrote:
>
> > > > On Mon, Jul 13, 2009 at 4:35 PM, Sky 
> > wrote:
>
> > > > > Correct, I just see the HTML content with any and all GWT widgets
> > > > > missing.
>
> > > > > I was successful in viewing the default app that comes from the new
> > > > > app wizard within Hosted Mode browser.
> > > > > In debug mode I do not reach a breakpoint I set on the very first
> > line
> > > > > within the module's onModuleLoad() method.
>
> > > > Strange about not hitting the breakpoint with this simple project.
> >  We've
> > > > seen this issue with JDK 1.6.0_14, are you running that version?  Try
> > > > downgrading to 1.6.0_13.  See:
>
> > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
>
> > > > for more details.
>
> > > > > I cleared the error log and ran the web app again and nothing
> > appeared
> > > > > in the error log.
>
> > > > > When I first converted my app to the 1.6 file layout (by creating a
> > > > > new 1.6 app from wizard and moving my files from previous project
> > into
> > > > > the new one) the app failed on a static call to a private static
> > > > > native void method where I call an external javascript method. After
> > > > > converting all my Listeners to Handlers in my app, this problem went
> > > > > away magically. Regardless of whether or not I comment out the call
> > to
> > > > > that method, I get no errors, but it is also impossible to reach that
> > > > > code because I don't even get inside the onModuleLoad(). Did I break
> > > > > something when converting my Listeners to Handlers?
>
> > > > Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
> > > > someone more knowledgeable could chime in?), but I wouldn't expect your
> > > > changes got you into the current state.
>
> > > > Assuming you're running JDK 1.6.0_14, could you try setting the
> > breakpoint
> > > > again after downgrading?  Hopefully it'll break, and you can step
> > through
> > > > your code to gather more useful data.
>
> > > > How big is your application?  Would it be feasible to try the GWT 1.5
> > -> 1.6
> > > > process again, except move your code in smaller chunks?
>
> > > > jason
>
> > > > > On Jul 13, 3:15 pm, Jason Parekh  wrote:
> > > > > > Hi Sky,
> > > > > > What exactly do you see in the hosted mode browser?  Just the HTML
> > > > > content
> > > > > > (with GWT widgets missing)?
>
> > > > > > I'd suggest a couple things to reduce where we search for the
> > problem:
> > > > > > - Can yo

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

SOLVED!

I was attempting to move my app, one piece at a time into a new
project and I finally discovered what was causing the problem.
In my module's html file I had

which simply needed to be changed to


Now it no longer gets stuck and works wonderfully!

Thanks so much for the help Jason!

On Jul 13, 4:57 pm, Sky  wrote:
> Thx, I tried the Java Development Kit versions 1.6.0_07, 13 and 14.
> Same situation.
>
> On Jul 13, 4:31 pm, Jason Parekh  wrote:
>
>
>
> > Hey,
> > One clarification:  I'm actually talking about the Java Development Kit/Java
> > Runtime version and not the GWT SDK version.  You can see your version in
> > Eclipse preferences > Java > Installed JREs
>
> > jason
>
> > On Mon, Jul 13, 2009 at 5:24 PM, Sky  wrote:
>
> > > No change at all when not using Google App Engine.
> > > On the download page there is only version 1.6.4 and 1.5.3 and older.
> > > I
> > > don't know how to get different revisions like 1.6.013 like Jason
> > > suggested.
>
> > > On Jul 13, 4:02 pm, Sky  wrote:
> > > > Strange about not hitting the breakpoint with this simple
> > > > project
>
> > > > Just to be clear I meant with my project. Since the sample app works
> > > > in hosted mode I am assuming I can debug it perfectly fine.
>
> > > > In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
> > > > 1.6.4 in the build path.
>
> > > > If it helps to know I am running this with the Google App Engine. The
> > > > first time I tried the conversion I didn't do it with the App Engine,
> > > > but this time I did... maybe thats the point that it went from having
> > > > errors to not having errors. I shall try it again without App Engine.
> > > > I don't think I can try the conversion by moving smaller chunks, cuz
> > > > the onModuleLoad pretty much instantiates one class and that class
> > > > uses everything I've written in GWT.
>
> > > > I'll keep you posted.
>
> > > > On Jul 13, 3:54 pm, Jason Parekh  wrote:
>
> > > > > On Mon, Jul 13, 2009 at 4:35 PM, Sky 
> > > wrote:
>
> > > > > > Correct, I just see the HTML content with any and all GWT widgets
> > > > > > missing.
>
> > > > > > I was successful in viewing the default app that comes from the new
> > > > > > app wizard within Hosted Mode browser.
> > > > > > In debug mode I do not reach a breakpoint I set on the very first
> > > line
> > > > > > within the module's onModuleLoad() method.
>
> > > > > Strange about not hitting the breakpoint with this simple project.
> > >  We've
> > > > > seen this issue with JDK 1.6.0_14, are you running that version?  Try
> > > > > downgrading to 1.6.0_13.  See:
>
> > > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
>
> > > > > for more details.
>
> > > > > > I cleared the error log and ran the web app again and nothing
> > > appeared
> > > > > > in the error log.
>
> > > > > > When I first converted my app to the 1.6 file layout (by creating a
> > > > > > new 1.6 app from wizard and moving my files from previous project
> > > into
> > > > > > the new one) the app failed on a static call to a private static
> > > > > > native void method where I call an external javascript method. After
> > > > > > converting all my Listeners to Handlers in my app, this problem went
> > > > > > away magically. Regardless of whether or not I comment out the call
> > > to
> > > > > > that method, I get no errors, but it is also impossible to reach 
> > > > > > that
> > > > > > code because I don't even get inside the onModuleLoad(). Did I break
> > > > > > something when converting my Listeners to Handlers?
>
> > > > > Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
> > > > > someone more knowledgeable could chime in?), but I wouldn't expect 
> > > > > your
> > > > > changes got you into the current state.
>
> > > > > Assuming you're running JDK 1.6.0_14, could you try setting the
> > > breakpoint
> > > > > again after downgrading?  Hopefully it'll break, and you can step
> > > through
> >

Re: gwt 1.6 and oophm, how to?

2009-08-21 Thread Sky

Could someone direct me how to use "trunk"? From what I gather,
"trunk" is just the latest repository for the gwt source code. I have
a gwt project already started and I don't want to break it by doing
this. I want to be able to switch between trunk and gwt 1.7 stable for
the same project. Is that possible?

I found this
http://code.google.com/p/gwt-dnd/wiki/UsingSourceWithEclipse

but I really don't quite understand it. I could attempt to follow the
directions but I want to be sure it will not damage my current project
by doing so.

Thanks for the help.

Btw, the reason I want trunk is to be able to use OOPHM.

On Jul 23, 5:46 pm, Sumit Chandel  wrote:
> Also, feel free to send an explanatory paragraph my way if you're interested
> in adding it to the UsingOOPHM documentation. I'd be happy to review it.
> However, once OOPHM is released, the document is likely to get stale and
> become deprecated.
> Cheers,
> -Sumit Chandel
>
> On Thu, Jul 23, 2009 at 1:34 PM, Sumit Chandel wrote:
>
>
>
> > Hi Denis,
> > Glad to know you were able to get OOPHM working with the stable 1.6 and 1.7
> > releases. Thanks for sharing on how you got it setup. Hopefully other
> > developers will stumble upon this thread when they're looking to do
> > something similar until OOPHM releases in the next major release.
>
> > Cheers,
> > -Sumit Chandel
>
> > On Wed, Jul 22, 2009 at 1:14 PM, denis56 wrote:
>
> >> Thanks for reply,
>
> >> I actually did get oophm work with gwt 1.6/1.7.
>
> >> Wanted to share some feedback.
> >> Building from trunk, I first run into issue #3556 (http://
> >> code.google.com/p/google-web-toolkit/issues/detail?id=3556) which
> >> luckily had a workaround documented.
>
> >>http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHMexplains
> >> the procedure (no need to compile oophm from branches/oophm), but
> >> being not well-versed in GWT, I had it tough realizing that BOTH gwt-
> >> oophm.jar and gwt-dev.jar need to be included in my project classpath
> >> above the GWT 1.6/1.7 jars. Can a request be placed to extend
> >> UsingOOPHM or can I submit a explanatory paragraph for review?
>
> >> After figuring that out the rest worked pretty well. Really really
> >> happy, since in-process hosted mode ceased to work for some reason
> >> after I embedded GWT code in a jsf page, and I now have firebug!!!
>
> >> Best wishes,
> >> denis
>
> >> On Jul 21, 11:59 pm, Sumit Chandel  wrote:
> >> > Hi Denis,
> >> > Unfortunately, you'll need to work from trunk for both GWT core and
> >> OOPHM as
> >> > the two are under active development, and the OOPHM branch is generally
> >> > staying in sync with changes in trunk. Many GWT developers have been
> >> using
> >> > trunk successfully during development, but keep in mind the disclaimer
> >> that
> >> > trunk is bleeding edge code and not recommended for production.
>
> >> > That said, the next major release will include OOPHM, so you can look
> >> > forward to using it in a stable release soon.
>
> >> > As for using hosted mode in GWT 1.7, could you elaborate a little more
> >> on
> >> > what issues you experienced when trying to start up hosted mode?
>
> >> > Hope that helps,
> >> > -Sumit Chandel
>
> >> > On Sat, Jul 18, 2009 at 4:01 PM, denis56 
> >> wrote:
>
> >> > > pardon for asking, but it seems i am stuck and not moving on.
>
> >> > > i had one issue that hosted browser did not run gwt code (while
> >> > > firefox did) and thought to try my luck with oophm.
>
> >> > > tried to follow instructions at
>
> >> > >http://allahbaksh.blogspot.com/2009/02/building-gwt-oophm-from-source.
> >> ..
> >> > > and
>
> >> > >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.
> >> ..
>
> >> > > I am using gwt 1.6 on linux. Have checked out
> >> > >http://google-web-toolkit.googlecode.com/svn/branches/oophm, build it
> >> > > (throws some errors, though), got firefox extension installed,
> >> > > replaced my gwt-dev and gwt-user.jar files with the generated ones,
> >> > > but getting the error
>
> >> > > "ClickHandler cannot be resolved to a type" or worse :)
>
> >> > > It is obviously an older compiler not supporting the new features of
> >> > > 1.6. The question is, whether it is possible to use 1.6 (and now 1.7)
> >> > > compiler and simultaneously oophm from trunk?
>
> >> > > thanks a lot
--~--~-~--~~~---~--~~
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: MyNamedFrame is better than GWT's NamedFrame

2010-07-15 Thread Sky
Make sure you modify the following native method to point to your own
package structure:

public native void setMyOnload(JavaScriptObject elm, MyNamedFrame
frame)/*-{

elm.myonload = function(event){

fra...@com.skystrider.subtabs.client.gwtutils.mynamedframe::onload(Lcom/
google/gwt/user/client/Event;)(event);
};
}-*/;

You need to modify "com.skystrider.subtabs.client.gwtUtils" to the
package structure location that you have MyNamedFrame stored.


On May 21, 12:43 pm, mmoossen  wrote:
> hi sky!
>
> that looks pretty much like our implementation...;)
> this is the problem of such a big toolkit likeGWT, there are too many
> 'features' (like widgets, rpc, jre emulation, java-to-js compilation,
> the new data driven widgets and so on) which is great for a fast start
> and even enough for many applications, but as soon as you get
> creative, you have to start doing things by yourself, which is inmy
> expirience really hard withGWTsince many, many (far too much)
> methods and classes are private or final, so it is really hard to
> extend the provided stuff, so at the end you finish hackingGWTand
> building your own framework on top of the toolkit based on the core
> feature, java-to-js compilation, which could be the idea.of the
> developers, i do not know...
>
> continue the good work!
>
> regards
> Michael
>
> On May 21, 9:04 am, Sky  wrote:
>
>
>
>
>
> > package com.skystrider.subtabs.client.gwtUtils;
>
> > import java.util.ArrayList;
>
> > import com.google.gwt.core.client.GWT;
> > import com.google.gwt.core.client.JavaScriptObject;
> > import com.google.gwt.dom.client.IFrameElement;
> > import com.google.gwt.user.client.DOM;
> > import com.google.gwt.user.client.Element;
> > import com.google.gwt.user.client.Event;
> > import com.google.gwt.user.client.ui.Frame;
>
> > /**
> >  * A {...@link com.google.gwt.user.client.ui.Frame} that has a 'name'
> > associated
> >  * with it. This allows theframeto be the target of a
> >  * {...@link com.google.gwt.user.client.ui.FormPanel}
> >  *
> >  * CSS Style Rules
> >  * 
> >  * .gwt-Frame{ }
> >  * 
> >  */
> > public class MyNamedFrame extendsFrame{
>
> >         private ArrayList loadHandlers = null;
>
> >           // Used inside JSNI, so please don't delete this field just 
> > because
> >           // your compiler or IDE says it's unused.
> >           @SuppressWarnings("unused")
> >           private static JavaScriptObject PATTERN_NAME;
>
> >           static {
> >             if (GWT.isClient()) {
> >               initStatics();
> >             }
> >           }
>
> >           /**
> >            * Creates an HTML IFRAME element with a src andname.
> >            *
> >            * @param src the src of theframe
> >            * @paramnamethenameof theframe, which must contain at least
> > one
> >            *          non-whitespace character and must not contain reserved
> > HTML markup
> >            *          characters such as '<', '> > code>',
> >            *          or '&'
> >            * @return the newly-created element
> >            * @throws IllegalArgumentException if the suppliednameis not
> > allowed
> >            */
> >           private static IFrameElement createIFrame(String src, Stringname)
> > {
> >             if (name== null || !isValidName(name.trim())) {
> >               throw new IllegalArgumentException(
> >                   "expecting one or more non-whitespace chars with no '<',
> > '>', or '&'");
> >             }
>
> >             // Use innerHTML to implicitly create the . This is
> > necessary
> >             // because most browsers will not respect a dynamically-set
> > iframename.
> >             Element div = DOM.createDiv();
>
> >             String onload = "onload=\"if(!event){event = window.event;}
> > this.myonload(event);\"";
>
> >             div.setInnerHTML(" > " + onload + ">");
> >             return div.getFirstChild().cast();
> >           }
>
> >           private static native void initStatics() /*-{
> >             @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME = 
> > /^[^<>&
> > \'\"]+$/;
> >           }-*/;
>
> >           /**
> >            * @paramnamethe specifiedframenameto be checked
> >      

GWT + App Engine + JSP (Eclipse IDE)

2010-10-15 Thread Sky
Hello

I have plenty of experience with GWT, and my app works on App Engine,
only I want to change it so that I can manipulate the page (the base
html file) on the very first GET request. Thus, I want to use JSP. For
starters my Eclipse (3.5.1) does not natively understand JSP files and
I have no idea how to get App Engine to process JSP files, although
that might simply be automatic.

Can anyone help me get started? I don't need to have any kind of
complicated server-side architecture like MVC, I just need to be able
to insert some stuff into the JSP file based on some logic in a Java
class. I imagine my Java class should go in the /server/ folder inside
my /src/ folder. Can I simply change myapp.html to myapp.jsp and put
some JSP that calls code from the server side Java class? How do I get
Eclipse as well as App Engine to understand JSP files? I see mention
of the Eclipse Web Tool Platform, but I don't know if that is a
different version of Eclipse than my Eclipse for Java or what. I don't
know if the GWT plugin will work for it or what.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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 + App Engine + JSP (Eclipse IDE)

2010-10-20 Thread Sky
Thanks so much for the help. That's exactly what I need.

Cheers!

On Oct 18, 11:21 am, "David Chandler (Google)"
 wrote:
> Sky,
>
> You need the Java EE edition of Eclipse to edit 
> JSPs:http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-develop...
>
> There is an example of using a JSP as the GWT host page in this recent
> GWT article:http://code.google.com/webtoolkit/articles/dynamic_host_page.html
>
> For further JSP questions, please see the App Engine 
> docs:http://code.google.com/appengine/docs/java/gettingstarted/usingjsps.html
>
> HTH,
> --
> David Chandler
> Developer Programs Engineer, GWT
>
> On Oct 15, 1:52 pm, Sky  wrote:
>
>
>
> > Hello
>
> > I have plenty of experience with GWT, and my app works on App Engine,
> > only I want to change it so that I can manipulate the page (the base
> > html file) on the very first GET request. Thus, I want to use JSP. For
> > starters my Eclipse (3.5.1) does not natively understand JSP files and
> > I have no idea how to get App Engine to process JSP files, although
> > that might simply be automatic.
>
> > Can anyone help me get started? I don't need to have any kind of
> > complicated server-side architecture like MVC, I just need to be able
> > to insert some stuff into the JSP file based on some logic in a Java
> > class. I imagine my Java class should go in the /server/ folder inside
> > my /src/ folder. Can I simply change myapp.html to myapp.jsp and put
> > some JSP that calls code from the server side Java class? How do I get
> > Eclipse as well as App Engine to understand JSP files? I see mention
> > of the Eclipse Web Tool Platform, but I don't know if that is a
> > different version of Eclipse than my Eclipse for Java or what. I don't
> > know if the GWT plugin will work for it or what.
>
> > Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: Announcing GWT 2.0 Milestone 1

2009-10-07 Thread Sky

I set GWT 2.0 as the SDK for my project and it changed to the new
Development Swing UI In-browser mode instead of the old hosted mode. I
placed the given URL in both FF3.5 and IE8 and neither auto installed
the required plugin. Since my app is already compiled it renders fine
but I cannot debug. I tried manually installing the correct plugins
from http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM yet
the server is either only serving the compiled files or something is
wrong with the plugin because I cannot debug; breakpoints are not hit.

Does anyone know what I am doing wrong?

On Oct 7, 11:37 am, Joseph Arceneaux  wrote:
> May we presume that the Snow Leopard issue is now history?
> Thanks,
> Joe
>
>
>
> On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi  wrote:
>
> > Hi everyone,
>
> > We are excited to release the first milestone build for GWT 2.0 today.
> > This milestone provides early access (read: known to still be
> > unfinished and buggy) to the various bits of core functionality that
> > will be coming in GWT 2.0. Please download the bits from:
>
> >http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2
>
> > Things that are changing with GWT 2.0 that might otherwise be
> > confusing without explanation
> > * Terminology changes: We're going to start using the term
> > "development mode" rather than the old term "hosted mode." The term
> > "hosted mode" was sometimes confusing to people, so we'll be using the
> > more descriptive term from now on. For similar reasons, we'll be using
> > the term "production mode" rather than "web mode" when referring to
> > compiled script.
>
> > * Changes to the distribution: Note that there's only one download,
> > and it's no longer platform-specific. You download the same zip file
> > for every development platform. This is made possible by the new
> > plugin approach used to implement development mode (see below). The
> > distribution file does not include the browser plugins themselves;
> > those are downloaded separately the first time you use development
> > mode in a browser that doesn't have the plugin installed.
>
> > Functionality that will be coming in GWT 2.0
> > * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided
> > a special-purpose "hosted browser" to debug your GWT code. In 2.0, the
> > web page being debugged is viewed within a regular-old browser.
> > Development mode is supported through the use of a native-code plugin
> > for each browser. In other words, you can use development mode
> > directly from Safari, Firefox, IE, and Chrome.
>
> > * Code Splitting: Developer-guided code splitting allows you to chunk
> > your GWT code into multiple fragments for faster startup. Imagine
> > having to download a whole movie before being able to watch it. Well,
> > that's what you have to do with most Ajax apps these days -- download
> > the whole thing before using it. With code splitting, you can arrange
> > to load just the minimum script needed to get the application running
> > and the user interacting, while the rest of the app is downloaded as
> > needed.
>
> > * Declarative User Interface: GWT's UiBinder now allows you to create
> > user interfaces mostly declaratively. Previously, widgets had to be
> > created and assembled programmatically, requiring lots of code. Now,
> > you can use XML to declare your UI, making the code more readable,
> > easier to maintain, and faster to develop. The Mail sample has been
> > updated to use the new declarative UI.
>
> > * Bundling of resources (ClientBundle): GWT has shipped with
> > ImageBundles since GWT v1.4, giving developers automatic spriting of
> > images. ClientBundle generalizes this technique, bringing the power of
> > combining and optimizing resources into one download to things like
> > text files, CSS, and XML. This means fewer network round trips, which
> > in turn can decrease application latency -- especially on mobile
> > applications.
>
> > * Using HtmlUnit for running GWT tests: GWT 2.0 no longer uses SWT or
> > the old mozilla code (on linux) to run GWT tests. Instead, it uses
> > HtmlUnit as the built-in browser. HtmlUnit is 100% Java. This means
> > there is a single GWT distribution for linux, mac, and windows, and
> > debugging GWT Tests in development mode can be done entirely in a Java
> > debugger.
>
> > Known issues
> > *  If you are planning to run the webAppCreator, i18nCreator, or the
> > junitCreator scripts on Mac or Linux, please set their executable bits
> > by doing a 'chmod +x *Creator'
> > * Our HtmlUnit integration is still not complete. Additionally,
> > HtmlUnit does not do layout. So tests can fail either because they
> > exercise layout or they hit bugs due to incomplete integration. If you
> > want such tests to be ignored on HtmlUnit, please annotate the test
> > methods with @DoNotRunWith({Platform.Htmlunit})
> > * The Google Eclipse Plugin will only allow you to add GWT release
> > directories that include a file with

Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread Sky

I got debugging to work!

I created a new GWT web app with the Eclipse google plugin using GWT
2.0MS1 as the SDK. This is what most likely solved my problem. Simply
changing a project from GWT 1.7.1 to 2.0 must not be making all the
necessary changes to the auto generated files to be properly
compatible. Obviously this sort of thing will be ironed out for
release.

Then I needed to first launch (not a debug launch) the newly created
GWT web app (with the default app still intact). I tried this with a
browser that did not have the plugin installed (FF3.5) and when
navigating to the URL it auto directed me to the plugin install web
page and after installing the plugin the web app was rendered
correctly. Note that at this point I have not compiled the app so the
plugin is indeed doing its job! The java code is what is interacting
synchronously with the browser instead of the compiled JS!

Note that I had first attempted to launch the app in debug mode which
gave me 3 errors related to the Appengine
(com.google.apphosting.utils.jetty... yet eclipse could not resolve
com.google.apphosting.utils.jetty) but those errors went away as soon
as I did a non debug launch. In other words, the app was able to do a
debug launch only after doing a regular launch.

With the debug launch successful I was able to hit a breakpoint in the
onModuleLoad method of this default web app! I then copied all the
required files from my previous project into this new one. Once again
I was able to hit a breakpoint on the onModuleLoad method!

I am very excited to have this working!

On Oct 7, 8:32 pm, Sky  wrote:
> I set GWT 2.0 as the SDK for my project and it changed to the new
> Development Swing UI In-browser mode instead of the old hosted mode. I
> placed the given URL in both FF3.5 and IE8 and neither auto installed
> the required plugin. Since my app is already compiled it renders fine
> but I cannot debug. I tried manually installing the correct plugins
> fromhttp://code.google.com/p/google-web-toolkit/wiki/UsingOOPHMyet
> the server is either only serving the compiled files or something is
> wrong with the plugin because I cannot debug; breakpoints are not hit.
>
> Does anyone know what I am doing wrong?
>
> On Oct 7, 11:37 am, Joseph Arceneaux  wrote:
>
>
>
> > May we presume that the Snow Leopard issue is now history?
> > Thanks,
> > Joe
>
> > On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi  wrote:
>
> > > Hi everyone,
>
> > > We are excited to release the first milestone build for GWT 2.0 today.
> > > This milestone provides early access (read: known to still be
> > > unfinished and buggy) to the various bits of core functionality that
> > > will be coming in GWT 2.0. Please download the bits from:
>
> > >http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2
>
> > > Things that are changing with GWT 2.0 that might otherwise be
> > > confusing without explanation
> > > * Terminology changes: We're going to start using the term
> > > "development mode" rather than the old term "hosted mode." The term
> > > "hosted mode" was sometimes confusing to people, so we'll be using the
> > > more descriptive term from now on. For similar reasons, we'll be using
> > > the term "production mode" rather than "web mode" when referring to
> > > compiled script.
>
> > > * Changes to the distribution: Note that there's only one download,
> > > and it's no longer platform-specific. You download the same zip file
> > > for every development platform. This is made possible by the new
> > > plugin approach used to implement development mode (see below). The
> > > distribution file does not include the browser plugins themselves;
> > > those are downloaded separately the first time you use development
> > > mode in a browser that doesn't have the plugin installed.
>
> > > Functionality that will be coming in GWT 2.0
> > > * In-Browser Development Mode: Prior to 2.0, GWT hosted mode provided
> > > a special-purpose "hosted browser" to debug your GWT code. In 2.0, the
> > > web page being debugged is viewed within a regular-old browser.
> > > Development mode is supported through the use of a native-code plugin
> > > for each browser. In other words, you can use development mode
> > > directly from Safari, Firefox, IE, and Chrome.
>
> > > * Code Splitting: Developer-guided code splitting allows you to chunk
> > > your GWT code into multiple fragments for faster startup. Imagine
> > > having to download a whole movie before being able to watch it. Well,
> > > that&

Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread Sky

Ben, with 2.0 my projects launch the development shell when using the
Google plugin launch options. It launched for me even when I just
changed a project from 1.7.1 to 2.0, but you could try creating a
whole new project with 2.0 from the start and copy the files over from
the old project.

Make sure the google plugin and the appengine is fully up to date.
What version of Ecipse are you using? Try downloading the new 3.5.1
version.

Sorry I can't help any more than that. gl

On Oct 8, 3:50 pm, Ben  wrote:
> I have noticed that if you use Google Plugin to launch your project
> with 2.0 jar. The development shell does not launch at all. You have
> to launch it as a Java Application and set up some parameters by
> yourself, then you are able to see that GWT Develop Mode popup shell
> window. Is my observation correct?
>
> On Oct 8, 1:33 pm, Sky  wrote:
>
>
>
> > I got debugging to work!
>
> > I created a new GWT web app with the Eclipse google plugin using GWT
> > 2.0MS1 as the SDK. This is what most likely solved my problem. Simply
> > changing a project from GWT 1.7.1 to 2.0 must not be making all the
> > necessary changes to the auto generated files to be properly
> > compatible. Obviously this sort of thing will be ironed out for
> > release.
>
> > Then I needed to first launch (not a debug launch) the newly created
> > GWT web app (with the default app still intact). I tried this with a
> > browser that did not have the plugin installed (FF3.5) and when
> > navigating to the URL it auto directed me to the plugin install web
> > page and after installing the plugin the web app was rendered
> > correctly. Note that at this point I have not compiled the app so the
> > plugin is indeed doing its job! The java code is what is interacting
> > synchronously with the browser instead of the compiled JS!
>
> > Note that I had first attempted to launch the app in debug mode which
> > gave me 3 errors related to the Appengine
> > (com.google.apphosting.utils.jetty... yet eclipse could not resolve
> > com.google.apphosting.utils.jetty) but those errors went away as soon
> > as I did a non debug launch. In other words, the app was able to do a
> > debug launch only after doing a regular launch.
>
> > With the debug launch successful I was able to hit a breakpoint in the
> > onModuleLoad method of this default web app! I then copied all the
> > required files from my previous project into this new one. Once again
> > I was able to hit a breakpoint on the onModuleLoad method!
>
> > I am very excited to have this working!
>
> > On Oct 7, 8:32 pm, Sky  wrote:
>
> > > I set GWT 2.0 as the SDK for my project and it changed to the new
> > > Development Swing UI In-browser mode instead of the old hosted mode. I
> > > placed the given URL in both FF3.5 and IE8 and neither auto installed
> > > the required plugin. Since my app is already compiled it renders fine
> > > but I cannot debug. I tried manually installing the correct plugins
> > > fromhttp://code.google.com/p/google-web-toolkit/wiki/UsingOOPHMyet
> > > the server is either only serving the compiled files or something is
> > > wrong with the plugin because I cannot debug; breakpoints are not hit.
>
> > > Does anyone know what I am doing wrong?
>
> > > On Oct 7, 11:37 am, Joseph Arceneaux  wrote:
>
> > > > May we presume that the Snow Leopard issue is now history?
> > > > Thanks,
> > > > Joe
>
> > > > On Mon, Oct 5, 2009 at 4:43 PM, Amit Manjhi  
> > > > wrote:
>
> > > > > Hi everyone,
>
> > > > > We are excited to release the first milestone build for GWT 2.0 today.
> > > > > This milestone provides early access (read: known to still be
> > > > > unfinished and buggy) to the various bits of core functionality that
> > > > > will be coming in GWT 2.0. Please download the bits from:
>
> > > > >http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=2
>
> > > > > Things that are changing with GWT 2.0 that might otherwise be
> > > > > confusing without explanation
> > > > > * Terminology changes: We're going to start using the term
> > > > > "development mode" rather than the old term "hosted mode." The term
> > > > > "hosted mode" was sometimes confusing to people, so we'll be using the
> > > > > more descriptive term from now on. For similar reasons, we'll be using
> > > > > the term "production mode" rather than 

Re: Announcing GWT 2.0 Milestone 1

2009-10-12 Thread Sky

Christian,

does it work to Terminate the process to close the dev mode hosted
window? It should. It works for me to just close it. Works in Vista
and Win 7.

I don't understand your second problem. Do you mean the main html
file, the one with the application's name is the one that was
generated from creating the new project and you did not update it to
be the same as the original project?

On Oct 9, 1:01 pm, Christian Goudreau 
wrote:
> I did the same trick as Sky to get my project to work. But I still have to
> problems.
>
> First : When I lauch it in development mode, I can't close the development
> mode hosted window without closing eclipse, that's anoying because I can't
> switch to debug mode... So now, I just run it in debug without brake point
> to make sure I'm able to stop it and close the development mode hosted
> window.
>
> Second : I have the new project html files instead of the one I'm using with
> my project ! That's really weird, because on top of my application I have
> everything from the new project html file, but my JS files, css files ar
> linked correctly ! LOL
>
> Christian
>
>
>
> On Fri, Oct 9, 2009 at 1:36 PM, Ben  wrote:
>
> > Sky, thanks for you reply. I am using Eclipse 3.5.0 (I am not sure
> > updating to 3.5.1 matters) and my google eclipse plugin is uptodate.It
> > still throws that exception if I just use default google plugin launch
> > configuration.
>
> > On Oct 8, 5:39 pm, Sky  wrote:
> > > Ben, with 2.0 my projects launch the development shell when using the
> > > Google plugin launch options. It launched for me even when I just
> > > changed a project from 1.7.1 to 2.0, but you could try creating a
> > > whole new project with 2.0 from the start and copy the files over from
> > > the old project.
>
> > > Make sure the google plugin and the appengine is fully up to date.
> > > What version of Ecipse are you using? Try downloading the new 3.5.1
> > > version.
>
> > > Sorry I can't help any more than that. gl
>
> > > On Oct 8, 3:50 pm, Ben  wrote:
>
> > > > I have noticed that if you use Google Plugin to launch your project
> > > > with 2.0 jar. The development shell does not launch at all. You have
> > > > to launch it as a Java Application and set up some parameters by
> > > > yourself, then you are able to see that GWT Develop Mode popup shell
> > > > window. Is my observation correct?
>
> > > > On Oct 8, 1:33 pm, Sky  wrote:
>
> > > > > I got debugging to work!
>
> > > > > I created a new GWT web app with the Eclipse google plugin using GWT
> > > > > 2.0MS1 as the SDK. This is what most likely solved my problem. Simply
> > > > > changing a project from GWT 1.7.1 to 2.0 must not be making all the
> > > > > necessary changes to the auto generated files to be properly
> > > > > compatible. Obviously this sort of thing will be ironed out for
> > > > > release.
>
> > > > > Then I needed to first launch (not a debug launch) the newly created
> > > > > GWT web app (with the default app still intact). I tried this with a
> > > > > browser that did not have the plugin installed (FF3.5) and when
> > > > > navigating to the URL it auto directed me to the plugin install web
> > > > > page and after installing the plugin the web app was rendered
> > > > > correctly. Note that at this point I have not compiled the app so the
> > > > > plugin is indeed doing its job! The java code is what is interacting
> > > > > synchronously with the browser instead of the compiled JS!
>
> > > > > Note that I had first attempted to launch the app in debug mode which
> > > > > gave me 3 errors related to the Appengine
> > > > > (com.google.apphosting.utils.jetty... yet eclipse could not resolve
> > > > > com.google.apphosting.utils.jetty) but those errors went away as soon
> > > > > as I did a non debug launch. In other words, the app was able to do a
> > > > > debug launch only after doing a regular launch.
>
> > > > > With the debug launch successful I was able to hit a breakpoint in
> > the
> > > > > onModuleLoad method of this default web app! I then copied all the
> > > > > required files from my previous project into this new one. Once again
> > > > > I was able to hit a breakpoint on the onModuleLoad method!
>
> > > > > I am very excited to have this working!
>
>

History (browser): works differently across browsers

2009-10-13 Thread Sky

GWT's History object, which allows you to create browser history
within a GWT ajax app, works differently across browsers.

Within IE, FF and Safari calling History.newItem(String historyToken,
boolean issueEvent) for the first time adds a browser history state on
top of the history event of navigating to the GWT web app.

ie. Start at site http://google.com then navigate to http://myapp.appspot.com
(made up site) then interact with the site to go to 
http://myapp.appspot.com#page2
and your history will look like:

myapp - page2
myapp - home
Google

Within Opera and Chrome (normal channel as well as dev channel)
calling History.newItem() for the first time replaces the history
state of navigating to the GWT web app.

The above example results in the following history:

myapp page2
Google

While this may be a bug, I don't care because I just need a way to
detect (with javascript or GWT) which way the browser will behave.
Does anyone know how I could detect this? The only thing I can think
of is to detect which browser the user is using in order to process
this situation. This obviously would be terrible programming because
if any of the browsers change their behavior I would need to change my
app.

Many many thanks!

p.s. the url to myapp.appspot.com is made up, I have no idea if it is
real. It was just for example.

If you really need to see an example I could make an example site.
--~--~-~--~~~---~--~~
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: History (browser): works differently across browsers

2009-10-13 Thread Sky

Well, this problem might be the 1016 Chromium issue
http://code.google.com/p/chromium/issues/detail?id=1016

My situation is not exactly the same, because the 1016 issue appears
to only affect history that should be there for hash changes. My issue
is that the history state for the website prior to making the first
hash change is lost.

I can think of no way to test a browser with JS to detect whether it
will behave this way. I can only think that I should detect the
browser being used and process accordingly. Thankfully doing that can
and will solve my particular problem with this behavior (you would
need to understand what my app is doing to know why) but it is not a
general solution to the problem. It is also very much a "hack"
solution because as soon as chrome is patched to fix this issue I will
have to modify my app to not act specially for chrome.

If anyone has any further insight to help me or questions please let
me know. Thanks

On Oct 13, 1:21 pm, Sky  wrote:
> GWT's History object, which allows you to create browser history
> within a GWT ajax app, works differently across browsers.
>
> Within IE, FF and Safari calling History.newItem(String historyToken,
> boolean issueEvent) for the first time adds a browser history state on
> top of the history event of navigating to the GWT web app.
>
> ie. Start at sitehttp://google.comthen navigate tohttp://myapp.appspot.com
> (made up site) then interact with the site to go 
> tohttp://myapp.appspot.com#page2
> and your history will look like:
>
> myapp - page2
> myapp - home
> Google
>
> Within Opera and Chrome (normal channel as well as dev channel)
> calling History.newItem() for the first time replaces the history
> state of navigating to the GWT web app.
>
> The above example results in the following history:
>
> myapp page2
> Google
>
> While this may be a bug, I don't care because I just need a way to
> detect (with javascript or GWT) which way the browser will behave.
> Does anyone know how I could detect this? The only thing I can think
> of is to detect which browser the user is using in order to process
> this situation. This obviously would be terrible programming because
> if any of the browsers change their behavior I would need to change my
> app.
>
> Many many thanks!
>
> p.s. the url to myapp.appspot.com is made up, I have no idea if it is
> real. It was just for example.
>
> If you really need to see an example I could make an example site.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Browser development plugin for IE 8.0 doesn't appear to install

2009-12-17 Thread Sky
When I launch my GWT 2.0 app and paste the URL into IE 8.0 it says
"Development Mode requires the Google Web Toolkit Developer Plugin"
and so I install the plugin supplied but when I refresh the page, even
after restarting the browser, it continues to give the previous
message. The plugin does not seem to want to connect to the GWT
Eclipse Plugin. I see the Google Web Toolkit Developer Plugin for IE
is installed under Programs in Windows Vista 32bit.

Any insight into my problem? I had no problem with GWT 2.0 MS1 and the
various browser plugins.

--

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-tool...@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: Browser development plugin for IE 8.0 doesn't appear to install

2009-12-18 Thread Sky
Thanks so much Thomas! The solution provided in that issue solved the
problem for me.

On Dec 18, 5:20 am, Thomas Broyer  wrote:
> On Dec 18, 8:18 am, Sky  wrote:
>
> > When I launch my GWT 2.0 app and paste the URL into IE 8.0 it says
> > "Development Mode requires the Google Web Toolkit Developer Plugin"
> > and so I install the plugin supplied but when I refresh the page, even
> > after restarting the browser, it continues to give the previous
> > message. The plugin does not seem to want to connect to the GWT
> > Eclipse Plugin. I see the Google Web Toolkit Developer Plugin for IE
> > is installed under Programs in Windows Vista 32bit.
>
> > Any insight into my problem? I had no problem with GWT 2.0 MS1 and the
> > various browser plugins.
>
> Hi, have a look at issue 
> 4358:http://code.google.com/p/google-web-toolkit/issues/detail?id=4358

--

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-tool...@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: OOPHM memory leak?

2011-02-08 Thread Sky
This is an old thread, but I'm experiencing a similar out of memory error 
using the GWT 2.1 and AppEngine 1.40. This happens when the javaw.exe 
exceeds 512mb.

I have -Xmx512m set. I must have set that a long time ago because I don't 
remember doing that.

But if I reload my app around 15 times I run out of memory. Not the end of 
the world, but I'd like to know if I'm doing something wrong in my web app. 
I don't want the browser tab to be using up tons of memory if I'm doing 
something wrong. I suspect that this issue doesn't affect the browser, but I 
want to be sure.

-- 
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: Announcing GPE/GWT 2.2 RC1

2011-02-12 Thread Sky
Hi,

to come back to the GWT 2.2 exception Ümit mentioned above, I too have
this error. Do we need a new GIN. jar??

here is my complete Stacktrace i get when i compile my project with
new GWT 2.2:

java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
84)
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
65)
at
com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
47)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:
48)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:
60)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:
662)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
41)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:74)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
259)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
248)
at
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:
91)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$400(AbstractCompiler.java:145)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
632)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
124)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
54)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
517)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
35)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)

[ERROR] Unexpected
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.validateInjectorClass(GinjectorGeneratorImpl.java:
84)
at
com.google.gwt.inject.rebind.GinjectorGeneratorImpl.generate(GinjectorGeneratorImpl.java:
65)
at
com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator.java:
47)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:
48)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:
60)
at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:
662)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
41)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:74)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
259)
at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
248)
at
com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:
91)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImp

Production bugs that don't exist in development mode

2011-02-16 Thread Sky
I have two bugs that just cropped up but they only occur in production
and not in development mode.
One is an actual javascript error so I'll probably be able to figure
that one out without debugging, though it might be painful.
One does not give a javascript error but is a functionality problem
that occurs in production and not in dev mode. I was sure I knew the
cause of the problem by just knowing my code but after implementing
the fix it was not solved.

I know this problem is too generic for someone to figure out how the
compiled code is behaving differently than the java code, but does
anyone have any tips or tricks to help me out? I've always been able
to debug to find my gwt problems up till now.

I am not new to GWT development.

-- 
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: Production bugs that don't exist in development mode

2011-02-16 Thread Sky
Forgot to say I'm using AppEngine version 1.4.2 and GWT 2.2.0,
developing on Eclipse 3.5.2. Production is running on google's
appengine.

On Feb 16, 10:28 am, Sky  wrote:
> I have two bugs that just cropped up but they only occur in production
> and not in development mode.
> One is an actual javascript error so I'll probably be able to figure
> that one out without debugging, though it might be painful.
> One does not give a javascript error but is a functionality problem
> that occurs in production and not in dev mode. I was sure I knew the
> cause of the problem by just knowing my code but after implementing
> the fix it was not solved.
>
> I know this problem is too generic for someone to figure out how the
> compiled code is behaving differently than the java code, but does
> anyone have any tips or tricks to help me out? I've always been able
> to debug to find my gwt problems up till now.
>
> I am not new to GWT development.

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



  1   2   >