missing module HTML & CSS with version 2.1.0+ of the gwt-maven-plugin

2011-02-11 Thread Thalles
Dear all,

I sucessfully used the gwt-maven-plugin version 1.2 with GWT version
2.0.4.

I now wanted to upgrade to the newest GWT version 2.1. Therefore I
also needed to upgrade the gwt-maven-plugin version to at least 2.1.0.

Unfortunately, after I upgrading to the new version of the plugin, the
internal Jetty can't find the module HTML (with the reference to the
GWT js file) as well as the coresponding CSS and web.xml file anymore.
It seems that a new folder was created in target/${artifactId}-$
{version}, which contains the compiled GWT Javascript and all static
resources besides the entry point HTML, CSS and web.xml. There is also
a war folder that is always created, which contains all necessary
resources, including the HTML & CSS file. It seems that the 1.2
version of the plugin used this war folder, whereas the newer versions
use the folder under target, which doesn't contain vital parts of the
compiler output. Also before there wasn't any compiler output under
the target folder.

This happens with version 2.1.0-1 & 2.1.1-SNAPSHOT version of the
plugin as well as with GWT version 2.1.0 and 2.1.1

I've already searched the web and found 2 threads with a similar
problem, but no real solution:
http://maven.40175.n5.nabble.com/gwt-maven-plugin-how-to-create-amp-c...
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg52...

Any help is much appreciated!

Best regards,
Henry

-- 
You received 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: Deferred Binding with interfaces

2010-11-11 Thread Thalles
This also works!

Thanks very much for your help!

Bye Henry

On Nov 10, 8:47 pm, Jeff Larsen  wrote:
> you could aways wrap the bundle in an implementation.
>
> interface BundleWrapper{
>      DefaultResources getResources();
>
> }
>
> class BundleWrapperGoodBye implements BundleWrapper{
>
>     DefaultResources getResources(){
>                return GWT.create(GoodByeResources.class);
>     }
>
> class BundleWrapperHello implements BundleWrapper{
>
>      DefaultResources getResources(){
>
>              return GWT.create(HelloResources.class);
>     }
>
> }
>
> Then just use bundleWrapper everywhere to get access to your client
> bundle and then you can do a  on what you need.
>
> }
>
> On Nov 10, 10:15 am, Thalles  wrote:
>
> > Hello Jeff,
>
> > thanks for your reply!
>
> > Actually, I wanted to utilize deferred binding to prevent these kind
> > of code.
> > Meaning, when I need to implement a new Resource class, I just need to
> > add some configuration in the Module.gwt.xml, not in the actual code.
>
> > I got it to work with GIN, but deferred binding would be better
> > though.
>
> > Here is my GIN module class (DefaultResources being the former
> > MyResources):
> > public class MapModule extends AbstractGinModule
> > {
> >     @Override
> >     protected void configure()
> >     {
> >         bind(DefaultResources.class).to(GoodByeResources.class);
> >     }
>
> > }
>
> > And that is my GIN injector:
> > @GinModules({MapModule.class})
> > public interface MapInjector extends Ginjector
> > {
> >     public DefaultResources getMyResources();
>
> > }
>
> > When I use DefaultResources now, it is automatically exchanged with
> > the GoodByeResources.
> > When I need another implementation, I just need to change it in the
> > GIN Module class.
>
> > Bye Thalles
>
> > On Nov 9, 7:03 pm, Jeff Larsen  wrote:
>
> > > The easiest way would be to do this with GIN and a provider method.
>
> > > I'm not sure what the  > > value="goodbye">, so I could be off base here, but here is a way to do
> > > it.
>
> > > @Inject
> > > @Provides
> > > public MyResources getMyResources(MyResources hello, GoodByeResources
> > > goodBye,  Alerter alerter){
> > >     if(alerter.equals("hello")){
> > >          return hello;
> > >     }else if(alerter.equals("goodbye")){
> > >          return goodBye;
> > >     }
>
> > > }
>
> > > Also, MyResources needs to extend ClientBundle, and then by extendsion
> > > GoodByResources automatically does.
>
> > > Then you can just @Inject MyResources and it will make the decsion as
> > > to which resource bundle to return.
>
> > > On Nov 9, 11:13 am, Thalles  wrote:
>
> > > > Hello group,
>
> > > > I've just got a quick question. Is it possible to do deferred binding
> > > > with interfaces?
> > > > Background: I would like to change the client bundle or constants
> > > > interfaces, depending on the user.
> > > > The problem is, that the client bundle or constants implementation has
> > > > to be an interface itself.
>
> > > > I've tried to implement it, but it always says "Deferred binding
> > > > result type  should not be abstract"
>
> > > > This is my general class, that should be replaced:
> > > > public interface MyResources
> > > > {
> > > >           public static final MyResources INSTANCE =
> > > > GWT.create(MyResources.class);
>
> > > >           CssResource css();
> > > >           TextResource getSynchronousTextResource();
> > > >           ExternalTextResource getAsynchronousTextResource();
> > > >           ImageResource getDLRLogo();
>
> > > > }
>
> > > > Here is one of implementations
> > > > public interface GoodByeResources extends ClientBundle, MyResources {
> > > >   public static final GoodByeResources INSTANCE =
> > > > GWT.create(GoodByeResources.class);
>
> > > >   @Source("files/test.css")
> > > >   CssResource css();
>
> > > >   @Source("files/test1.txt")
> > > >   TextResource getSynchronousTextResource();
>
> > > >   @Source("files/test2.txt")
> > > >   ExternalTextResource getAsynchronousTextResource();
>
> > > >   @Source("files/dlk.jpeg")
> > > >   ImageResource getDLKLogo();
>
> > > > }
>
> > > > Here is a usage example:
> > > > ImageWindow cmdw = new ImageWindow(myConstants.caption(),
> > > > MyResources.INSTANCE.getDLKLogo());
>
> > > > And this is my configuration:
> > > >    
> > > >         
> > > >         
> > > >   
>
> > > >   
> > > >         
> > > >         
> > > >   
>
> > > > Is there any way, I could do this? Maybe a concrete class with an
> > > > inner interface?
> > > > Can I inject interfaces with GIN?
>
> > > > Thanks in advance!
>
> > > > Bye Thalles

