Wednesday, October 31, 2012

stella Rondonuwu, Nick Cannon, and 3 others have Tweets for you

     
gwt,
Here's what's happening on Twitter
  gwt
     
New! You can now receive this email as a daily digest.
Switch to daily delivery.
Stories

A Good Day To Die Hard Official Trailer
Bruce Willis is back as John McClane in a Good Day to Die Hard! In the latest installment McClane goes to rescue his son in Russia and finds out that he is a undercover CIA operative. The fifth Die Ha …
Tweeted by
Nick Cannon

Creatives bring forth new worlds
These artists can create new worlds through sheer imagination and persistence.. Hollywood's New Leaders from the entertainment source: Variety. Creatives bring forth new worlds.
Tweeted by
Ashley Tisdale

Tweets

Jessica Rhoades @Jess_Rhoades 30 Oct
Toasting to variety's New Leaders with @ashleytisdale. Such a fun night with fantastic people. instagr.am/p/RZVZ9MqghW/
Retweeted by Ashley Tisdale and 147 others
View details

WONDER GIRLS @WonderGirls 29 Oct
@NickCannon with our fav @NickCannon ..We really learned a lot and had so much fun with him that day!! See u instagr.am/p/RWs0RKKOZc/
Retweeted by Nick Cannon and 27 others
View details

Drizzy @Drake 29 Oct
Everybody bigs each other up until somebody gets big.
Retweeted by chianté and 11197 others
View details

David Yohanes @David_YT 30 Oct
Sleep!
Retweeted by stella Rondonuwu and 1 others
View details

THE X FACTOR (USA) @TheXFactorUSA 28 Oct
Our girl @ddlovato is performing the National Anthem during Game 4 TONIGHT at 7:30pm ET on FOX. #goodluckdemi
Retweeted by demetria lovato and 6030 others
View details
Don't miss out. Stay up to date on what's happening.
Go to Twitter

Meet GWT's new sexy cousin: Lienzo!

Meet GWT's new sexy cousin: Lienzo!

Today we are extremely happy to announce the alpha release of our latest product, called Lienzo. Lienzo is a Structured Graphics Toolkit that extends Canvas and is completely built from the ground up using GWT. This is not a wrapper of any sort, it is a pure GWT implementation of Canvas. Lienzo is released under the Apache 2 license and can be used in both open source as well as commercial applications free of charge.

For years we have been constrained to the functionality and specifications provided by HTML elements. The time has come where you can finally let your imagination go wild. Grab your digital brush, get a hold of your Canvas and paint your Mona Lisa!  The limit is now really just your imagination. Lienzo brings to your fingertips the full power and flexibility needed to create the next generation of slick, previously unimaginable widgets, games and animations needed to build your dream suite of development products.

This alpha release features:

- Lightning fast shape detection algorithm.

- Supports for multiple Layers.

z-index reordering: moveUp, moveDown(), moveToTop(), moveToBottom()

Transforms, rotation, offset, scale for all Shapes.

- Web and Mobile shape events support.

- Support for shadows.

- Support for linear and radial gradients as well as patterns.

- Direct support for shape stroke and filling.

- Support for shape colors and transparency.

- List of implemented shapes:

* Rectangle
* Rounded Corner Rectangle
* Lines
* Dashed Lines
* Support for Line Caps
* Support for Line Joins
* Arcs
* Circle
* Ellipse
* Quadratic Curve
* Polygons
* Stars
BezierCurve
Parallelogram
Slice
RegularPolygon

- Support for Groups and Groups of Groups.

* Group as many shapes as you want and even Groups of Groups and treat them as a single entity.

- Direct Dragging Support for Web and Mobile.

- Text support with Horizontal and Vertical Alignment.

- Text measure support for both width and height.

- Scaled Text

- Image support based on URL and even ImageResource.

- Image Dragging support.

- Built-In Image Filters

- Drag constraint (bounds, vertical and horizontal)

- Video support

- Built in JSON serialization for the entire viewport of elements.

* Serialize your Lienzo View and persist it locally or over the wire via JSON.

There is a lot more coming in Lienzo. Just to name a few things: animations, transformations, collision detection, and more!  Lienzo is revolutionizing the way we write software in Java; it truly embraces Java's "Write Once, Run Anywhere" motto. The same code can be run in a mobile, web, or desktop environment. Say hello to a specification-bound API.

The future for Java is now.  The future of Java is here, with Lienzo and the undeniable power of canvas.

