Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-23 Thread alexoffspring

Jesse,
doesn't work with me. Got the same error message

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
2.2.0.v201102111811.
http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.core_2.2.0.v201102111811.jar
Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
2.2.0.r36x201102111505..

Why does Eclipse say:Artifact not found ??

Is there any official answer by Google? All the other users, that
joined the present discussion, did they manage to solve and upgrade to
2.2?
How did they do?


--Alex


On 22 Feb, 18:28, Jesse jesol...@gmail.com wrote:
 I had this problem as well.  It was solved by installing in
 increments:

 First, install Plugin only (no SDK)
 Next, install GWT 2.2 SDK (no App Engine)
 Finally, install App Engine SDK

 I restarted in between each.

-- 
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: CellTable Styling

2011-02-23 Thread Erik Bens
The problem was -you're right- the .css. I had a clearing part which
sets nearly all elements to a white background and some more. The
div element was also set to this, which was no good :)

Thanks
Erik

On 22 Feb., 18:06, John LaBanca jlaba...@google.com wrote:
 The inner div is added by CellTable to make the cell focusable (TD elements
 are not focusable on all browsers, so we need a TD).  tbroyer is correct
 that the style must be inherited from somewhere else.  Have you looked at it
 with firebug or Chrome dev tools?

 Thanks,
 John LaBanca
 jlaba...@google.com

 On Tue, Feb 22, 2011 at 9:54 AM, Thomas Broyer t.bro...@gmail.com wrote:
  Given that the div isn't explicitly given any CSS class or inline style,
  its white background must come from a stylesheet that defines something like
  div { background-color: white; }.
  Your issue thus is more with this stylesheet than with CellTable using a
  div inside the table cells.

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

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



Re: GWT Designer and GAE deployment

2011-02-23 Thread csaffi
Please help, I'm not able to run on GAE applications developed with
the GWT Designer, as described before...

Thank you very much in advance for your help!

-- 
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: TabLayoutPanel + dynamic tab content + DialogBox = ?

2011-02-23 Thread Thomas Broyer
Maybe you could file a bug? They'll be undeprecating DockPanel in 2.3, and 
maybe TabPanel should be undeprecated too: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5888

-- 
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: Bazarooma, a realestate site with GWT

2011-02-23 Thread George Georgovassilis
Dear all, thank you very much for the valuable points you made!

@Christian: Big screen... lucky you :-) Some sites (think twitter)
solve this by center-aligning the content and providing an ambient
background. I hope, as the functionality of the site increases over
time, to make better use of that extra space (i.e. social links, more
thumbnails) which can wrap to the next line on smaller screens.

@Shyam: Thank you for the encouraging words and for pointing out this
serious issue. As I personally don't use openId (or for that matter
anything alike) I've failed to anticipate the logout problem - will
fix ASAP. I agree about the terms of service, we've unfortunately been
lagging somewhat with the indonesian translation, yet felt too eager
to get your feedback before we launch for good.

@Nino/Alain: Sure thing, I PM'd you

Many thanks  regards!
G.

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



Re: Error installing GWT 2.2 in eclipse 3.6

2011-02-23 Thread Andrew Scully
In my case, I had to install from the zip archive instead due to
firewall trouble.

Even then, I had to run the install (and restart) twice before it
installed correctly, for some reason.

Make sure your eclipse is fully up to date prior to installation.

Cheers, Andy.


On Feb 23, 8:02 am, alexoffspring alessales...@gmail.com wrote:
 Jesse,
 doesn't work with me. Got the same error message

 An error occurred while collecting items to be installed
 session context was:(profile=SDKProfile,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
 Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
 2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
 Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
 2.2.0.r36x201102111505..

 Why does Eclipse say:Artifact not found ??

 Is there any official answer by Google? All the other users, that
 joined the present discussion, did they manage to solve and upgrade to
 2.2?
 How did they do?

 --Alex

 On 22 Feb, 18:28, Jesse jesol...@gmail.com wrote:

  I had this problem as well.  It was solved by installing in
  increments:

  First, install Plugin only (no SDK)
  Next, install GWT 2.2 SDK (no App Engine)
  Finally, install App Engine SDK

  I restarted in between each.

-- 
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 Designer / Only Small Black Square

2011-02-23 Thread AndrewR
What version of eclipse are your running 32 or 64 bit? I had a problem 
similar to this a while back when the designer was first released. I was 
running 64-bit eclipse. When I moved back to the 32-bit version everything 
worked correctly. I haven't tried it since.

Andrew

-- 
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: Dynamic image url/data changing

2011-02-23 Thread Matej Jelovcan
Ah, problem solved. As it was a stupid one :D

After taking a step back and looking again, naturally, super.layout()
call was missing.

Cheers.

On 2/23/11, Matej Jelovcan zuti...@gmail.com wrote:
 Hey guys. Simple problem. I'll just post the source...

 public class ImageWindow extends Window
 { 
   private Image image = null;
   
   public ImageWindow()
   {
   this.setHeading(Original Heading);
   image = new Image(Images.INSTANCE.loading());
   this.add(image);
   }
   
   public void setImage(FileNode file)
   {
   final ZPortalServiceAsync portalService =
 Registry.get(Statics.PORTAL_SERVICE);
   portalService.getImage(file, ImageDisplayMode.Preview, new
 AsyncCallbackFileNode()
   {
   @Override
   public void onSuccess(FileNode result)
   {
   ImageWindow.this.remove(image);//it removes it
   image = new Image(result.getData());
   ImageWindow.this.add(image );//nothing
   ImageWindow.this.setSize(result.getWidth(),
 result.getHeight());//resize is OK, data is received
   ImageWindow.this.setHeading(Async 
 Heading);//heading is changed
   }
   
   @Override
   public void onFailure(Throwable caught)
   {
   ImageWindow.this.setHeading(Error Heading);
   }
   });
   }
 }

 If you can notice, I create my ImageWindow with loading image
 (animated gif...). Then I call setImage() procedure with parameter
 (called from outside, where ImageWindow is created). Now, after image
 data is retrieved I would like to replace original loading gif with
 it. Not working. Header is set, window is resized to new image
 dimensions but no image is displayed.

 I must be missing somethig really obvious I guess :S

 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.



Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
Hi,

I tried to update an existing 2.1.1 project to 2.2 without success.
The compiler throws a lot of errors and exceptions.
I found in another post that we should update Gin to 1.5 and tried it,
but it wasn't helpful.

Any idea?

Thanks.

This is the compiler's log:

Compiling module com.example.myproject
   Validating newly compiled units
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/CanvasElement.java'
 [ERROR] Line 49: No source code is available for type
com.google.gwt.canvas.dom.client.Context; did you forget to inherit a
required module?
 [ERROR] Line 60: No source code is available for type
com.google.gwt.canvas.dom.client.Context2d; did you forget to inherit
a required module?
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/MediaElement.java'
 [ERROR] Line 124: No source code is available for type
com.google.gwt.media.dom.client.TimeRanges; did you forget to inherit
a required module?
 [ERROR] Line 178: No source code is available for type
com.google.gwt.media.dom.client.MediaError; did you forget to inherit
a required module?
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/dom/client/Touch.java'
 [ERROR] Line 36: The method touchGetClientX(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 45: The method touchGetClientY(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 54: The method touchGetIdentifier(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 63: The method touchGetPageX(Touch) is undefined
for the type DOMImpl
 [ERROR] Line 72: The method touchGetPageY(Touch) is undefined
for the type DOMImpl
 [ERROR] Line 103: The method touchGetScreenX(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 112: The method touchGetScreenY(Touch) is
undefined for the type DOMImpl
 [ERROR] Line 121: The method touchGetTarget(Touch) is
undefined for the type DOMImpl
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureChangeEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureEndEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/GestureStartEvent.java'
 [ERROR] Line 53: The method getRotation() is undefined for
the type NativeEvent
 [ERROR] Line 57: The method getScale() is undefined for the
type NativeEvent
  [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
gwt-user.jar!/com/google/gwt/event/dom/client/TouchEvent.java'
 [ERROR] Line 41: The method getChangedTouches() is undefined
for the type NativeEvent
 [ERROR] Line 54: The method getTargetTouches() is undefined
for the type NativeEvent
 [ERROR] Line 66: The method getTouches() is undefined for the
type NativeEvent
   [ERROR] Errors in 'file:/home/fernando/workspace/sigras-war/
desarrollo/uy/org/inia/gras/sigras/war/client/
SigrasDesarrolloEntryPoint.java'
  [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found class
com.google.gwt.core.ext.typeinfo.JClassType, but interface 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.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
427)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
39)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:115)
at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:58)
at

Re: Feedback Requested: Preview of new GWT Style Theme

2011-02-23 Thread mP
Firstly,

I think GWT needs to add some gradient washes to the background of
buttons, tabs and other areas with solid colours.

- menus
  - the highlighted menu colours are almost the same as the gradient
wash that spans the entire menu bar. The highlighted colour should
really be different.
  - the highlighted sub menu text need some padding. It looks wrong
that the highlighted background is almost the same dimensions as the
text above it.
- suggestbox
  - the rounded corner suggestions below the text box seem wrong. I
dont think ive seen a suggest box or similar w/ rounded boxes.
  - the drop down list should imho be the same width as the text box.
it looks wrong that the suggestions are different widths (dependent on
the width of the suggestion word).
- listbox
  - the listboxes seem to be missing right and bottom borders ( in
FF).
- Cell sampler -
  - buttons in the individual cells look different from the control
buttons outside the table (redraw and commit changes).
  - redraw and commit change buttons need some padding.
- table rows look a little plain - alternating colours needa 2.5 look
with at the very least a simple blend near the top and bottom edges of
the highlighted row.


On Feb 23, 4:25 am, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Overall UI principle:
 Good UI is unconscious UI.  If the user has to stop and think about
 something (is A really different from B?), then the UI has failed.
 A quick glance should, immediately and without any conscious thought,
 tell the user essentially everything about the interface.  This is
 disabled, that is not.  This is the foreground object, these are
 background objects, and that is the overall background.  Three very
 differnt things, which therefore should always LOOK very different.

 Sometimes you do a good job of this (check boxes, radio buttons),
 other times you do a very poor job (basic button, Tab Layout Panel).

 And remember: big targets are good (and fast) targets.  Small targets
 are bad (and slow) targets.

 Lighting:
 Your text boxes have the top bar of the box black, and the other three
 gray.  it looks wrong to my eyes,  If you're trying for a 3D effect, I
 can't see it.  Depth takes more than one pixel / line.  I'm perfectly
 happy with 2D UI objects (which would mean all for lines being the
 same color).  I'm willing to live w/ 3D.  Right now, you have a 2.5D
 look that just doesn't work.  I urge you to pick one look, and stick
 to it.

 1: Basic Button:
 It's very hard to tell the disabled and enabled buttons apart.  I
 suggest either changing the background more when it's disabled, or
 bolding the text when it's enabled.  (Compare with Custom Button,
 where it's quick and easy to tell if it's enabled or not.)

 2: Hyperlinks:
 Is there a difference between followed and never visited
 Hyperlinks?  Because if there is, I can't see it.  If there isn't, and
 it's possible to add it, I think it should be added.

 3: ListBox:
 It would be good to have enough entries for one of the selections so
 we can see what it looks like when the Box has to scroll its data.

 5: Tree
 A: While the +/- works, I certainly prefer the triangle that turns to
 the side or down based on the disclosure state.
 B: The disclosure box is a rather small target to hit (I missed it
 several times).  It would be nice to make it bigger, and / or make it
 so double-clicking on the text of the line opens / closes the
 disclosure.

 6: Menu Bar:
 It's nice, but it COMPLETELY clashes with the menu bar on my web
 browser (Sea Monkey on Windows XP).

 I know you're trying to develop your own theme, but the apps created
 with this theme have to live inside web browsers.  Violently clashing
 with the surrounding UI is inherently bad UI, no matter how pretty the
 UI might be in isolation.

 7: Disclosure Panel:
 When I click on the Disclosure Panel, the text of the title gets
 surrounded by a gray box.  This looks OK when it closes, but looks
 really ugly when it opens.

 8: Tab Layout Panel:
 Put me in the hate it column.  Dark Blue on Slightly Less Dark Blue
 is IMO a really bad color combination (and I say this as someone who
 really likes blue).  The unselected Tabs are different from the
 background.  Therefore, they need to have a different, easily
 distinguishable, color than the background.

 9: Cell Browser
 It's Browse through dynamic data, NOT BrowseR through dynamic
 data :-)

 Other than that it's fairly good.  But I didn't notice anything that
 caused me to think hey, that's great, i want that!

 Greg

 On Feb 16, 12:12 pm, John LaBanca jlaba...@google.com wrote:

  The GWT team is happy to (pre)announce that we will introduce a new, more
  modern CSS style theme in GWT 2.3 called Clean.  The new theme makes
  existing widgets look cleaner (more business-like) than the standard
  theme, and replaces the thick light blue borders with thin gray borders.  We
  worked under the constraint that we would not modify the DOM structure of
  the existing 

GWT-Validation with GWT 2.2.0

2011-02-23 Thread klemensr
Dear all,

I just updated from GWT 2.0 to GWT 2.2.0 and I have issues with GWT-
Validation (http://code.google.com/p/gwt-validation/).

Is there maybe a new way of doing validation in GWT 2.2.0?

I have found nothing in different forums about GWT-Validation and GWT
2.2.0.

Here is my failure message:

[ERROR]  Internal compiler error
[INFO] java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected

From my point of view I think that this may have to do that the GWT-
Validation is built to run with an older GWT version and now have
troubles with the changed class structure.

Can anybody help me out here?

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: Error installing GWT 2.2 in eclipse 3.6

2011-02-23 Thread alexoffspring
Andrew,
thanks for your precious help.

I confirm that this procedure leads to a successfull installation.

The thread is [SOLVED]

Thanks to all for the contribute.

--Alex

On 23 Feb, 10:14, Andrew Scully andrewscu...@gmail.com wrote:
 In my case, I had to install from the zip archive instead due to
 firewall trouble.

 Even then, I had to run the install (and restart) twice before it
 installed correctly, for some reason.

 Make sure your eclipse is fully up to date prior to installation.

 Cheers, Andy.

 On Feb 23, 8:02 am, alexoffspring alessales...@gmail.com wrote:

  Jesse,
  doesn't work with me. Got the same error message

  An error occurred while collecting items to be installed
  session context was:(profile=SDKProfile,
  phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
  action=).
  Artifact not found: osgi.bundle,com.google.gdt.eclipse.core,
  2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gdt.eclips...
  Artifact not found: osgi.bundle,com.google.gwt.eclipse.core,
  2.2.0.v201102111811.http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips...
  Artifact not found: osgi.bundle,com.google.gdt.eclipse.designer,
  2.2.0.r36x201102111505..

  Why does Eclipse say:Artifact not found ??

  Is there any official answer by Google? All the other users, that
  joined the present discussion, did they manage to solve and upgrade to
  2.2?
  How did they do?

  --Alex

  On 22 Feb, 18:28, Jesse jesol...@gmail.com wrote:

   I had this problem as well.  It was solved by installing in
   increments:

   First, install Plugin only (no SDK)
   Next, install GWT 2.2 SDK (no App Engine)
   Finally, install App Engine SDK

   I restarted in between each.

-- 
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-Validation with GWT 2.2.0

2011-02-23 Thread tdk
maybe rebuilding your project from scratch (clean build) helps.
I had a similar issue which went away after doing a clean build.

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



UIBinder changing element attributes

2011-02-23 Thread Vinicius Carvalho
Hello there!

How do I change the attributes (size and width) of a given UIBinder
element? I've read about changing the class, but this is not what I
need actually.

Here's my uibinder file:

g:HTML
g:HTML ui:field=header class=window-header/g:HTML
g:HTML ui:field=content class=window-content/g:HTML
/g:HTML


I need to change the width of the outer HTML element of the uiBinder.
The fields I can change with no problems, as I access them using the
class properties. but I have no idea about the outer HTML

BR

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



help with starting hosted mode...

2011-02-23 Thread alfonz19
Hi.

I've got this problem. I use maven and Jboss to build enterprise app
with many ejb modules and one web module. Everything is configured,
will build successfully, I can debug server side code. But I'm unable
to do so with client side. I cannot make hosted mode running.

Eclipse plugin is NOT cause of problem. I've given Eclipse two shots
and installation crashed at some point in both cases so I use
Netbeans. There IS NB plugin, more or less similar to eclipse one. It
works well when only webApp is built, but I've never convice it to
work when used maven  Enterprise app (process, the plugin starts when
turn on hosted mode, is NOT correct).

Question:
a) how to start hosted mode in netbeans if that's possible OR
b) what is any other way to start hosted mode in this scenario (maven
project, enterprise app) on linux to be able to attach debugger to
created process from netbeans.

