Hello,

The two code structure ensure that the javascript generated by GWT will be 
properly splitted ?

GWT.runAsync(new RunAsyncCallback() {
@Override
public void onFailure(Throwable reason) { 
 ...
}
@Override
public void onSuccess() {
 switch(value){
 case 0: ... ;break;
 case 1: ... ;break;
}

or

switch(value){

case 1:
GWT.runAsync(new RunAsyncCallback() {
 @Override
 public void onFailure(Throwable reason) { 
 ...
 }
 @Override
 public void onSuccess() {
 ...
 }
 break;
case 2:
GWT.runAsync(new RunAsyncCallback() {
 @Override
 public void onFailure(Throwable reason) { 
 ...
 }
 @Override
 public void onSuccess() {
 ...
 }
 break;
...
}

-- 
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit Contributors" group.
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to