-- 
You received 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: Deferred Binding with interfaces

2010-11-10 Thread Thalles
Hello Jeff,

thanks for your reply!

Actually, I wanted to utilize deferred binding to prevent these kind
of code.
Meaning, when I need to implement a new Resource class, I just need to
add some configuration in the Module.gwt.xml, not in the actual code.

I got it to work with GIN, but deferred binding would be better
though.

Here is my GIN module class (DefaultResources being the former
MyResources):
public class MapModule extends AbstractGinModule
{
@Override
protected void configure()
{
bind(DefaultResources.class).to(GoodByeResources.class);
}
}

And that is my GIN injector:
@GinModules({MapModule.class})
public interface MapInjector extends Ginjector
{
public DefaultResources getMyResources();
}

When I use DefaultResources now, it is automatically exchanged with
the GoodByeResources.
When I need another implementation, I just need to change it in the
GIN Module class.

Bye Thalles

On Nov 9, 7:03 pm, Jeff Larsen  wrote:
> The easiest way would be to do this with GIN and a provider method.
>
> I'm not sure what the  value="goodbye">, so I could be off base here, but here is a way to do
> it.
>
> @Inject
> @Provides
> public MyResources getMyResources(MyResources hello, GoodByeResources
> goodBye,  Alerter alerter){
>     if(alerter.equals("hello")){
>          return hello;
>     }else if(alerter.equals("goodbye")){
>          return goodBye;
>     }
>
> }
>
> Also, MyResources needs to extend ClientBundle, and then by extendsion
> GoodByResources automatically does.
>
> Then you can just @Inject MyResources and it will make the decsion as
> to which resource bundle to return.
>
> On Nov 9, 11:13 am, Thalles  wrote:
>
> > Hello group,
>
> > I've just got a quick question. Is it possible to do deferred binding
> > with interfaces?
> > Background: I would like to change the client bundle or constants
> > interfaces, depending on the user.
> > The problem is, that the client bundle or constants implementation has
> > to be an interface itself.
>
> > I've tried to implement it, but it always says "Deferred binding
> > result type  should not be abstract"
>
> > This is my general class, that should be replaced:
> > public interface MyResources
> > {
> >           public static final MyResources INSTANCE =
> > GWT.create(MyResources.class);
>
> >           CssResource css();
> >           TextResource getSynchronousTextResource();
> >           ExternalTextResource getAsynchronousTextResource();
> >           ImageResource getDLRLogo();
>
> > }
>
> > Here is one of implementations
> > public interface GoodByeResources extends ClientBundle, MyResources {
> >   public static final GoodByeResources INSTANCE =
> > GWT.create(GoodByeResources.class);
>
> >   @Source("files/test.css")
> >   CssResource css();
>
> >   @Source("files/test1.txt")
> >   TextResource getSynchronousTextResource();
>
> >   @Source("files/test2.txt")
> >   ExternalTextResource getAsynchronousTextResource();
>
> >   @Source("files/dlk.jpeg")
> >   ImageResource getDLKLogo();
>
> > }
>
> > Here is a usage example:
> > ImageWindow cmdw = new ImageWindow(myConstants.caption(),
> > MyResources.INSTANCE.getDLKLogo());
>
> > And this is my configuration:
> >    
> >         
> >         
> >   
>
> >   
> >         
> >         
> >   
>
> > Is there any way, I could do this? Maybe a concrete class with an
> > inner interface?
> > Can I inject interfaces with GIN?
>
> > Thanks in advance!
>
> > Bye Thalles

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



