gwt tomcat unix doesn't work

2014-02-21 Thread fedex
Hi everyone

I am using tomcat version 6 in the unix server. When I try to run the sh 
version.sh file I get an error saying bad version. bin/bootstrap is not 
working i believe. I checked the jdk and jre version . They are compatible 
. I used commands java -version and javac -version to check the 
compatibility of java and compiler version. 

Recently I developed an application using GWT framework. When I deploy the 
application on the local tomcat server it wrks greats in the windows. I am 
using jdk 1.7 and jre7 in my local and verified on both tomcat version 6 & 
7. The application worked great and have no issues. I used ANT script to 
package the application so to deploy on unix server. I used the same ANT 
script to build the package when I deployed on local tomcat. 

Can anyone suggest what exactly could have gone wrong. Based on the error I 
understand compiler is not compatible to java version. When I run the sh 
version.sh in unix it showed the JRE HOME variable as /usr folder. I found 
in that folder java and jre compatible. Please help . Thanks 

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Composite widget that behaves as a single Editor

2014-02-21 Thread Ervin Hoxha
I have a composite widget composed by 3 TextBoxes that acts as a "date 
mask" field, like:*[dd]/[mm]/[yyy]* (dont ask why I am doing this :), I 
dont like DateBox and I have to force the user to keep given  format, so I 
wrote my own widget). Here is the java code:

import com.google.gwt.core.client.GWT;import 
com.google.gwt.event.dom.client.KeyUpEvent;import 
com.google.gwt.uibinder.client.UiBinder;import 
com.google.gwt.uibinder.client.UiField;import 
com.google.gwt.uibinder.client.UiHandler;import 
com.google.gwt.user.client.ui.Composite;`enter code here`import 
com.google.gwt.user.client.ui.TextBox;import 
com.google.gwt.user.client.ui.Widget;
public class DateMaskWidget extends Composite {
private static DateMaskWidgetUiBinder uiBinder = GWT
.create(DateMaskWidgetUiBinder.class);
interface DateMaskWidgetUiBinder extends UiBinder {}
@UiFieldTextBox daysTextbox;@UiFieldTextBox monthsTextbox;@UiFieldTextBox 
yearsTextbox;
public DateMaskWidget() {
initWidget(uiBinder.createAndBindUi(this));

daysTextbox.setMaxLength(2);
monthsTextbox.setMaxLength(2);
yearsTextbox.setMaxLength(4);}
@UiHandler("daysTextbox")
 void onKeyUp(KeyUpEvent event){
//if 2 chars were entered focus the next box
if(daysTextbox.getText().length()==daysTextbox.getMaxLength())
monthsTextbox.setFocus(true);}@UiHandler("monthsTextbox")
 void onKeyUp2(KeyUpEvent event){
//if 2 chars were entered focus the next box
if(monthsTextbox.getText().length()==monthsTextbox.getMaxLength())
yearsTextbox.setFocus(true);}

}


Now I'd like this widget to behave as a single Editor (like a single TextBox), 
so i can set a value to it by passing a string like xx/xx/ .

*The Question is: which interface do I need to implement and which methods do I 
need to override to achive this?? Which methods are used in the editor 
framework to set/get the value of an editor??*

In the background, I will need to take the given string (probably passed in a 
method like setValue() ), split it in 3 parts, and assign each part to the 
right text box. And same thing for a getValue() method.

Thanks for your help

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Touchevent vs ClickEvent (+ phonegap help)

2014-02-21 Thread Ed
i think you need to do some Googling...
See for example: https://developers.google.com/mobile/articles/fast_buttons
And the m-gwt project.
Understand what the use is of gwt-phonegap You don't need it until you 
want to access native mobile functionality...
Using HTML 5 offline, makes a web app startup blazing fast...
it depends on your detail functionality if you really need a native mob app.
Start web responsive if web is a must haven... Then evaluate and optional 
start a native app dev...

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Development Mode will not be supported in Firefox 27+

2014-02-21 Thread bruciadmin
This is a pretty important change for me - looks like it's a downgrade to 
FF 26 a workaround is found. I had never heard of Super Dev mode but sounds 
like it's still got a fair way to go - and right now I need to focus on ROI 
for my work (retooling in the last 90% of a project is not an option with 
given deadlines).

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Touchevent vs ClickEvent (+ phonegap help)

2014-02-21 Thread Axel R
Hi,

