Tuesday, March 31, 2015

update checkbox after asking the server

Hi,

I have a CellTable. One of the columns is build like this 
Column<MyProxy, Boolean> colIsReference =
new Column<MyProxy, Boolean>(new CheckboxCell()) {
@Override
public Boolean getValue(MyProxy rdm) {
return Boolean.valueOf(rdm.isReference());
}
};
colIsReference.setFieldUpdater(new FieldUpdater<MyProxy, Boolean>() {
public void update(final int index, final MyProxy rmd, Boolean value) {
  dataUpdater().setReference(
rmd,
value.booleanValue(),
false, // don't override current reference (opens dialog if there is another reference)
new Runnable() {
// called if canceled
public void run() {
      // --->  Do something that unchecks the checkbox  <---
  }
}
   );
}
});

When the user clicks the checkbox of an entry, the server checks if the value may be changed easily at the moment. If yes, I don't have a problem.
If not (some other things have to be changed too) - I ask the user if he wants to change all necessary stuff. The user can click ok or cancel. If he clicks ok, I have no problem. But if the user cancels I want to uncheck the checkbox again.

Whats the best way to do that? I tried to update the table with setRowData (because in my proxy in rmd the flag is still false!) and I have tried with the updateRowData of the asyncDataProvider that I use.

Is there a way to bind the gui closer to my proxy? Because at the moment run() is called the proxy flag is false but the checkbox is true.

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: Error processing @WithTokenizers, cannot find type

I experienced this exact problem, and it was because I was accidentally referencing java code that was not supported/emulated by GWT (UUID). It appears that if GWT encounters that type of error, it also prevents Binding and throws the Binding error as well.

On Friday, January 17, 2014 at 9:44:49 PM UTC-5, Wayne Rasmuss wrote:
I just had this problem. My solution was pretty much what Ryan said above but I have some more details. I had added a place tokenizer to my place history mapper. A class this new tokenizer depended on was correct from a java perspective, but had problems with inherited modules, and some conflicts between the gwt and non gwt versions of guava jars. By commenting out the tokenizers as suggested above, I was able to finally see these errors. Then they were pretty straight forward fixes.

On Friday, December 21, 2012 8:19:22 AM UTC-6, RyanZA wrote:
It appears to depend on the compiled GWT code to find the correct class - but it runs before the compilation step. So new classes don't appear until it successfully compiles.

eg. You create a new .java class and add it to the tokenizer. Try to compile and it will fail. Remove the annotation and compile. Then add the annotation back and compile again, and it should work.

I've taken to just skipping the annotations and just implementing my own mapper - it gives you much better control of exactly what tokens to pass when/where and lets you use the nice #! for search engine crawling...

On Thursday, December 20, 2012 7:48:59 PM UTC+2, Tony B wrote:
Ok, this is screwy.  Now it is working, and I did not really change anything in this section.  Here is what I did that could have impacted this:
  1. Restarted Eclipse at least one time
  2. Did a full GWT compile ( with GWT 2.4 ) at least one time
  3. Change GWT SDK from 2.4 to 2.5, and started debugger.  It worked
  4. Changed GWT SDK back to 2.4, and started debugger.  It worked.

I don't know if one or all of the above acts fix it, or if some code change I forgot fixed it.  Anyway, thanks.

Tony


On Thursday, December 20, 2012 12:25:30 PM UTC-5, Tony B wrote:
Right now I am using GWT 2.4.  So your suggesting I use GWT 2.5?

Or maybe you changed the GWT source code to mimic the work around they mentioned.

On Thursday, December 20, 2012 10:19:07 AM UTC-5, Bauna wrote:
I have a similar problem with @WithTokenizers and I used some the
workarounds from this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5658

