| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday, June 30, 2014
Nick Cannon retweeted a link from 106.1 KISS FM on Twitter!
post-compiled textual replacement regex safety
hi I was wondering if there were any string-replace tokens that are less likely to conflict with gwt and closure output than just assuming a replacement token is unique
-- i have success with replacing "YOUR_CLIENT_ID" with oauth tokens to date, but if someone knows any more formal textual tokens that are likely to succeed with compiled gwt and closure after obfuscation, a pointer would be great.
so first, the assumption is that strings can be merged at compile time. then, not sure about this, but redundant or chunky similar strings might also be tokenized and recombined for whatever reason. if that's the case, it would be better to ask now than to hit that when going beyond the trivial example.
the usecase being solved is a non-template engine serving gwt content with a one-time replacement pass for "YOUR_CLIENT_ID" and maybe other vars as needed. as if compiling gwt to a jsp file, but not having or needing more than 1 or two replaced vars once per server startup.
TIA
Jim
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.
Fwd: [gwt-contrib] Translated to null.nullField when using JsInterop & @JsType
Hello,
The newest @JsType feature is really very fascinating, and works in most cases. The only issue i found was the wrong null.nullField javascript output.
the compile command:
java -cp xxx com.google.gwt.dev.Compiler -war xxx -XnoclassMetadata -XnocheckCasts -XjsInteropMode JS -XclosureCompiler -style PRETTY com.goodow.realtime.store.StoreProd
public CollaborativeOperation compose(JsonArray operations) {final CollaborativeOperation first = operations.<CollaborativeOperation> get(0);if (operations.length() == 1) {return first;}final JsonArray components = Json.createArray();operations.forEach(...);return new CollaborativeOperation(first.userId, first.sessionId, components);}
translated to the following javascript:
function $compose(operations) {var components;components = operations[0];if (1 == operations.length) {return components;}components = [];$forEach(operations, new CollaborativeTransformer$1(components));return new CollaborativeOperation(null.nullField, null.nullField, components);}
There's an easy workaround to fix this: using the -draftCompile options when compilation. Here is the full compilation log:
https://travis-ci.org/goodow/realtime-store/builds/28777579 (search for ./gwt-compile.sh)
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 RemoteServiceServlet serialization policy
Thanks to all for their input..
I have filled in an issue for GWT here: https://code.google.com/p/google-web-toolkit/issues/detail?id=8799&q=serialization&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars
-- I have filled in an issue for GWT here: https://code.google.com/p/google-web-toolkit/issues/detail?id=8799&q=serialization&colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars
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.
Sunday, June 29, 2014
Using GWT custom event and constructor
Hi
I have two panel.
Panel A send custom GWT event to Panel B to modify the appearance of Panel B.
The event bus is defined on their parent panel.
The event sending by event bus defined in other methods works after the initialization (constructor execution) of these 2 panels.
But, if I send an event in the constructor of Panel A to Panel B, the event handling doesn't work.
I can build a constructor of Panel B to initialize by parameters. But why the event sending from constructor doesn't work as expected?
Thanks
Re: reuse of private static variable
Make as many image instances as necessary. The browser will cache and reuse the src if it is identical.
On Jun 28, 2014 5:33 AM, "'Leung' via Google Web Toolkit" <google-web-toolkit@googlegroups.com> wrote:
-- --Then, if I need to use one copy of the image a few times or the same widget a few places, then what should I do?On Friday, June 27, 2014 11:34 AM, Jens <jens.nehlmeier@gmail.com> wrote:
Is there any technical name to describe this feature?The DOM acts like a tree with each node having exactly one parent node (except the root node which has no parent).-- J.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
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.
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: reuse of private static variable
Create as many instances as needed.
On Saturday, June 28, 2014 5:34:35 AM UTC+2, new_newbie wrote:
-- On Saturday, June 28, 2014 5:34:35 AM UTC+2, new_newbie wrote:
Then, if I need to use one copy of the image a few times or the same widget a few places, then what should I do?On Friday, June 27, 2014 11:34 AM, Jens <jens.nehlmeier@gmail.com> wrote:
Is there any technical name to describe this feature?The DOM acts like a tree with each node having exactly one parent node (except the root node which has no parent).-- J.--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com .
To post to this group, send email to google-web-toolkit@googlegroups.com .
Visit this group at http://groups.google.com/group/google-web-toolkit .
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.
Subscribe to:
Posts (Atom)