I am trying to port my desktop app to mobile...

1 - I would like to understand a detail...I have clickEvents, and I am 
asking what would be the advantage or interest to implement a touchEvent 
instead (for mobile) ?
Does TouchEvent will be faster than ClickEvent ? (TouchStartEvent is more 
precise I think...but the sense of my question remains the same)
How could I avoid to be less memory efficient implementing both ClickEvent 
and TouchEvent (my widget implement MouseDownHandler, and the only idea I 
have is to create another view for mobile implementing TouchStartHandler...) 
?

2 - I am asking myself if I would have 'a lot' of benefit to use GWT + 
phonegap ? Will my application run faster (responding to click events for 
exemple) when using phonegap ?

3 - I do not understand well the advantage of the 'mobile application VS 
mobile website' ? 
I just think that there is 2 advantages but correct me if I am missing 
something: 
 - be found on the store (appStore, google play...)
 - maybe the mobile application is faster than the mobile website at 
startup, because of less code to download ?
 - Would it be more complicated to update an application in the store ? )

Thanks you for the help, 
Axel


-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuperDevMode problem

2014-02-21 Thread Thomas Broyer
Please do not crosspost (or post distinct messages, and try to provide 
crosslinks in each thread).

On Friday, February 21, 2014 2:48:29 PM UTC+1, Fabricio Pizzichillo wrote:
>
> Hello community 
> I have a problem running the superdevmode. 
>
> Whenever the message "GWT module 'Foo' may need to be (re) compiled" 
> appears when I press "DevModeOn --> Compile". 
> RPC calls also do not work because it can not access the serialization 
> policies.
> In the module put
> 
> 
>
> The message when i make a call to server is
> Type 'org.Foo' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer. For security purposes, this type will not be deserialized.
>
> The superdevmode I run with "mvn gwt:run -Dgwt.codeserver.port=9876" and 
> another terminal "mvn gwt:run-codeserver"
>
> Any hints
>
> sorry for my English
> Regards 
>
>  

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuperDevMode problem

2014-02-21 Thread Thomas Broyer


On Friday, February 21, 2014 2:48:29 PM UTC+1, Fabricio Pizzichillo wrote:
>
> Hello community 
> I have a problem running the superdevmode. 
>
> Whenever the message "GWT module 'Foo' may need to be (re) compiled" 
> appears when I press "DevModeOn --> Compile". 
> RPC calls also do not work because it can not access the serialization 
> policies.
> In the module put
> 
> 
>

Note: you no longer need that second line with GWT 2.6.
 

>
> The message when i make a call to server is
> Type 'org.Foo' was not assignable to 
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom 
> field serializer. For security purposes, this type will not be deserialized.
>
> The superdevmode I run with "mvn gwt:run -Dgwt.codeserver.port=9876" and 
> another terminal "mvn gwt:run-codeserver"
>

Make sure you use GWT 2.6 and add the following to your gwt:run 
configuration in your POM:

 
   9876
 

This will tell your RemoteServiceServlets to load their serialization 
policies right from the SuperDevMode code server.

See http://www.gwtproject.org/release-notes.html#Release_Notes_2_6_0

(please do not use "inplace" unless you really understand the implications)

>  

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

2014-02-21 Thread Thomas Broyer


On Thursday, February 20, 2014 10:51:29 PM UTC+1, GWTter wrote:
>
> Before anything, sorry Thomas, I think I may have just replied to you 
> instead of just the topic (buttons bugged on me a bit), no-spam intended
>
> You're right I guess I did misunderstand if the imported with prefix 
> doesn't in fact use a different obfuscation
> for the original selectors in the final css. So using the imported with 
> prefix method isn't a viable workaround for avoid the
> precedence override on injection after all.
>
> And definitely, anything that will help clear it up. I can try to clarify 
> my original example:
>
> You have the following,
>
> === Pseudocode ===
>
> CssResouces:
>
> SuperCssResource, is injected onModuleLoad (global css) and has the 
> following css as its source:
> .genButton{
> color: black;
> }
>
> and
>
> LeafCssResource extends SuperCssResource
>  
> css definitions here 
> 
>

Why are you using an "extends" here? what do you expect from it? and more 
importantly what does your ClientBundle(s) looks like?
 

> 
>
> Finally, we have the following 2 widgets:
>
> WidgetDisplayedFirst, 
> has the following css via uibinder:
> MyCssResource:
> .myButton{
> color: red;
> }
>
> And this button element:
> 
>