On Tue 18 Dec 2012 07:01:42 PM ART, Tony B wrote:
> Sadly, not yet.   If I found out something, I will update this thread.
>
> On Tuesday, December 18, 2012 9:51:26 AM UTC-5,
> sean.l...@perceptivesoftware.com wrote:
>
>     Hi Tony,
>
>     Having same problem - did you find a resolution to this?
>
>     Thanks
>
>     Sean
>
>     On Monday, December 17, 2012 5:00:25 PM UTC-5, Tony B wrote:
>
>         Hello,
>            I have a weird situation.  I am getting the following error
>         in my
>
>             16:48:34.027 [ERROR] [wmsapp] Error processing
>             @WithTokenizers, cannot find type
>             com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer
>
>
>         The problem is that I know this exists.   First of all, this
>         happens in the following code:
>
>             package com.wmsvision.wmsapp.client;
>
>             import com.google.gwt.place.shared.PlaceHistoryMapper;
>             import com.google.gwt.place.shared.WithTokenizers;
>             import
>             com.wmsvision.wmsapp.client.activities.HomePlace.HomePlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.WmsListPlace.WmsListPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.about.AboutPlace.AboutPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.configuration.ConfigPlace.ConfigPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.login.LoginPlace.LoginPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryDetailPlace.ProductSummaryDetailPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace.ProductSummaryMasterPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryPlace.ProductSummaryPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.receiving.ReceivingPlace.ReceivingPlaceTokenizer;
>             import
>             com.wmsvision.wmsapp.client.activities.relocation.RelocationPlace.RelocationPlaceTokenizer;
>
>             @WithTokenizers({ HomePlaceTokenizer.class,
>                         LoginPlaceTokenizer.class,
>                         AboutPlaceTokenizer.class,
>                         WmsListPlaceTokenizer.class,
>                         ReceivingPlaceTokenizer.class,
>                         RelocationPlaceTokenizer.class,
>                         ProductSummaryPlaceTokenizer.class,
>                         ProductSummaryDetailPlaceTokenizer.class,
>                         ProductSummaryMasterPlaceTokenizer.class,
>                         ConfigPlaceTokenizer.class})
>             public interface AppPlaceHistoryMapper extends
>             PlaceHistoryMapper {
>             }
>
>
>         I have a similar place defined in the same package that seems
>         to work fine ( it is called "import
>         com.wmsvision.wmsapp.client.activities.productsearch.ProductSummaryMasterPlace"
>         ).  Anyway, the "DetailPlace" should only be accessible from
>         the "MasterPlace", so maybe I don't need it in my
>         AppPlaceHistoryMapper above.  But I would still like to
>         understand why it is not working.
>
>         Here is the class file in question, the one it cannot seem to
>         find:
>
>             package com.wmsvision.wmsapp.client.activities.productsearch;
>
>             import com.google.gwt.place.shared.Place;
>             import com.google.gwt.place.shared.PlaceTokenizer;
>
>             public class ProductSummaryDetailPlace extends Place {
>                 private String product;
>                 private long index;
>                 private String id;
>                 private final String separator = "#:PRODUCTINDEX:#";
>
>                 public ProductSummaryDetailPlace(String product, long
>             index) {
>                     super();
>                     this.product = product;
>                     this.index = index;
>
>                     createId();
>                 }
>
>                 public ProductSummaryDetailPlace( String id ) {
>                     this( "", 0 );
>
>                     String tokens[] = ( id != null ?
>             id.split(separator) : null );
>
>                     if( tokens != null && tokens.length >= 1 ){
>                         this.product = tokens[0];
>
>                         if( tokens.length >= 2 ){
>                             this.index = Long.getLong( tokens[1] );
>                         }
>
>                         createId();
>                     }
>                 }
>
>                 private void createId( ) {
>                     this.id <http://this.id> = product.trim() +
>             separator + index;
>                 }
>
>
>                 public String getProduct() {
>                     return product;
>                 }
>
>
>
>                 public void setProduct(String product) {
>                     String oldProduct = this.product;
>
>                     this.product = product;
>
>                     // Product changed, so recalculate id
>                     if( !oldProduct.equals(product)) {
>                         createId();
>                     }
>                 }
>
>
>
>                 public long getIndex() {
>                     return index;
>                 }
>
>
>
>                 public void setIndex(long index) {
>                     long oldIndex = this.index;
>
>                     this.index = index;
>
>                     // Index changed, so recalculate id
>                     if( oldIndex != index ) {
>                         createId();
>                     }
>                 }
>
>
>
>                 public String getId() {
>                     return id;
>                 }
>
>                 public static class ProductSummaryDetailPlaceTokenizer
>                         implements
>             PlaceTokenizer<ProductSummaryDetailPlace> {
>
>                     @Override
>                     public ProductSummaryDetailPlace getPlace(String
>             token) {
>                         return new ProductSummaryDetailPlace(token);
>                     }
>
>                     @Override
>                     public String getToken(ProductSummaryDetailPlace
>             place) {
>                         return place.getId();
>                     }
>                 }
>             }
>
>
>         Thanks.
>
>         Tony
>
> --
>


--
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: Many problems between GWT and LibreJs



