Thursday, July 31, 2014

Re: Firing the Event Using JavaScript Code Internally

any suggestion on this?

On Thursday, July 31, 2014 5:41:52 PM UTC+5:30, Mohammed Sameen wrote:
Hi,
 I created my own custom event and need to fire that event using Javascript code. See the below code which is from thirdparty API which contain the ItemChangeHandler.
It will fire the event internally using javascript.So i need to implement the same way in GWT.Does any one have any idea on this?Thanks in advance..

 public HandlerRegistration addItemChangeHandler(com.smartgwt.client.widgets.form.events.ItemChangeHandler handler) {
        if(getHandlerCount(com.smartgwt.client.widgets.form.events.ItemChangeEvent.getType()) == 0) setupItemChangeEvent();
        return doAddHandler(handler, com.smartgwt.client.widgets.form.events.ItemChangeEvent.getType());
    }

    private native void setupItemChangeEvent() /*-{
        var obj = null;
        var selfJ = this;
        if(this.@com.smartgwt.client.widgets.BaseWidget::isCreated()()) {
            obj = this.@com.smartgwt.client.widgets.BaseWidget::getJsObj()();
            obj.addProperties({itemChange:$debox($entry(function(){
                        var param = {"item" : arguments[0], "newValue" : arguments[1], "oldValue" : arguments[2]};
                        var event = @com.smartgwt.client.widgets.form.events.ItemChangeEvent::new(Lcom/google/gwt/core/client/JavaScriptObject;)(param);
                        selfJ.@com.smartgwt.client.widgets.BaseWidget::fireEvent(Lcom/google/gwt/event/shared/GwtEvent;)(event);
                        var ret = event.@com.smartgwt.client.event.Cancellable::isCancelled()();
                        return !ret;
                    }))
             });
        } else {
            obj = this.@com.smartgwt.client.widgets.BaseWidget::getConfig()();
            obj.itemChange = $debox($entry(function(){
                   var param = {"item" : arguments[0], "newValue" : arguments[1], "oldValue" : arguments[2]};
                   var event = @com.smartgwt.client.widgets.form.events.ItemChangeEvent::new(Lcom/google/gwt/core/client/JavaScriptObject;)(param);
                   selfJ.@com.smartgwt.client.widgets.BaseWidget::fireEvent(Lcom/google/gwt/event/shared/GwtEvent;)(event);
                   var ret = event.@com.smartgwt.client.event.Cancellable::isCancelled()();
                   return !ret;
               }));
        }
   }-*/;

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Compiling GWT with Java 8 compiler, but keeping GWT code to only use Java 6 constructs - possible?

Great, thanks!   I do have the UI code separate into separate maven build, so I should be able to use this approach.  

Jean

On Thursday, July 31, 2014 3:01:57 PM UTC-4, Thomas Broyer wrote:


On Thursday, July 31, 2014 8:43:04 PM UTC+2, Jean Barmash wrote:
I'd like to upgrade my project to Java 8.  We use GWT 2.0.3.

I have read the updates about full support of Java 8, and understand that to fully support it, the GWT code generator needs to support all Java8 features. 

However, what I need is a bit different I am happy to freeze the code UI code that interacts with GWT to only use Java6 constructs, so I don't need the code generator to support Java8 features.  

Is this possible?   I.e. to get my project compiled with Java 8, if the GWT code is only using Java 6 features.

Absolutely.
AFAICT, you'd have to compile (javac) the classes with "-source 1.6 -target 1.6" too, so you'll have to have your client-side (GWT-compatible) and server-side code clearly separated.
 
Would love to hear some opinions, as well possibly an update on the full Java 8 support timelines.   I saw that there is a fork that tried to move along this path.

Java 8 support will unforteunately won't make it to GWT 2.7 to be released this summer. You'll have to wait for 3.0 (to be released this winter) 

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Firing Custom Event in GWT