Using this, it means you have to ensure SuperCssResource is always injected 
*before* you createAndBindUi for the widget.
Using .genButton.myButton (higher specificity) in the CSS would fix it.
 

> and WidgetDisplayedSecond which uses LeafCssResource
>
> --
>
> Now if while my app is running I just display WidgetDisplayedFirst then it 
> will display its button
> with the correct color: red because the .myButton was declared last and 
> thus overrides the .genButton which
> has the same specificity.
>
> The issue comes into play if I then display WidgetDisplayedSecond. Since 
> WidgetDisplayedSecond uses LeafCssResource
> this will cause SuperCssResource and its css to be injected when 
> LeafCssResource is injected.
>

No. Unless you have a @Shared annotation on SuperCssResource, the names 
from LeafCssResource will be different from those of SuperCssResource (so 
even if you referenced the same CSS file in @Source of your 2 ClientBundle 
methods, you'd have duplicated rules with different selectors, in no way 
would SuperCssResource be "reinjected").
See http://www.gwtproject.org/doc/latest/DevGuideClientBundle.html#Scope
 

> At this point because
> SuperCssResource has now been reinjected and thus is now the last one 
> declared between it and MyCssResource, its
> .genButton rule now wins and causes WidgetDisplayedFirst's button to now 
> have a color of black.
>

With the code above, it shouldn't (now there could be bugs).
 

> Now, granted, this is how Css is intended to work in terms of the cascade. 
> However, what I'm trying to say is that this
> is an example of a case where that is not the desired outcome if you want 
> the button to keep the color of red as defined
> in its MyCssResource.
>
> You really only have 3 options in order to prevent this currently as far 
> as I can see:
> 1) You over-qualify all of your selectors to ensure that they always have 
> the most specifity and nothing
> will override them
> =>CON: over-qualifying is not great for performance and is not as 
> maintainable/cascadeable
>
> 2) You architect the app taking into account every single inheriting 
> resource that is injected dynamically/on-demand to make sure
> that the injection of the extended resource does not cause an override in 
> widgets who are using its classes.
> =>CON: extremely unrealistic for non-trivial apps much less a real web-app
>

Except that inheritance of CssResource interfaces does not work that way 
(and if it does in practice –I doubt it, there are unit tests–, then that's 
a bug).
 

> 3)Do not extend CssResources, this way you can ensure that all resources 
> and their associated styles are ONLY injected
> once in the lifetime of the app so there are no worries of unintended 
> precedence overrides.
> =>CON: greatly restricts selector qualifying especially when trying to 
> localize css and reuse widgets
>

I don't get your CON here. If you need to use the class name from another 
CssResource in your CSS in a compound selector, then just @Import the other 
CssResource. As long as you're not changing the styles from the imported 
class names (same as if you had several CSS files without using 
ClientBundle), there's no need to worry.

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Need to add HTML5 desktop to browser DnD support in GWT application

2014-02-21 Thread dhoffer
I need to have a widget that accepts DnD files from the desktop, how can I 
do this in a GWT 2.5.1 application? See the link below for the JS code to 
do this. Does GWT already have a widget for this? If not how could I create 
my own? 

>From the link below I understand it all starts with a div in the rendered 
HTML and then wires in support for DnD with the JS code shown in the link. 
So in my case I'm starting with a GWT layout and need to add this 'widget' 
to that existing layout. I've never created my own GWT widget before, would 
I start with an existing GWT widget and then add the JS via JSNI? If so, 
what would be the best starting widget to build on?

http://www.htmlgoodies.com/html5/jav...id=TdDQb7R8c9d


-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: SuperDevMode problem

2014-02-21 Thread Fabricio Pizzichillo
Thanks Thomas for the reply!
I'll try to do that






2014-02-21 11:27 GMT-03:00 Thomas Strauß :