On Tuesday, March 31, 2015 at 4:34:24 PM UTC+2, Diego Ariel Capeletti wrote:

Hello, a few months ago I'm developing a GWT application I intend to publish it as Free Software License (AGPL), both written in Java source files, as the resulting code HTML, CSS and JavaScript that is generated by GWT. I believe that there should be no legal problems with licensing, Do you guys think?

I am not a lawyer but JavaScript produced by GWT is a mix of you own code (under your own license) and GWT code (under Apache v2), so it's GPL-compatible. The JS code that comes from GWT (gwt-dev and gwt-user) has no third-party dependencies (AFAIK).
 
Today I'm having problems with LibreJs since JavasScript files fail the test it imposes. A test passed, is because it has licensed headers JavaScript files, but there is another problem that you can not find solution.

In the attached picture, I show LibreJs reporting. The head of the JavaScript license is present, but there is another aspect that LibreJs donot do not like and it is. Any website written with GWT, for easier it always is blocked by LibreJs. I welcome your comments.
What is the matter?

Which version of GWT are you using? Are you using the "std" linker (aka IframeLinker) or have you switched to the "xsiframe" linker? (GWT 2.7 uses xsiframe by default)
Do you have the old-ish __gwt_historyFrame iframe in your HTML page?
Those are the only two reasons I can see for having a src="''".

Anyway, a src="''" should be GPL-compatible ;-) 

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

Many problems between GWT and LibreJs


Hello, a few months ago I'm developing a GWT application I intend to publish it as Free Software License (AGPL), both written in Java source files, as the resulting code HTML, CSS and JavaScript that is generated by GWT. I believe that there should be no legal problems with licensing, Do you guys think?

Today I'm having problems with LibreJs since JavasScript files fail the test it imposes. A test passed, is because it has licensed headers JavaScript files, but there is another problem that you can not find solution.

In the attached picture, I show LibreJs reporting. The head of the JavaScript license is present, but there is another aspect that LibreJs donot do not like and it is. Any website written with GWT, for easier it always is blocked by LibreJs. I welcome your comments.
What is the matter?
Should agree GWT and LibreJS?

The code generated by GWT is too complex to follow for me, so I come to your help to see if they can determine that a web application written with GWT fails the test with LibreJS.

Thank you very much.

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

GWT - No CAPTCHA reCAPTCHA

Is it possible to use new No CAPTCHA reCAPTCHA (http://googlewebmastercentral.blogspot.ie/2014/12/are-you-robot-introducing-no-captcha.html) with GWT?
For old style I think https://code.google.com/p/gwt-recaptcha/ worked with GWT
Just wondering how to use new API with GWT

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+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 Designer and tree widget problem

I have same issue here with GWT 2.6.1 that i cannot add tree widget, i don't know why bcoz other widget is working

check this out . http://prntscr.com/6nobn6 

On Wednesday, July 27, 2011 at 7:25:45 AM UTC+7, karim duran wrote:
Hi,

I'm working with Eclipse Helios, GWT plugin and GWT Designer
installed.
I made my interface ( many panels, textbox, buttons etc...).

When i try to add a Tree widget, the result is an exception in
Eclipse.

I try to find precisions about tree widget in documentation, but i
didn't find anything.

Could you help ?

Thanks.

Regards.
Karim Duran.

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

Monday, March 30, 2015

@BrianAmlani tweeted: Again how much to haters get paid?! Oh that's right #Nothing! #GoodSpeechJT

Brian Amlani
@BrianAmlani
 
Again how much to haters get paid?! Oh that's right #Nothing! #GoodSpeechJT
View on Twitter
Paul DiGiovanni
@paulBLG
 
I haven't read a book so fast in years. If you are into space and science at all this is a must read novel.
View on Twitter
Hilary Duff
@HilaryDuff
 
When your feet hurt at whole foods market @AdamBreuchaud to the rescue 😍
View on Twitter
Mathias Anderle
@MathiasAnderle
 
Good morning ;)
View on Twitter
Kim Kardashian West
@KimKardashian
 
Northie was so proud of all of the eggs she found! She wouldn't stop talking about it all night! 🍬🐰🐣
View on Twitter
Taylor Swift
@taylorswift13
 
Living proof that you can be the @iHeartRadio Music Awards Artist of the Year and also a super embarrassing person! pic.twitter.com/YbVhLSieuk
View on Twitter
Not what you're looking for?
Well there's more to see on Twitter! Click here to discover more interesting Tweets.
Explore