When you bind your handler, keep a reference to the HandlerRegistration object (assuming you're using an event bus) and when your handler is called the first time, call the method removeHandler() on this HandlerRegistration object. Your handler won't be called anymore.

On Wednesday, July 23, 2014 7:36:27 AM UTC+2, Mohammed Sameen wrote:
Hi All,
In my GWT application,I have written my own custom event for enabling the button whenever the text box (or some other filed) is edited.The event is keep on  firing whenever there is a change is text box.Is there any performance issue.Is there any way to fire the event only once?Please give your suggestion.Thanks in Advance..

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Compiling GWT with Java 8 compiler, but keeping GWT code to only use Java 6 constructs - possible?



On Thursday, July 31, 2014 8:43:04 PM UTC+2, Jean Barmash wrote:
I'd like to upgrade my project to Java 8.  We use GWT 2.0.3.

I have read the updates about full support of Java 8, and understand that to fully support it, the GWT code generator needs to support all Java8 features. 

However, what I need is a bit different I am happy to freeze the code UI code that interacts with GWT to only use Java6 constructs, so I don't need the code generator to support Java8 features.  

Is this possible?   I.e. to get my project compiled with Java 8, if the GWT code is only using Java 6 features.

Absolutely.
AFAICT, you'd have to compile (javac) the classes with "-source 1.6 -target 1.6" too, so you'll have to have your client-side (GWT-compatible) and server-side code clearly separated.
 
Would love to hear some opinions, as well possibly an update on the full Java 8 support timelines.   I saw that there is a fork that tried to move along this path.

Java 8 support will unforteunately won't make it to GWT 2.7 to be released this summer. You'll have to wait for 3.0 (to be released this winter) 

--
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.
For more options, visit https://groups.google.com/d/optout.

Compiling GWT with Java 8 compiler, but keeping GWT code to only use Java 6 constructs - possible?

I'd like to upgrade my project to Java 8.  We use GWT 2.0.3.

I have read the updates about full support of Java 8, and understand that to fully support it, the GWT code generator needs to support all Java8 features. 

However, what I need is a bit different I am happy to freeze the code UI code that interacts with GWT to only use Java6 constructs, so I don't need the code generator to support Java8 features.  

Is this possible?   I.e. to get my project compiled with Java 8, if the GWT code is only using Java 6 features.  

Would love to hear some opinions, as well possibly an update on the full Java 8 support timelines.   I saw that there is a fork that tried to move along this path.  

Thanks,

Jean


--
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.
For more options, visit https://groups.google.com/d/optout.

Re: GWT, Hibernate and a many to many relationship

The basic answer is you cannot. You will need to transform the Hibernate object into a POJO to make it serial, this is a requirement of any object being passed between the client and the server in GWT.

Tim
 
On Jul 30, 2014, at 5:07 AM, Peter S. <stoffels.peter@googlemail.com> wrote:

Hey all,

after searching the complete web for a solution and didn't find one, I will try to share my problem with you ;)..

Well I have the famous failure with GWT and Hibernate:

java.lang.RuntimeException: com.google.gwt.user.client.rpc.SerializationException: Type 'org.hibernate.collection.PersistentSet' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = []

I have a hbm.xml file where Hibernate generates an Entity.

<class abstract="false"
        name="com.egrima.webinfotools.common.entity.PointOfInterest"
        table="witpois">
        <meta attribute="extends">net.sf.gilead.pojo.gwt.LightEntity</meta>  <!-- This was a try but also didn't work. so that line is not implemented in general -->
        <meta attribute="implements">com.egrima.webinfotools.common.entity.BasisEntity</meta>
        <id column="ID" name="id" type="java.lang.Long">
            <generator class="sequence">
                <param name="sequence">SEQ_WITPOIS</param>
            </generator>
        </id>

        <property column="ZALTKN" generated="never" lazy="false"
            name="zaltkn" length="6" type="java.lang.String" />
        <property column="NAME" generated="never" lazy="false" name="name"
            length="255" type="java.lang.String" />
        <property column="ADDRESS" generated="never" lazy="false"
            name="address" length="512" type="java.lang.String" />
        <property column="LONGITUDE" generated="never" lazy="false"
            name="longitude" type="java.lang.Double" />
        <property column="LATITUDE" generated="never" lazy="false"
            name="latitude" type="java.lang.Double" />
        <property column="ANL_DAT_ZEIT" generated="never" lazy="false"
            name="createdDate" type="java.util.Date" />
        <property column="AEN_DAT_ZEIT" generated="never" lazy="false"
            name="changedDate" type="java.util.Date" />
        <property column="TERM" generated="never" name="hostname"
            length="12" type="java.lang.String" />
        <property column="BEN" generated="never" name="username"
            length="8" type="java.lang.String" />

        <many-to-one name="category" foreign-key="fk_poi_category" cascade="all"
            column="category_id" lazy="false"    class="com.egrima.webinfotools.common.entity.generated.PointOfInterestCategory" />
           
        <one-to-one name="poiNameTranslation" lazy="false" cascade="all"  foreign-key="fk_witpoi_translation" class="com.egrima.webinfotools.common.entity.generated.PointOfInterestTranslation"/>
           
        <set name="attributes" inverse="true" table="witpoi_attribute" lazy="false" cascade="all" fetch="select">
          <key column="POI_ID"/>
            <many-to-many  class="com.egrima.webinfotools.common.entity.generated.PointOfInterestAttribute" column="ATTRIBUTE_ID"   fetch="join"/>
        </set>    
       
    </class>



The generated Class looks like this:


package com.egrima.webinfotools.common.entity;
// Generated 30.07.2014 10:56:07 by Hibernate Tools 3.2.2.GA


import com.egrima.webinfotools.common.entity.generated.PointOfInterestAttribute;
import com.egrima.webinfotools.common.entity.generated.PointOfInterestCategory;
import com.egrima.webinfotools.common.entity.generated.PointOfInterestTranslation;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * PointOfInterest generated by hbm2java
 */

public class PointOfInterest  implements com.egrima.webinfotools.common.entity.BasisEntity,java.io.Serializable {


    private static final long serialVersionUID = 42L;


     private Long id;
     private String zaltkn;
     private String name;
     private String address;
     private Double longitude;
     private Double latitude;
     private Date createdDate;
     private Date changedDate;
     private String hostname;
     private String username;
     private PointOfInterestCategory category;
     private PointOfInterestTranslation poiNameTranslation;
     private Set<PointOfInterestAttribute> attributes = new HashSet<PointOfInterestAttribute>(0);


    public PointOfInterest() {
    }

    public PointOfInterest(String zaltkn, String name, String address, Double longitude, Double latitude, Date createdDate, Date changedDate, String hostname, String username, PointOfInterestCategory category, PointOfInterestTranslation poiNameTranslation, Set<PointOfInterestAttribute> attributes) {
       this.zaltkn = zaltkn;
       this.name = name;
       this.address = address;
       this.longitude = longitude;
       this.latitude = latitude;
       this.createdDate = createdDate;
       this.changedDate = changedDate;
       this.hostname = hostname;
       this.username = username;
       this.category = category;
       this.poiNameTranslation = poiNameTranslation;
       this.attributes = attributes;
    }
   

   
    @Override
    public Long getId() {
        return id;
    }
   
    public void setId(Long id) {
        this.id = id;
    }
    public String getZaltkn() {
        return zaltkn;
    }
   
    public void setZaltkn(String zaltkn) {
        this.zaltkn = zaltkn;
    }
    public String getName() {
        return name;
    }
   
    public void setName(String name) {
        this.name = name;
    }
    public String getAddress() {
        return address;
    }
   
    public void setAddress(String address) {
        this.address = address;
    }
    public Double getLongitude() {
        return longitude;
    }
   
    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }
    public Double getLatitude() {
        return latitude;
    }
   
    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }
    public Date getCreatedDate() {
        return createdDate;
    }
   
    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }
    public Date getChangedDate() {
        return changedDate;
    }
   
    public void setChangedDate(Date changedDate) {
        this.changedDate = changedDate;
    }
    public String getHostname() {
        return hostname;
    }
   
    public void setHostname(String hostname) {
        this.hostname = hostname;
    }
    public String getUsername() {
        return username;
    }
   
    public void setUsername(String username) {
        this.username = username;
    }
    public PointOfInterestCategory getCategory() {
        return category;
    }
   
    public void setCategory(PointOfInterestCategory category) {
        this.category = category;
    }
    public PointOfInterestTranslation getPoiNameTranslation() {
        return poiNameTranslation;
    }
   
    public void setPoiNameTranslation(PointOfInterestTranslation poiNameTranslation) {
        this.poiNameTranslation = poiNameTranslation;
    }
    public Set<PointOfInterestAttribute> getAttributes() {
        return attributes;
    }
   
    public void setAttributes(Set<PointOfInterestAttribute> attributes) {
        this.attributes = attributes;
    }




}