> Hi,
>
> we run mvn and eclipse and sdm. tomcat and sdm are running from eclipse
> wtp. We use the inplace true option of the mvn gwt plugin. we use gwt
> compiler plugin.
>
> we do not use mvn cmdline during dev. In this situation, we use the gwt
> compiler plugin to compile to /src/main/webapp. a parameter is required to
> do this.
>
> This works until you regenerate the server interfaces. in that case there
> are serialisation issues coming up.
>
> To resolve them, we do:
> - use the mvn generate sources
> - remove the Output folder from the src/main/webapps
> - remove the unitcache
> Run gwtcompiler plugin from eclipse - new app folder appears in webapps
> - restart tomcat
>
> SDM will find the new sources usually.
>
>
> a little wierd maybe, but this works for us. Any ideas to improve this are
> welcome.
>
> Thomas
> --
> Thomas Strauß
> SRS-Management GmbH
> HRB 25262 AG Darmstadt
> Gfs.: Detlev Homilius, Thomas Strauß
> *** sent via mobile phone
>
>
>
>
> Am 21.02.2014 um 14:48 schrieb Fabricio Pizzichillo <
> fpizzichi...@gmail.com>:
>
> Hello community
> I have a problem running the superdevmode.
>
> Whenever the message "GWT module 'Foo' may need to be (re) compiled"
> appears when I press "DevModeOn --> Compile".
> RPC calls also do not work because it can not access the serialization
> policies.
> In the module put
> 
> 
>
> The message when i make a call to server is
> Type 'org.Foo' was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
> field serializer. For security purposes, this type will not be deserialized.
>
> The superdevmode I run with "mvn gwt:run -Dgwt.codeserver.port=9876" and
> another terminal "mvn gwt:run-codeserver"
>
> Any hints
>
> sorry for my English
> Regards
>
>   --
> You received this message because you are subscribed to the Google Groups
> "Codehaus Mojo gwt-maven-plugin Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codehaus-mojo-gwt-maven-plugin-users+unsubscr...@googlegroups.com
> .
> To post to this group, send email to
> codehaus-mojo-gwt-maven-plugin-us...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Codehaus Mojo gwt-maven-plugin Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to codehaus-mojo-gwt-maven-plugin-users+unsubscr...@googlegroups.com
> .
> To post to this group, send email to
> codehaus-mojo-gwt-maven-plugin-us...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Activity & Places Sample App

2014-02-21 Thread Mansi Shah
Hello,

I am new to GWT.
I am developing sample app on GWT using activity & places concept.

It is giving an error in view file button click event..
Please guide me.

package com.wa.WebpageSample.client.view;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface LeftLayoutView extends IsWidget {
void setPresenter(Presenter presenter);
 public interface Presenter{
void goTo(Place place);
}

}


package com.wa.WebpageSample.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.Widget;
import com.sun.security.sasl.ClientFactoryImpl;
import com.wa.WebpageSample.client.ClientFactory;
import com.wa.WebpageSample.client.place.AboutUsPlace;
import com.wa.WebpageSample.client.place.LeftLayoutPlace;

public class LeftLayoutViewImpl extends Composite implements LeftLayoutView 
{

private static LeftLayoutViewImplUiBinder uiBinder = 
GWT.create(LeftLayoutViewImplUiBinder.class);

interface LeftLayoutViewImplUiBinder extends
UiBinder {
}
 @UiField
Button btnabout,btncontact;
 private Presenter presenter;
 ClientFactory clientFactory;
 public LeftLayoutViewImpl() {
 }

public LeftLayoutViewImpl(ClientFactory clientFactory) {
initWidget(uiBinder.createAndBindUi(this));
this.clientFactory = clientFactory;
}

@Override
public void setPresenter(Presenter presenter) {
this.presenter = presenter;
}
 @UiHandler("btnabout")
public void onClick(ClickEvent event){
//this.clientFactory.getPlaceController().goTo(new 
LeftLayoutPlace("LeftView"));
//this.clientFactory.getPlaceController().goTo(new 
AboutUsPlace("AboutUsView"));
presenter.goTo(new LeftLayoutPlace("AboutUs"));
//Window.alert("Hello");
}
 @UiHandler("btncontact")
public void onClick1(ClickEvent event) {
Window.alert("World");
}

}

package com.wa.WebpageSample.client.activity;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.wa.WebpageSample.client.ClientFactory;
import com.wa.WebpageSample.client.place.LeftLayoutPlace;
import com.wa.WebpageSample.client.view.LeftLayoutView;