thanks in advance.
martin.

-- 
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-Validation with GWT 2.2.0

2011-02-23 Thread klemensr
Thanks for the response.
I have created an own test project so that should not be the
problem...

Any other suggestions?


On 23 Feb., 12:38, tdk kloe...@ics.de wrote:
 maybe rebuilding your project from scratch (clean build) helps.
 I had a similar issue which went away after doing a clean build.

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



Problem with CellTable and Focus

2011-02-23 Thread AlexG
Hi @ all,

I have about 8 Views in myProject, where I use the CellTable Widget to
display data from the Datastore.
Only with one View I have problems with the Focus of the CellTable.

The 7 working Widgets work lie this:
If I select an Item in the CellTable, than it is highlighted as
selected (default: blue bg-color).
When the AsyncDataProvider perform an refresh of the data, the
selection is still highlighted,
as it is intended.

The problem with one View is, that the selection isn´t highlighted
anymore (looses the focus), when the AsyncDataProvider refreshes it´s
data. I checked the source-code for differences, but I can´t see any
differences in how the CellTable is created, or how the data or
selected from the server. I use the new GWT 2.2 SDK.

Anybody has an idea, what is going wrong?

Thanks.
Greets 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-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-Validation with GWT 2.2.0

2011-02-23 Thread Christian Goudreau
Gwt-validation is incompatible with Gwt 2.2, you have to checkout the code
and compile it against Gwt 2.2.

Cheers,

On Wed, Feb 23, 2011 at 7:30 AM, klemensr klem...@reinthaler.info wrote:

 Thanks for the response.
 I have created an own test project so that should not be the
 problem...

 Any other suggestions?


 On 23 Feb., 12:38, tdk kloe...@ics.de wrote:
  maybe rebuilding your project from scratch (clean build) helps.
  I had a similar issue which went away after doing a clean build.

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




-- 
Christian Goudreau
www.arcbees.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 Designer and GAE deployment

2011-02-23 Thread Eric Clayberg
We need more details here. What do you mean by you cannot use the
Designer because it seems disabled. Disabled in what way?

With the second project, why can't you run it on GAE after
deployment?

What version of GWT are you using? What version of GWT Designer?

On Feb 22, 11:32 am, csaffi csaff...@gmail.com wrote:
 Hi everybody,
 I'm using GWT Designer + Google Plugin for Eclipse, and I'd like to
 design the GUI with the designer and deploy the resulting app on
 Google App Engine. I'm fighting from hours with this problem:

 - if the application project is created using the New Web Application
 Project wizard, I can successfully run it on GAE after deployment,
 BUT I cannot use the Designer because it seems disabled

 - if the application project is created using the New- Other-
 WindowBuilder- GWT Designer- Model- GWT Java Project, I can
 successfully use Designer, BUT I cannot run it on GAE after deployment

 Please help me!

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



BlurEvent or how to Insert text in TextBox at Cursor Position

2011-02-23 Thread jones34
Hi,

I want to insert text at a textBox's cursor position in response to a
button click.  The obvious problem is that the clicking the button
removes focus from the textBox, so there's no cursorPos value. (At
least I assume that's what's happening.)

Is the right way to do this to have the textBox fire a blurEvent,
which I can use to get the cursor positon (or is the position gone by
then)?

Alternately, should I use both key and mouse listeners to constantly
track the cursor position so I have it when needed?

Or is there another, better way I haven't thought of.

Thanks much.

-- 
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 Designer / Only Small Black Square

2011-02-23 Thread Eric Clayberg
What version of IE are you running on both machines?

If you actually run the app on your XP box, do those widgets display
correctly?

On Feb 22, 12:56 pm, cri chuck.irvine...@gmail.com wrote:
 More info on the problem.

 First, and perhaps most important, the problem seems to involve all of
 the new layout panels: DockLayoutPanel, SplitLayoutPanel,
 StackLayoutPanel. I've tried those and for each the problem exists. I
 would guess its the same for the other new layout panels.

 Secondly, I've verified that the problem is not a corruption of my
 local environment. A co worker just downloaded the latest eclipse and
 gwt plugin and he has the same exact problem. He also is running
 Windows XP and his environment is very similar since both computers
 are company computers.

 Perhaps a defect should be opened for this.

 Can anyone else running Windows XP see whether they also suffer from
 this problem?

 Thanks, Chuck

 On Feb 22, 10:45 am, cri chuck.irvine...@gmail.com wrote:







  I do see part of the problem. When I open the attached code, the size
  showing for rp and p is (0,0). Can anyone guess what might be
  causing this? If I set the sizes of rp and p respectively to
  500,500 and 400,400, I now see more than the black square. However, I
  still don't see the split panel controls in the preview window. Nor do
  I see navigation, list or details on the preview screen.
  Hopefully, this will give someone a clue as to what my problem might
  be. Sure hope so. I'm trying to convince others to use GWT Designer
  and this might pose a problem Thanks

  On Feb 22, 8:39 am, cri chuck.irvine...@gmail.com wrote:

   I'm stumped. A number of the GWT widgets don't show up correctly in my
   GWT Designer design window or the preview window. As an example, the
   code below produces a very small black dot in the design window and
   nothing shows up in the preview window. The odd thing is, the same
   thing works as expected for me on my computer at home. Both at home at
   work I'm using the same versions of stuff (see below) with one
   exception. At home I use Windows 7 and at work Windows XP. Wouldn't
   think that that would make a difference. I've tried installing a fresh
   version of Eclipse and using a new workspace - to no avail.

   If anyone has a clue or has a trouble shooting suggestion, I'd love to
   hear it. Thanks

   Versions
   Eclipse: Helios
   GWT: 2.2

   package foo.bar.client;

   import com.google.gwt.core.client.EntryPoint;
   import com.google.gwt.user.client.ui.HTML;
   import com.google.gwt.user.client.ui.RootLayoutPanel;
   import com.google.gwt.user.client.ui.SplitLayoutPanel;

   public class GwtApp implements EntryPoint {

     public void onModuleLoad() {
       // Create a three-pane layout with splitters.
       SplitLayoutPanel p = new SplitLayoutPanel();
       p.addWest(new HTML(navigation), 128);
       p.addNorth(new HTML(list), 384);
       p.add(new HTML(details));
       RootLayoutPanel rp = RootLayoutPanel.get();
       rp.add(p);
     }

   }

-- 
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 Designer / Only Small Black Square

2011-02-23 Thread cri
Alas, I'm running 32 bit version so that's not my problem. GWT
Designer guys - any advice at all. I'm trying to sell my co workers on
GWT Designer and this isn't going to help. Thanks

On Feb 23, 3:44 am, AndrewR richards...@gmail.com wrote:
 What version of eclipse are your running 32 or 64 bit? I had a problem
 similar to this a while back when the designer was first released. I was
 running 64-bit eclipse. When I moved back to the 32-bit version everything
 worked correctly. I haven't tried it since.

 Andrew

-- 
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: UIBinder changing element attributes

2011-02-23 Thread Gal Dolber
Every attribute is turned into a setter.
The HTML Widget do not have a setClass method, but you can use styleName
or width

g:HTML
   g:HTML ui:field=header styleName=window-header
width=50px/g:HTML
   g:HTML ui:field=content styleName=window-content/g:HTML
/g:HTML

On Wed, Feb 23, 2011 at 8:55 AM, Vinicius Carvalho 
viniciusccarva...@gmail.com wrote:

 Hello there!

 How do I change the attributes (size and width) of a given UIBinder
 element? I've read about changing the class, but this is not what I
 need actually.

 Here's my uibinder file:

 g:HTML
g:HTML ui:field=header class=window-header/g:HTML
g:HTML ui:field=content class=window-content/g:HTML
 /g:HTML


 I need to change the width of the outer HTML element of the uiBinder.
 The fields I can change with no problems, as I access them using the
 class properties. but I have no idea about the outer HTML

 BR

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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: BlurEvent or how to Insert text in TextBox at Cursor Position

2011-02-23 Thread jones34
Question withdrawn. Using a blurEvent works fine. I shouldn't hack so
early in the morning with so little coffee.

On Feb 23, 8:32 am, jones34 ljw1...@gmail.com wrote:
 Hi,

 I want to insert text at a textBox's cursor position in response to a
 button click.  The obvious problem is that the clicking the button
 removes focus from the textBox, so there's no cursorPos value. (At
 least I assume that's what's happening.)

 Is the right way to do this to have the textBox fire a blurEvent,
 which I can use to get the cursor positon (or is the position gone by
 then)?

 Alternately, should I use both key and mouse listeners to constantly
 track the cursor position so I have it when needed?

 Or is there another, better way I haven't thought of.

 Thanks much.

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



CGI problem

2011-02-23 Thread cvh
Hello all,

I've been knocking my head against this for a few days now. I have a
GWT webapp (running on Ubuntu Lucid Lynx) which acts as a kind of
dashboard for my application. The dashboard has a number of tabs, one
of which displays my bugzilla installation. The bugzilla home page is
contained within a Frame.  The Frame is initialised as follows:

// bugzilla tab
// Apache must be running for this to be served
com.google.gwt.user.client.ui.Frame bugFrame = new Frame(http://
localhost/bugzilla);
bugFrame.setStyleName(frame);
DOM.setElementPropertyInt(bugFrame.getElement(), frameBorder, 0);//
remove frame border
DecoratedTabPanel tabPanel = new DecoratedTabPanel();
tabPanel.add(bugFrame, Bugzilla)

The bugzilla installation runs on Apache and MySQL, and works fine
when I access it via http://localhost/bugzilla. I can view, create and
edit bugs, all perfectly fine. Please note that the bugzilla index
page is index.cgi.

However, when the GWT webapp runs, no output is displayed for the
bugzilla tab. I have tried using both GWT development mode and a
separate Jetty server on port 8080 to see if that makes a difference,
but the results are identical. The Apache access.log file appears to
indicate that the page is successfully fetched, but nothing happens:

Using Jetty
===
127.0.0.1 - - [23/Feb/2011:13:55:14 +] GET /bugzilla HTTP/1.1
301 557 http://localhost:8080/dash/; Mozilla/5.0 (X11; U; Linux
i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid)
Namoroka/3.6.15pre
127.0.0.1 - - [23/Feb/2011:13:55:14 +] GET /bugzilla/ HTTP/1.1
200 3062 http://localhost:8080/dash/; Mozilla/5.0 (X11; U; Linux
i686; en-GB; rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid)
Namoroka/3.6.15pre