An explorer with some examples and source code can be found at:

In most of the views all shapes are draggable!

Lienzo Forum:

Download Lienzo 0.1.0:

Sincerely,

The Emitrom Team


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

Re: widget celltable how clear before re-populate

Hi John,
Is this applicable for DataGrid too?

Please see here for details.

Thanks,
Mohit

On Tuesday, 9 November 2010 01:11:35 UTC+5:30, Jeff Schwartz wrote:
Using one of the concrete classes AsyncDataProvider or ListDataProvider whose base class is AbstractDataProvider provides a very efficient mechanism for accessing your widget's underlying data source as well as for manipulating the display of the data itself.

Once a ListDataProvider is setup you can do similar to below:

dataProvider.getList().add(someObjectsList); // add a new SomeObject to the list
sortSomeObjectsList(dataProvider.getList()); // call a method to sort the list
dataProvider.refresh(); // tell all widgets using the data provider to refresh themselves because the data has changed

You can also add & replace lists in a ListDataProvider with:

dataProvider.setList(someObjectsList);

To set up a ListDataProvider:

ListDataProvider<SomeObject> dataProvider = new ListDataProvider<SomeObject>(); // strongly typed declaration - notice the use of type T in the declaration which is the type specifier for the type of objects in the list
dataProvider.setList(someObjectsList); // the list of objects to be provided by the ListDataProvider
dataProvider.addDataDisplay(myCellWidget); // the widget the ListDataProvider is providing the data to

Jeff

On Mon, Nov 8, 2010 at 1:22 PM, John LaBanca <jlab...@google.com> wrote:
You can push new data into the widget using CellTable#setRowData() in conjunction with CellTable#setRowCount().  If you want to clear the data first, do the following:
myCellTable.setRowCount(0); // Clears all data
myCellTable.setRowCount(20, true); // Set the size of the new data
myCellTable.setRowData(0, myData); // Set the new data

In GWT 2.1.1, there is a new method CellTable#setRowData(List) that clears all existing data and replaces it with the specified list.

Thanks,
John LaBanca
jlab...@google.com



On Mon, Nov 8, 2010 at 5:13 AM, alf <alber...@gmail.com> wrote:
we are render a celltable widget nice when i push a boton. the
problems is when i will push the botton again i create other widget
and adding. How can clear all item adn populate the sam widget with
new datas.

thanks and excuse for by bad english ans newbie question i have spent
hours fiding examples in doc

al

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


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



--
Jeff

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

GWT RPC Serialization on web and app server

Hi All,

I am facing a very strange scenario here. We have a GWT application that runs perfectly fine when deployed on weblogic app server. So far this was going pretty smooth for us. Now we are preparing our app for production release. For that, as per our company standard, we have installed a web server on our integration machine which will communicate with app server (installed on the same integration machine). When we access our application via webserver, we are getting the incompatibleremoteservletexception

We are using Serializable objects instead of IsSerializable for all the RPC calls in our application. This works fine when the application is directly access via the application server.

Your help here would be really appreciated.

----
sample exception stack trace:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.xyz.rpcservices.ABCRequest' 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.

        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:308)

        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:186)

        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)

        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        Truncated. see log file for complete stacktrace

com.google.gwt.user.client.rpc.SerializationException: Type 'com.xyz.rpcservices.ABCRequest' 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.

        at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize(LegacySerializationPolicy.java:127)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:520)

        at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:137)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:384)

        Truncated. see log file for complete stacktrace     

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

Re: compile to display java code line number

If you run in devmode, you will see the Java line number.

To see something more easily understood in production mode, add -style PRETTY to your program arguments. See https://developers.google.com/web-toolkit/doc/latest/RefCommandLineTools, specifically targets gwtc and devmode generated by webAppCreator.

On Wednesday, October 31, 2012 3:22:44 PM UTC-4, Luke wrote:
What parameters should I use to compile in order to display java code line number when exception ?  Below is error showing on my firefox when exception

uncaught exception: Class$S244: Exception caught: 2 exceptions caught: (TypeError) 
 lineNumber: 221: b.c is null; (TypeError) 
 lineNumber: 227: b.c is null

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

Re: Still problems with com.google.gwt.core.client.GWTBridge

I've reopened the issue; it looks like we indeed didn't fix it completely.

On Wednesday, October 31, 2012 1:08:59 PM UTC+1, Moritz wrote:
Hi all,