In our project we also make use of GILEAD and this description  they also mention the problem I have. But how does this work together with code-generation. Because when I make use of Gilead I can not generate the class. And when I uncomment the class in the hbm.xml the mapping won't work. How can I solve this problem? I really have no clue anymore.. please help me :)

Thank you!
Greetz Peter



--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Firing Custom Event in GWT

Depends on what you do in your eventhandler? 
if you do expensive calculations yes, then there will be a performance issue. If not it doesn't matter. 

A common practice is to set a buffer the changes with a Timer. 

On Wednesday, July 23, 2014 7:36:27 AM UTC+2, Mohammed Sameen wrote:
Hi All,
In my GWT application,I have written my own custom event for enabling the button whenever the text box (or some other filed) is edited.The event is keep on  firing whenever there is a change is text box.Is there any performance issue.Is there any way to fire the event only once?Please give your suggestion.Thanks in Advance..

--
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.
For more options, visit https://groups.google.com/d/optout.

Firing the Event Using JavaScript Code Internally

Hi,
 I created my own custom event and need to fire that event using Javascript code. See the below code which is from thirdparty API which contain the ItemChangeHandler.
It will fire the event internally using javascript.So i need to implement the same way in GWT.Does any one have any idea on this?Thanks in advance..

 public HandlerRegistration addItemChangeHandler(com.smartgwt.client.widgets.form.events.ItemChangeHandler handler) {
        if(getHandlerCount(com.smartgwt.client.widgets.form.events.ItemChangeEvent.getType()) == 0) setupItemChangeEvent();
        return doAddHandler(handler, com.smartgwt.client.widgets.form.events.ItemChangeEvent.getType());
    }

    private native void setupItemChangeEvent() /*-{
        var obj = null;
        var selfJ = this;
        if(this.@com.smartgwt.client.widgets.BaseWidget::isCreated()()) {
            obj = this.@com.smartgwt.client.widgets.BaseWidget::getJsObj()();
            obj.addProperties({itemChange:$debox($entry(function(){
                        var param = {"item" : arguments[0], "newValue" : arguments[1], "oldValue" : arguments[2]};
                        var event = @com.smartgwt.client.widgets.form.events.ItemChangeEvent::new(Lcom/google/gwt/core/client/JavaScriptObject;)(param);
                        selfJ.@com.smartgwt.client.widgets.BaseWidget::fireEvent(Lcom/google/gwt/event/shared/GwtEvent;)(event);
                        var ret = event.@com.smartgwt.client.event.Cancellable::isCancelled()();
                        return !ret;
                    }))
             });
        } else {
            obj = this.@com.smartgwt.client.widgets.BaseWidget::getConfig()();
            obj.itemChange = $debox($entry(function(){
                   var param = {"item" : arguments[0], "newValue" : arguments[1], "oldValue" : arguments[2]};
                   var event = @com.smartgwt.client.widgets.form.events.ItemChangeEvent::new(Lcom/google/gwt/core/client/JavaScriptObject;)(param);
                   selfJ.@com.smartgwt.client.widgets.BaseWidget::fireEvent(Lcom/google/gwt/event/shared/GwtEvent;)(event);
                   var ret = event.@com.smartgwt.client.event.Cancellable::isCancelled()();
                   return !ret;
               }));
        }
   }-*/;

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Firing Custom Event in GWT

