HtmlUnit not running GWT js - onInjectionDone

2011-11-09 Thread MH
I'm trying to use htmlunit as recommended to return ?
_escaped_fragment_ queries by Google's crawler

I ask htmlunit to load my html page which contains a GWT program and
call waitForBackgroundJavaScript().

However the page then returned  by .asXml() has not got any GWT
components. The only processing that has occurred is the insertion of
the following:


//.onInjectionDone('')
//]]>


I don't know if it's relevant but htmlunit output these cryptic error
messages:

com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[Automation server can't create object
for 'ChromeTab.ChromeFrame'.] sourceName=[http://127.0.0.1:/
com.procyor.Procyor/com.procyor.Procyor.nocache.js] line=[16]
lineSource=[null] lineOffset=[0]

com.gargoylesoftware.htmlunit.html.SimpleHTMLParserListener error
SEVERE: Empty document. (http://gaeHack_about/blank 1:6)

Any help 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 Test Case errors because of Google Guice injection problems

2011-06-03 Thread MH
Hi,
I'm writing a GWT application with Guice on the server side and GIN on the
client side. Everything works fine when I run the Devmode. Problems start,
when I try to run GWT Test Cases.

When I run the test cases using the Eclipse "Run JUnit", everything is
initiated properly. The problems start either with running the EMMA (Code
Coverage plugin), or with test task in Ant (generated from webAppCreator
tool). In both cases it just times out. As EMMA gives no hint what went
wrong, the Ant task generates report. The report is pasted here:
http://pastie.org/2012107. I suppose the reasons for the error may be the
same.

If I understand correctly, the guice-servlet does not initialize the modules
for the test in the same way as in the devmode.

Has anyone came across the problem?

Best regards,
Mateusz

-- 
You received 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.1 debug hangs in Eclipse Development mode

2010-11-28 Thread MH
Since I updated to GWT2.1 library when I try to run project in Eclipse
(with Google Eclipse plugin on jdk 1.6.21) with Debug (Eclipse F11)
the browser just hangs in waiting forever and never gets to my first
breakpoint neither does it load the page

Could it be some mismatch between the Google Eclipse Plugin and using
the latest GWT library? Any other ideas please?

Thanks

Zvi

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



Code to run server or client with XML + XML-to-string

2010-05-14 Thread MH
I want to write some Java code that can run either server-side or in
GWT.  The problem is that the XML package that GWT supports
com.google.gwt.xml.client.* will not run server side.

Any ideas please?

Also in com.google.gwt.xml.client.* how do I serialize an XML Document
or Element to e.g.
"Xml serialized as a string"

Thanks!

MH

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



Putting TabLayoutPanel into VerticalPanel in UIBinder

2010-04-01 Thread mh
Hi,
I need to put a some kind of tabbed menu into my VerticalPanel, using
declarative layout.

I tried to simply :


  


but the result is awful, even when I tried some styling - I can't make
the tabbed layout "fit" into the vertical panel. Also, the styling
itself seems a little "stubborn", it's really difficult change the
outlook of the tabs, they keep place one above the another instead of
placing in line.

One of my ideas was to use TabBar instead, but I couldn't have find a
way to put that in an XML file.

Any ideas how to solve it?

Regards,
mh

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



Re: UiBinder with background-image and ImageResource

2010-03-14 Thread MH
Found the solution. The problem is that the style is _not_ injected. I
solved this by adding the proper ensureInjected in the widget's class.

2010/3/14 Michael 

> I've also tried this approach and while the CSS is compiled and the
> obfuscated selector-name is used in the generated HTML, the the
> selector definition is not included in the page. You could access the
> definition by calling the .getText() method of the generated
> ClientBundle implementation - but surely GWT should do the inclusion
> for you?
>
>
>
> On Mar 11, 8:30 am, MH  wrote:
> > Well, the problem does not seem to be the image.
> >
> > The CssResource interface I wrote is compiled properly, the XML I made
> for
> > thew widget works fine as well. It look like if the ui:with does not
> throw
> > ensureInjected or something. The styles are applied, but they are empty.
> >
> > Regards,
> > mh
> >
> > 2010/3/11 davidroe 
> >
> > > I forgot this part - does that help?
> >
> > >    @Source("com/whoever/client/resources/myImage.png")
> > >public ImageResource myImage();
> >
> > > On Mar 10, 2:16 pm, MH  wrote:
> > > > I'm afraid this one does not work for me.
> >
> > > > I did exactly as mentioned, and my widget seems to be not using style
> at
> > > > all. Shall I also add anything to the class itself?
> >
> > > > 2010/3/10 davidroe 
> >
> > > > > this is how I did it.
> >
> > > > > in whatever.css:
> >
> > > > > @sprite .myClass {
> > > > >  gwt-image: "myImage";
> > > > >  width: auto; height: auto;
> > > > >  background-repeat: repeat;
> > > > >  background-position: 0% 0%;
> > > > > }
> >
> > > > > in Resources.java:
> >
> > > > > public interface Resources extends ClientBundle {
> >
> > > > >  ...
> >
> > > > >  public interface WhateverCss extends CssResource {
> > > > >String myClass();
> > > > >  }
> >
> > > > >  @Source("com/whoever/client/resources/whatever.css")
> > > > >  public WhateverCss whateverCss();
> >
> > > > > }
> >
> > > > > in WhateverClass.ui.xml:
> >
> > > > >   /
> >
> > > > >  
> >
> > > > > HTH,
> > > > > /dave
> >
> > > > > On Mar 10, 8:52 am, Michael  wrote:
> > > > > > Hi there,
> >
> > > > > > I'm having a go at using the declarative layout and was wondering
> if
> > > > > > there's a way of using an image declared in a ClientBundle as a
> > > > > > background-image in the ui:style section, thus:
> >
> > > > > >  > > > > >   xmlns:ui="urn:ui:com.google.gwt.uibinder"
> > > > > >   xmlns:g="urn:import:com.google.gwt.user.client.ui">
> > > > > >  type="com.mycompany.MyClientBundle"/>
> >
> > > > > > 
> > > > > > .banner {
> > > > > >
> background-image:url('res.menuBackground');
> > > > > > }
> > > > > > 
> > > > > > 
> >
> > > > > > If not, how are you supposed to do that?
> >
> > > > > > Cheers
> >
> > > > > > Mike
> >
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> > > > cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > >  You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: UiBinder with background-image and ImageResource

2010-03-11 Thread MH
Well, the problem does not seem to be the image.

The CssResource interface I wrote is compiled properly, the XML I made for
thew widget works fine as well. It look like if the ui:with does not throw
ensureInjected or something. The styles are applied, but they are empty.

Regards,
mh

2010/3/11 davidroe 

> I forgot this part - does that help?
>
>
>@Source("com/whoever/client/resources/myImage.png")
>public ImageResource myImage();
>
>
>
> On Mar 10, 2:16 pm, MH  wrote:
> > I'm afraid this one does not work for me.
> >
> > I did exactly as mentioned, and my widget seems to be not using style at
> > all. Shall I also add anything to the class itself?
> >
> > 2010/3/10 davidroe 
>  >
> >
> >
> > > this is how I did it.
> >
> > > in whatever.css:
> >
> > > @sprite .myClass {
> > >  gwt-image: "myImage";
> > >  width: auto; height: auto;
> > >  background-repeat: repeat;
> > >  background-position: 0% 0%;
> > > }
> >
> > > in Resources.java:
> >
> > > public interface Resources extends ClientBundle {
> >
> > >  ...
> >
> > >  public interface WhateverCss extends CssResource {
> > >String myClass();
> > >  }
> >
> > >  @Source("com/whoever/client/resources/whatever.css")
> > >  public WhateverCss whateverCss();
> >
> > > }
> >
> > > in WhateverClass.ui.xml:
> >
> > >   >
> > >  
> >
> > > HTH,
> > > /dave
> >
> > > On Mar 10, 8:52 am, Michael  wrote:
> > > > Hi there,
> >
> > > > I'm having a go at using the declarative layout and was wondering if
> > > > there's a way of using an image declared in a ClientBundle as a
> > > > background-image in the ui:style section, thus:
> >
> > > >  > > >   xmlns:ui="urn:ui:com.google.gwt.uibinder"
> > > >   xmlns:g="urn:import:com.google.gwt.user.client.ui">
> > > > 
> >
> > > > 
> > > > .banner {
> > > > background-image:url('res.menuBackground');
> > > > }
> > > > 
> > > > 
> >
> > > > If not, how are you supposed to do that?
> >
> > > > Cheers
> >
> > > > Mike
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>  You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: UiBinder with background-image and ImageResource

2010-03-10 Thread MH
I'm afraid this one does not work for me.

I did exactly as mentioned, and my widget seems to be not using style at
all. Shall I also add anything to the class itself?

2010/3/10 davidroe 

> this is how I did it.
>
> in whatever.css:
>
> @sprite .myClass {
>  gwt-image: "myImage";
>  width: auto; height: auto;
>  background-repeat: repeat;
>  background-position: 0% 0%;
> }
>
> in Resources.java:
>
> public interface Resources extends ClientBundle {
>
>  ...
>
>  public interface WhateverCss extends CssResource {
>String myClass();
>  }
>
>  @Source("com/whoever/client/resources/whatever.css")
>  public WhateverCss whateverCss();
>
> }
>
> in WhateverClass.ui.xml:
>
>   >
>
>  
>
> HTH,
> /dave
>
> On Mar 10, 8:52 am, Michael  wrote:
> > Hi there,
> >
> > I'm having a go at using the declarative layout and was wondering if
> > there's a way of using an image declared in a ClientBundle as a
> > background-image in the ui:style section, thus:
> >
> >  >   xmlns:ui="urn:ui:com.google.gwt.uibinder"
> >   xmlns:g="urn:import:com.google.gwt.user.client.ui">
> > 
> >
> > 
> > .banner {
> > background-image:url('res.menuBackground');
> > }
> > 
> > 
> >
> > If not, how are you supposed to do that?
> >
> > Cheers
> >
> > Mike
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



MouseOver with previous MouseDown - problem in IE

2009-12-09 Thread mh
Hi,
I've created a Composite, consisting of a Panel and a FlexTable, along
with another Composite, consisting of a Panel and an Image, which was
supposed to be put in the FlexTable.

I wanted to create a simple dragging mechanism for the selection - so,
to each "cell" composite have mouse handlers.

The thing works fine in all the browsers, except for the IE.

When the mouse button is down, the proper cell's MouseDownHandler is
triggered. When the mouse button is still down, and the mouse is being
moved over another "cell", the MouseOverHandler is triggered, however,
for the cell that had had the MouseDown.

Is it the issue of the GWT, or I am doing something wrong?

Regards,
mh

--

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