I get a NoClassDefFoundError for com.google.gwt.core.client.GWTBridge when I throw a RuntimeException on a server RPC. When I do not throw the RuntimeException and the RPC completes fine also no NoClassDefFoundError is thrown.
As a workaround, I created an abstract com.google.gwt.core.client.GWTBridge which simply extends the ...shared.GWTBridge class. I read about http://code.google.com/p/google-web-toolkit/issues/detail?id=7527 but it seems that this is something different, or not? Any solution?

Cheers,
Moritz.

PD, here comes the full stack trace, the exception seems to be related to the Guice filters:

SEVERE: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
java.lang.NoClassDefFoundError: com/google/gwt/core/client/GWTBridge
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at com.google.appengine.tools.development.agent.runtime.RuntimeHelper.checkRestricted(RuntimeHelper.java:70)
    at com.google.appengine.tools.development.agent.runtime.Runtime.checkRestricted(Runtime.java:64)
    at com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serialize(Arrays.java:64)
    at com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serializeInstance(Arrays.java:94)
    at com.google.gwt.user.client.rpc.core.java.util.Arrays$ArrayList_CustomFieldSerializer.serializeInstance(Arrays.java:34)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:786)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:667)
    at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:755)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:794)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:667)
    at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
    at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
    at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:393)
    at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:579)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
    at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
    at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263)
    at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178)
    at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
    at com.googlecode.objectify.cache.AsyncCacheFilter.doFilter(AsyncCacheFilter.java:59)
    at com.googlecode.objectify.ObjectifyFilter.doFilter(ObjectifyFilter.java:49)
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    at com.MYPROJECT.server.NamespaceFilter.doFilter(NamespaceFilter.java:22)
    at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163)
    at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58)
    at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118)
    at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:123)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:61)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:383)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.ClassNotFoundException: com.google.gwt.core.client.GWTBridge
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:207)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 71 more

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

Re: Cross field validation on client

I'm not really sure why people use it considering vanilla GWT supports JSR303 (the documentation is pretty bad admittedly).

Good point. After digging, found the brand new 2.5 validation docs. That should help. However, I can still see how even your simple example seems rather complex to just test at A==B.


Sincerely,
Joseph

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

Re: Cross field validation on client

I am not familiar with the GWT Validation framework.
I'm not really sure why people use it considering vanilla GWT supports JSR303 (the documentation is pretty bad admittedly).

Using plain GWT you would have a class-level validation annotation:

@Target(ElementType.TYPE)  @Retention(RetentionPolicy.RUNTIME)  @Constraint(validatedBy = PasswordsEqualValidator.class)  @Documented  public @interface PasswordsEqual {                    String DEFAULT_MESSAGE = "Passwords must be the same";            String message() default DEFAULT_MESSAGE;                    Class<?>[] groups() default {};            Class<? extends Payload>[] payload() default {};  }

Then you would need a custom validator. Mine looks like this:

public class PasswordsEqualValidator implements ConstraintValidator<PasswordsEqual, CreateAccountBean> {            @Override          public void initialize(PasswordsEqual constraintAnnotation) {}                    @Override          public boolean isValid(CreateAccountBean value, ConstraintValidatorContext context) {                                    if( value == null )                          return true;                                    String password = value.getPassword();                  String confirmPassword = value.getConfirmPassword();                                    if( password == null && confirmPassword == null )                          return true;                                    if( password != null && password.equals(confirmPassword) )                          return true;                                    return false;          }  }

Then annotate the javabean class being validated with @PasswordsEqual

This works on the client and server.

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

Re: Destroy a widget

I can't really understand what you are asking or saying.

If you want the widget to remain visible but to stop receiving events, do what Jens said: suppress the event handling logic in the event handler.
If you want the widget to stop being visible and to stop receiving events, just do what I said: remove the widget from it's container.

and yes, javascript also has garbage collection otherwise every web application would be one giant memory leak

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

Re: how to pass a String[] array in the declarative UI

You are trying to add logic to your UiBinder XML file which is not what it is intended to do. View-specific logic goes in the java code.

Just do it in the constructor or if you are caching your views (which is good for performance) in a dedicated method that can be called before the view is rendered by your Activity.

For the sake of an example, lets assume your UiBinder class is called MyView.