Any Suggestion on this...

On Wednesday, July 23, 2014 11:06:27 AM UTC+5:30, Mohammed Sameen wrote:
Hi All,
In my GWT application,I have written my own custom event for enabling the button whenever the text box (or some other filed) is edited.The event is keep on  firing whenever there is a change is text box.Is there any performance issue.Is there any way to fire the event only once?Please give your suggestion.Thanks in Advance..

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: SuperDevMode & external server

After a lot of trial and error we managed to configure our JBoss web server to talk to browsers with the proper CORS headers so that we got REST operations working by running the GWT app locally under Jetty.

--
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.
For more options, visit https://groups.google.com/d/optout.

Wednesday, July 30, 2014

Re: SuperDevMode & external server

Yes but it doesn't seem to have any effect. But if it was required there should be something like

Ignoring non-whitelisted Dev Mode URL: http://some.domain.com/

in the browser's JS console which I have not seen.

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: Why Cookies will not be stored if setting Timeout = 30 days in GWT?

You're using integer arithmetic for a sum that overflows beyond the maximum positive value for an integer. So 1000*60*60*24*30 is negative.

You could try 1000L*60*60*24*30

Paul

On 31 Jul 2014 01:53, "Tom" <HenryHa5@gmail.com> wrote:

This is very weird. Ok, the below code works fine