Using GWT development mode
==
127.0.0.1 - - [23/Feb/2011:13:50:07 +] GET /bugzilla HTTP/1.1
301 557 http://127.0.0.1:/Dashboard.html?
gwt.codesvr=127.0.0.1:9997 Mozilla/5.0 (X11; U; Linux i686; en-GB;
rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/
3.6.15pre
127.0.0.1 - - [23/Feb/2011:13:50:07 +] GET /bugzilla/ HTTP/1.1
200 3062 http://127.0.0.1:/Dashboard.html?
gwt.codesvr=127.0.0.1:9997 Mozilla/5.0 (X11; U; Linux i686; en-GB;
rv:1.9.2.15pre) Gecko/20110217 Ubuntu/10.04 (lucid) Namoroka/
3.6.15pre

If I change the bugzilla URL in the GWT code above to fetch some page
which is not a cgi file (e.g. http://localhost/bugzilla/README), it is
rendered fine. It seems therefore that I have some configuration
problem which prevents GWT from displaying the output of a cgi file.

My apache2.conf file reads as follows (the bugzilla cgi config section
is at the bottom).

Does anyone have any pointers for me, please? Thank you.

Clive

apache2.conf

#
# Based upon the NCSA server configuration files originally by Rob
McCool.
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.2/ for detailed information about
# the directives.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are
unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server
process as a
# whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
# which responds to requests that aren't handled by a virtual
host.
# These directives also provide default values for the settings
# of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent
to
# different IP addresses or hostnames and have them handled by the
# same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for
many
# of the server's control files begin with / (or drive:/ for
Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with /, the value of ServerRoot is prepended -- so /var/log/
apache2/foo.log
# with ServerRoot set to  will be interpreted by the
# server as //var/log/apache2/foo.log.
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of
Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
(available
# at URL:http://httpd.apache.org/docs-2.1/mod/
mpm_common.html#lockfile);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot /etc/apache2

#
# 

@def in @if for Conditional CSS

2011-02-23 Thread Andreas
Is there a way to get @def statments to get work in @if statments.
Whenever I try this, the @def last @if statment wins.For example:

@def backgroundColor #e00;

@if  platform p1{
@def backgroundColor #F1C1BD;
}
@if platform p2{
   @def backgroundColor #FDDCC5;
}
@if platform p3{
@def backgroundColor #F7C2DB;
}

backgroundColor is always #F7C2DB. The only way I've got it work is to
have explicit css rules in the if statement, which isn't very elegant:

@if platform p1 {
  body {
background: #F1C1BD;
  }
}

@if platform p2 {
  body {
background: #FDDCC5;
  }
}

@if platform p3 {
  body {
background: #F7C2DB;
  }
}

The documentation says it should work, but isn't very helpfully btw:

What does it mean to have an @def or @eval in an @if block? Easy to
make this work for property-based @if statements; would have to
generate pretty gnarly runtime code to handle the expression-based @if
statement. Could have block-level scoping; but this seems like a
dubious use-case

-- 
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: Which html element is (+/-) element in the CellTree? How can I edit it's id?

2011-02-23 Thread Anastasia
Well, I just wanted to add an 'id' in the '+' sign and not anything
else related to css and special customizing.

I've finally found a work around.

Thanks for the reply :)

On Feb 22, 1:35 am, FrugoFrog frugof...@gmail.com wrote:
 It this what you are looking 
 for?http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 2011/2/21 Anastasia akaprave...@gmail.com:

  Hello all,

  In the application I'm working on, that is build using gwt-2.1.1,
  there is CellTree presentation widget that creates a structure of
  folders containing subfolders in the application.Thefore a rootFolder
  may contain one or more folders and each subfolder may contain one or
  more subfolders. It's much like the example provided in
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTreewhere
  Friends collection has another collection of grouped by initial letter
  contacts, but with more depth.

  The '+' element on the left of a folder in the application represents
  (as expected from CellTree) that the folder contains subfolders and
  holds an onClick event that allows the parent folder to be expanded
  and subfolders to be displayed.

  But which is the '+' element (plusElement) in the code and how is that
  created? Can I make use of my own style class and add my own html id
  in this element by using plusElement.getElement().setId() or
  plusElement.getElement().setAttribute(class,myCSSClass) ? The
  getElement() method is contained in the com.google.gwt.user.client.ui
  package, in the UIObject Class.

  Thanks in advance,
  Anastasia

  --
  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 
  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-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: Split points for method having return type other than void

2011-02-23 Thread Deepak Singh
Sorry my mistake.
return type of foo() and bar() is int.

So now

public void onClick(Clickevent e) {
  GWT.runAsynck(
  public void onSuccess() {

int x = foo();
int y = bar(x);
goo(z);

  }
  );

}

public int foo() {
}

public int bar(int x) {
}

public void goo(int z) {
}

The above code does code splitting properly if foo(), bar() and goo() called
from only one place onClick().
So codes for all  these methods will be loaded only after click(). am i
right ?
Also, i could not understand the below red marked line properly. Request you
to explain a bit more.

Thanks
Deepak

On Wed, Feb 23, 2011 at 6:31 AM, Philippe Beaudoin 
philippe.beaud...@gmail.com wrote:

 The way you write it does not worl:
   int x = foo();
 expects foo() to return an int, but it's declared as returning void.

 You do not need to runAsync in foo, bar and goo provided you're only
 calling them from one place (onClick). If you're always calling them in
 succession, you should always have only one split point (runAsync) for the
 entire group.

 Cheers,

Philippe

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


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



Re: GWT-Validation with GWT 2.2.0

2011-02-23 Thread Christian Goudreau
Damn I was hoping it was enough, sorry it didn't help you.

Cheers,

On Wed, Feb 23, 2011 at 9:36 AM, klemensr klem...@reinthaler.info wrote:

 Yes, I have done that already but the code seems to have errors.
 (http://gwt-validation.googlecode.com/svn/trunk/)
 Some of the jUnit Tests failed. So I tried it without these tests. In
 this case I could compile the project but when I tried to use it I got
 lots of errors.

 I had the same problems with the code from
 http://gwt-validation.googlecode.com/svn/branches/jrs303_dev/

 I have heard that the validator is going to be included in the GWT
 core libraries, but this doesn't really help me at the moment... :)


 On 23 Feb., 14:11, Christian Goudreau goudreau.christ...@gmail.com
 wrote:
  Gwt-validation is incompatible with Gwt 2.2, you have to checkout the
 code
  and compile it against Gwt 2.2.
 
  Cheers,
 
 
 
 
 
 
 
 
 
  On Wed, Feb 23, 2011 at 7:30 AM, klemensr klem...@reinthaler.info
 wrote:
   Thanks for the response.
   I have created an own test project so that should not be the
   problem...
 
   Any other suggestions?
 
   On 23 Feb., 12:38, tdk kloe...@ics.de wrote:
maybe rebuilding your project from scratch (clean build) helps.
I had a similar issue which went away after doing a clean build.
 
   --
   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.
 
  --
  Christian Goudreauwww.arcbees.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.




-- 
Christian Goudreau
www.arcbees.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: Which html element is (+/-) element in the CellTree? How can I edit it's id?

2011-02-23 Thread Anastasia
Well, I just wanted to add an 'id' in the '+' sign and not anything
else related to css and special customizing.

I've finally found a work around.

Thanks for the reply :)

On Feb 22, 1:35 am, FrugoFrog frugof...@gmail.com wrote:
 It this what you are looking 
 for?http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 2011/2/21 Anastasia akaprave...@gmail.com:

  Hello all,

  In the application I'm working on, that is build using gwt-2.1.1,
  there is CellTree presentation widget that creates a structure of
  folders containing subfolders in the application.Thefore a rootFolder
  may contain one or more folders and each subfolder may contain one or
  more subfolders. It's much like the example provided in
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTreewhere
  Friends collection has another collection of grouped by initial letter
  contacts, but with more depth.

  The '+' element on the left of a folder in the application represents
  (as expected from CellTree) that the folder contains subfolders and
  holds an onClick event that allows the parent folder to be expanded
  and subfolders to be displayed.

  But which is the '+' element (plusElement) in the code and how is that
  created? Can I make use of my own style class and add my own html id
  in this element by using plusElement.getElement().setId() or
  plusElement.getElement().setAttribute(class,myCSSClass) ? The
  getElement() method is contained in the com.google.gwt.user.client.ui
  package, in the UIObject Class.

  Thanks in advance,
  Anastasia

  --
  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 
  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-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-Validation with GWT 2.2.0

2011-02-23 Thread klemensr
Yes, I have done that already but the code seems to have errors.
(http://gwt-validation.googlecode.com/svn/trunk/)
Some of the jUnit Tests failed. So I tried it without these tests. In
this case I could compile the project but when I tried to use it I got
lots of errors.

I had the same problems with the code from
http://gwt-validation.googlecode.com/svn/branches/jrs303_dev/

I have heard that the validator is going to be included in the GWT
core libraries, but this doesn't really help me at the moment... :)


On 23 Feb., 14:11, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Gwt-validation is incompatible with Gwt 2.2, you have to checkout the code
 and compile it against Gwt 2.2.

 Cheers,









 On Wed, Feb 23, 2011 at 7:30 AM, klemensr klem...@reinthaler.info wrote:
  Thanks for the response.
  I have created an own test project so that should not be the
  problem...

  Any other suggestions?

  On 23 Feb., 12:38, tdk kloe...@ics.de wrote:
   maybe rebuilding your project from scratch (clean build) helps.
   I had a similar issue which went away after doing a clean build.

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

 --
 Christian Goudreauwww.arcbees.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.



Exception in GWT/GAE app only in hosted mode

2011-02-23 Thread Sergey Frizen
Hi all!

I have a problem launching my app only in hosted mode. On GAE server
all works fine.
This is a code of service implementation:

/
package com.jsoft.frontoffice.server;

import java.util.Date;
import java.util.logging.Logger;

import javax.jdo.PersistenceManager;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.jsoft.frontoffice.client.MainService;

public class MainServiceImpl extends RemoteServiceServlet implements
MainService {

private static final long serialVersionUID = 1L;
private static final Logger log =
Logger.getLogger(MainServiceImpl.class.getName());

@Override
public String addDocument(String value) {

//Document doc = new Document();
//doc.setNumber(123);
//doc.setDate(new Date());
//doc.setDeletionMark(false);

try
{
log.warning(VALUE =  + value);
PersistenceManager pm =
PMF.get().getPersistenceManager();   - EXCEPTION HERE
try
{
//pm.makePersistent(doc);
} catch (Throwable t) {
pm.close();
log.warning(new Date().toString() + :
pm.makePersistent(doc);  + t.toString());
return new Date().toString() + : pm.makePersistent(doc);
 + t.toString();
}
}
catch (Throwable t) {
log.warning(new Date().toString() + : pm =
PMF.get().getPersistenceManager();  + t.toString());
t.printStackTrace();
return new Date().toString() + : pm =
PMF.get().getPersistenceManager();  + t.toString();
}

return OK;
}

}

/
and the stack trace:

Initializing AppEngine server
Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Successfully processed D:\!JOB!\java\FrontOffice\war\WEB-INF/appengine-
web.xml
Successfully processed D:\!JOB!\java\FrontOffice\war\WEB-INF/web.xml
The server is running at http://localhost:/
[WARN] VALUE = 123
[ERROR] ResourceBundle org.datanucleus.Localisation for locale ru_RU
was not found!
[ERROR] ResourceBundle org.datanucleus.jdo.Localisation for locale
ru_RU was not found!
[WARN] Wed Feb 23 06:35:01 UTC 2011: pm =
PMF.get().getPersistenceManager();
java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
at
com.jsoft.frontoffice.server.MainServiceImpl.addDocument(MainServiceImpl.java:
27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at

Migrating GWT 1.7 to GWT 2.2

2011-02-23 Thread Rajeshwaran
Hi,
Currently we r running GWT1.7 and like to migrate to GWT 2.2.0, would
like to know

1. whether maven has proper plugin to support it since we use maven
for building.
2. Host mode support from maven.

regards
Raj




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



Configure GWT Application

2011-02-23 Thread aemik
Hello,

after a Deplyoment (for example Tomcat) i want to configure my Web
Application in a property or xml file.
Ist something like a context.xml possible in GWT?

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 2.2.0 broke binary compatibility for code generation

2011-02-23 Thread Scott Blum
I bet you could do something like this:

class FooGenerator extends Generator {

  private static final Generator impl;

  static {
try {
  Class? jTypeClass =
Class.forName(com.google.gwt.core.ext.typeinfo.JType);
  Class? generatorClass;
  if (jTypeClass.isInterface()) {
generatorClass =
Class.forName(com.example.foo.rebind.impl.FooGenerator);
  } else {
generatorClass =
Class.forName(com.example.foo.rebind.legacyimpl.FooGenerator);
  }
  impl = (Generator) generatorClass.newInstance();
} catch (Exception e) {
  if (e instanceof RuntimeException) {
throw (RuntimeException) e;
  }
  throw new RuntimeException(e);
}
  }

  @Override
  public String generate(TreeLogger logger, GeneratorContext context,
  String typeName) throws UnableToCompleteException {
return impl.generate(logger, context, typeName);
  }
}




On Tue, Feb 22, 2011 at 6:06 PM, Brian Reilly brian.irei...@gmail.comwrote:

 I'll have to look into maven to see if that can be done, but I'm not

 too optimistic that it would work very well.


 Is there a gwt.version property that we can check inside the

 generate-with tag of the library's module XML? Theoretically, a

 library could then provide two classes in a single jar... one compiled

 against 2.1.1 and the other compiled against 2.2.


 I'd even take a property that is new or that the default value changed

 in 2.2... really anything to take the burden of worrying about this

 off of the end developer.


 -Brian

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


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



Best way to handle authentication failures with RequestFactory on the client

2011-02-23 Thread juanita
I am trying to figure out the best way to handle authentication
failures with RequestFactory on the client.

The way I understand this is supposed to work is as follows:
The client will perform a server request - typically expecting data to
be returned. The gwt framework will check if the user is authenticated
before passing the request to the corresponding class. The default
implementation basically returns true, a custom implementation of
UserInformation would perform the actual check.
If the gwt framework finds out that the user is not logged in, the
request will not be processed but a failure message is sent back to
the client.
The client would know that something is wrong, since onFailure()
rather than onSuccess() is called on the client.

This piece is working fine for me so far.

However, I am struggeling with finding a proper way to handle
authentication failures on the client. Typically, there is a large
number of places in the client code that perform server requests.
Having to inject the onFailure() code at each place to check for an
authentication failure and then act the same way (basically redirect
to a login url) seems to be inappropriate.
Is there a better way to intercept and handle these in a single
location?

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



Embeding GWT app in another site without iFrame

2011-02-23 Thread Bob Graton
Hello,

I have my demo GWT app  running fine at : http://site1.com/
Inside my Html Host file on this site I load the GWT app with:
script type=text/javascript language=javascript src=myapp1/
myapp1.nocache.js/script
Work fine.

I would like to embeded this App on another site 'http://site2.com'
without iFrame.
The new HTML page on site2.com tries to load the GWT js file from site
1 like this.

script type=text/javascript language=javascript src=http://
site1.com/myapp1/myapp1.nocache.js/script

This technique should not be restricted to Cross-site-scripting and
SoP.

The code is loaded but then I get the following JS Error:

Permission refusée à http://site1.com d'obtenir la propriété
Window.myhvgwt1 de http://site2.com.
http://site1.com/myapp1/82F202B9CDA2AEB236F4E6F6C9C1A8ED.cache.html
Line 775

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-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 Designer / Only Small Black Square

2011-02-23 Thread cri
Eric,

IE6 on both machines. Almost all are using It since it is currently
our standard version of IE. Do you think IE6 could be our problem? I
can probably upgrade to IE8.

Yes, when running the app in development mode, the widgets behave
correctly.

Thanks, Chuck



On Feb 23, 7:38 am, Eric Clayberg clayb...@google.com wrote:
 What version of IE are you running on both machines?

 If you actually run the app on your XP box, do those widgets display
 correctly?

 On Feb 22, 12:56 pm, cri chuck.irvine...@gmail.com wrote:







  More info on the problem.

  First, and perhaps most important, the problem seems to involve all of
  the new layout panels: DockLayoutPanel, SplitLayoutPanel,
  StackLayoutPanel. I've tried those and for each the problem exists. I
  would guess its the same for the other new layout panels.

  Secondly, I've verified that the problem is not a corruption of my
  local environment. A co worker just downloaded the latest eclipse and
  gwt plugin and he has the same exact problem. He also is running
  Windows XP and his environment is very similar since both computers
  are company computers.

  Perhaps a defect should be opened for this.

  Can anyone else running Windows XP see whether they also suffer from
  this problem?

  Thanks, Chuck

  On Feb 22, 10:45 am, cri chuck.irvine...@gmail.com wrote:

   I do see part of the problem. When I open the attached code, the size
   showing for rp and p is (0,0). Can anyone guess what might be
   causing this? If I set the sizes of rp and p respectively to
   500,500 and 400,400, I now see more than the black square. However, I
   still don't see the split panel controls in the preview window. Nor do
   I see navigation, list or details on the preview screen.
   Hopefully, this will give someone a clue as to what my problem might
   be. Sure hope so. I'm trying to convince others to use GWT Designer
   and this might pose a problem Thanks

   On Feb 22, 8:39 am, cri chuck.irvine...@gmail.com wrote:

I'm stumped. A number of the GWT widgets don't show up correctly in my
GWT Designer design window or the preview window. As an example, the
code below produces a very small black dot in the design window and
nothing shows up in the preview window. The odd thing is, the same
thing works as expected for me on my computer at home. Both at home at
work I'm using the same versions of stuff (see below) with one
exception. At home I use Windows 7 and at work Windows XP. Wouldn't
think that that would make a difference. I've tried installing a fresh
version of Eclipse and using a new workspace - to no avail.

If anyone has a clue or has a trouble shooting suggestion, I'd love to
hear it. Thanks

Versions
Eclipse: Helios
GWT: 2.2

package foo.bar.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SplitLayoutPanel;

public class GwtApp implements EntryPoint {

  public void onModuleLoad() {
    // Create a three-pane layout with splitters.
    SplitLayoutPanel p = new SplitLayoutPanel();
    p.addWest(new HTML(navigation), 128);
    p.addNorth(new HTML(list), 384);
    p.add(new HTML(details));
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }

}

-- 
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 Designer and GAE deployment

2011-02-23 Thread csaffi
Thank you for your answer Eric.

 We need more details here. What do you mean by you cannot use the
 Designer because it seems disabled. Disabled in what way?

With disabled I mean that the Design tab is not present, there
should be these tabs Source, Design, Bindings, but they are not
present if the project was created using the New Web Application
Project wizard.

 With the second project, why can't you run it on GAE after
 deployment?

Because, after doing Deploy App Engine Project, when I go to its web
page on http://myproject.appspot.com/, I get a 404 error: Error:
NOT_FOUND.

 What version of GWT are you using? What version of GWT Designer?
GWT-2.2
GWT Designer 2.2.0.r36x20110255

-- 
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 2.1 MVP Multiple activities clarification help

2011-02-23 Thread Mauro Bertapelle
Ernesto,

CachingHorizontalMasterActivityMapper is just a wrapper for
CachingActivityMapper and FilterActivityMapper.

The layout of our example requires that both master and detail display
regions are simultaneously visible.
This means that when a user navigate to a detail place, even the
master display region must be advised to ensure that what's displayed
on the master region is in sync with what's on the detail region.
This is the task of FilterActivityMapper, which is used to map detail
place activity to a corresponding master activity:

FilteredActivityMapper.Filter filter = new
FilteredActivityMapper.Filter() {
  @Override
  public Place filter(Place place) {
return place instanceof MailDetailPlace ? new MailListPlace() :
place;
  }
};

CachingActivityMapper is useful when you don't want to instantiate a
new Activity every time a place change event occurs. Generally
speaking, Activity are meant to be light disposable object so
instantiating a new one on every place change event shouldn't be an
isssue. In our case, CachingActivityMapper is useful when a user
navigate from one detail to another and the master display region is
always the same and doesn't need to be reinstantiated.

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



standard.css

2011-02-23 Thread Deepak Singh
Hi,

After compiling our gwt project we get one statndard.css file which loads to
the client consuming 1 http request.
We also have our application specific style.css file which loads consuming 1
seperate http request.

To reduce the number of http requests, how should i combine them into 1 css
file ?

Also, we have many application specific images which loads to the client
using 1 http request for 1 image. If i create 1 ImageBundle and put all
images into this bundle, how do i get this bundle loaded to the client in
just 1 http request at the application start up time ?

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: Best way to handle authentication failures with RequestFactory on the client

2011-02-23 Thread David Chandler
You can define a custom event for authentication failure and register a
handler for it at startup. That is the approach taken here:

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/

A handler for the GaeAuthenticationFailureEvent is registered in the module
entry point (ExpensesApp.java):

   // Check for Authentication failures or mismatches

new ReloadOnAuthenticationFailure().register(eventBus);

An alternative approach is to extend the Receiver class with your own
version that implements onFailure:

   public abstract class MyReceiverV extends ReceiverV

{

@Override

public void onFailure(ServerFailure error)

{

 Location.replace(LOGIN_URL);

}

}

Anywhere you fire a request, pass MyReceiver instead of Receiver.

HTH,
/dmc

On Wed, Feb 23, 2011 at 4:56 AM, juanita
juanita.vollmer...@googlemail.comwrote:

 I am trying to figure out the best way to handle authentication
 failures with RequestFactory on the client.

 The way I understand this is supposed to work is as follows:
 The client will perform a server request - typically expecting data to
 be returned. The gwt framework will check if the user is authenticated
 before passing the request to the corresponding class. The default
 implementation basically returns true, a custom implementation of
 UserInformation would perform the actual check.
 If the gwt framework finds out that the user is not logged in, the
 request will not be processed but a failure message is sent back to
 the client.
 The client would know that something is wrong, since onFailure()
 rather than onSuccess() is called on the client.

 This piece is working fine for me so far.

 However, I am struggeling with finding a proper way to handle
 authentication failures on the client. Typically, there is a large
 number of places in the client code that perform server requests.
 Having to inject the onFailure() code at each place to check for an
 authentication failure and then act the same way (basically redirect
 to a login url) seems to be inappropriate.
 Is there a better way to intercept and handle these in a single
 location?

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Embeding GWT app in another site without iFrame

2011-02-23 Thread John LaBanca
On Tue, Feb 22, 2011 at 9:19 PM, Bob Graton hugo.villene...@gmail.comwrote:

 Hello,

 I have my demo GWT app  running fine at : http://site1.com/
 Inside my Html Host file on this site I load the GWT app with:
 script type=text/javascript language=javascript src=myapp1/
 myapp1.nocache.js/script
 Work fine.

 I would like to embeded this App on another site 'http://site2.com'
 without iFrame.
 The new HTML page on site2.com tries to load the GWT js file from site
 1 like this.

 script type=text/javascript language=javascript src=http://
 site1.com/myapp1/myapp1.nocache.js/script

 This technique should not be restricted to Cross-site-scripting and
 SoP.

Why wouldn't this be restricted by cross site scripting?  You're trying to
load a script from another domain.  I'm pretty sure you have to use an
iframe to load the app from another domain.


 The code is loaded but then I get the following JS Error:

 Permission refusée à http://site1.com d'obtenir la propriété
 Window.myhvgwt1 de http://site2.com.
 http://site1.com/myapp1/82F202B9CDA2AEB236F4E6F6C9C1A8ED.cache.html
 Line 775

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



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



Re: standard.css

2011-02-23 Thread Jeff Larsen



After compiling our gwt project we get one statndard.css file which loads to 
the client consuming 1 http request.
We also have our application specific style.css file which loads consuming 1 
seperate http request.

To reduce the number of http requests, how should i combine them into 1 css 
file ?

If you're getting to this level of hyper optimization, you probably just 
want to copy/paste the styles that you're actually using from standard.css 
and put them into your style.css and not import the standard theme. 

Also look at taking style.css and making it a CssResource, that way it will 
get pulled down with the javascript and now you've cut out 2 http requests. 
See the link below for more info. 

Also, we have many application specific images which loads to the client 
using 1 http request for 1 image. If i create 1 ImageBundle and put all 
images into this bundle, how do i get this bundle loaded to the client in 
just 1 http request at the application start up time ?


Take a look at ClientBundle, it will create the sprites for you and manage 
them. http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html

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



Re: Sorting CellTable, AsyncData but Sort Locally

2011-02-23 Thread Josh K
Ok, I got something working using the example you provided, but I
don't like how I implemented it. It wasn't hard, but everything I've
wanted to do in GWT so far has been easy, so this seems kind of
messy..

But, I guess trying to implement sorting using a ListSortHandler would
have been just as messy since I would have had to setComparator for
every column still right?

Also, this is probably a stupid Java error, but I'm trying to re-use
my SortHandler so I broke it into it's own class. In each composite
I've got a list of what is displayed in the tables, call it BOOKS.
What I've been trying to do is instantiate the SortHandler:

new MySortHandler (BOOKS, myCellTable, columnA, columnB, columnC,
etc..)

And in class I've got something like
public class MySortHandler {
private ListBook thisList;

public MySortHandler(ListBook BOOKS, CellTable myCellTable,
Column columnA,  you get the picture) {
 thisList = BOOKS;
 ..
}

Down below I sort thisList, and at the end, I assign it back to BOOKS
and do cellTable.setRowData(BOOKS);

When I go to sort though, nothing happens. I think I narrowed it down
to understand for some reason the list isn't getting copied over or
something like that? If I have MySortHandler as an internal private
class to my composite and I use the original List BOOKS, it sorts, but
when I try to do like I was doing above, it doesn't work.

Can anyone explain why, and give me an idea of how to fix it. I'll be
alright without code, just don't even know how to get around this. I'd
hate to have to stick an internal SortHandler at the end of each
composite.

On Feb 14, 12:19 pm, Josh K kendrick.j...@gmail.com wrote:
 What I was getting confused about doing it this way though is if I'm
 allowing the data to be sorted by 4 or 5 different columns, would I
 have to say something like:

 if (event.isSortAscending  nameColumn) {
     Collections.sort(newData, nameAscComparator)} else if (nameColumn) {

     Collections.sort(newData, nameDescComparator)} else if 
 (event.isSortAscending  timeRequestedColumn) {

     Collections.sort(newData, timeRequestedAscComparator)

 } 

 ya know where I have to have a different asc and desc comparator for
 each column and figure out which column was selected before I sort?

 I'm thinking that I'll have a small enough set of rows (probably max
 100 rows at a time), that if I just make the columns sortable, it will
 be fine if I don't use paging. So maybe I should do what Greg
 mentioned and download all the data and use a ListDataProvider. What I
 liked about the AsyncDataProvider though is that people can change the
 value of a cell and hit enter and it's updated in the database because
 this will be an application a couple are using at one time all dealing
 with the same data so I need changes to show up on what other people
 are seeing.

 BTW, thanks a lot guys!

 On Feb 14, 10:00 am, John LaBanca jlaba...@google.com wrote:







  If you are supporting paging, then a local sort will only sort the current
  page, whereas a database sort would sort the data return the results for the
  current page.  For example, if you are on the first page and do a reverse
  sort, do you want to see all the names that start with z (database sort), or
  do you want to see all of the names that start with a in reverse order
  (local sort of the current page).

  That being said, you can cache the values locally in a list and use
  ListSortHandler.  Alternatively, you can add a ColumnSortEvent.Handler to
  CellTable and copy and sort the return of CellTable#getVisibleItems().  The
  code would be something like the following:

  cellTable.addColumnSortHandler(new ColumnSortEvent.Handler() {
    public void onColumnSort(ColumnSortEvent event) {
      ListT newData = new ArrayList(cellTable.getVisibleItems()); // Copy
  the data
      if (event.isSortAscending) {
        Collections.sort(newData, myAscComparator); // Sort ascending.
      } else {
        Collections.sort(newData, myDescComparator); // Sort descending.
      }
      cellTable.setRowData(cellTable.getVisibleRange(), newData);
    }

  });

  Thanks,
  John LaBanca
  jlaba...@google.com

  On Mon, Feb 14, 2011 at 12:53 AM, Josh K kendrick.j...@gmail.com wrote:
   I've been developing an application in GWT that has data I've been
   displaying in a CellTable. I've set it up with a few TextColumns and a
   few EditTextColumns. I've got it set up to where if someone changes
   the data in an EditText cell, it sends an asynchronous request to the
   database and updates that row in the DB table. In short, I've got all
   this working using AsyncCallbacks and an AsyncDataProvider.

   Since 2.2 came out, I want to implement column sorting, kind of like
   is seen in this example:
  http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable
   , but with an AsyncDataProvider. I want to sort the columns locally
   because I think it'd be faster than making an Async DB call again 

Re: Many problems when updating from 2.1.1 to 2.2

2011-02-23 Thread Fernando Barbat
I think I know what's happening. I'm using Ext GWT in my project, and
for now it isn't compatible with GWT 2.2.

http://www.sencha.com/forum/showthread.php?124026-GXT-2.2.2-compilation-error-with-GWT-2.2

On 23 feb, 08:47, Fernando Barbat fbar...@gmail.com wrote:
 Hi,

 I tried to update an existing 2.1.1 project to 2.2 without success.
 The compiler throws a lot of errors and exceptions.
 I found in another post that we should update Gin to 1.5 and tried it,
 but it wasn't helpful.

 Any idea?

 Thanks.

 This is the compiler's log:

 Compiling module com.example.myproject
    Validating newly compiled units
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/CanvasElement.java'
          [ERROR] Line 49: No source code is available for type
 com.google.gwt.canvas.dom.client.Context; did you forget to inherit a
 required module?
          [ERROR] Line 60: No source code is available for type
 com.google.gwt.canvas.dom.client.Context2d; did you forget to inherit
 a required module?
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/MediaElement.java'
          [ERROR] Line 124: No source code is available for type
 com.google.gwt.media.dom.client.TimeRanges; did you forget to inherit
 a required module?
          [ERROR] Line 178: No source code is available for type
 com.google.gwt.media.dom.client.MediaError; did you forget to inherit
 a required module?
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/dom/client/Touch.java'
          [ERROR] Line 36: The method touchGetClientX(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 45: The method touchGetClientY(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 54: The method touchGetIdentifier(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 63: The method touchGetPageX(Touch) is undefined
 for the type DOMImpl
          [ERROR] Line 72: The method touchGetPageY(Touch) is undefined
 for the type DOMImpl
          [ERROR] Line 103: The method touchGetScreenX(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 112: The method touchGetScreenY(Touch) is
 undefined for the type DOMImpl
          [ERROR] Line 121: The method touchGetTarget(Touch) is
 undefined for the type DOMImpl
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureChangeEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureEndEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/GestureStartEvent.java'
          [ERROR] Line 53: The method getRotation() is undefined for
 the type NativeEvent
          [ERROR] Line 57: The method getScale() is undefined for the
 type NativeEvent
       [ERROR] Errors in 'jar:file:/home/fernando/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/
 gwt-user.jar!/com/google/gwt/event/dom/client/TouchEvent.java'
          [ERROR] Line 41: The method getChangedTouches() is undefined
 for the type NativeEvent
          [ERROR] Line 54: The method getTargetTouches() is undefined
 for the type NativeEvent
          [ERROR] Line 66: The method getTouches() is undefined for the
 type NativeEvent
    [ERROR] Errors in 'file:/home/fernando/workspace/sigras-war/
 desarrollo/uy/org/inia/gras/sigras/war/client/
 SigrasDesarrolloEntryPoint.java'
       [ERROR]  Internal compiler error
 java.lang.IncompatibleClassChangeError: Found class
 com.google.gwt.core.ext.typeinfo.JClassType, but interface 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.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
 427)
 

Image element will hang test execution

2011-02-23 Thread Alex D.
Hi,
The code below will not finish (gets hanged in the Image constructor):

public class ATest extends GWTTestCase {
   // . init code  //

public void testShouldNotHang () {
// Create an empty image
final Image img = new Image();
}
}

The hang happens on Image:237 =
Event.sinkEvents(image.getElement(), Event.ONLOAD);

Now, I'm not trying to test the Image constructor, but I have complex
components that cannot be modified for testing purposes, and the
happen to have Image inside. I have searched but I couldn't find any
answer ... nobody else had this issue?

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 Designer 2.2 error with gwt-maven project

2011-02-23 Thread David Chandler
We're looking into this. I can reproduce the error with a POM specifying GWT
2.2.0 and gwt-maven-plugin 2.2.0.

   /dmc

On Mon, Feb 21, 2011 at 12:31 PM, har_shan harsha...@gmail.com wrote:

 I deleted gwt-dev directory altogether in m2 local repo but still the
 error persists.

 I also tried setting up new eclipse workspace and imported the project
 into it as maven project and noticed gwt dev getting downloaded (may
 be downloaded internally by gwt-maven-plugin as you said earlier?) and
 again the error comes up even after deleting the gwt dev directory
 again.

 btw, is this a bug in GPE or GWT maven plugin (if so is it logged?)
 and would be happy to know when we can expect a fix for this?

 as a temp workaround, am creating ui templates/owner java code in
 separate (non maven) project and copying it over to my gwt maven
 project, but its annoying as you can see.

 anyways thanks much again for your suggestions,
 Hari

 On Feb 20, 11:51 pm, Philippe Beaudoin philippe.beaud...@gmail.com
 wrote:
  Maybe try deleting all the releted dependencies from your local .m2 repo?
 In
  my case I deleted gwt-dev 2.1 and verified that it was not re-downloaded.
 Do
  the same with gin et al.
 
  Cheers,
 
 Philippe

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Split points for method having return type other than void

2011-02-23 Thread Philippe Beaudoin
You are correct: the code you pasted has only one split point and (provided 
they are not called from anywhere else), foo(), bar() and goo() sit behind 
that split point -- it means they will only be loaded when onClick is 
called. [That's what the sentence you highlighted in red means.]

If you call, say, bar() from elsewhere then bar() will be in the leftover 
fragment and will be loaded at app start.

Cheers,

   Philippe

-- 
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: Migrating GWT 1.7 to GWT 2.2

2011-02-23 Thread Philippe Beaudoin
There is a vote in progress to get a GWT 2.2-compatible version of the 
gwt-maven-plugin:
  
https://groups.google.com/forum/?pli=1#!topic/codehaus-mojo-gwt-maven-plugin-users/iyp0V83Tktg

If you need it very quickly, feel free to grab my version:

pluginRepositories
pluginRepository
idgwtplatform.plugin/id
nameGwtplatform custom plugin epository/name
urlhttp://maven.gwt-platform.googlecode.com/hg//url
layoutdefault/layout
/pluginRepository
/pluginRepositories

  plugin
  groupIdorg.codehaus.mojo/groupId
  artifactIdgwt-maven-plugin/artifactId
  version2.2.0/version
  /plugin

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



Re: Best hosting provider for GWT app

2011-02-23 Thread unair001
Any Java web server hosting provider should work.? correct? since
deployment is an ordinary war file.

On Feb 22, 12:37 pm, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi All,

 Lets share our experience for the hosting of gwt apps. If someone has
 experienced a hosting provider before or know the best in the market, let
 all should know who is the best ?
 Priority should be the server speed to deliver files quickly as gwt app face
 the startup time issue.

 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: Split points for method having return type other than void

2011-02-23 Thread Deepak Singh
Ok.

Suppose any of these methods foo(), bar() or goo() use some class
variable, global variable or some variable defined in another class
then how does it affect code splitting here?

On 2/23/11, Philippe Beaudoin philippe.beaud...@gmail.com wrote:
 You are correct: the code you pasted has only one split point and (provided
 they are not called from anywhere else), foo(), bar() and goo() sit behind
 that split point -- it means they will only be loaded when onClick is
 called. [That's what the sentence you highlighted in red means.]

 If you call, say, bar() from elsewhere then bar() will be in the leftover
 fragment and will be loaded at app start.

 Cheers,

Philippe

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



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



Re: GWT Designer / Only Small Black Square

2011-02-23 Thread cri
Eric, Problem solved! Since you hinted that the version of IE might be
a factor I upgraded from IE6 to IE8 and, hey!, the problem went away.

Do you think this ought to be fixed in GWT Designer or since IE6 isn't
very widely used maybe it should just be documented as an issue.

I am curious how IE6 could affect the design and preview window. If
IE6 were set to be the default browser on my computer it might make
some sense. But since Chrome is my default browser, its kind of an odd
thing.

Anyway, I'm good now. Thanks



On Feb 23, 7:38 am, Eric Clayberg clayb...@google.com wrote:
 What version of IE are you running on both machines?

 If you actually run the app on your XP box, do those widgets display
 correctly?

 On Feb 22, 12:56 pm, cri chuck.irvine...@gmail.com wrote:







  More info on the problem.

  First, and perhaps most important, the problem seems to involve all of
  the new layout panels: DockLayoutPanel, SplitLayoutPanel,
  StackLayoutPanel. I've tried those and for each the problem exists. I
  would guess its the same for the other new layout panels.

  Secondly, I've verified that the problem is not a corruption of my
  local environment. A co worker just downloaded the latest eclipse and
  gwt plugin and he has the same exact problem. He also is running
  Windows XP and his environment is very similar since both computers
  are company computers.

  Perhaps a defect should be opened for this.

  Can anyone else running Windows XP see whether they also suffer from
  this problem?

  Thanks, Chuck

  On Feb 22, 10:45 am, cri chuck.irvine...@gmail.com wrote:

   I do see part of the problem. When I open the attached code, the size
   showing for rp and p is (0,0). Can anyone guess what might be
   causing this? If I set the sizes of rp and p respectively to
   500,500 and 400,400, I now see more than the black square. However, I
   still don't see the split panel controls in the preview window. Nor do
   I see navigation, list or details on the preview screen.
   Hopefully, this will give someone a clue as to what my problem might
   be. Sure hope so. I'm trying to convince others to use GWT Designer
   and this might pose a problem Thanks

   On Feb 22, 8:39 am, cri chuck.irvine...@gmail.com wrote:

I'm stumped. A number of the GWT widgets don't show up correctly in my
GWT Designer design window or the preview window. As an example, the
code below produces a very small black dot in the design window and
nothing shows up in the preview window. The odd thing is, the same
thing works as expected for me on my computer at home. Both at home at
work I'm using the same versions of stuff (see below) with one
exception. At home I use Windows 7 and at work Windows XP. Wouldn't
think that that would make a difference. I've tried installing a fresh
version of Eclipse and using a new workspace - to no avail.

If anyone has a clue or has a trouble shooting suggestion, I'd love to
hear it. Thanks

Versions
Eclipse: Helios
GWT: 2.2

package foo.bar.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SplitLayoutPanel;

public class GwtApp implements EntryPoint {

  public void onModuleLoad() {
    // Create a three-pane layout with splitters.
    SplitLayoutPanel p = new SplitLayoutPanel();
    p.addWest(new HTML(navigation), 128);
    p.addNorth(new HTML(list), 384);
    p.add(new HTML(details));
    RootLayoutPanel rp = RootLayoutPanel.get();
    rp.add(p);
  }

}

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



CheckboxCell 2 clicks for selection

2011-02-23 Thread Ernesto Reig
Hello.
I have a table with several columns, one of them holds CheckboxCell´s. The
problem is that when I click in a little checkbox, its row is selected but
the checkbox IS NOT ticked. If I want to tick a little checkbox the row
has to be selected first.
This behaviour doesn´t happen in the Showcase example, but I don´t know the
reason why.
Any help on this would be appreciated.
Thank you very much.

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



TabWidget not refreshing

2011-02-23 Thread Digs
Hi,

I was creating a project in which I have multiple tabs. I have used
TabLayoutPanel.

In that TabLayoutPanel I am added widgets using method
TabLayoutPanel.add(IsWidget, Text);

I have created different wigdet class that implements IsWidget class
and added to TabLayoutPanel.

Now I have some RadioButton in Widget in Tab1 which are created based
on number of elements in Vector.

Now when I do some operations in Tab3 the contents of Vector changes,
so again when I go back to Tab1 the RadioButton should have changed
accordingly but there are not.

Am I doing the right way, if not Please can you suggest some method to
do that.

Thanks
Digs

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



Google Maps API v3 support in gwt-google-apis

2011-02-23 Thread bmclean
Hello,

I’m working with a client on an application I have written using gwt-
google-apis Maps. They’re interested in upgrading the application to
use new features available in Google Maps Javascript API v3. Does
anyone have an estimate as to when gwt-google-apis project will
support the Google Maps Javascript API v3?

Thank you,
Brett

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



help needed in debuging the hello world web application

2011-02-23 Thread thahir hussain
hi i am getting this error when i run my hello world application in
eclipse

Status: 404 Not Found
 Content-Type: text/html;
charset=utf-8
Cache-Control: no-cache
Expires: Fri, 01 Jan 1990 00:00:00 GMT
Content-Length: 0
need help pls help

-- 
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 and AppEngine Deploying Generated File

2011-02-23 Thread cp
I am not sure whether this simple scenario is broken or if i missing
something

context : eclipse3.6,  GWT2.2 and AppEngine 1.4.2
1. Create a new sample GWT (Web application Project)
2. Change the button name from Send to Send1
3. Run in development mode. (by turning off  Project Properties -
Google-Web Application - Launch and deploy from this directory)  .
Outcome - I see the development mode showing me new button name
Send1
4. Now try to deploy this AppEngine. -  how do i get to see button as
Send1.
[Where do i say - use generated files or deploy generated file. ]


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



Maven, Spring GWT 2.1

2011-02-23 Thread JC
Hi.

I'm looking to make work the GWT Designer on my Maven-Spring
application.

It looks like, I have to find the version 2.1 of GWT eclipse plugin...

Where is the version 2.1? I just can't find it :-(


Thanks for you help!

-- 
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: standard.css

2011-02-23 Thread Juan Pablo Gardella
Hi,

Try that (thanks Gabriel Nossier):

public class CssServlet extends HttpServlet {
private static final long serialVersionUID = 2545846261709821197L;

private static final String path1 = ./;
private static final String path2 = webapps/styles/;

/*
 * (non-Javadoc)
 *
 * @see
 *
javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest
 * , javax.servlet.http.HttpServletResponse)
 */
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
doPost(req, resp);
}

/*
 * (non-Javadoc)
 *
 * @see
 *
javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest
 * , javax.servlet.http.HttpServletResponse)
 */
@Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
resp.setContentType(text/css);

PrintWriter out = resp.getWriter();
out.println(@CHARSET \ISO-8859-1\;);
generateMonoliticCssFile(out);
out.close();
}

private void generateMonoliticCssFile(PrintWriter out) throws IOException {
File dir = new File(path1);
if (dir.exists()) {
listFolder(out, dir);
} else {
dir = new File(path2);
if (dir.exists()) {
listFolder(out, dir);
} else {
out.println(Paths ' + path1 + ' and '  + path2 + ' doesn't exists);
File local = new File(.);
out.println(Local path: + local.getAbsolutePath());
}
}
}

private void listFolder(PrintWriter out, File dir) throws IOException {
for (File file : getAllCssFiles(dir)) {
process(out, file);
}
}

/**
 * @param out
 * @param file
 * @throws IOException
 */
private void process(PrintWriter out, File file) throws IOException {
out.println();
out.println(/**  file: + file.getName() +   ***/);
out.println();

BufferedReader fileReader = new BufferedReader(new FileReader(file));

String aLine = null;
while ((aLine = fileReader.readLine()) != null) {
if (!aLine.startsWith(@CHARSET)) {
out.println(aLine);
}
}

out.println();
}

/**
 * @param dir
 * @return
 */

private ListFile getAllCssFiles(File dir) {
ListFile rv = new LinkedListFile();

FilenameFilter filenameFilter = new FilenameFilter() {
@Override
public boolean accept(File dir, String name) {
return name.toLowerCase().endsWith(.css);
}
};

for (File file : dir.listFiles(filenameFilter)) {
rv.add(file);
}

return rv;
}
}


2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi,

 After compiling our gwt project we get one statndard.css file which loads
 to the client consuming 1 http request.
 We also have our application specific style.css file which loads consuming
 1 seperate http request.

 To reduce the number of http requests, how should i combine them into 1 css
 file ?

 Also, we have many application specific images which loads to the client
 using 1 http request for 1 image. If i create 1 ImageBundle and put all
 images into this bundle, how do i get this bundle loaded to the client in
 just 1 http request at the application start up time ?

 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.


-- 
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 and AppEngine Deploying Generated File

2011-02-23 Thread David Chandler
What gets sent to App Engine is your compiled GWT app. The deploy to App
Engine button in Eclipse should compile the GWT app before it begins the
deploy. Are you not seeing that?

/dmc

On Wed, Feb 23, 2011 at 10:32 AM, cp consultp...@gmail.com wrote:

 I am not sure whether this simple scenario is broken or if i missing
 something

 context : eclipse3.6,  GWT2.2 and AppEngine 1.4.2
 1. Create a new sample GWT (Web application Project)
 2. Change the button name from Send to Send1
 3. Run in development mode. (by turning off  Project Properties -
 Google-Web Application - Launch and deploy from this directory)  .
 Outcome - I see the development mode showing me new button name
 Send1
 4. Now try to deploy this AppEngine. -  how do i get to see button as
 Send1.
 [Where do i say - use generated files or deploy generated file. ]


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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Embeding GWT app in another site without iFrame

2011-02-23 Thread Thomas Broyer


On Wednesday, February 23, 2011 4:32:56 PM UTC+1, John LaBanca wrote:

 On Tue, Feb 22, 2011 at 9:19 PM, Bob Graton hugo.vi...@gmail.com wrote:

 Hello,

 I have my demo GWT app  running fine at : http://site1.com/
 Inside my Html Host file on this site I load the GWT app with:
 script type=text/javascript language=javascript src=myapp1/
 myapp1.nocache.js/script
 Work fine.

 I would like to embeded this App on another site 'http://site2.com'
 without iFrame.
 The new HTML page on site2.com tries to load the GWT js file from site
 1 like this.

 script type=text/javascript language=javascript src=http://
 site1.com/myapp1/myapp1.nocache.js/script

 This technique should not be restricted to Cross-site-scripting and
 SoP.

 Why wouldn't this be restricted by cross site scripting?  You're trying to 
 load a script from another domain.  I'm pretty sure you have to use an 
 iframe to load the app from another domain.



... or count on everyone having a CORS-capable browser (which rules out 
every IE out there)

... or use JSON-P to communicate with your server.

  
 The code is loaded but then I get the following JS Error:

 Permission refusée à http://site1.com d'obtenir la propriété
 Window.myhvgwt1 de http://site2.com.
 http://site1.com/myapp1/82F202B9CDA2AEB236F4E6F6C9C1A8ED.cache.html
 Line 775

 Any Idea ?


You should add-linker name=xs / or add-linker namexsiframe /

-- 
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: Split points for method having return type other than void

2011-02-23 Thread Philippe Beaudoin
From what I understand, code-splitting must be thought about in a 
method-by-method basis. That is, the variables you use is not important, but 
the method you call on it is. In short:
- If all calls to methodA() happen behind the _same_ split point then 
methodA() will be part of that fragment (loaded only when needed)
- If methodA() is called behind one split point AND behind another split 
point then it will be in the leftover fragment (likely loaded very early)
- If methodA() is called at least once from a non-code-split path then it 
will be in the initial download

Cheers,

   Philippe

-- 
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: TabWidget not refreshing

2011-02-23 Thread John LaBanca
IsWidget.asWidget isn't called every time you open the tab, its only called
when you add the tab.  If that is how you are changing the contents, then
you should return a SimplePanel instead and change the widget in the
SimplePanel as needed.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Feb 23, 2011 at 1:32 PM, Digs digantbhav...@gmail.com wrote:

 Hi,

 I was creating a project in which I have multiple tabs. I have used
 TabLayoutPanel.

 In that TabLayoutPanel I am added widgets using method
 TabLayoutPanel.add(IsWidget, Text);

 I have created different wigdet class that implements IsWidget class
 and added to TabLayoutPanel.

 Now I have some RadioButton in Widget in Tab1 which are created based
 on number of elements in Vector.

 Now when I do some operations in Tab3 the contents of Vector changes,
 so again when I go back to Tab1 the RadioButton should have changed
 accordingly but there are not.

 Am I doing the right way, if not Please can you suggest some method to
 do that.

 Thanks
 Digs

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



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



Re: Best hosting provider for GWT app

2011-02-23 Thread Alan Chaney

Hi Deepak

See inline comments.

On 2/22/2011 10:37 AM, Deepak Singh wrote:

Hi All,

Lets share our experience for the hosting of gwt apps. If someone has experienced a hosting 
provider before or know the best in the market, let all should know who is the best ?

Priority should be the server speed to deliver files quickly as gwt app face 
the startup time issue.

I've used a number of hosting providers over the years, and transfer speeds are normally limited by 
the client and the ISP you are connected to. For example, I currently use what was thePlanet and is 
now called SoftLayer - I've measured transfers in the 100's of mbits from other Tier-3 providers 
when I've used wget from the command line. However, the best I can do to my workstation is  around 
26 Mbps - which is limited by Time-Warner, my ISP.


I'd say the measures of a hosting provider are (in no particular order)

1. price
2. SLA - surprising how difficult it is to get past 5/9's
3. Their response when things go wrong.

I've found Softlayer to be Ok on 1 and very good on 3. I can't remember what 
their SLA is.

YMMV

Alan

--
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: standard.css

2011-02-23 Thread Deepak Singh
Hi Jaun,

How to use this CssServlet class ?

On Wed, Feb 23, 2011 at 9:14 PM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 Hi,

 Try that (thanks Gabriel Nossier):

 public class CssServlet extends HttpServlet {
 private static final long serialVersionUID = 2545846261709821197L;

 private static final String path1 = ./;
 private static final String path2 = webapps/styles/;

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 doPost(req, resp);
  }

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 resp.setContentType(text/css);

 PrintWriter out = resp.getWriter();
 out.println(@CHARSET \ISO-8859-1\;);
  generateMonoliticCssFile(out);
 out.close();
 }

 private void generateMonoliticCssFile(PrintWriter out) throws IOException {
 File dir = new File(path1);
  if (dir.exists()) {
 listFolder(out, dir);
 } else {
  dir = new File(path2);
 if (dir.exists()) {
 listFolder(out, dir);
  } else {
 out.println(Paths ' + path1 + ' and '  + path2 + ' doesn't exists);
  File local = new File(.);
 out.println(Local path: + local.getAbsolutePath());
  }
 }
 }

 private void listFolder(PrintWriter out, File dir) throws IOException {
 for (File file : getAllCssFiles(dir)) {
  process(out, file);
 }
 }

 /**
  * @param out
  * @param file
  * @throws IOException
  */
 private void process(PrintWriter out, File file) throws IOException {
  out.println();
 out.println(/**  file: + file.getName() +   ***/);
  out.println();

 BufferedReader fileReader = new BufferedReader(new FileReader(file));

 String aLine = null;
 while ((aLine = fileReader.readLine()) != null) {
  if (!aLine.startsWith(@CHARSET)) {
 out.println(aLine);
 }
  }

 out.println();
 }

 /**
  * @param dir
  * @return
  */

 private ListFile getAllCssFiles(File dir) {
 ListFile rv = new LinkedListFile();

 FilenameFilter filenameFilter = new FilenameFilter() {
 @Override
  public boolean accept(File dir, String name) {
 return name.toLowerCase().endsWith(.css);
  }
 };

 for (File file : dir.listFiles(filenameFilter)) {
  rv.add(file);
 }

 return rv;
  }
 }


 2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi,

 After compiling our gwt project we get one statndard.css file which loads
 to the client consuming 1 http request.
 We also have our application specific style.css file which loads consuming
 1 seperate http request.

 To reduce the number of http requests, how should i combine them into 1
 css file ?

 Also, we have many application specific images which loads to the client
 using 1 http request for 1 image. If i create 1 ImageBundle and put all
 images into this bundle, how do i get this bundle loaded to the client in
 just 1 http request at the application start up time ?

 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.


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


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



SimplePager, CellTable, Progress Bar Gone

2011-02-23 Thread cmarsh...@avenue100.com
In my application I had a CellTable that did not use a SimplePager nor
a ListDataProvider.  The data to be displayed has become quite lengthy
so I have added the use of a SimplePager and a ListDataProvider.
Previously the CellTable would display a nice side ways barber pole
for a progress bar when data was loading but with the addition of the
SimplePager and ListDataProvider that has disappeared.  Is there any
magic to get it back?  Everything else about the SimplePager and
ListDataProvider works well.

thanks,
Chris

-- 
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: standard.css

2011-02-23 Thread Juan Pablo Gardella
In your html:

/styles/cssServlet.css

In web.xml:

servlet-mapping
servlet-namecssServlet/servlet-name
url-pattern/styles/cssServlet.css/url-pattern
/servlet-mapping

Juan

2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi Jaun,

 How to use this CssServlet class ?

 On Wed, Feb 23, 2011 at 9:14 PM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 Hi,

 Try that (thanks Gabriel Nossier):

 public class CssServlet extends HttpServlet {
  private static final long serialVersionUID = 2545846261709821197L;

 private static final String path1 = ./;
 private static final String path2 = webapps/styles/;

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 doPost(req, resp);
  }

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 resp.setContentType(text/css);

 PrintWriter out = resp.getWriter();
 out.println(@CHARSET \ISO-8859-1\;);
  generateMonoliticCssFile(out);
 out.close();
 }

 private void generateMonoliticCssFile(PrintWriter out) throws IOException
 {
 File dir = new File(path1);
  if (dir.exists()) {
 listFolder(out, dir);
 } else {
  dir = new File(path2);
 if (dir.exists()) {
 listFolder(out, dir);
  } else {
 out.println(Paths ' + path1 + ' and '  + path2 + ' doesn't exists);
  File local = new File(.);
 out.println(Local path: + local.getAbsolutePath());
  }
 }
 }

 private void listFolder(PrintWriter out, File dir) throws IOException {
 for (File file : getAllCssFiles(dir)) {
  process(out, file);
 }
 }

 /**
  * @param out
  * @param file
  * @throws IOException
  */
 private void process(PrintWriter out, File file) throws IOException {
  out.println();
 out.println(/**  file: + file.getName() +   ***/);
  out.println();

 BufferedReader fileReader = new BufferedReader(new FileReader(file));

 String aLine = null;
 while ((aLine = fileReader.readLine()) != null) {
  if (!aLine.startsWith(@CHARSET)) {
 out.println(aLine);
 }
  }

 out.println();
 }

 /**
  * @param dir
  * @return
  */

 private ListFile getAllCssFiles(File dir) {
 ListFile rv = new LinkedListFile();

 FilenameFilter filenameFilter = new FilenameFilter() {
 @Override
  public boolean accept(File dir, String name) {
 return name.toLowerCase().endsWith(.css);
  }
 };

 for (File file : dir.listFiles(filenameFilter)) {
  rv.add(file);
 }

 return rv;
  }
 }


 2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi,

 After compiling our gwt project we get one statndard.css file which loads
 to the client consuming 1 http request.
 We also have our application specific style.css file which loads
 consuming 1 seperate http request.

 To reduce the number of http requests, how should i combine them into 1
 css file ?

 Also, we have many application specific images which loads to the client
 using 1 http request for 1 image. If i create 1 ImageBundle and put all
 images into this bundle, how do i get this bundle loaded to the client in
 just 1 http request at the application start up time ?

 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.


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


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


-- 
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: TabLayoutPanel + dynamic tab content + DialogBox = ?

2011-02-23 Thread Greg Dougherty
Good idea.  I've created such a request.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6069q=TabPanelsort=-idcolspec=ID
Type Status Owner Milestone Summary Stars

On Feb 23, 2:42 am, Thomas Broyer t.bro...@gmail.com wrote:
 Maybe you could file a bug? They'll be undeprecating DockPanel in 2.3, and
 maybe TabPanel should be undeprecated 
 too:http://code.google.com/p/google-web-toolkit/issues/detail?id=5888

-- 
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: Sorting CellTable, AsyncData but Sort Locally

2011-02-23 Thread Greg Dougherty
Well, I'd start out by trying:
public MySortHandler(ListBook BOOKS, CellTable myCellTable,
Column columnA,  you get the picture) {
 thisList = new ArrayList (BOOKS);
 ..
}

On Feb 23, 9:56 am, Josh K kendrick.j...@gmail.com wrote:
 Ok, I got something working using the example you provided, but I
 don't like how I implemented it. It wasn't hard, but everything I've
 wanted to do in GWT so far has been easy, so this seems kind of
 messy..

 But, I guess trying to implement sorting using a ListSortHandler would
 have been just as messy since I would have had to setComparator for
 every column still right?

 Also, this is probably a stupid Java error, but I'm trying to re-use
 my SortHandler so I broke it into it's own class. In each composite
 I've got a list of what is displayed in the tables, call it BOOKS.
 What I've been trying to do is instantiate the SortHandler:

 new MySortHandler (BOOKS, myCellTable, columnA, columnB, columnC,
 etc..)

 And in class I've got something like
 public class MySortHandler {
     private ListBook thisList;

     public MySortHandler(ListBook BOOKS, CellTable myCellTable,
 Column columnA,  you get the picture) {
          thisList = BOOKS;
          ..
     }

 Down below I sort thisList, and at the end, I assign it back to BOOKS
 and do cellTable.setRowData(BOOKS);

 When I go to sort though, nothing happens. I think I narrowed it down
 to understand for some reason the list isn't getting copied over or
 something like that? If I have MySortHandler as an internal private
 class to my composite and I use the original List BOOKS, it sorts, but
 when I try to do like I was doing above, it doesn't work.

 Can anyone explain why, and give me an idea of how to fix it. I'll be
 alright without code, just don't even know how to get around this. I'd
 hate to have to stick an internal SortHandler at the end of each
 composite.

 On Feb 14, 12:19 pm, Josh K kendrick.j...@gmail.com wrote:

  What I was getting confused about doing it this way though is if I'm
  allowing the data to be sorted by 4 or 5 different columns, would I
  have to say something like:

  if (event.isSortAscending  nameColumn) {
      Collections.sort(newData, nameAscComparator)} else if (nameColumn) {

      Collections.sort(newData, nameDescComparator)} else if 
  (event.isSortAscending  timeRequestedColumn) {

      Collections.sort(newData, timeRequestedAscComparator)

  } 

  ya know where I have to have a different asc and desc comparator for
  each column and figure out which column was selected before I sort?

  I'm thinking that I'll have a small enough set of rows (probably max
  100 rows at a time), that if I just make the columns sortable, it will
  be fine if I don't use paging. So maybe I should do what Greg
  mentioned and download all the data and use a ListDataProvider. What I
  liked about the AsyncDataProvider though is that people can change the
  value of a cell and hit enter and it's updated in the database because
  this will be an application a couple are using at one time all dealing
  with the same data so I need changes to show up on what other people
  are seeing.

  BTW, thanks a lot guys!

  On Feb 14, 10:00 am, John LaBanca jlaba...@google.com wrote:

   If you are supporting paging, then a local sort will only sort the current
   page, whereas a database sort would sort the data return the results for 
   the
   current page.  For example, if you are on the first page and do a reverse
   sort, do you want to see all the names that start with z (database sort), 
   or
   do you want to see all of the names that start with a in reverse order
   (local sort of the current page).

   That being said, you can cache the values locally in a list and use
   ListSortHandler.  Alternatively, you can add a ColumnSortEvent.Handler to
   CellTable and copy and sort the return of CellTable#getVisibleItems().  
   The
   code would be something like the following:

   cellTable.addColumnSortHandler(new ColumnSortEvent.Handler() {
     public void onColumnSort(ColumnSortEvent event) {
       ListT newData = new ArrayList(cellTable.getVisibleItems()); // Copy
   the data
       if (event.isSortAscending) {
         Collections.sort(newData, myAscComparator); // Sort ascending.
       } else {
         Collections.sort(newData, myDescComparator); // Sort descending.
       }
       cellTable.setRowData(cellTable.getVisibleRange(), newData);
     }

   });

   Thanks,
   John LaBanca
   jlaba...@google.com

   On Mon, Feb 14, 2011 at 12:53 AM, Josh K kendrick.j...@gmail.com wrote:
I've been developing an application in GWT that has data I've been
displaying in a CellTable. I've set it up with a few TextColumns and a
few EditTextColumns. I've got it set up to where if someone changes
the data in an EditText cell, it sends an asynchronous request to the
database and updates that row in the DB table. In short, I've got all
this working 

Re: Best hosting provider for GWT app

2011-02-23 Thread Ashton Thomas
I have been using Amazon elasticbeanstalk:
http://aws.amazon.com/elasticbeanstalk/

Seems to be in its early stages but has been working very well for me.
We use our own Postgres server though and will probably migrate over
to the amazon service for Relational databases at one point (hopefully
they support postgres soon. they are in the works of adding oracle and
already have mysql)

On Feb 23, 2:13 pm, Alan Chaney a...@mechnicality.com wrote:
 Hi Deepak

 See inline comments.

 On 2/22/2011 10:37 AM, Deepak Singh wrote: Hi All,

  Lets share our experience for the hosting of gwt apps. If someone has 
  experienced a hosting
  provider before or know the best in the market, let all should know who is 
  the best ?
  Priority should be the server speed to deliver files quickly as gwt app 
  face the startup time issue.

 I've used a number of hosting providers over the years, and transfer speeds 
 are normally limited by
 the client and the ISP you are connected to. For example, I currently use 
 what was thePlanet and is
 now called SoftLayer - I've measured transfers in the 100's of mbits from 
 other Tier-3 providers
 when I've used wget from the command line. However, the best I can do to my 
 workstation is  around
 26 Mbps - which is limited by Time-Warner, my ISP.

 I'd say the measures of a hosting provider are (in no particular order)

 1. price
 2. SLA - surprising how difficult it is to get past 5/9's
 3. Their response when things go wrong.

 I've found Softlayer to be Ok on 1 and very good on 3. I can't remember what 
 their SLA is.

 YMMV

 Alan

-- 
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: Sorting CellTable, AsyncData but Sort Locally

2011-02-23 Thread Josh K
Ahhh... so then at the end to put the sorted list back in the
original and update the table

BOOKS = new ArrayList(thisList);
cellTable.setRowData(BOOKS);

Wow that makes sense. I knew it was something stupid. I understand why
John had this line above now:  ListT newData = new
ArrayList(cellTable.getVisibleItems()); // Copy the data

On Feb 23, 2:11 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Well, I'd start out by trying:
 public MySortHandler(ListBook BOOKS, CellTable myCellTable,
 Column columnA,  you get the picture) {
          thisList = new ArrayList (BOOKS);
          ..
     }

 On Feb 23, 9:56 am, Josh K kendrick.j...@gmail.com wrote:







  Ok, I got something working using the example you provided, but I
  don't like how I implemented it. It wasn't hard, but everything I've
  wanted to do in GWT so far has been easy, so this seems kind of
  messy..

  But, I guess trying to implement sorting using a ListSortHandler would
  have been just as messy since I would have had to setComparator for
  every column still right?

  Also, this is probably a stupid Java error, but I'm trying to re-use
  my SortHandler so I broke it into it's own class. In each composite
  I've got a list of what is displayed in the tables, call it BOOKS.
  What I've been trying to do is instantiate the SortHandler:

  new MySortHandler (BOOKS, myCellTable, columnA, columnB, columnC,
  etc..)

  And in class I've got something like
  public class MySortHandler {
      private ListBook thisList;

      public MySortHandler(ListBook BOOKS, CellTable myCellTable,
  Column columnA,  you get the picture) {
           thisList = BOOKS;
           ..
      }

  Down below I sort thisList, and at the end, I assign it back to BOOKS
  and do cellTable.setRowData(BOOKS);

  When I go to sort though, nothing happens. I think I narrowed it down
  to understand for some reason the list isn't getting copied over or
  something like that? If I have MySortHandler as an internal private
  class to my composite and I use the original List BOOKS, it sorts, but
  when I try to do like I was doing above, it doesn't work.

  Can anyone explain why, and give me an idea of how to fix it. I'll be
  alright without code, just don't even know how to get around this. I'd
  hate to have to stick an internal SortHandler at the end of each
  composite.

  On Feb 14, 12:19 pm, Josh K kendrick.j...@gmail.com wrote:

   What I was getting confused about doing it this way though is if I'm
   allowing the data to be sorted by 4 or 5 different columns, would I
   have to say something like:

   if (event.isSortAscending  nameColumn) {
       Collections.sort(newData, nameAscComparator)} else if (nameColumn) {

       Collections.sort(newData, nameDescComparator)} else if 
   (event.isSortAscending  timeRequestedColumn) {

       Collections.sort(newData, timeRequestedAscComparator)

   } 

   ya know where I have to have a different asc and desc comparator for
   each column and figure out which column was selected before I sort?

   I'm thinking that I'll have a small enough set of rows (probably max
   100 rows at a time), that if I just make the columns sortable, it will
   be fine if I don't use paging. So maybe I should do what Greg
   mentioned and download all the data and use a ListDataProvider. What I
   liked about the AsyncDataProvider though is that people can change the
   value of a cell and hit enter and it's updated in the database because
   this will be an application a couple are using at one time all dealing
   with the same data so I need changes to show up on what other people
   are seeing.

   BTW, thanks a lot guys!

   On Feb 14, 10:00 am, John LaBanca jlaba...@google.com wrote:

If you are supporting paging, then a local sort will only sort the 
current
page, whereas a database sort would sort the data return the results 
for the
current page.  For example, if you are on the first page and do a 
reverse
sort, do you want to see all the names that start with z (database 
sort), or
do you want to see all of the names that start with a in reverse order
(local sort of the current page).

That being said, you can cache the values locally in a list and use
ListSortHandler.  Alternatively, you can add a ColumnSortEvent.Handler 
to
CellTable and copy and sort the return of CellTable#getVisibleItems().  
The
code would be something like the following:

cellTable.addColumnSortHandler(new ColumnSortEvent.Handler() {
  public void onColumnSort(ColumnSortEvent event) {
    ListT newData = new ArrayList(cellTable.getVisibleItems()); // 
Copy
the data
    if (event.isSortAscending) {
      Collections.sort(newData, myAscComparator); // Sort ascending.
    } else {
      Collections.sort(newData, myDescComparator); // Sort descending.
    }
    cellTable.setRowData(cellTable.getVisibleRange(), newData);
  

Re: Export ECCN for GWT, Guice, GIN?

2011-02-23 Thread David Chandler
We're working on this. If it weren't for one class, GWT would not be subject
to the Export Administration Regulations and thus would not need an ECCN.
However, GWT implements MD5Digest, so we're working on classification. We're
considering Guice and GIN, as well.

/dmc

On Tue, Feb 15, 2011 at 2:56 PM, GWT-DEV eeli...@bellsouth.net wrote:

 Does anyone have an answer to this question?

 Does GWT have an ECCN?  If so, what is it?

 On Jan 24, 1:10 pm, boardtc boar...@gmail.com wrote:
  Apache products have export information including Export Control
  Classification Number (ECCN) numbers.
 
  Do Google products like GWT, Guice  GIN have similar?

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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: Maven, Spring GWT 2.1

2011-02-23 Thread David Chandler
Prior versions aren't available, but it likely wouldn't help, anyway, as the
issue appears to be related to both GWT 2.2 and the current plugin.

As a temporary workaround until the next plugin release, manually copy
gwt-dev.jar (without version #) into the folder in your local Maven
repository containing gwt-user-2.2.0.jar. Example:

 cd ~/.m2/repository/com/google/gwt
 cp gwt-dev/2.2.0/gwt-dev-2.2.0.jar gwt-user/2.2.0/gwt-dev.jar

It's a total hack, but will resolve the issue until the next plugin ships.

/dmc

On Wed, Feb 23, 2011 at 10:48 AM, JC realje...@gmail.com wrote:

 Hi.

 I'm looking to make work the GWT Designer on my Maven-Spring
 application.

 It looks like, I have to find the version 2.1 of GWT eclipse plugin...

 Where is the version 2.1? I just can't find it :-(


 Thanks for you help!

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 Designer 2.2 error with gwt-maven project

2011-02-23 Thread David Chandler
As a temporary workaround until the next plugin release, manually copy
gwt-dev.jar (without version #) into the folder in your local Maven
repository containing gwt-user-2.2.0.jar. Example:

 cd ~/.m2/repository/com/google/gwt
 cp gwt-dev/2.2.0/gwt-dev-2.2.0.jar gwt-user/2.2.0/gwt-dev.jar

It's a total hack, but will resolve the issue until the next plugin ships.

/dmc

On Wed, Feb 23, 2011 at 2:04 PM, Hari shankar harsha...@gmail.com wrote:

 Thanks much David for the update!

 On Wed, Feb 23, 2011 at 10:01 PM, David Chandler 
 drfibona...@google.comwrote:

 We're looking into this. I can reproduce the error with a POM specifying
 GWT 2.2.0 and gwt-maven-plugin 2.2.0.

 /dmc

 On Mon, Feb 21, 2011 at 12:31 PM, har_shan harsha...@gmail.com wrote:

 I deleted gwt-dev directory altogether in m2 local repo but still the
 error persists.

 I also tried setting up new eclipse workspace and imported the project
 into it as maven project and noticed gwt dev getting downloaded (may
 be downloaded internally by gwt-maven-plugin as you said earlier?) and
 again the error comes up even after deleting the gwt dev directory
 again.

 btw, is this a bug in GPE or GWT maven plugin (if so is it logged?)
 and would be happy to know when we can expect a fix for this?

 as a temp workaround, am creating ui templates/owner java code in
 separate (non maven) project and copying it over to my gwt maven
 project, but its annoying as you can see.

 anyways thanks much again for your suggestions,
 Hari

 On Feb 20, 11:51 pm, Philippe Beaudoin philippe.beaud...@gmail.com
 wrote:
  Maybe try deleting all the releted dependencies from your local .m2
 repo? In
  my case I deleted gwt-dev 2.1 and verified that it was not
 re-downloaded. Do
  the same with gin et al.
 
  Cheers,
 
 Philippe

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




 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Managing session timeouts in GWT

2011-02-23 Thread joe kolba
My app is currently built around the Spring framework and Spring Security +
GWT.  Is there any way for me to redirect to login when a session expires or
when the user makes a RPC request when the session has expired?  I was
thinking about creating a timer that tracks the time between RPC calls, once
the timer has gone above the allocated time I could do a Window redirect.
Any suggestions?

-- 
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: standard.css

2011-02-23 Thread Deepak Singh
what is this cssServlet.css ?

On Thu, Feb 24, 2011 at 1:22 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 In your html:

 /styles/cssServlet.css

 In web.xml:

 servlet-mapping
 servlet-namecssServlet/servlet-name
  url-pattern/styles/cssServlet.css/url-pattern
 /servlet-mapping

 Juan

 2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi Jaun,

 How to use this CssServlet class ?

 On Wed, Feb 23, 2011 at 9:14 PM, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 Hi,

 Try that (thanks Gabriel Nossier):

 public class CssServlet extends HttpServlet {
  private static final long serialVersionUID = 2545846261709821197L;

 private static final String path1 = ./;
 private static final String path2 = webapps/styles/;

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doGet(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 doPost(req, resp);
  }

 /*
  * (non-Javadoc)
  *
  * @see
  *
 javax.servlet.http.HttpServlet#doPost(javax.servlet.http.HttpServletRequest
  * , javax.servlet.http.HttpServletResponse)
  */
 @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
 throws ServletException, IOException {
 resp.setContentType(text/css);

 PrintWriter out = resp.getWriter();
 out.println(@CHARSET \ISO-8859-1\;);
  generateMonoliticCssFile(out);
 out.close();
 }

 private void generateMonoliticCssFile(PrintWriter out) throws IOException
 {
 File dir = new File(path1);
  if (dir.exists()) {
 listFolder(out, dir);
 } else {
  dir = new File(path2);
 if (dir.exists()) {
 listFolder(out, dir);
  } else {
 out.println(Paths ' + path1 + ' and '  + path2 + ' doesn't exists);
  File local = new File(.);
 out.println(Local path: + local.getAbsolutePath());
  }
 }
 }

 private void listFolder(PrintWriter out, File dir) throws IOException {
 for (File file : getAllCssFiles(dir)) {
  process(out, file);
 }
 }

 /**
  * @param out
  * @param file
  * @throws IOException
  */
 private void process(PrintWriter out, File file) throws IOException {
  out.println();
 out.println(/**  file: + file.getName() +   ***/);
  out.println();

 BufferedReader fileReader = new BufferedReader(new FileReader(file));

 String aLine = null;
 while ((aLine = fileReader.readLine()) != null) {
  if (!aLine.startsWith(@CHARSET)) {
 out.println(aLine);
 }
  }

 out.println();
 }

 /**
  * @param dir
  * @return
  */

 private ListFile getAllCssFiles(File dir) {
 ListFile rv = new LinkedListFile();

 FilenameFilter filenameFilter = new FilenameFilter() {
 @Override
  public boolean accept(File dir, String name) {
 return name.toLowerCase().endsWith(.css);
  }
 };

 for (File file : dir.listFiles(filenameFilter)) {
  rv.add(file);
 }

 return rv;
  }
 }


 2011/2/23 Deepak Singh deepaksingh...@gmail.com

 Hi,

 After compiling our gwt project we get one statndard.css file which
 loads to the client consuming 1 http request.
 We also have our application specific style.css file which loads
 consuming 1 seperate http request.

 To reduce the number of http requests, how should i combine them into 1
 css file ?

 Also, we have many application specific images which loads to the client
 using 1 http request for 1 image. If i create 1 ImageBundle and put all
 images into this bundle, how do i get this bundle loaded to the client in
 just 1 http request at the application start up time ?

 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.


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


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


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

Re: SimplePager, CellTable, Progress Bar Gone

2011-02-23 Thread John LaBanca
ListDataProvider always knows exactly how much and what data it contains, so
using a ListDataProvider will basically ensure that the loading indicator
never appears.  If you are loading the data asynchronously, you probably
want to switch to an AsyncDataProvider.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Feb 23, 2011 at 2:48 PM, cmarsh...@avenue100.com 
cmarsh...@avenue100.com wrote:

 In my application I had a CellTable that did not use a SimplePager nor
 a ListDataProvider.  The data to be displayed has become quite lengthy
 so I have added the use of a SimplePager and a ListDataProvider.
 Previously the CellTable would display a nice side ways barber pole
 for a progress bar when data was loading but with the addition of the
 SimplePager and ListDataProvider that has disappeared.  Is there any
 magic to get it back?  Everything else about the SimplePager and
 ListDataProvider works well.

 thanks,
 Chris

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



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



Strange - RPC policy file randomly inconsistent between gwt compile and devmode

2011-02-23 Thread nogridbag
For a long time in our application, we've had issues running hosted
mode.  Sometimes hosted mode works, sometimes it doesn't.  We've
pretty much lived with this for months.

For instance:
1) Launch dev mode
2) Copy to Clipboard
3) Paste URL in firefox and hit enter (WORKS!)
4) Copy to Clipboard
5) Paste URL in firefox (FAILS - Status code exception)

It has nothing to do with changing source code.  We can change one
line of non-serializable code and it may take us 10 attempts for dev
mode to work.  The issue seems to be the dev mode RPC file doesn't
match the RPC file generated from a full GWT build - but it happens
RANDOMLY.

For example, here's a small portion of our GWT compile RPC file in
tomcat.  The actual RPC file is quite large: 2306 lines.
[Lcom.blah.domain.shared.SomeClass;, true, true, true, true,
[Lcom.blah.domain.shared.SomeClass;/4101108957, 4101108957

When I launch dev mode, it generates a new RPC file.  If I diff this
file with the RPC file in tomcat, only one line is different (true's
flipped to false):
[Lcom.blah.domain.shared.SomeClass;, true, true, false, false,
[Lcom.blah.domain.shared.SomeClass;/4101108957, 4101108957

If I launch dev mode again with NO CHANGES to the source code, 1 or 2
DIFFERENT lines may be differ from the original RPC file built in
tomcat.  Note: The difference is randomly in either the first two
booleans or the last two booleans.

If I launch a third time, perhaps the files will be identical (same
file name, same contents) and dev mode will work fine.  I have no idea
how to troubleshoot this.  I digged into the GWT source code,
specifically ProxyCreator.  But I don't figure out why we would see
random behavior.

Any idea how I might go about fixing this?
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: CheckboxCell 2 clicks for selection

2011-02-23 Thread Y2i
Do you call the constructor like CheckboxCell(true, false)?
Also, when you assign a selection model, do you 
call cellTable.setSelectionModel(selectionModel, 
DefaultSelectionEventManager.MyProxycreateCheckboxManager(colNum))?

-- 
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 tell if WriteOperation.UPDATE is called on a version change or on a first enounter

2011-02-23 Thread Y2i
The only reliable way I found was

   1. create a boolean flag field, set it to false
   2. before the new range is pulled, set the flag to true
  - ignore onProxyChange() if the flag is set to true
   3. when either onSuccess(), onViolation() or onFailure() is called, 
   schedule a deferred command to set the flag to false.
  - a deferred command is important because the order of onProxyChange 
  and the range pull callbacks seems to be nondeterministic
   

It would be very helpful if GWT provided a different enum constant for the 
first encounter of the proxy.

-- 
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: Google Maps API v3 support in gwt-google-apis

2011-02-23 Thread Eric Ayers
There is no timeline for supporting maps v3 with GWT bindings officially in
gwt-google-apis.  There are some other projects out there you can use such
as http://code.google.com/p/gwt-google-maps-v3/

On Wed, Feb 23, 2011 at 11:51 AM, bmclean bmcl...@latitudegeo.com wrote:

 Hello,

 I’m working with a client on an application I have written using gwt-
 google-apis Maps. They’re interested in upgrading the application to
 use new features available in Google Maps Javascript API v3. Does
 anyone have an estimate as to when gwt-google-apis project will
 support the Google Maps Javascript API v3?

 Thank you,
 Brett

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




-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

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



Scrollbars in IE with StackLayoutPanel

2011-02-23 Thread Thomas
Hi,

I'm trying to embed my GWT app into a website with the following
iframe:

iframe src=http://myapp.appspot.com/; width=300px height=640px
style=padding-top: 10px; border-top-style: none; border-right-style:
none; border-bottom-style: none; border-left-style: none; border-
width: initial; border-color: initial; overflow: hidden; /iframe

This looks good in FF and Chrome but in IE I get horizontal scrollbars
due a generated div with 10x10 cm size:

div style=position: absolute; z-index: -32767; top: -20cm; width:
10cm; height: 10cm; nbsp;/div

Where does this div come from? And is it possible to change the size,
that it doesn't break the 300px width of my iframe?

My app has the following nesting: CellTable - ScrollPanel -
StackLayoutPanel - RootLayoutPanel

Found out that the mentioned div can also be found in the showcase
examples: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox

Thanks in advance,
Thomas


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



$doc.body.createTextRange

2011-02-23 Thread bhomass
I know there is a javascript function for
document.body.createTextRange( )

when I try
$doc.body.createTextRange()

in a native method in GWT, it says

body.createTextRange is not a function

why is that?

-- 
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: $doc.body.createTextRange

2011-02-23 Thread Armishev, Sergey
From the top of my head (thanks to GWT , I don't need to remember all
this anymore!)
In IE
document.body.createTextRange()

On all other browsers
document.selection.createRange()

-Sergey


-Original Message-
From: google-web-toolkit@googlegroups.com
[mailto:google-web-toolkit@googlegroups.com] On Behalf Of bhomass
Sent: Wednesday, February 23, 2011 4:38 PM
To: Google Web Toolkit
Subject: $doc.body.createTextRange

I know there is a javascript function for
document.body.createTextRange( )

when I try
$doc.body.createTextRange()

in a native method in GWT, it says

body.createTextRange is not a function

why is that?

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

/PREBRspan 
style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366'
_BR 
This electronic message and any files transmitted with it containsBR
information from iDirect, which may be privileged, proprietaryBR
and/or confidential. It is intended solely for the use of the individualBR
or entity to whom they are addressed. If you are not the originalBR
recipient or the person responsible for delivering the email to theBR 
intended recipient, be advised that you have received this emailBR
in error, and that any use, dissemination, forwarding, printing, orBR copying 
of this email is strictly prohibited. If you received this emailBR
in error, please delete it and immediately notify the sender.BR
_ 
/SPANPRE

-- 
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: TabLayoutPanel + dynamic tab content + DialogBox = ?

2011-02-23 Thread jscheller


On Feb 22, 8:02 am, Jeff Larsen larse...@gmail.com wrote:
 THe problem is that with dialog box, it resizes itself to be the size of
 widget it contains, and since TabLayoutPanel has no defined size, it won't
 properly resize itself.

 You could getting the size of the dynamically generated widgets that
 TabLayoutPanel contains, then adding that size to the size of the tabs and
 setting the dialog box to that explicit size, but I think the cleaner
 solution would be to just use TabPanel.

Thanks Jeff... Any advice on getting the size of the stuff I'm
dynamically building? My problem is if I just add the resulting panels
to the TabLayoutPanel, then try something like getAbsoluteHeight() on
them, it winds up being zero. I started down the path of building
something to estimate the dimensions of the layout as it was
constructed, but I realized that was going to be a non-trivial
expedition...

-- 
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: TabLayoutPanel + dynamic tab content + DialogBox = ?

2011-02-23 Thread jscheller


On Feb 23, 1:08 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 Good idea.  I've created such a request.

Thanks Greg... I posted a comment and starred it, and will keep my
fingers crossed.

Looks like another round of refactoring this bloody and butchered
dialog box tonight for me...

-- 
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: Managing session timeouts in GWT

2011-02-23 Thread Jeff Schwartz
On the server compare the user's session id that you placed in your payload
to the servlets current session id. If they aren't the same throw a custom
exception and catch it on the client's onFailure method. Don't use the
request's cookies session value because it is vulnerable to hijacking.
Instead, when your user logs in copy their session id to a cookie on the
client. Every time you make an rpc call include the session id up to the
server.

Jeff

On Wed, Feb 23, 2011 at 3:25 PM, joe kolba joekolb...@gmail.com wrote:

 My app is currently built around the Spring framework and Spring Security +
 GWT.  Is there any way for me to redirect to login when a session expires or
 when the user makes a RPC request when the session has expired?  I was
 thinking about creating a timer that tracks the time between RPC calls, once
 the timer has gone above the allocated time I could do a Window redirect.
 Any suggestions?

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
follow me on twitter: @jefftschwartz

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



define the size of doclayout panel

2011-02-23 Thread mars
hi,

how can i define the size of doc layout panel in uibinder and its's
children's size in different direction?

i have code as this:

g:DockLayoutPanel ui:field=_containerDockPanel unit=EM
height=900 width=700 
g:center
g:HTMLPanel
g:FlowPanel 
ui:field=_summaryTablePanel /
/g:HTMLPanel
  /g:center

g:east size=20
  g:HTMLPanel
div 
class=reportWrapper
g:Button 
ui:field=_refreshBtnRefresh/g:Button
/div
/g:HTMLPanel
/g:east
/g:DockLayoutPanel

the height and width i defined on the docklayoutpanel seems not
working, and for the east part, i wish to define it as 20em(W) *
90em(H), how can i do that? 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.



is there anyway i can define the spacing in docklayoutpanel

2011-02-23 Thread mars
found that all children widget squeezed together on the
docklayoutpanel  yet there is not such a method as setSpacing() as the
one in dockPanel, how can i set spacing between east/west/center/north/
south?

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



Eclipse 3.6 + GPE startup time

2011-02-23 Thread Bryan Donnovan

Eclipse takes around 1 minute to launch and seems to get worse over
time.  I have only 3 GWT projects in the workspace, and I'm not sure
what to do about this problem.

Does anyone know a method for improving the startup time?

-- 
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: Eclipse 3.6 + GPE startup time

2011-02-23 Thread Jeff Schwartz
You should probably post this in the eclipse forum but have you checked you
eclipse logs? That would be the 1st place I'd look.

On Wed, Feb 23, 2011 at 7:19 PM, Bryan Donnovan bryandonno...@gmail.comwrote:


 Eclipse takes around 1 minute to launch and seems to get worse over
 time.  I have only 3 GWT projects in the workspace, and I'm not sure
 what to do about this problem.

 Does anyone know a method for improving the startup time?

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




-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
follow me on twitter: @jefftschwartz

-- 
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: Google Maps API v3 support in gwt-google-apis

2011-02-23 Thread bmclean
Okay, thanks Eric!

On Feb 23, 1:10 pm, Eric Ayers zun...@google.com wrote:
 There is no timeline for supporting maps v3 with GWT bindings officially in
 gwt-google-apis.  There are some other projects out there you can use such
 ashttp://code.google.com/p/gwt-google-maps-v3/



 On Wed, Feb 23, 2011 at 11:51 AM, bmclean bmcl...@latitudegeo.com wrote:
  Hello,

  I’m working with a client on an application I have written using gwt-
  google-apis Maps. They’re interested in upgrading the application to
  use new features available in Google Maps Javascript API v3. Does
  anyone have an estimate as to when gwt-google-apis project will
  support the Google Maps Javascript API v3?

  Thank you,
  Brett

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

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
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: Google Maps API v3 support in gwt-google-apis

2011-02-23 Thread bmclean
Okay. Thanks Eric!

On Feb 23, 1:10 pm, Eric Ayers zun...@google.com wrote:
 There is no timeline for supporting maps v3 with GWT bindings officially in
 gwt-google-apis.  There are some other projects out there you can use such
 ashttp://code.google.com/p/gwt-google-maps-v3/



 On Wed, Feb 23, 2011 at 11:51 AM, bmclean bmcl...@latitudegeo.com wrote:
  Hello,

  I’m working with a client on an application I have written using gwt-
  google-apis Maps. They’re interested in upgrading the application to
  use new features available in Google Maps Javascript API v3. Does
  anyone have an estimate as to when gwt-google-apis project will
  support the Google Maps Javascript API v3?

  Thank you,
  Brett

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

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
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: Eclipse 3.6 + GPE startup time

2011-02-23 Thread Thomas Broyer
Try cleaning your temp dir: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5261

-- 
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: Eclipse 3.6 + GPE startup time

2011-02-23 Thread Bryan Donnovan
Wow.  Amazing difference.  Thank you.

On Feb 23, 4:58 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Try cleaning your temp 
 dir:http://code.google.com/p/google-web-toolkit/issues/detail?id=5261

-- 
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: Export ECCN for GWT, Guice, GIN?

2011-02-23 Thread David Chandler
Here are the classifications you requested.

GWT:  5D002, TSU notification submitted
Guice, GIN:  Not subject to the EAR

HTH,
/dmc

On Wed, Feb 23, 2011 at 3:14 PM, David Chandler drfibona...@google.comwrote:

 We're working on this. If it weren't for one class, GWT would not be
 subject to the Export Administration Regulations and thus would not need an
 ECCN. However, GWT implements MD5Digest, so we're working on classification.
 We're considering Guice and GIN, as well.

 /dmc


 On Tue, Feb 15, 2011 at 2:56 PM, GWT-DEV eeli...@bellsouth.net wrote:

 Does anyone have an answer to this question?

 Does GWT have an ECCN?  If so, what is it?

 On Jan 24, 1:10 pm, boardtc boar...@gmail.com wrote:
  Apache products have export information including Export Control
  Classification Number (ECCN) numbers.
 
  Do Google products like GWT, Guice  GIN have similar?

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




 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w: http://code.google.com/
 b: http://googlewebtoolkit.blogspot.com/
 t: @googledevtools




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
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 app problem, requested resource is not available.

2011-02-23 Thread vertho
Hi I've deployed a GWT app on Apache-Tomcat-7.0.8, I'm using GIN in
frontend and GUICE in backend.
My app will run just fine from my development environment, but as soon
as i run it in production it quickly turns ugly.

When i attempt the first RPC call i get an error message which outputs
a chunk of HTML code and some clues as to what the problem is:

htmlheadtitleApache Tomcat/7.0.8 - Error report/
titlestyle!--H1 {font-family:Tahoma . bodyh1HTTP Status
404 - /pendler/dispatch/h1HR size=1 noshade=noshadepbtype/
b Status report/ppbmessage/b u/pendler/dispatch/u/
ppbdescription/b uThe requested resource (/pendler/dispatch)
is not available./u ..  /html

I've used the HUPA project as a reference while working on the app:
http://james.apache.org/hupa/project-info.html

The reference to the resource it can't find is in my
DispatchServletModule:

public class DispatchServletModule extends ServletModule {

@Override
public void configureServlets() {
super.configureServlets();
serve(/pendler/dispatch).with(DispatchServiceServlet.class);
}
}

I have the following Guice servlet config:

public class MyGuiceServletConfig extends GuiceServletContextListener
{

@Override
protected Injector getInjector() {
return Guice.createInjector(new ServerModule(), new
DispatchServletModule());
}
}


Any clues as to what might be causing this error? I've been working on
this for two days without too much luck.
Any help would be most appreciated.

-- 
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 2.2 on linux: Designer not wokring

2011-02-23 Thread Mannemarak
Dear all.

I'm having trouble getting GWT designer running with the new GWT 2.2
on my linux machine. I installed the GWT 2.2 plugin on a fresh eclipse
3.6 install, and everything of GWT seems to work (compile, deployment,
etc.) but when I try to open a file with GWT designer I get a screen
with the following message:
No GWT support found for this system.

The product can't find support for the OS, OS architecture or
windowing system you're using. Please check the prerequisites and if
your system matches it, try to re-install product.

Tried it on a different machine with a different flavour of linux,
still the same. But in windows in my original machine GWT Designer 2.2
works just fine, also on a fresh install of eclipse 3.6.

Is this a bug or am I missing some libraries in linux??

Any help to sort this out would be greatly appreciated!

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



Managing session timeouts in GWT

2011-02-23 Thread H Mahesh
My app is currently built around the Spring framework and Spring Security +
GWT.
I am using spring security mechanism (concept of ExceptionTranslationFilter)
to redirect to login page on session timeout.

Mentioned session timeout in web.xml.


 but in GWT it wont redirect to login page , it throws invocation Exception.
So how can i implement this.and display a message session timeout.

--  s
---
*Thanks  Regards*
Mahi
In the journey of life, if you want to travel without fear, you must have
the ticket of a good conscience.

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