Friday, March 1, 2013

Re: GWT Compile Error - Did I forget to inherit a required module?

Sorry for the noise.
I had to put my server classes in the server folder instead of shared. That fixed my problems.

Regards,
Manuel

Am Samstag, 2. März 2013 00:49:10 UTC+1 schrieb Manuel:
Hi everyone,

I implemented session-per-request from here.
Since then I got +7 Ignored compilation errors.

Does anyone know how to fix that ?

I tried  to add the following in my gwt.xml, but that didnt worked at all: <inherits name="com.google.inject.Guice" />
So how does that module stuff work? How do I know how to inherit them?
Im not familar with this, so any help is much appreciated.

Regards,
Manuel



ERROR LOG:
[ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/EntityManagerModule.java'
         [ERROR] Line 8: No source code is available for type com.google.inject.servlet.ServletModule; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.inject.persist.jpa.JpaPersistModule; did you forget to inherit a required module?
         [ERROR] Line 12: No source code is available for type com.google.inject.persist.PersistFilter; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/.apt_generated/de/mash/project/shared/ExpensesRequestFactoryDeobfuscatorBuilder.java'
         [ERROR] Line 7: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?
         [ERROR] Line 9: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationKey; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationData.Builder; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/.apt_generated/de/mash/project/shared/MainRequestFactoryDeobfuscatorBuilder.java'
         [ERROR] Line 7: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?
         [ERROR] Line 9: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationKey; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationData.Builder; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyGuiceServletConfig.java'
         [ERROR] Line 13: No source code is available for type com.google.inject.servlet.GuiceServletContextListener; did you forget to inherit a required module?
         [ERROR] Line 16: No source code is available for type com.google.inject.Injector; did you forget to inherit a required module?
         [ERROR] Line 17: No source code is available for type com.google.inject.Guice; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyPersistFilter.java'
         [ERROR] Line 23: No source code is available for type javax.servlet.Filter; did you forget to inherit a required module?
         [ERROR] Line 24: No source code is available for type com.google.inject.persist.UnitOfWork; did you forget to inherit a required module?
         [ERROR] Line 25: No source code is available for type com.google.inject.persist.PersistService; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.FilterConfig; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.ServletException; did you forget to inherit a required module?
         [ERROR] Line 41: No source code is available for type javax.servlet.ServletRequest; did you forget to inherit a required module?
         [ERROR] Line 41: No source code is available for type javax.servlet.ServletResponse; did you forget to inherit a required module?
         [ERROR] Line 42: No source code is available for type javax.servlet.FilterChain; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyServletModule.java'
         [ERROR] Line 9: No source code is available for type com.google.inject.servlet.ServletModule; did you forget to inherit a required module?
         [ERROR] Line 12: No source code is available for type de.mash.project.server.entities.Worker; did you forget to inherit a required module?
         [ERROR] Line 13: No source code is available for type com.google.inject.persist.jpa.JpaPersistModule; did you forget to inherit a required module?
         [ERROR] Line 14: No source code is available for type com.google.inject.persist.PersistFilter; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/myFilter.java'
         [ERROR] Line 22: No source code is available for type javax.servlet.Filter; did you forget to inherit a required module?
         [ERROR] Line 23: No source code is available for type javax.servlet.FilterConfig; did you forget to inherit a required module?
         [ERROR] Line 24: No source code is available for type javax.servlet.ServletException; did you forget to inherit a required module?
         [ERROR] Line 31: No source code is available for type javax.servlet.ServletRequest; did you forget to inherit a required module?
         [ERROR] Line 32: No source code is available for type javax.servlet.ServletResponse; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.FilterChain; did you forget to inherit a required module?
   [ERROR] Aborting compile due to errors in some input files

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

GWT Compile Error - Did I forget to inherit a required module?

Hi everyone,

I implemented session-per-request from here.
Since then I got +7 Ignored compilation errors.

Does anyone know how to fix that ?

I tried  to add the following in my gwt.xml, but that didnt worked at all: <inherits name="com.google.inject.Guice" />
So how does that module stuff work? How do I know how to inherit them?
Im not familar with this, so any help is much appreciated.

Regards,
Manuel



ERROR LOG:
[ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/EntityManagerModule.java'
         [ERROR] Line 8: No source code is available for type com.google.inject.servlet.ServletModule; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.inject.persist.jpa.JpaPersistModule; did you forget to inherit a required module?
         [ERROR] Line 12: No source code is available for type com.google.inject.persist.PersistFilter; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/.apt_generated/de/mash/project/shared/ExpensesRequestFactoryDeobfuscatorBuilder.java'
         [ERROR] Line 7: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?
         [ERROR] Line 9: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationKey; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationData.Builder; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/.apt_generated/de/mash/project/shared/MainRequestFactoryDeobfuscatorBuilder.java'
         [ERROR] Line 7: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?
         [ERROR] Line 9: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationKey; did you forget to inherit a required module?
         [ERROR] Line 10: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.OperationData.Builder; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyGuiceServletConfig.java'
         [ERROR] Line 13: No source code is available for type com.google.inject.servlet.GuiceServletContextListener; did you forget to inherit a required module?
         [ERROR] Line 16: No source code is available for type com.google.inject.Injector; did you forget to inherit a required module?
         [ERROR] Line 17: No source code is available for type com.google.inject.Guice; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyPersistFilter.java'
         [ERROR] Line 23: No source code is available for type javax.servlet.Filter; did you forget to inherit a required module?
         [ERROR] Line 24: No source code is available for type com.google.inject.persist.UnitOfWork; did you forget to inherit a required module?
         [ERROR] Line 25: No source code is available for type com.google.inject.persist.PersistService; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.FilterConfig; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.ServletException; did you forget to inherit a required module?
         [ERROR] Line 41: No source code is available for type javax.servlet.ServletRequest; did you forget to inherit a required module?
         [ERROR] Line 41: No source code is available for type javax.servlet.ServletResponse; did you forget to inherit a required module?
         [ERROR] Line 42: No source code is available for type javax.servlet.FilterChain; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/MyServletModule.java'
         [ERROR] Line 9: No source code is available for type com.google.inject.servlet.ServletModule; did you forget to inherit a required module?
         [ERROR] Line 12: No source code is available for type de.mash.project.server.entities.Worker; did you forget to inherit a required module?
         [ERROR] Line 13: No source code is available for type com.google.inject.persist.jpa.JpaPersistModule; did you forget to inherit a required module?
         [ERROR] Line 14: No source code is available for type com.google.inject.persist.PersistFilter; did you forget to inherit a required module?
      [ERROR] Errors in 'file:/C:/Users/Manuel/workspace_indigo_gwt/mash/src/de/mash/project/shared/myFilter.java'
         [ERROR] Line 22: No source code is available for type javax.servlet.Filter; did you forget to inherit a required module?
         [ERROR] Line 23: No source code is available for type javax.servlet.FilterConfig; did you forget to inherit a required module?
         [ERROR] Line 24: No source code is available for type javax.servlet.ServletException; did you forget to inherit a required module?
         [ERROR] Line 31: No source code is available for type javax.servlet.ServletRequest; did you forget to inherit a required module?
         [ERROR] Line 32: No source code is available for type javax.servlet.ServletResponse; did you forget to inherit a required module?
         [ERROR] Line 33: No source code is available for type javax.servlet.FilterChain; did you forget to inherit a required module?
   [ERROR] Aborting compile due to errors in some input files

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

Re: Can't create SWT Browser after eclipse exit

Update

If I delete my workspace directory then start eclipse and import the project
the Designer tab works until I exit eclipse.

Next time in I get the SWT browser error. 

So it is something in the workspace.  Any ideas on what I
should look for?

Thanks in advance.
Rich

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

Re: remove final from public final void RemoteServiceServlet.processPost



On Fri, Mar 1, 2013 at 1:13 PM, James <jim.pxie@gmail.com> wrote:
Now (up to version 2.5) we are not allowed to override RemoteServiceServlet.processPost because it is a final method. RemoteServiceServlet just allows String Serialization/Deserialization. My application allow users to download some files (in stream). I can implement this in a regular Java servlet. In this case, same business logic spreads two classes. If RemoteServiceServlet.processPost is allowed to override, I can implement it to allow processPost to return either string or stream through response. Does GWT committee have a plan to relieve this restriction?


Why are you not just overriding doPost or doGet ?

@Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws ServletException, IOException {
}

...

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

remove final from public final void RemoteServiceServlet.processPost

Now (up to version 2.5) we are not allowed to override RemoteServiceServlet.processPost because it is a final method. RemoteServiceServlet just allows String Serialization/Deserialization. My application allow users to download some files (in stream). I can implement this in a regular Java servlet. In this case, same business logic spreads two classes. If RemoteServiceServlet.processPost is allowed to override, I can implement it to allow processPost to return either string or stream through response. Does GWT committee have a plan to relieve this restriction?


James

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

Why doesn't this (AbsolutePanel inside a ScrollPanel) work?

 I've been banging my head on this for a while and have the bruises to show.  The goal is to place an AbsolutePanel inside a ScrollPanel.Scrollbars seem to randomly appear in Chrome.  Other browsers do weird things too.  I simply want to put stuff in an AbsolutePanel and have scrollbars appear if the window is too small.

Here's the code.

package com.test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.BorderStyle;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.ScrollPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.HorizontalPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Tp implements EntryPoint
{
interface Binder extends UiBinder<Widget, Tp>
{
}

private static final Binder binder = GWT.create( Binder.class );

@UiField(provided=true) ScrollPanel scrollPanel = new MyScrollPanel();
@UiField AbsolutePanel absolutePanel;
@UiField HorizontalPanel horizontalPanel;

/**
* This is the entry point method.
*/
public void onModuleLoad()
{
binder.createAndBindUi( this );
RootLayoutPanel.get().getElement().getStyle().setBackgroundColor( "gray" );
scrollPanel.getElement().getStyle().setBackgroundColor( "yellow" );

absolutePanel.getElement().getStyle().setBackgroundColor( "green" );
absolutePanel.getElement().getStyle().setMargin( 0.0, Style.Unit.PX );
absolutePanel.getElement().getStyle().setBorderWidth( 0.0, Style.Unit.PX );
absolutePanel.getElement().getStyle().setBorderStyle( BorderStyle.NONE );
absolutePanel.getElement().getStyle().setBorderWidth( 0.0, Style.Unit.PX );
absolutePanel.getElement().getStyle().setPadding( 0.0, Style.Unit.PX );

horizontalPanel.getElement().getStyle().setBackgroundColor( "cyan" );
horizontalPanel.getElement().getStyle().setMargin( 0.0, Style.Unit.PX );
horizontalPanel.getElement().getStyle().setBorderWidth( 0.0, Style.Unit.PX );
horizontalPanel.getElement().getStyle().setBorderStyle( BorderStyle.NONE );
horizontalPanel.getElement().getStyle().setBorderWidth( 0.0, Style.Unit.PX );
horizontalPanel.getElement().getStyle().setPadding( 0.0, Style.Unit.PX );
RootLayoutPanel.get().add( scrollPanel );
scrollPanel.onResize();
}
private int SLOP = 1;

/*
*/
private class MyScrollPanel extends ScrollPanel
{
public void onResize()
{
System.out.println( "-- MyScrollPanel->onResize()" );
int w = RootLayoutPanel.get().getOffsetWidth();
int h = RootLayoutPanel.get().getOffsetHeight();
setWidth( w + "px" );
setHeight( h + "px" );
if( w < absolutePanel.getWidgetLeft( horizontalPanel ) + horizontalPanel.getOffsetWidth() )
w = absolutePanel.getWidgetLeft( horizontalPanel ) + horizontalPanel.getOffsetWidth();
if( h < absolutePanel.getWidgetTop( horizontalPanel ) + horizontalPanel.getOffsetHeight() )
h = absolutePanel.getWidgetTop( horizontalPanel ) + horizontalPanel.getOffsetHeight();
absolutePanel.setWidth( ((int)w - SLOP) + "px" );
absolutePanel.setHeight( ((int)h - SLOP) + "px" );
super.onResize();
System.out.println( "  scrollpanel w=" + getOffsetWidth() + " h=" + getOffsetHeight() );
System.out.println( "  absolutePanel w=" + absolutePanel.getOffsetWidth() + " h=" + absolutePanel.getOffsetHeight() );
System.out.println( "== MyScrollPanel->onResize()" );
}
}
}

uibinder:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<g:ScrollPanel ui:field="scrollPanel" width="100%" height="100%">
<g:AbsolutePanel width="" height="" ui:field="absolutePanel">
<g:at left="50" top="100">
<g:HorizontalPanel ui:field="horizontalPanel" width="360px" height="25px">
<g:Button width="180px" height="25px">Hello World</g:Button>
<g:Button width="180px" height="25px">Hello World</g:Button>
</g:HorizontalPanel>
</g:at>
</g:AbsolutePanel>
</g:ScrollPanel>

</ui:UiBinder>

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

Re: Advanced RequestTransport implementations. Any available to use?


* Expose state of the request transport, requests pending etc to drive progress indicators...

That information could be send on the EventBus to decouple it from the request transport. Beside driving progress indicators you could also use that information to display a "slow network" warning if more requests than usual are in pending state.

-- J.

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