public void setCookie(String cookiesName, String cookiesValue){      final int COOKIE_TIMEOUT = 1000 * 60 * 60 * 24;//1 days      Date expires = new Date((new Date()).getTime() + COOKIE_TIMEOUT);      Cookies.setCookie(cookiesName, cookiesValue, expires);  }  //then  setCookie("currentLang","de");  Collection<String> cookies = Cookies.getCookieNames();  for(String cookie : cookies){          if("currentLang".equals(cookie)){                System.out.println("got currentlang");          }  }  

If i run the above code then I can see output: "got currentlang" However, if I set timeout=30 days final int COOKIE_TIMEOUT = 1000 * 60 * 60 * 24 * 30;//30 days, then nothing got printed out, so "currentLang" has not even been stored if we set 30 days?

Why is that? does Gwt prevent that to happen?

http://stackoverflow.com/questions/25049270/why-cookies-will-not-be-stored-if-setting-timeout-30-days-in-gwt

--
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.
For more options, visit https://groups.google.com/d/optout.

--
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.
For more options, visit https://groups.google.com/d/optout.

Re: unable to use external javascript in GWT

public folder should be on the same level as gwt.xml file. superdev mode doesn't allow usage of <script> in gwt.xml, you have to include it in your application html file (it will be copied from public folder to target). You still can inject your scripts in onModuleLoad() of your library, but it's quite tricky.

On Wednesday, July 30, 2014 2:20:06 AM UTC-7, Sandeep Poonia wrote:
Thanks Jim and Thomas, $wnd worked for me. But i am facing problem when i changed the location of the go.js , I moved it to the folder where gwt.xml file is present using  <script src="go.js"/> but i am getting the following message. 

14:40:05.077 [ERROR] [opsdashboardlocal] The Cross-Site-Iframe linker does not support <script> tags in the gwt.xml files, but the gwt.xml file (or the gwt.xml files which it includes) contains the following script tags: 
go.js
In order for your application to run correctly, you will need to include these tags in your host page directly. In order to avoid this error, you will need to remove the script tags from the gwt.xml file, or add this property to the gwt.xml file: <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>

And I am also confused about public folder. Should i create a public folder under my project or under src dir? 

On Monday, July 28, 2014 2:43:47 AM UTC+5:30, Thomas Broyer wrote:


On Sunday, July 27, 2014 10:11:22 AM UTC+2, Sandeep Poonia wrote:
Hi ,
I want to use goJS with GWT. I downloaded GOJS javascript and put it in the sampleproject folder under war where sampleproject.nocache.js and sampleproject.devmode.js is present. In sampleproject.html i added 
<script type="text/javascript" language="javascript" src="sampleproject/go.js"></script>

You shouldn't put the file there. The sampleproject/ folder will be cleared by the GWT Compiler.
Either put your script in your "public path" so it gets copied there by the GWT Compiler [1], or put it outside the sampleproject/ folder.
 

In one of the view i used 
public static native void initGo() /*-{
var $$ = go.GraphObject.make;
}-*/;
when i call this function , exception is thrown:

com.google.gwt.event.shared.UmbrellaException: Exception caught: (ReferenceError) @com.amazon.ops.client.OpsMenuView::initGo()([]): go is not defined.

Can anyone please help me with this?

As Jim already said, you need to use $wnd to escape the sandbox GWT is running in and into the context of the web page, where your script is loaded.

--
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.
For more options, visit https://groups.google.com/d/optout.

New version 1.4.3 of jqm4gwt is available, check it out.

 
New version 1.4.3 of jqm4gwt is available. It's extended wrapper over jQuery Mobile.
In some sense it's alternative for mgwt, and could be used for Tablet/Mobile development in pure Java.
Demos http://jqm4gwt.appspot.com/  and source code https://github.com/jqm4gwt/jqm4gwt

--
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.
For more options, visit https://groups.google.com/d/optout.

Why Cookies will not be stored if setting Timeout = 30 days in GWT?

This is very weird. Ok, the below code works fine

public void setCookie(String cookiesName, String cookiesValue){      final int COOKIE_TIMEOUT = 1000 * 60 * 60 * 24;//1 days      Date expires = new Date((new Date()).getTime() + COOKIE_TIMEOUT);      Cookies.setCookie(cookiesName, cookiesValue, expires);  }  //then  setCookie("currentLang","de");  Collection<String> cookies = Cookies.getCookieNames();  for(String cookie : cookies){          if("currentLang".equals(cookie)){                System.out.println("got currentlang");          }  }  

If i run the above code then I can see output: "got currentlang" However, if I set timeout=30 days final int COOKIE_TIMEOUT = 1000 * 60 * 60 * 24 * 30;//30 days, then nothing got printed out, so "currentLang" has not even been stored if we set 30 days?

Why is that? does Gwt prevent that to happen?

http://stackoverflow.com/questions/25049270/why-cookies-will-not-be-stored-if-setting-timeout-30-days-in-gwt

--
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.
For more options, visit https://groups.google.com/d/optout.

Styling DataGrid headers

I've configured my DataGrid with a custom CSS file like so:

  public interface UsersDataGridResources extends DataGrid.Resources
  {
    @Source({DataGrid.Style.DEFAULT_CSS,"usersDataGrid.css"})
    DataGrid.Style dataGrid();
  }

  private static final int DEFAULT_PAGE_SIZE = 50;
  private static final UsersDataGridResources usersDataGridResources
    = GWT.create(UsersDataGridResources.class);
  static { usersDataGridResources.dataGrid().ensureInjected(); }

  private DataGrid<User> usersGrid_
    = new DataGrid<User>(DEFAULT_PAGE_SIZE,usersDataGridResources);

I've specified a normal font in usersDataGrid.css:

.dataGridHeader {
  font-weight: normal !important;
  text-decoration: none !important;
}

This isn't being reflected in what I see when the grid is rendered.  I'm specifying the column headers as simple strings, not Cells.  Is there a different property I need to configure?

Thanks,

Patrick

--
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.
For more options, visit https://groups.google.com/d/optout.

U.S. targets Russian energy, arms and finance sectors with new sanctions

     
gwt,
Here's what's trending on Twitter this week.
  gwt
     

Paul Sonne @PaulSonne

EU agrees to broad sanctions on Russia m.wsj.com/articles/eu-ex…

29 Jul

U.S. targets Russian energy, arms and finance sectors with new sanctions

President Barack Obama said Tuesday that the U.S. is intensifying its economic sanctions against Russia, hitting Moscow's energy, arms and banking industries in response to what he said was President Vladimir Putin's continued fueling of violence in eastern Uk...

Чемпионат @championat

Антуан Гризманн подписал долгосрочный контракт с «Атлетико»
championat.com/football/news-… pic.twitter.com/aBU0NiMexp

29 Jul

MFA of Ukraine @MFA_Ukraine

"Putin es un patrocinador de los terroristas" infobae.com/c1583930 за допомогою @infobaeamerica #Ukraine #UnitedForUkraine #MH17

29 Jul

Putin es un patrocinador de los terroristas

El embajador ucraniano en Argentina, Yurii Diudin, señaló a Rusia como un sponsor del terrorismo internacional por proveer armas a los separatistas prorrusos

Kyiv Post @KyivPost

Brian Bonner: #US moving too slowly to counter #Russia's war against #Ukraine
kyivpost.com/opinion/op-ed/… pic.twitter.com/71FcVfgOtU

29 Jul

Christopher Miller @ChristopherJM

Still 151 held in captivity, prez says. TT @poroshenko: Today in #Horlivka we freed 17 hostages. Glory to Ukraine! pic.twitter.com/iNmfuWE4fV

29 Jul

1

Retweet

Ian Bateson @ianbateson

#Ukraine Security council spox sticks to line that all urban shelling that seems to be army is rebel provocation pic.twitter.com/0L0LeXaV9T

29 Jul

1

Retweet

5 канал @5channel

Відео: ІКАО перегляне правила польотів над зонами конфлікту bit.ly/1o0bC2E

29 Jul

1

Retweet

Петро Порошенко @poroshenko

#Poroshenko : Українські війська звільнили Степанівку. Про це мені щойно доповів Міністр оборони. Слава Україні! pic.twitter.com/uo3QqOCpXp

28 Jul

1

Retweet

Don't miss out. Stay up to date on what's happening.
Go to Twitter