Deferred Binding with interfaces

2010-11-09 Thread Thalles
Hello group,

I've just got a quick question. Is it possible to do deferred binding
with interfaces?
Background: I would like to change the client bundle or constants
interfaces, depending on the user.
The problem is, that the client bundle or constants implementation has
to be an interface itself.

I've tried to implement it, but it always says "Deferred binding
result type  should not be abstract"

This is my general class, that should be replaced:
public interface MyResources
{
  public static final MyResources INSTANCE =
GWT.create(MyResources.class);

  CssResource css();
  TextResource getSynchronousTextResource();
  ExternalTextResource getAsynchronousTextResource();
  ImageResource getDLRLogo();
}

Here is one of implementations
public interface GoodByeResources extends ClientBundle, MyResources {
  public static final GoodByeResources INSTANCE =
GWT.create(GoodByeResources.class);

  @Source("files/test.css")
  CssResource css();

  @Source("files/test1.txt")
  TextResource getSynchronousTextResource();

  @Source("files/test2.txt")
  ExternalTextResource getAsynchronousTextResource();

  @Source("files/dlk.jpeg")
  ImageResource getDLKLogo();
}

Here is a usage example:
ImageWindow cmdw = new ImageWindow(myConstants.caption(),
MyResources.INSTANCE.getDLKLogo());

And this is my configuration:
   


  

  


  


Is there any way, I could do this? Maybe a concrete class with an
inner interface?
Can I inject interfaces with GIN?

Thanks in advance!

Bye Thalles

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



Re: gwt-maven-plugin: include files from src/main/test for gwt:debug

2010-09-17 Thread Thalles
Thanks, I'll have a look at this.

Bye Henry

On Sep 16, 4:55 pm, Hilco Wijbenga  wrote:
> On 16 September 2010 06:18, Thalles  wrote:
>
> > Does anybody have an idea? Thanks in advance!
>
> http://mojo.codehaus.org/build-helper-maven-plugin/index.htmlis
> probably what you need.

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



gwt-maven-plugin: include files from src/main/test for gwt:debug

2010-09-16 Thread Thalles
Dear mailinglist,

I need to include classes located in the src/main/test folder to be
compiled with the other classes in the src/main/java folder when I
start my project with gwt:debug.

Is there any way to configure a second source folder for the
compilation process with the gwt-maven-plugin?

I've tried already the resource tag, but it only includes the raw java
files in the war/WEB-INF/classes directory.
 
  
src/test/java

   **/*.java
  **/*.gwt.xml

  


The compiler finds my Test.gwt.xml tough, because it is copied in the
war/WEB-INF/classes with this command.

Does anybody have an idea? Thanks in advance!

Bye Thalles

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



Re: GWT Maven Plugin + codeServerPort

2010-08-17 Thread Thalles
That did the trick! It's a hack, but it works fine for me.
Thank you very much for your answer!

Bye Henry

On Aug 16, 4:21 pm, Hilco Wijbenga  wrote:
> On 16 August 2010 09:00, Thalles  wrote:
>
> > Does nobody have an answer?
>
> Try putting it in the logLevel field:
>
> 
> org.codehaus.mojo
> gwt-maven-plugin
> 
> INFO' -codeServerPort -logLevel 'INFO
> 
> 
> 
>
> This is a hack, of course, but that's how I set the bind address. I've
> created a profile that does this because it will break gwt:compile
> otherwise (gwt:compile requires a simple INFO).
>
> P.S. Note the quotes!

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



Re: GWT Maven Plugin + codeServerPort

2010-08-16 Thread Thalles
Does nobody have an answer?

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



GWT Maven Plugin + codeServerPort

2010-08-13 Thread Thalles
Hi guys,

I'm looking for a possibility to change the codeServerPort while using
the GWT Maven Plugin (http://mojo.codehaus.org/gwt-maven-plugin/
index.html) to develop a GWT application.