public class LeftLayoutActivity extends AbstractActivity implements 
LeftLayoutView.Presenter {
 private ClientFactory clientFactory;

public LeftLayoutActivity(LeftLayoutPlace leftPlace,ClientFactory 
clientFactory) {
this.clientFactory = clientFactory;
}
 public LeftLayoutActivity(ClientFactory clientFactory2) {
this.clientFactory = clientFactory2;
}

@Override
public void start(AcceptsOneWidget panel, EventBus eventBus) {
LeftLayoutView leftView = clientFactory.getLayoutView();
panel.setWidget(leftView.asWidget());
}

@Override
public void goTo(Place place) {
clientFactory.getPlaceController().goTo(place);
}

}

package com.wa.WebpageSample.client;

import com.google.gwt.activity.shared.ActivityManager;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.place.shared.PlaceHistoryHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SimpleLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.wa.WebpageSample.client.activity.LeftLayoutActivityMapper;
import com.wa.WebpageSample.client.activity.RightLayoutActivityMapper;
import com.wa.WebpageSample.client.place.AppPlaceMapper;
import com.wa.WebpageSample.client.place.LeftLayoutPlace;
import com.wa.WebpageSample.client.place.RightLayoutPlace;
import com.wa.WebpageSample.client.view.LeftLayoutViewImpl;
import com.wa.WebpageSample.client.view.RightLayoutViewImpl;
import com.wa.WebpageSample.client.view.TopLayoutViewImpl;

public class WebpageSample implements EntryPoint {

//private static WebpageSampleUiBinder uiBinder = 
GWT.create(WebpageSampleUiBinder.class);

//interface WebpageSampleUiBinder extends UiBinder {}
 @UiTemplate("WebpageSample.ui.xml")
interface Binder extends UiBinder {}

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

 private Place defaultPlace = new LeftLayoutPlace("LeftView");

@UiField
Sim

SuperDevMode problem

2014-02-21 Thread Fabricio Pizzichillo
Hello community
I have a problem running the superdevmode.

Whenever the message "GWT module 'Foo' may need to be (re) compiled"
appears when I press "DevModeOn --> Compile".
RPC calls also do not work because it can not access the serialization
policies.
In the module put



The message when i make a call to server is
Type 'org.Foo' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom
field serializer. For security purposes, this type will not be deserialized.

The superdevmode I run with "mvn gwt:run -Dgwt.codeserver.port=9876" and
another terminal "mvn gwt:run-codeserver"

Any hints

sorry for my English
Regards

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

2014-02-21 Thread GWTter
Hi Jens,

Yes, this duplication when extending CssResources is exactly the issue I'm 
trying to highlight above and mitigate with the @required idea. Your 
suggestion is what I was trying to cover with the third option I gave above 
on how to avoid the duplication and unintended precedence override 
(although you do go a bit more in-depth into what it would actually look 
like). And I apologize if I'm giving the impression that this is an active 
issue which I don't know how to workaround or remedy, that's not my 
intention.

I'm trying to say that I've come across this issue several times before, 
and while I'm aware of the cause and the current workarounds/remedies (as I 
try to briefly summarize in the 3 options above), I feel that they are not 
satisfactory enough when considering the scaling and maintenance of large 
webapps. This is why I'm trying to discuss the feasibility and/or 
ramifications of something like the @required because I think it's 
somewhere GWT would be able to shine and facilitate the scalability and 
maintainability of these webapps.

Thanks for you response.

On Friday, February 21, 2014 12:36:08 AM UTC+1, Jens wrote:
>
> If you write a widget and that widget uses a button and that button has a 
> default style defined in a BaseCssResource then you should use that 
> BaseCssResource directly in your widget. You should not make your 
> WidgetCssResource extend the BaseCssResource. Why? Because as soon as you 
> do so, all the CSS rules of BaseCssResource will be duplicated (even if the 
> BaseCssResource is annotated with @Shared, which will cause the issue you 
> describe) and that is not what you want. Imagine you have 50 widgets and 
> each of their CssResources extends the BaseCssResource. You would end up 
> with 50 times the same base CSS code injected in your html page (either 
> with the same CSS class names if you use @Shared on your BaseCssResource or 
> with different CSS class names if not).
>
> What you should do in all your widgets is:
>
> 
>
> 
>   .redbutton { background-color:red; }
> 
>
> 
>
> And in your custom widget constructor you would do
>
> public MyWidget() {
>   bundle.baseCss().ensureInjected();
> }
>
> That way your base CSS is only injected once into your HTML page and all 
> your widgets use these rules directly instead of duplicating them over and 
> over again. It is also clear, just by looking at the xml/code, that the 
> base CSS is shared by multiple widgets and that the  CSS is only 
> local to that single widget.
>
>
> -- 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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: BeanCreationException