public class MyView extends Composite {

//definition of UiBinder interface and instance

@UiField
FinishButton finish;

public MyView(){
initWidget(binder.initAndBindUi(this));
}

public MyView(Rights permissions){
this();
updateUi(permissions);
}
 
public void updateUi(Rights permissions){
if( permissions == FINISH_ORDER || permissions == CANCEL_ORDER ) 
finish.setVisible(true);
}

@UiHandler("finish")
void onClickFinish(ClickEvent e){
//handle the click
}
}

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

Re: CreateGWT is released

No flame war at all :)

The problem is to think that Flash can only be used for animations.
There are uses cases where you cant go around Flash.
Also you dont have to use Adobe IDEs to develop for Flash/Flex.
Matter of fact you can use GWT to write Flash/Flex apps

Now if you are targeting mobile devices sure Flash is not the option.
But the same applies for the best GWT based UI libraries out there (GXT, Smart GWT, etc)
They dont work(well) on mobile either
Meaning you will need to rewrite the UI part anyway.
Regardless of if it was written with Flex or GWT.

And for desktop applications only i dont see why one should not use Flex instead of let s say GXT.


 
2012/10/31 Joseph Lust <lifeoflust@gmail.com>
At the risk of starting a flame war, I must counter that at my (very large) enterprise, we're divesting ourselves of Flash since target platforms cannot reuse our components (yeah, the iPad). Flash certainly still is popular, but given new canvas animation frameworks coming out every day making it WYSIWYG easy to make high fidelity animations, the case for Flash is easing, not to mention the high priced (though very powerful) IDEs and suites for working with Flash require.

Of course this won't happen over night, and Flash and Flex will have their niches, but the writing is on the wall for Flash/Flex/Silverlight and friends.



Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9lWmlhqNORAJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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

Re: CreateGWT is released

At the risk of starting a flame war, I must counter that at my (very large) enterprise, we're divesting ourselves of Flash since target platforms cannot reuse our components (yeah, the iPad). Flash certainly still is popular, but given new canvas animation frameworks coming out every day making it WYSIWYG easy to make high fidelity animations, the case for Flash is easing, not to mention the high priced (though very powerful) IDEs and suites for working with Flash require.

Of course this won't happen over night, and Flash and Flex will have their niches, but the writing is on the wall for Flash/Flex/Silverlight and friends.



Sincerely,
Joseph

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

Re: CreateGWT is released

Believe it or not Flash still rocks the enterprise.
I know it for sure :)

2012/10/31 Joseph Lust <lifeoflust@gmail.com>
Thanks James! This is just what we're looking for to help with a current project where we need to move some old Flash assets over to canvas.

Who needs flash any more?



Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/mHVWXN7n1g4J.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

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

compile to display java code line number

What parameters should I use to compile in order to display java code line number when exception ?  Below is error showing on my firefox when exception

uncaught exception: Class$S244: Exception caught: 2 exceptions caught: (TypeError) 
 fileName: https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html
 lineNumber: 221: b.c is null; (TypeError) 
 fileName: https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html
 lineNumber: 227: b.c is null

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

Re: CreateGWT is released

Thanks James! This is just what we're looking for to help with a current project where we need to move some old Flash assets over to canvas.

Who needs flash any more?



Sincerely,
Joseph

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

Re: Cross field validation on client

Haven't tried it yet but as GWT BeanValidation has implemented the JSR303 TCK tests you should be able to create custom validation annotations and a corresponding validator.

That way you would end up having something like

@ValidPassword(repeat = "repeatPassword") //custom annotation that links to the repeat password field
String password;

@NotNull
String repeatPassword;

The validator for @ValidPassword would check against your password policies and also check the "repeatPassword" field. This should work on the server too.

-- J.



Am Dienstag, 30. Oktober 2012 12:43:57 UTC+1 schrieb Hans:
Hi,

I'm building a registration form with two password fields being validated on client side using GWT Validation framework.

Is there any constraint for doing so (validating a value against another field)? Or what's the best way to implement this (should work on server, too)?

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

Re: Cross field validation on client

Consider a framework like GWT Validation, or roll your own (example of Editor framework. Typically, it is up to you to validate your form fields. You can use Vaadin, GXT, or SmartGWT to do this for you, but then you have to accept the rest of those frameworks which is pretty heavy if you just want to ensure those passwords match and are non-null.

Using some onChange handlers it should be pretty simple to show inline warnings on password entry. While it is more work out the gate, I often find it easier to do my own validation than to have to been the validation I want to do to someone else's framework.


Sincerely,
Joseph

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