I've searched the web, but I couldn't find anything that would solve
my problem. In the documentation of the plugin, there is no parameter
defined that could change the port (http://mojo.codehaus.org/gwt-maven-
plugin/debug-mojo.html). In my opinion, there is also no way to pass
an argument via the "Remote Java Application" configuration that I use
to connect to the Jetty that was started by the GWT Maven Plugin.

If I would use the GWT Eclipse Plugin, then I could pass a program
argument like this: "-codeServerPort ". Unfortunately I'm using
the GWT Maven Plugin, so there is no possibility to specify program
arguments or is there somehow?

Any help is much appreciated!

Best regards,
Henry

-- 
You received 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: GeoXmlOverlay - Google Maps API

2009-06-22 Thread Thalles
Hey Guys,

thanks for your help!

Does that mean, when I upload my KML file to a real server it will
work?

Bye Thalles

On 22 Jun., 01:21, Eric Ayers  wrote:
> Hello Thales,
>
> Unfortunately, the problem is in your localhost URLs.  Because these
> classes require Google's servers to do their job, the GeoXmlOverlay
> classes require that the resources you are loading be visible from the
> internet.
>
> -Eric.
>
>
>
> On Fri, Jun 19, 2009 at 12:01 PM, Thalles wrote:
>
> > Hi Guys,
>
> > I have a problem with the GeoXmlOverlay function from the Google Maps
> > API. I always get the failure message that the KML file couldn't be
> > loaded.
>
> > It works in general with the Google sample KML file from this address:
> >http://mapgadgets.googlepages.com/cta.kml. But as soon as I put the
> > same file on my server, it doesn't work anymore. My own KML or KMZ
> > files don't work either.
>
> > Below is my code. Thanks in advance.
> > Thalles
>
> > CODE:
> > -
> >        toogleButtonKMLTracks.addClickHandler(new ClickHandler()
> >                {
> >                       �...@override
> >                        public void onClick(ClickEvent event)
> >                        {
> >                                if(toogleButtonKMLTracks.isDown())
> >                                {
> >                                         
> > GeoXmlOverlay.load("http://localhost:8080/KMLServlet/kml?
> > mode=TrackOverview&kmlMode=kmz", new GeoXmlLoadCallback()
> >                                         {
> >                                                 
> > //http://mapgadgets.googlepages.com/cta.kml
> >                                                 �...@override
> >                                                  public void 
> > onFailure(String url, Throwable e) {
> >                                                    StringBuffer message = 
> > new StringBuffer("KML File " +
> > url
> >                                                        + " failed to load");
> >                                                    if (e != null) {
> >                                                      
> > message.append(e.toString());
> >                                                    }
> >                                                    
> > Window.alert(message.toString());
> >                                                  }
>
> >                                                 �...@override
> >                                                  public void 
> > onSuccess(String url, GeoXmlOverlay
> >overlay)
> >                                                  {
> >                                                    geoXml=overlay;
> >                                                    map.addOverlay(geoXml);
> >                                                  }
> >                                                });
> >                                }
> >                                else
> >                                {
> >                                        if(geoXml!= null)
> >                                        {
> >                                                map.removeOverlay(geoXml);
> >                                        }
> >                                }
>
> >                        }
>
> >                });
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



GeoXmlOverlay - Google Maps API

2009-06-19 Thread Thalles

Hi Guys,

I have a problem with the GeoXmlOverlay function from the Google Maps
API. I always get the failure message that the KML file couldn't be
loaded.

It works in general with the Google sample KML file from this address:
http://mapgadgets.googlepages.com/cta.kml. But as soon as I put the
same file on my server, it doesn't work anymore. My own KML or KMZ
files don't work either.

Below is my code. Thanks in advance.
Thalles

CODE:
-
toogleButtonKMLTracks.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
if(toogleButtonKMLTracks.isDown())
{
 
GeoXmlOverlay.load("http://localhost:8080/KMLServlet/kml?
mode=TrackOverview&kmlMode=kmz", new GeoXmlLoadCallback()
 {
 
//http://mapgadgets.googlepages.com/cta.kml
  @Override
  public void onFailure(String 
url, Throwable e) {
StringBuffer message = new 
StringBuffer("KML File " +
url
+ " failed to load");
if (e != null) {
  
message.append(e.toString());
}

Window.alert(message.toString());
  }

  @Override
  public void onSuccess(String 
url, GeoXmlOverlay
overlay)
  {
geoXml = overlay;
map.addOverlay(geoXml);
  }
});
}
else
{
if(geoXml != null)
{
map.removeOverlay(geoXml);
}
}

}

});

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---