2014-02-21 Thread Thomas Broyer


On Friday, February 21, 2014 8:43:14 AM UTC+1, Farhaan Kazi wrote:
>
> Farhaan,
>
> Hi,
>
> After deleting validation-api.jar from classpath, Can you able to do 
> validation using JSR 303 annotation
>

You need to have validation-api.jar in the classpath (of both javac and the 
GWT compiler at least; GWT is not concerned with server-side validation), 
but you need to pick the right version: GWT implements validation-api 
1.0.0.GA, it's likely incompatible with 1.1.0.Final. Similarly, you must 
use Hibernate Validator 4.1.0.Final, and no other version. But as I said, 
this is only for client-side validation, you can use whatever you like on 
the server side though.
 

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Angular JS with GWT

2014-02-21 Thread Thomas Broyer


On Friday, February 21, 2014 6:16:43 AM UTC+1, tarish wrote:
>
> Hi Guys,
> Will it be good idea to integrate Angular js with GWT. The idea is to use 
> features of both GWT and angular js, has anyone done it yet??? please let 
> me know
>

Proof of concept: https://github.com/cromwellian/angulargwt 

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: BeanCreationException

2014-02-21 Thread Farhaan Kazi
Farhaan,

Hi,

After deleting validation-api.jar from classpath, Can you able to do 
validation using JSR 303 annotation

On Wednesday, September 29, 2010 8:40:47 PM UTC+5:30, Ashton Thomas wrote:
>
> I just deleted javax.validation dependency from my maven pom.xml file 
> and the BeanCreationError has gone away, this may not be the way to go 
> (I am not using Hibernate or any persistence stuff right now) 
>
> On Sep 28, 11:39 pm, Ashton Thomas  wrote: 
> > This looks like a spring problem (GWT/roo generated scaffold -> from 
> > the updated and maybe incomplete source code) 
> > 
> > No errors in the project and I'm a little lost on this one. Any help 
> > is greatly appreciated 
> > 
> > 2010-09-28 23:33:46,508 [main] ERROR 
> > org.springframework.web.servlet.DispatcherServlet - Context 
> > initialization failed 
> > org.springframework.beans.factory.BeanCreationException: Error 
> > creating bean with name 
> > 
> 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0' 
> : 
> > Invocation of init method failed; nested exception is 
> > javax.validation.ValidationException: Unable to find a default 
> > provider 
> > at 
> > 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
> y.initializeBean(AbstractAutowireCapableBeanFactory.java: 
> > 1420) 
> > at 
> > 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
> y.doCreateBean(AbstractAutowireCapableBeanFactory.java: 
> > 519) 
> > at 
> > 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
> y.createBean(AbstractAutowireCapableBeanFactory.java: 
> > 456) 
> > at org.springframework.beans.factory.support.AbstractBeanFactory 
> > $1.getObject(AbstractBeanFactory.java:291) 
> > ...more 
> > 
> > Caused by: javax.validation.ValidationException: Unable to find a 
> > default provider 
> > at javax.validation.Validation 
> > $GenericBootstrapImpl.configure(Validation.java:264) 
> > at 
> > 
> org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.aft 
> erPropertiesSet(LocalValidatorFactoryBean.java: 
> > 183) 
> > at 
> > 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
> y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java: 
> > 1477) 
> > at 
> > 
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
> y.initializeBean(AbstractAutowireCapableBeanFactory.java: 
> > 1417) 
> > ... 36 more

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Angular JS with GWT

2014-02-21 Thread Naveen Ng
We are done in GWT. now we are trying completely using AngularJs.
AngularJs is good,if you are using Rest webservice.


On Fri, Feb 21, 2014 at 10:46 AM, tarish  wrote:

> Hi Guys,
> Will it be good idea to integrate Angular js with GWT. The idea is to use
> features of both GWT and angular js, has anyone done it yet??? please let
> me know
>
> Thanks
>
> --
> 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+unsubscr...@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.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.


Is there any plugin in GWT for playing video and audio

2014-02-21 Thread Narayandhoj magar
m having project in video chat using GWT but i dont know whether there is 
any plugin available in GWT for audio and video playing

-- 
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+unsubscr...@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.
For more options, visit https://groups.google.com/groups/opt_out.