Re: GWT Material - Video tutorial #1

2016-06-13 Thread Cristian Rinaldi
Great work!!! 
One question, with new version of JsInterop, you have intension of migrate 
all library to JsInterop, and all UiBinder and Widget, to HTML pure 
template and native Elements?

El viernes, 10 de junio de 2016, 5:00:53 (UTC-3), mark kevin ringor 
escribió:
>
> We've just released our gwt-material  first video tutorial - Project Setup 
> using gwt-material-archetype with Eclipse IDE and Intelij IDEA.
> Also during weeked we will do some shooting to provide the next tutorial 
> series.
>
> https://www.youtube.com/watch?v=sEVqfqDUOpE
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT vs AngularJS

2016-02-21 Thread Cristian Rinaldi

+Gilberto, excellent response!! 
+1  for this!

El viernes, 19 de febrero de 2016, 6:08:12 (UTC-3), Kirill Prazdnikov 
escribió:
>
> My 2 cents. 
> We write portable code.
> We build it for GWT, iOS, Android.
> GWT is a java compiler, a way to have portable logic.
> More portable logic, less code to maintain, less bugs.
>
> -Kirill
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Large no of gwt modules

2016-02-03 Thread Cristian Rinaldi
In a couple days, I will be uploading an example in my repo... and I'll 
update this post.
Greetings

El martes, 2 de febrero de 2016, 0:49:00 (UTC-3), Rajesh Gupta escribió:
>
> Hello Christian,
> Thanks for the reply
> Do you have a public facing website that is using this pattern.  I would 
> be curious to see, the performance and the UI experience.
> How about the history? Too many changes required for history handling?
>
> Regards
> Rajesh
>
> On Sunday, January 31, 2016 at 9:26:12 PM UTC+5:30, Cristian Rinaldi wrote:
>>
>> Rajesh, 
>>   I implemented a large GWT application using turducken pattern, I do not 
>> think that GWT need something specific to dynamically load modules, 
>> remember that a GWT app is just a JS file, and can be externally charged by 
>> a component that is responsible for this, with the particular logic, 
>> according to your modular design and dependencies.
>>   You must have a cross event bus that can receive and send messages, 
>> then, every module, GWT or not, can translate addressing scheme, for 
>> example, Activities and Places in a GWT module.
>>   In each module, you can use code splitting, to increase efficiency.
>>
>> I hope help with this.
>>
>> Greetings..!!
>>
>>
>> El miércoles, 27 de enero de 2016, 6:19:29 (UTC-3), Rajesh Gupta escribió:
>>>
>>> We have large no of gwt modules.
>>>
>>> Code splitting is not option for large no of GWT modules.  See the 
>>> issues as clearly explained in turducken pattern.
>>>
>>> http://www.slideshare.net/RobertKeane1/turducken-divide-and-conquer-large-gwt-apps-with-multiple-teams
>>>
>>> Will 2.8 release or 3.0 release fix the full page refresh problem.  Will 
>>> it have feature to use GWT modules with out full page refresh.
>>> Will 2.8/3.0 have features to dynamically load/unload gwt modules.   
>>>
>>> -Rajesh
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Large no of gwt modules

2016-01-31 Thread Cristian Rinaldi
Rajesh, 
  I implemented a large GWT application using turducken pattern, I do not 
think that GWT need something specific to dynamically load modules, 
remember that a GWT app is just a JS file, and can be externally charged by 
a component that is responsible for this, with the particular logic, 
according to your modular design and dependencies.
  You must have a cross event bus that can receive and send messages, then, 
every module, GWT or not, can translate addressing scheme, for example, 
Activities and Places in a GWT module.
  In each module, you can use code splitting, to increase efficiency.

I hope help with this.

Greetings..!!


El miércoles, 27 de enero de 2016, 6:19:29 (UTC-3), Rajesh Gupta escribió:
>
> We have large no of gwt modules.
>
> Code splitting is not option for large no of GWT modules.  See the issues 
> as clearly explained in turducken pattern.
>
> http://www.slideshare.net/RobertKeane1/turducken-divide-and-conquer-large-gwt-apps-with-multiple-teams
>
> Will 2.8 release or 3.0 release fix the full page refresh problem.  Will 
> it have feature to use GWT modules with out full page refresh.
> Will 2.8/3.0 have features to dynamically load/unload gwt modules.   
>
> -Rajesh
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: JSInterop sample / tutorial?

2015-11-25 Thread Cristian Rinaldi
You can see this projects:
  https://github.com/workingflows/gwt-jscore (branch): NewJsInterop have 
support for new annotations. 
  https://github.com/workingflows/gwt-jquery 

  https://github.com/workingflows/gwt-playground 


  

El martes, 27 de enero de 2015, 18:30:55 (UTC-3), marian lux escribió:
>
> Is there a working JSInterop sample (e.g. project on github) online or an 
> article how to get started? It is part of the current gwt 2.7 release but I 
> could not find a working project or article. It would be nice if the 
> gwtproject.org site will contain any tutorial / article too.
>
> E.g. I found some google group entries about JSInterop and this project:
> https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
> But the maven does not work any more and the google group entries don't 
> describe a how-to.
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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: JsInterop - Collection of native Interfaces

2015-11-09 Thread Cristian Rinaldi
David:
   Most of the native code(JSNI), I used to object instantiation, now, in 
this change I eliminated almost all code except some constructors.
   I changed a lot of the Promise.
   And I uploaded a test project called gwt-playground 
.

El domingo, 8 de noviembre de 2015, 20:52:05 (UTC-3), David Preindl 
escribió:
>
> Hi!
>
> I'm currently playing around with new JsInterop system (based on current 
> GWT 2.8.0-SNAPSHOT) and one thing I really missed was a collection of 
> JsInterop interfaces - so I started to create my own. The current state 
> (which is VERY limited and not even fully tested) can be found on github - 
> https://github.com/dpreindl/gwt-jsinterop-library. Nevertheless my idea 
> is to keep the library growing as more features are needed.
> If you may already have more experience and see potential problems, have 
> better ideas or just want to contribute - feel free to contact me!
>
> There also exists a *sample-project* in the repository which integrates a 
> custom element (based on Polymer). Of course also this is mainly for 
> testing purpose ...
>
> Kind regards,
> david
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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: JsInterop - Collection of native Interfaces

2015-11-08 Thread Cristian Rinaldi
Hello David:
  I am working on the same thing.
Some time ago, I went to GitHub project, 
 and now I have given support 
to the last update of annotations.
I think that all these projects have the end what will Elemental 2.0, but 
for now, are the projects that move us forward.
You can look some things to see if that's right.

Regards.

El domingo, 8 de noviembre de 2015, 20:52:05 (UTC-3), David Preindl 
escribió:
>
> Hi!
>
> I'm currently playing around with new JsInterop system (based on current 
> GWT 2.8.0-SNAPSHOT) and one thing I really missed was a collection of 
> JsInterop interfaces - so I started to create my own. The current state 
> (which is VERY limited and not even fully tested) can be found on github - 
> https://github.com/dpreindl/gwt-jsinterop-library. Nevertheless my idea 
> is to keep the library growing as more features are needed.
> If you may already have more experience and see potential problems, have 
> better ideas or just want to contribute - feel free to contact me!
>
> There also exists a *sample-project* in the repository which integrates a 
> custom element (based on Polymer). Of course also this is mainly for 
> testing purpose ...
>
> Kind regards,
> david
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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.


JsInterop compile error

2015-11-07 Thread Cristian Rinaldi
Hello community:

I'm using GWT 2.8-SNAPSHOT and new annotations JsInterop.
I have a very simple class, but gives the error in compilation time.

@JsType(isNative = true, name = "Object", namespace = JsPackage.GLOBAL)
public class JsObject {

public static native List getOwnPropertyNames(Object obj);

}

public class gwt_sample implements EntryPoint {

@Override
public void onModuleLoad() {
JsObject.getOwnPropertyNames(new String());
}
}

 Compiling 1 permutation
[INFO] Compiling permutation 0...
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error 
during visit.
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.
java:111)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer.transform(JTransformer.
java:1056)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.emitStaticMethods(
GenerateJavaScriptAST.java:1751)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformDeclaredType(
GenerateJavaScriptAST.java:639)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformDeclaredType(
GenerateJavaScriptAST.java:514)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer.transformClassType(
JTransformer.java:95)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer$JRewriterVisitor.visit(
JTransformer.java:670)
[INFO] at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:140
)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer.transform(JTransformer.
java:1056)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformProgram(
GenerateJavaScriptAST.java:1202)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformProgram(
GenerateJavaScriptAST.java:514)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer$JRewriterVisitor.visit(
JTransformer.java:918)
[INFO] at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1252)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer.transform(JTransformer.
java:1056)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.execImpl(
GenerateJavaScriptAST.java:3001)
[INFO] at com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(
GenerateJavaScriptAST.java:2782)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation
(JavaToJavaScriptCompiler.java:377)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation
(JavaToJavaScriptCompiler.java:272)
[INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
[INFO] at com.google.gwt.dev.
ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(
ThreadedPermutationWorkerFactory.java:50)
[INFO] at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.
run(PermutationWorkerFactory.java:74)
[INFO] at java.lang.Thread.run(Thread.java:745)
[INFO] Caused by: java.lang.NullPointerException
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformMethod(
GenerateJavaScriptAST.java:788)
[INFO] at com.google.gwt.dev.jjs.impl.
GenerateJavaScriptAST$GenerateJavaScriptTransformer.transformMethod(
GenerateJavaScriptAST.java:514)
[INFO] at com.google.gwt.dev.jjs.ast.JTransformer$JRewriterVisitor.visit(
JTransformer.java:823)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:715)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] ... 26 more
[INFO][ERROR] at JsObject.java(19): com.logikas.gwt.sample.
client.JsObject.getOwnPropertyNames(Ljava/lang/Object;)Ljava/util/List;
[INFO]   com.google.gwt.dev.jjs.ast.JMethod
[INFO][ERROR] at JsObject.java(17): com.logikas.gwt.sample.
client.JsObject (extends Object)
[INFO]   com.google.gwt.dev.jjs.ast.JClassType
[INFO][ERROR] at Unknown(0): 
[INFO]   com.google.gwt.dev.jjs.ast.JProgram
[INFO] [ERROR] Unrecoverable exception, shutting down
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log 
entries)
[INFO] at com.google.gwt.dev.javac.CompilationProblemReporter.
logAndTranslateException(CompilationProblemReporter.java:106)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation
(JavaToJavaScriptCompiler.java:459)
[INFO] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation
(JavaToJavaScript

Template Engine?

2015-10-07 Thread Cristian Rinaldi
Hello:

Were there any plans on working with templates (not UiBinder), templates 
related how angular or aurelia work.
I think it would be desirable to have such a project, because it is closer 
to how it works naturally with HTML today, too, I believe that using 
JsInterop would not be difficult to make the databinding using 
Object.observe

Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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.


JsInterop callback function with parameters

2015-09-24 Thread Cristian Rinaldi
Hey:
  
   I'm using JsInterop to map some JS APIs.
What is the best way to map a callback to receive multiple parameters?

For example, a jQuery click handler: function (event, params)

Java could be:
  Function (Event, Object []), but then is complicated to manipulate the 
"Object []", there is a more direct way?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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: Magical "js" function

2015-09-17 Thread Cristian Rinaldi
It is not implemented yet, I have not seen in the master branch.

Cristian.,

El jueves, 17 de septiembre de 2015, 17:22:36 (UTC-3), Laser Jim escribió:
>
> Hey,
>
> I'm LOVING js interop.  I actually abandoned GWT a couple years ago in 
> favor of another architecture, but with jsinterop, I'm willing to come back.
>
> I've been using @JsType and friends, but I can't seem to find the "js()" 
> function.  I know a few months ago, it wasn't yet implemented, but I'm 
> wondering if there are any updates on this and/or if there is a tracking 
> bug I can reference rather than posting in this group.
>
> Thanks,
> Jim
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@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: JSInterop sample / tutorial?

2015-06-08 Thread Cristian Rinaldi
Estimated
   I have the outdated projects these days will change the versions and 
write a tutorial.

El martes, 27 de enero de 2015, 18:30:55 (UTC-3), marian lux escribió:
>
> Is there a working JSInterop sample (e.g. project on github) online or an 
> article how to get started? It is part of the current gwt 2.7 release but I 
> could not find a working project or article. It would be nice if the 
> gwtproject.org site will contain any tutorial / article too.
>
> E.g. I found some google group entries about JSInterop and this project:
> https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
> But the maven does not work any more and the google group entries don't 
> describe a how-to.
>
>

-- 
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+unsubscr...@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: webidl, jsinterop and overloaded methods

2014-12-16 Thread Cristian Rinaldi
rhmoller:
  You can see in this thread 
a
 
discussion of method overloading, and the proposed support for next release 
of GWT.

El viernes, 12 de diciembre de 2014 19:00:15 UTC-3, rhmoller escribió:
>
> Hi
>
> I am toying around with generating Java interfaces annotated with @JsType 
> and @JsProperty from webidl. But I have a problem with overloaded methods.
>
> For example: The idl for CanvasRenderingContext2 has several overloaded 
> methods
>
> fx
>
>   void stroke();
>   void stroke(Path2D path);
>
> and
>
>   ImageData createImageData(double sw, double sh);
>   ImageData createImageData(ImageData imagedata);
>
> I can generate a corresponding Java interface with the overloaded methods, 
> but the GWT compiler fails with this
>
> Error:(75, 0) GWT Compiler: JsType methods cannot overload another method.
>
> I know JS does not support function overloading as such, but on the other 
> hand, you can pass anything to a js function regardless of the specified 
> parameters.
>
> Do you have any ideas for how I can resolve these issues?
>
> /Rene
>

-- 
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+unsubscr...@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: Insights on GWT Usage

2014-11-04 Thread Cristian Rinaldi
Nice @Joseph Lust!!!
Thanks for sharing 

El martes, 4 de noviembre de 2014 21:17:55 UTC-3, David escribió:
>
>
> Nice information. So I can use it to advice my boss to choose GWT for next 
> big project.
>
> On Wednesday, November 5, 2014 12:36:14 AM UTC+8, Joseph Lust wrote:
>>
>> I thought that Ray's reply on HN might interest folks. Some nice details 
>> about Google's use of GWT.
>> https://news.ycombinator.com/item?id=8552434
>>
>> -Joe
>>
>

-- 
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+unsubscr...@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: master/3.0.0 js interop ready to play with?

2014-10-04 Thread Cristian Rinaldi
+Goktug Gokdogan, said to me, in another thread 
<https://groups.google.com/forum/?hl=es-419#!topic/google-web-toolkit-contributors/5KPvCafVD5Q>
 
about something similar,
Here the extract:

*"For single-abstract-method classes (SAM) without @JsType (or perhaps only 
the SAMs marked with Java8 @Functional), we are planning to do an auto 
conversion into real javascript function so that you can directly do this:"*

@Functional
public interface PromiseFn {
void f(Resolve resolve, Rejected rejected);
}

final Promise p3 = Browser.newPromise(new PromiseFn() { . . . }

@Functional need Java 8 support.

Greetings!!!


El miércoles, 1 de octubre de 2014 10:06:49 UTC-3, James Horsley escribió:
>
> I'm also interested in Cristian's second question about using callback 
> functions. Is this supposed to "just work" with the current master or is 
> Cristian's EventListenerFactory workaround the best bet for now?
>
> Cheers,
> James
>
> On Monday, August 11, 2014 7:17:32 PM UTC+1, Cristian Rinaldi wrote:
>>
>> I was playing with JsInterop and perform several examples 
>>DataTables Plugin of JQuery (import) 
>>Polymer (Path Observer, Object Observer), etc...
>>
>> Here my exmaples:
>>https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground
>>
>> But I 2 question about JsInterop:
>>
>> The first question with JsInterop is about the import methodology, when I 
>> define a interface that maps with a JS core Element, by example: Object or 
>> JSON, I not sure the best form for maps the static method of the Object, by 
>> example Object.observe(...), or JSON.stringify().
>>
>> My understanding of JsInterop is that one defines an interface, which is 
>> implemented by the compiler. 
>> And the allocation for now is through a factory in JSNI, talking to 
>> correlate Object for example, for Polymer ObjectObserver:
>>
>> public static native  ObjectObserver 
>> createObjectObserver(T obj)/*-{
>>  return new $wnd.ObjectObserver(obj);
>> }-*/;
>>
>>
>> But the asignations is a instance of Object, and the observe() method is 
>> a static method.
>>
>> How to is the best form of map this case?
>>
>> The second question is about function callback passed to the Javascript 
>> method
>>
>> button.addEventListener("click", function(event){
>> console.log(event);
>> });
>>
>> The way I found to the compiler to generate things correctly was:
>>
>> button.addEventListener("click", EventListenerFactory.createEventListener
>> (new EventListener() {
>>  @Override
>>  public void onEvent(JsObject event) {
>>//TODO
>>  }
>> }));
>>
>> where:
>>
>> public class EventListenerFactory {
>> public static native gwt_sample.EventListener createEventListener(
>> EventListener listener)/*-{
>>  return function(evt){
>>  listener.onEvent(evt);
>>  }
>>  }-*/;
>> }
>>
>> and:
>>
>> @JsType
>> public interface EventListener {
>> void onEvent(E event);
>> }
>>
>> Thanks!!
>>
>>
>> El lunes, 11 de agosto de 2014 09:03:00 UTC-3, salk31 escribió:
>>>
>>> Thanks. I have great hopes for this stuff ;)
>>>
>>>>
>>>>

-- 
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+unsubscr...@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: JsInterop advance?

2014-08-20 Thread Cristian Rinaldi
Hello Jens:

 I have just searched in GWT test and code, and talks of +Goktug Gokdogan 
in GWT.create event.

El miércoles, 20 de agosto de 2014 11:52:52 UTC-3, Jens escribió:
>
> Interesting. I also have a promise library that maps to ES6 native 
> promises but I am still using normal JSNI to do so. Would be nice to see 
> how this could work with JsInterop. Is there any documentation about 
> JsInterop yet or do you just try around by looking at GWT tests?
>
>
> -- 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+unsubscr...@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.


JsInterop advance?

2014-08-20 Thread Cristian Rinaldi
Community: 
 I'm playing with JsInterop , and I have two questions: 

 1) Are you planning to try the static methods of JS objects, such as 
Object, Promise, etc.? 
 2) How do when an instance is mapped to an existing Object, eg 
Promise, has a constructor with parameters? 
  
Currently to resolve this 1) I created the following class Factory: JS 


But the interfaces define a contract at the level instance of a class 
or object, this way of doing things, I do not know if it is semantically 
correct. 

   To solve 2) there are not many options: 

 Create a Factory that returns an instance of the object, because it 
has no meaning, only to make the new, implement the interface, because the 
compiler already does. 
 There is some progress in this? 

 I saw in one of the post a proposal to do something like this: 
 
 Promise Promise.Prototype p = new (new Function ., new Function 
);

Where Promise, is the interface defined with prototype = "Promise". 

@JsType(isNative = true, prototype = "Promise")
public interface Promise {
   
  void then(Function f);

  void cath(Function f);
  }

Here 'access to jsCore project: 
  
https://github.com/workingflows/gwt-jscore/

I hope the answers ... 

greetings

-- 
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+unsubscr...@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: master/3.0.0 js interop ready to play with?

2014-08-13 Thread Cristian Rinaldi
The GWT maven plugin version 2.6.1 does not support JsInterop, so I made a 
fork of the project and gave support, default is "JS". 
If you want to change, set 

 NONE | JS | CLOSURE 

https://github.com/csrinaldi/gwt-maven-plugin

El martes, 12 de agosto de 2014 17:23:00 UTC-3, salk31 escribió:
>
>  Ahhh. I didn't know I needed "-XjsInteropMode JS"  up and running now. I 
> also didn't know 2.7.0-SNAPSHOT was available
>
>>


-- 
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+unsubscr...@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: master/3.0.0 js interop ready to play with?

2014-08-11 Thread Cristian Rinaldi
I was playing with JsInterop and perform several examples 
   DataTables Plugin of JQuery (import) 
   Polymer (Path Observer, Object Observer), etc...

Here my exmaples:
   https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground

But I 2 question about JsInterop:

The first question with JsInterop is about the import methodology, when I 
define a interface that maps with a JS core Element, by example: Object or 
JSON, I not sure the best form for maps the static method of the Object, by 
example Object.observe(...), or JSON.stringify().

My understanding of JsInterop is that one defines an interface, which is 
implemented by the compiler. 
And the allocation for now is through a factory in JSNI, talking to 
correlate Object for example, for Polymer ObjectObserver:

public static native  ObjectObserver 
createObjectObserver(T obj)/*-{
 return new $wnd.ObjectObserver(obj);
}-*/;


But the asignations is a instance of Object, and the observe() method is a 
static method.

How to is the best form of map this case?

The second question is about function callback passed to the Javascript 
method

button.addEventListener("click", function(event){
console.log(event);
});

The way I found to the compiler to generate things correctly was:

button.addEventListener("click", EventListenerFactory.createEventListener(
new EventListener() {
 @Override
 public void onEvent(JsObject event) {
   //TODO
 }
}));

where:

public class EventListenerFactory {
public static native gwt_sample.EventListener createEventListener(
EventListener listener)/*-{
 return function(evt){
 listener.onEvent(evt);
 }
 }-*/;
}

and:

@JsType
public interface EventListener {
void onEvent(E event);
}

Thanks!!


El lunes, 11 de agosto de 2014 09:03:00 UTC-3, salk31 escribió:
>
> Thanks. I have great hopes for this stuff ;)
>
>>
>>

-- 
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+unsubscr...@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: Can we use multiple mvp using single Entry point.

2014-08-07 Thread Cristian Rinaldi
This is not correct, commonDisplay is a container. 
The last mapper to resolve the activity will overwrite the container by 
inserting their view. 

If you want two areas, it is the fact of wanting to respond to the same 
state (place) with different behavioral alternatives (Presenter /View).


El miércoles, 6 de agosto de 2014 07:06:22 UTC-3, Naveen escribió:
>
> Thanks for your reply. 
>
> In my case , display content place should be same for all activity 
> manager. Based on place activity manager should load.  
> Ex :
>
> ActivityManager module1ActivityManager = new 
> ActivityManager(1stModuleActivityMapper, 
> eventBus);module1ActivityManager.setDisplay(commonDisplay);
> ActivityManager module2ActivityManager1 = new 
> ActivityManager(2ndModuleActivityMapper, eventBus);
> module2ActivityManager1 .setDisplay(commonDisplay);
>
>
> On Wednesday, August 6, 2014 11:58:38 AM UTC+5:30, Naveen wrote:
>>
>> Can we use multiple mvp using single Entry point.(multiple activity 
>> mapper and multiple activity manager for single Entry point.)
>>
>

-- 
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+unsubscr...@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: JsInterop and EventListener

2014-07-23 Thread Cristian Rinaldi
I resolve this problem, 
If not an elegant solution, maybe the compiler should do it automatically, 
but the most instructed to answer this question is +RayCromwell
My solution was to make a small JSNI functions that return the object 
generated by JsType getting the same object as a parameter. 

Here's an example:

@JsType(prototype = "HTMLElement")
public interface HTMLElement extends Element {
  public void setAttribute(String align, String center);
  public void appendChild(HTMLElement element);
  public void addEventListener(String event, EventListener handler);

  @JsProperty
  public void setInnerHTML(String text);

  @JsProperty
  public void setInnerText(String text);
}

@JsType
public interface EventListener {
   void onEvent(E event);
}

public static native EventListener eventListener(EventListener handler) /*-{
 return function(evt){
 handler.onEvent(evt);
 }
}-*/;

@Override
public void onModuleLoad() {
  Document doc = getDocument();

  HTMLElement button = doc.createElement("button");
  HTMLBodyElement body = bodyElement();


  final Person person = new Person();
  PathObserver observer = PathObserverFactory.createObserver(person, "name"
);
  input.bind("value", observer);


  PathObserver observer1 = PathObserverFactory.createObserver(person, "name"
);
  observer1.open(eventListener(new OpenObserverListener() {
 @Override
 public void onOpen(String oldValue, String newValue) {
   window().getConsole().log(oldValue);
 }
   }));
   person.setName("Cristian");

   button.setInnerText("UPDATE - See the console");


   button.addEventListener("click", eventListener(new EventListener() {
  @Override
  public void onEvent(JsObject event) {
window().getConsole().log(person);
  }
   }));
   .
   body.appendChild(button);
 }

The all code in my Github:

https://github.com/csrinaldi/samples-of-gwt/tree/master/gwt-playground

Thanks!!!

El miércoles, 23 de julio de 2014 10:54:42 UTC-3, Cristian Rinaldi escribió:
>
> I'm doing tests with JsInterop (JsType, JsExport, etc), and I encounter a 
> problem when adding a listener. 
>
> Part of my code:
>
> @JsType(prototype = "HTMLElement")
> public interface HTMLElement extends Element {
>public void setAttribute(String align, String center);
>public void appendChild(HTMLElement element);
>public void addEventListener(String event, EventListener JsObject> handler);
>@JsProperty
>public void setInnerHTML(String text);
>@JsProperty
>public void setInnerText(String text);
> }
>
> HTMLElement button = doc.createElement("button");
> HTMLBodyElement body = bodyElement();
>
> button.setInnerText("UPDATE - See the console");
>
> button.addEventListener("click", new EventListener() {
> @Override
> public void onEvent(JsObject event) {
> window().getConsole().log(event);
> }
> });
>
> The handler is never executed...
>
> The code generated for copiler is:
>
> _.onModuleLoad = function() {
>   var body_0, button, div, input_0, observer, p, person;
>   body_0 = $wnd.document;
>   div = body_0.createElement("DIV");
>   p = body_0.createElement("P");
>   input_0 = body_0.createElement("input");
>   button = body_0.createElement("button");
>   body_0 = $wnd.document.body;
>   person = new clgscm$Person;
>   observer = new $wnd.PathObserver(person, "name");
>   input_0.bind("value", observer);
>   (new $wnd.PathObserver(person, "name")).open(new clgsc$gwt_sample$01(
> this));
>   person.name = "Cristian";
>   person.name = "Cristiaa";
>   button.innerText = "UPDATE - See the console";
> *  button.addEventListener("click", new clgsc$gwt_sample$02(this));*
>   $wnd.console.log("%cWelcome to JSInterop!%c", initValues(
> jl$getClassLiteralForArray_0(cggl$Ljava_lang_String_2_classLit, 1),
>  $intern_2, 2, 4, ["font-size:1.5em;color:#4558c9;", 
> "color:#d61a7f;font-size:1em;"]));
>   div.appendChild(p);
>   div.appendChild(input_0);
>   body_0.appendChild(div);
>   body_0.appendChild(button);
> };
> .
> .
> createForClass(62, cggl$Ljava_lang_Object_2_classLit);
> *function clgsc$gwt_sample$02(this$0) {*
> *  this.this$01 = this$0;*
> *  jl$$0init__V__devirtual$0(this);*
> *}*
>
>
> ---
>
>
> The generated code should be 
>
> button.addEventListener("click", function(e){...});
>
> I think so ... :)
>
> Any Idea?
> 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+unsubscr...@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.


JsInterop and EventListener

2014-07-23 Thread Cristian Rinaldi
I'm doing tests with JsInterop (JsType, JsExport, etc), and I encounter a 
problem when adding a listener. 

Part of my code:

@JsType(prototype = "HTMLElement")
public interface HTMLElement extends Element {
   public void setAttribute(String align, String center);
   public void appendChild(HTMLElement element);
   public void addEventListener(String event, EventListener handler);
   @JsProperty
   public void setInnerHTML(String text);
   @JsProperty
   public void setInnerText(String text);
}

HTMLElement button = doc.createElement("button");
HTMLBodyElement body = bodyElement();

button.setInnerText("UPDATE - See the console");

button.addEventListener("click", new EventListener() {
@Override
public void onEvent(JsObject event) {
window().getConsole().log(event);
}
});

The handler is never executed...

The code generated for copiler is:

_.onModuleLoad = function() {
  var body_0, button, div, input_0, observer, p, person;
  body_0 = $wnd.document;
  div = body_0.createElement("DIV");
  p = body_0.createElement("P");
  input_0 = body_0.createElement("input");
  button = body_0.createElement("button");
  body_0 = $wnd.document.body;
  person = new clgscm$Person;
  observer = new $wnd.PathObserver(person, "name");
  input_0.bind("value", observer);
  (new $wnd.PathObserver(person, "name")).open(new clgsc$gwt_sample$01(this
));
  person.name = "Cristian";
  person.name = "Cristiaa";
  button.innerText = "UPDATE - See the console";
*  button.addEventListener("click", new clgsc$gwt_sample$02(this));*
  $wnd.console.log("%cWelcome to JSInterop!%c", initValues(
jl$getClassLiteralForArray_0(cggl$Ljava_lang_String_2_classLit, 1),
 $intern_2, 2, 4, ["font-size:1.5em;color:#4558c9;", 
"color:#d61a7f;font-size:1em;"]));
  div.appendChild(p);
  div.appendChild(input_0);
  body_0.appendChild(div);
  body_0.appendChild(button);
};
.
.
createForClass(62, cggl$Ljava_lang_Object_2_classLit);
*function clgsc$gwt_sample$02(this$0) {*
*  this.this$01 = this$0;*
*  jl$$0init__V__devirtual$0(this);*
*}*

---


The generated code should be 

button.addEventListener("click", function(e){...});

I think so ... :)

Any Idea?
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+unsubscr...@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 JS Interopt

2014-07-23 Thread Cristian Rinaldi
HTMLElement implementation is done by the GWT compiler, so the code you say 
I would not know how to incorporate it. 

For example, I am using Polymer PathObserver:

public interface OpenObserverListener {
  void onOpen(String oldValue, String newValue);
}




@JsType(prototype = "PathObserver")
public interface PathObserver {
  void open(OpenObserverListener handler);
}




PathObserver observer1 = PathObserverFactory.createObserver(person, "name");
observer1.open(new OpenObserverListener() {
  @Override
  public void onOpen(String oldValue, String newValue) {
window().getConsole().log(oldValue);
window().getConsole().log(newValue);

  }
});


And I have the same problem, 
sorry if I have not understood what you have told me. 

Any idea?

Thanks.

El miércoles, 23 de julio de 2014 05:56:19 UTC-3, 田传武 escribió:
>
> See the Live Playground <http://realtimeplayground.goodow.com/bus.html> and 
> the generated js library 
> <https://github.com/goodow/bower-realtime-channel>.
> What does the trick is:
>
> https://github.com/goodow/realtime-channel/blob/master/src/main/java/com/goodow/realtime/html/HtmlScheduler.java#L46-L52
>
>
> On Wed, Jul 23, 2014 at 10:28 AM, Cristian Rinaldi  > wrote:
>
>> I have the same problem with addEventListener, the generated code is not 
>> exactly as you mention: 
>>
>> This is my code:
>>
>> public interface EventListener {
>> void onEvent(E event);
>> }
>>
>> @JsType(prototype = "HTMLElement")
>> public interface HTMLElement extends Element {
>>
>> public void setAttribute(String align, String center);
>>
>> public void appendChild(HTMLElement element);
>>
>> public void addEventListener(String event, EventListener> extends JsObject> handler);
>>
>> @JsProperty
>> public void setInnerHTML(String text);
>>
>> @JsProperty
>> public void setInnerText(String text);
>> }
>>
>> .
>> HTMLElement button = doc.createElement("button");
>> .
>> .
>> button.setInnerText("UPDATE - See the console");
>>
>> button.addEventListener("click", new EventListener() {
>> @Override
>> public void onEvent(JsObject event) {
>> window().getConsole().log(event);
>> }
>> });
>>
>> 
>> 
>> 
>> body.appendChild(button);
>> .
>> 
>>
>> This is the generated code:
>>
>>  _.onModuleLoad = function() {
>>   var body_0, button, div, input_0, observer, p, person;
>>   body_0 = $wnd.document;
>>   div = body_0.createElement("DIV");
>>   p = body_0.createElement("P");
>>   input_0 = body_0.createElement("input");
>>   button = body_0.createElement("button");
>>   body_0 = $wnd.document.body;
>>   person = new clgscm$Person;
>>   observer = new $wnd.PathObserver(person, "name");
>>   input_0.bind("value", observer);
>>   person.name = "Cristian";
>>   button.innerText = "UPDATE - See the console";
>> *  button.addEventListener("click", new clgsc$gwt_sample$01(this));*
>>   $wnd.console.log("%cWelcome to JSInterop!%c", 
>> initValues(jl$getClassLiteralForArray_0(cggl$Ljava_lang_String_2_classLit, 
>> 1), $intern_2, 2, 4, ["font-size:1.5em;color:#4558c9;", 
>> "color:#d61a7f;font-size:1em;"]));
>>   div.appendChild(p);
>>   div.appendChild(input_0);
>>   body_0.appendChild(div);
>>   body_0.appendChild(button);
>> };
>>
>> createForClass(61, cggl$Ljava_lang_Object_2_classLit);
>> *function clgsc$gwt_sample$01(this$0) {*
>> *  this.this$01 = this$0;*
>> *  jl$$0init__V__devirtual$0(this);*
>> *}*
>>
>> Any Suggestion?
>>
>> Thanks!!!
>>
>>
>> El martes, 22 de julio de 2014 07:16:06 UTC-3, 田传武 escribió:
>>>
>>> Yes, i didn't use addEventListener. But i has a similar usage:
>>> Java
>>> Bus.subscribe(String topic, Handler handler); 
>>> <https://github.com/goodow/realtime-channel/blob/master/src/main/java/com/goodow/realtime/channel/Bus.java#L108>
>>> translated to js
>>>
>>> bus.subscribe("some/topic", function(message) {
>>>   var body = message.body();
>>>   console.log("Name: " + body.name);});
>>>
>>>
>>>
&g

Re: GWT JS Interopt

2014-07-22 Thread Cristian Rinaldi
I have the same problem with addEventListener, the generated code is not 
exactly as you mention: 

This is my code:

public interface EventListener {
void onEvent(E event);
}

@JsType(prototype = "HTMLElement")
public interface HTMLElement extends Element {

public void setAttribute(String align, String center);

public void appendChild(HTMLElement element);

public void addEventListener(String event, EventListener handler);

@JsProperty
public void setInnerHTML(String text);

@JsProperty
public void setInnerText(String text);
}

.
HTMLElement button = doc.createElement("button");
.
.
button.setInnerText("UPDATE - See the console");

button.addEventListener("click", new EventListener() {
@Override
public void onEvent(JsObject event) {
window().getConsole().log(event);
}
});




body.appendChild(button);
.


This is the generated code:

 _.onModuleLoad = function() {
  var body_0, button, div, input_0, observer, p, person;
  body_0 = $wnd.document;
  div = body_0.createElement("DIV");
  p = body_0.createElement("P");
  input_0 = body_0.createElement("input");
  button = body_0.createElement("button");
  body_0 = $wnd.document.body;
  person = new clgscm$Person;
  observer = new $wnd.PathObserver(person, "name");
  input_0.bind("value", observer);
  person.name = "Cristian";
  button.innerText = "UPDATE - See the console";
*  button.addEventListener("click", new clgsc$gwt_sample$01(this));*
  $wnd.console.log("%cWelcome to JSInterop!%c", 
initValues(jl$getClassLiteralForArray_0(cggl$Ljava_lang_String_2_classLit, 
1), $intern_2, 2, 4, ["font-size:1.5em;color:#4558c9;", 
"color:#d61a7f;font-size:1em;"]));
  div.appendChild(p);
  div.appendChild(input_0);
  body_0.appendChild(div);
  body_0.appendChild(button);
};

createForClass(61, cggl$Ljava_lang_Object_2_classLit);
*function clgsc$gwt_sample$01(this$0) {*
*  this.this$01 = this$0;*
*  jl$$0init__V__devirtual$0(this);*
*}*

Any Suggestion?

Thanks!!!


El martes, 22 de julio de 2014 07:16:06 UTC-3, 田传武 escribió:
>
> Yes, i didn't use addEventListener. But i has a similar usage:
> Java
> Bus.subscribe(String topic, Handler handler); 
> 
> translated to js
>
> bus.subscribe("some/topic", function(message) {
>   var body = message.body();
>   console.log("Name: " + body.name);});
>
>
>
>
> On Tue, Jul 22, 2014 at 5:41 PM, Henrik > 
> wrote:
>
>> A bonus issue, I saw you did not use addEventListener like the demo does, 
 and I really struggled to make it work.  The generated javascript looks 
 like "addEventListener('click', new xxx(this))" which doesn't work (the 
 key 
 thing here being "new" I'd guess).  I found no other way to call it 
 directly and eventually resorted to doing it from a jsni function instead:
  public static native void jsAddEventListener(Element elem, 
 String event, EventListener listener) /*-{
 elem.addEventListener(event, function(ev) { listener.onEvent(ev); });
 }-*/;

>>>
>>> Which demo uses addEventListener?
>>>
>>
>> https://www.youtube.com/watch?v=wFMD1GXR2Tg#t=190
>>
>>  -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-web-toolkit/fGIr4sRkz7s/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@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+unsubscr...@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: Anyone work on the AOP for the GWT before?

2013-01-22 Thread Cristian Rinaldi
You can see Errai projects that implements aop.
e.g:

@Remote
public interface CustomerService {
*  @InterceptedCall(MyCacheInterceptor.class)*
  public Customer retrieveCustomerById(long id);
}

Greetings

*AUS. Cristian Rinaldi
Co-founder*
Mobile: (+54) 9 (342) 5 238 083
Email: cristian.rina...@logikas.com
Skype: csrinaldi
Site: www.logikas.com
Google Plus <https://plus.google.com/u/0/>
Logikas +Page <https://plus.google.com/u/0/b/114838406697164582224/>

__

[image: eco] No me imprimas si no es necesario. PROTEJAMOS EL MEDIO AMBIENTE

AVISO LEGAL:

Esta informacion es privada y confidencial y está dirigida únicamente a su
destinatario. Si usted no es el destinatario original de este mensaje y por
este medio pudo acceder a dicha información por favor elimine el mensaje.
La distribución o copia de este mensaje está estrictamente prohibida.
Excepto que se haya establecido de otra forma, esta comunicación es sólo
para propósitos de información y no debe ser considerada como propuesta,
aceptación ni como una declaración de voluntad oficial de Logikas
"Conectando Ideas" . La transmisión de e-mails no garantiza que el correo
electrónico sea seguro o libre de error. Por consiguiente, no manifestamos
que esta información sea completa o precisa. Toda información está sujeta a
alterarse sin previo aviso.



2013/1/21 Joey Ye 

> Hi guys,
>Spring AOP is good thing for you to do the log method without
> adding coding to you application.
>
>I want to use the Spring AOP for the GWT, but the AOP can not
> advise the my class (extends
> com.google.gwt.user.server.rpc.RemoteServiceServlet) methods.
>
>It seems like that GWT can not support the AOP?
>
>I saw some thridparty GWT framework - like the *Gwt*-tiny-*aop* 
> 
> , but I don't want to use those things.
>
>Does anyone have the experience on this? Thanks a lot.
> Thanks
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<>

Re: MVP with multiple EntryPoints

2012-11-12 Thread Cristian Rinaldi
Joseph, thanks a lot for your predisposition
Another question but no less important:

You are using injection of dependency in the projects, e.g: peaberry with 
Guice or Weld?

Greetings!!

-Cristian


El jueves, 8 de noviembre de 2012 22:53:39 UTC-3, Joseph Lust escribió:
>
> Christian,
>
> Sorry I missed your gchat the other day. Most gServices are blocked at my 
> office.
>
> Thanks a lot, it was an interesting answer. Beyond GWT, I'm curious about 
>> how are you managing dynamic ORM extensions, i.e. if you are using JPA, how 
>> are you merging domain classes from several OSGi bundles.
>
>
> We have a totally isolated model to deal with the domain objects. module_B 
> has its own Spring services running in the OSGi container that serves up 
> the dynamic content for module_B and uses its own schema and JNDI 
> connection pool. The static content (compiled GWT) for module_B is served 
> up by the aforementioned fragment attached to the module_B context. This 
> way module_B and module_A can be upgraded completely independently of each 
> other.
>
> Of course there are some objects which are shared in the GWT codebase 
> (DTO's). These are in a common library inherited by all the modules that 
> use it. Because we use Maven and versioning, we don't have to update all 
> consumers of the common library and can run multiple versions on multiple 
> modules.
>
> There are some shared services that multiple modules use, but these are 
> consumed via JSON and Autobean (have not tried RequestFactory yet) since 
> GWT-RPC is compile dependent for each module.
>
> I hope that helps.
>
> 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/-/_Am7ZwyGMQkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP with multiple EntryPoints

2012-11-08 Thread Cristian Rinaldi
Hi Joseph:

Thanks a lot, it was an interesting answer. Beyond GWT, I'm courious about 
how are you managing dinamyc ORM extensions, i.e. if you are using JPA, how 
are you merging domain classes from several OSGi bundles.

Best regards.

- Cristian

El miércoles, 12 de septiembre de 2012 15:30:37 UTC-3, Joseph Lust escribió:
>
> Christian,
>
> My team has spent the last month porting our large GWT application over to 
> OSGi. Allow me to share:
>
> We too need to load many GWT entry points and show a consolidated home 
> page showing the currently available modules. However, rather than using 
> Activities and Places to get the browser to see the modules, we dynamically 
> registered a new context on the OSGi native container. We also used the 
> module *rename-to* option to map com.longpkg.module.client.Module to 
> /module.
>
> A new GWT module is deployed as a service bundle (the backend Java) and 
> the GWT css/img/js as a fragment. When a new GWT module is deployed, the 
> service registers itself and also an ApplicationInfo object. The 
> ApplicationInfo object has information such as the context name, like *
> module_b*. This context is registered as a servlet to serve up the GWT 
> static content and the RPC servlets are registered below it (*
> /module_b/myRpcServlet*).
>
>
> Finally, the home page calls a servlet to get the list of current 
> registered modules by returning all registered ApplicationInfo objects and 
> draws them to the page. The OSGi beauty if of course that by turning 
> modules on/off, the links automatically appear/disappear from the home 
> page. And, if a user attempts a link to an unregistered context (i.e. 
> removed) then they just get forwarded back to the landing page.
>
>
>
> Sing out with any other OSGi GWT issues, I thought we were the only people 
> out there doing this. ;)
>
> 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/-/XCqFdNr41ZoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Indexed DB support

2012-09-20 Thread Cristian Rinaldi
1) I am using IndexedDB with Elemental API, but is implemented the 
old specification of IndexedDB and I can't find the way to assign the 
version, therefore, the VersionChange is never launched.

2) Try updating WebCore with all IDL, but when running the build script, 
the parser,  throws the following error.


Traceback (most recent call last):
  File ". / Scripts / elemental_fremontcutbuilder.py", line 217, in 
sys.exit (main ())
  File ". / Scripts / elemental_fremontcutbuilder.py", line 214, in main
build_database return (idl_files, database_dir)
  File ". / Scripts / elemental_fremontcutbuilder.py", line 139, in 
build_database
builder.import_idl_file (file_name, webkit_options)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / 
elementary / idl / scripts / databasebuilder.py", line 472, in 
import_idl_file
idl_file = self._load_idl_file (file_path, import_options)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / 
elementary / idl / scripts / databasebuilder.py", line 86, in _load_idl_file
raise RuntimeError ('Failed to load file% s:% s'% (file_name, e))
RuntimeError: Failed to load file 
./scripts/../third_party/WebCore/html/canvas/Uint8ClampedArray.idl: At line 
37 offset 28: Expected "(" or "]" or "," but "c" found " TypedArray = 
unsigned char "
Traceback (most recent call last):
  File ". / Scripts / elementaldomgenerator.py", line 164, in 
sys.exit (main ())
  File ". / Scripts / elementaldomgenerator.py", line 155, in main
database_dir, use_database_cache)
  File ". / Scripts / elementaldomgenerator.py", line 120, in GenerateDOM
systems = systems)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / 
elementary / idl / scripts / elementalgenerator.py", line 279, in Generate
self.PopulateMixinBase (self._database.GetInterface 
('ElementalMixinBase'), mixins)
  File "/ home / cristian / Logikas / Frameworks / gwt-source / trunk / 
elementary / idl / scripts / database.py", line 188, in GetInterface
raise RuntimeError ('Interface% s is not loaded'% interface_name)
RuntimeError: Interface is not loaded ElementalMixinBase

Any ideas about the two problems?


El domingo, 8 de julio de 2012 09:11:48 UTC-3, Jens escribió:
>
> You could use Elemental (GWT 2.5) I guess. Only downside could be that it 
> only works in Webkit browsers because of vendor prefixes. But maybe thats 
> your target browser anyway.
>
> -- J.
>

-- 
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/-/TdPUdo46fsEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP with multiple EntryPoints

2012-09-12 Thread Cristian Rinaldi
Andrei, thanks for response.
In our architecture we have a MainModule that manages all aspects from 
Layout visualization, e.g. to request for maximization in the central 
region, or to request for display another region in the general layout. 
Also defines common places that are used by other modules, e.g. 
ConfigurePlace, FindGloblaPlace. In that case, the main module reacts by 
setting the layout.

This MainModule define some handlers to response a request from the other 
modules (entry points) over localization in the Layout.
Our MainModule registers all modules in the aplication, exists modules that 
are entry points and others that are inside distribution (same 
compilation). The MainModule in itself is an module.

Your proposed solution is ok, but, the fact of reload pages for each link 
of module, disables the posibility to manage external Layout from a 
MainModule.
We want to make each module to have their own stack of places, 
placehistorymapper, placecontroller and placehistoryhandler, event 
MainModule. 

El miércoles, 12 de septiembre de 2012 09:26:00 UTC-3, Andrei escribió:
>
> Christian,
>
> I should have a mentioned a more obvious solution too.
>
> Don't use PlaceController for the side menu. Make it a widget that 
> contains links to places in your modules. You can include this widget in 
> each module. When a menu item is clicked, the entire page reloads. This way 
> browser history will work as expected.
>
> Andrei
>

-- 
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/-/H2tnNNbg3jUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP with multiple EntryPoints

2012-09-12 Thread Cristian Rinaldi
Hi Thomas, thanks for your clarifications. Our scenery is a server side 
OSGI application, where application modules are hot deployed and contains 
their own GWT views and EntryPoints. 
Our main client GWT application has a dynamic side menu, with hyperlinks 
pointing to tokens associated with the external EntryPoints having views 
rendered in a main region.



  SIDE MENU
  |
  V
  ---
  |  A1  |  |
  |--  |  |
  |  A2  |  |
  |--  |  |
  |  B1  |  |
  |--  |MAIN REGION|
  |  B2  |  |
  |--  |  |
  |  C1  |  |
  |--  |  |
  |  C2  |  |
  ---


What is the right approach to solve this kind of application?

Thanks in advance.

- Cristian Rinaldi
- Andres Testi

El miércoles, 12 de septiembre de 2012 05:49:41 UTC-3, Thomas Broyer 
escribió:
>
>
> On Wednesday, September 12, 2012 12:53:58 AM UTC+2, Cristian Rinaldi wrote:
>>
>> We have an application with multiple EntryPoints. Each EntryPoint 
>> contains an MVP configuration with their own PlaceHistoryHandler, 
>> PlaceHistoryMapper and PlaceController. Depending on the order that the 
>> history handlers were configured, the place treatment is overlapped. I 
>> think the problem is raised because the implementation of 
>> PlaceHistoryHandler invokes PlaceController.goTo(NOWHERE) when the 
>> PlaceHistoryMapper do not find the place, because this place is associated 
>> with the PlaceHistoryMapper of another EntryPoint. How I can solve this 
>> problem? It is right to use MVP with multiple EntryPoints?
>
>
> First, Places (and Activities) have nothing to do with MVP.
>
> To answer your question, I'd rather say it's not quite right to load 
> several distinct apps in a page that tweak the URL and react to its 
> changes, independently of the others. The thing is, the URL -as its name 
> says- represents some "location" (hence the name "place" in GWT), and if 
> you have several independent things on a page, there's no nothing like 
> *one* location for the whole thing. You could use a "complex" URL 
> containing the "state" of each subparts (e.g. 
> moduleA=a&moduleB=b&moduleC=c), but that would be suboptimal in terms of 
> user experience (back to the UX of frames, except with a bookmarkable URL).
>
> Let's imagine for a second that you make your apps work by "ignoring" 
> unknown places (that's what you were looking for right? avoiding the 
> goTo(NOWHERE) -or whatever is your default place actually- when 
> PlaceHistoryMapper doesn't understand the history token?).
>
>1. the app loads and displays A1, B1 and C1
>2. user navigates in each module:
>   1. A2, B1, C1 => URL is #A2
>   2. A2, B2, C1 => URL is #B2
>   3. A2, B2, C2 => URL is #C2
>3. user uses his browser's back button => URL is #B2; nothing changes 
>on screen, because module B is already at B2, and modules A and C ignore 
>the place
>
>

-- 
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/-/SARMjNog9JoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



MVP with multiple EntryPoints

2012-09-11 Thread Cristian Rinaldi
We have an application with multiple EntryPoints. Each EntryPoint contains 
an MVP configuration with their own PlaceHistoryHandler, PlaceHistoryMapper 
and PlaceController. Depending on the order that the history handlers were 
configured, the place treatment is overlapped. I think the problem is 
raised because the implementation of PlaceHistoryHandler invokes 
PlaceController.goTo(NOWHERE) when the PlaceHistoryMapper do not find the 
place, because this place is associated with the PlaceHistoryMapper of 
another EntryPoint. How I can solve this problem? It is right to use MVP 
with multiple EntryPoints?

Thanks in advance.

- Cristian

-- 
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/-/u831l5lMNiMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Parsing error after update WebCore Elemental

2012-08-28 Thread Cristian Rinaldi
I updated WebCore (third_party) from de Dart Project and when run build 
script the following error occurs:

Traceback (most recent call last):
  File "./scripts/elemental_fremontcutbuilder.py", line 217, in 
sys.exit(main())
  File "./scripts/elemental_fremontcutbuilder.py", line 214, in main
return build_database(idl_files, database_dir)
  File "./scripts/elemental_fremontcutbuilder.py", line 139, in 
build_database
builder.import_idl_file(file_name, webkit_options)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 474, in import_idl_file
idl_file = self._load_idl_file(file_path, import_options)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/databasebuilder.py", 
line 88, in _load_idl_file
raise RuntimeError('Failed to load file %s: %s' % (file_name, e))
RuntimeError: Failed to load file 
./scripts/../third_party/WebCore/html/canvas/Int8Array.idl: At line 37 
offset 26: Expected "]" or "(" or "," but "c" found: "   
 TypedArray=signed char"
Traceback (most recent call last):
  File "./scripts/elementaldomgenerator.py", line 164, in 
sys.exit(main())
  File "./scripts/elementaldomgenerator.py", line 155, in main
database_dir, use_database_cache)
  File "./scripts/elementaldomgenerator.py", line 120, in GenerateDOM
systems = systems)
  File 
"/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/elementalgenerator.py", 
line 279, in Generate

self.PopulateMixinBase(self._database.GetInterface('ElementalMixinBase'), 
mixins)
  File "/usr/local/frameworks/gwt/trunk/elemental/idl/scripts/database.py", 
line 188, in GetInterface
raise RuntimeError('Interface %s is not loaded' % interface_name)
RuntimeError: Interface ElementalMixinBase is not loaded

---
File /../third_party/WebCore/html/canvas/Int8Array.idl:

module html {
interface [
ConstructorTemplate=TypedArray,
ConstructorParameters=1,
NumericIndexedGetter,
CustomIndexedSetter,
JSGenerateToNativeObject,
JSNoStaticTables,
CustomToJSObject,
DoNotCheckConstants,
   * TypedArray=signed char*
] Int8Array : ArrayBufferView {
const unsigned long BYTES_PER_ELEMENT = 1;

readonly attribute unsigned long length;
Int8Array subarray(in [Optional=DefaultIsUndefined] long start,
   in [Optional] long end);

// void set(in Int8Array array, [Optional] in unsigned long offset);
// void set(in sequence array, [Optional] in unsigned long 
offset);
void set();
};
}

-- 
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/-/qaYWazWhwX8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: where is Elemental package?

2012-08-14 Thread Cristian Rinaldi
I have a problem with addEventListener with GWT 2.5-rc1
Also I found the following problem:
I wanted to test whether the problem was fixed in the trunk, but the Window
interface in the package elemental.html in the trunk, does not contain the
method newAudioContext(), this method is in version 2.5-rc1 gwt.
Any ideas?

A.U.S Cristian Rinaldi
Logikas - Conectando Ideas
www.logikas.com


2012/8/14 gong min 

> ah!yes. I found it now. Thanks.
>
>
> 2012/8/13 Thomas Broyer 
>
>> In the gwt-elemental.jar that comes with the GWT SDK (or the
>> gwt-elemental Maven artifact), 2.5-rc1 only.
>>
>> --
>> 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/-/o2vn67BWxPMJ.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Gong Min
> gongmin...@gmail.com
>
>  --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RequestFacory Validation issues

2012-08-08 Thread Cristian Rinaldi
Validation in the RequestFactory API is done only over Default group, and 
it is performed at the RF ServiceLayer level. It is not possible to map 
ConstraintViolationExceptions raised at the application level.
I have been analysing the SimpleRequestProcessor.process() method and I 
have concluded that it could be rewritten to support mapping of 
ConstraintViolationExceptions from the application level, and/or non 
default groups.
It is such feature in the GWT roadmap, or there is currently a way to solve 
this?

Regards.


-- 
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/-/UBmhtaIqx-cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Elemental Problem with Listner

2012-08-02 Thread Cristian Rinaldi
I have the same problem with addEventListener with GWT 2.5-rc1
Also I found the following problem:
I wanted to test whether the problem was fixed in the trunk, but the Window
interface in the package elemental.html in the trunk, does not contain the
method newAudioContext(), this method is in version 2.5-rc1 gwt.
Any ideas?

*AUS. Cristian Rinaldi
Co-founder*
Mobile: (+54) 9 (342) 5 238 083
Email: cristian.rina...@logikas.com
Skype: csrinaldi
Site: www.logikas.com
Google Plus <https://plus.google.com/u/0/>
Logikas +Page <https://plus.google.com/u/0/b/114838406697164582224/>

__

[image: eco] No me imprimas si no es necesario. PROTEJAMOS EL MEDIO AMBIENTE

AVISO LEGAL:

Esta informacion es privada y confidencial y está dirigida únicamente a su
destinatario. Si usted no es el destinatario original de este mensaje y por
este medio pudo acceder a dicha información por favor elimine el mensaje.
La distribución o copia de este mensaje está estrictamente prohibida.
Excepto que se haya establecido de otra forma, esta comunicación es sólo
para propósitos de información y no debe ser considerada como propuesta,
aceptación ni como una declaración de voluntad oficial de Logikas
"Conectando Ideas" . La transmisión de e-mails no garantiza que el correo
electrónico sea seguro o libre de error. Por consiguiente, no manifestamos
que esta información sea completa o precisa. Toda información está sujeta a
alterarse sin previo aviso.




2012/7/9 Allahbaksh 

> Hi,
> I am trying to run example from GWT Elemental sitehttp://
> tinyurl.com/7oo2jmv.
> I have made appropriate changes to compile the same
> (getWindow().setTimeout(new TimeoutHandler()  and xhr.setOnload and
> package name change for xml http request). The problem I face it is
> when I add a listner to any of the element it throws the exception.
> For example Below is the exception which I have got.
>
> In short when I add listner to any element I get a error which is put
> below.
> Is there any problem?
>
> Ray can you throw some light on it.
> Regards,
> Allahbaksh
>
> 16:07:55.836 [ERROR] [gwt_elemental] Unable to load module entry point
> class com.infy.elemental.client.ElementalExample (see associated
> exception for details)
> com.google.gwt.core.client.JavaScriptException: (String) : Invoking an
> instance method on a null instance
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
> at java.lang.reflect.Constructor.newInstance(Unknown Source)
> at
>
> com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:
> 79)
> at
>
> com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:
> 63)
> at
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:60)
> at
>
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
> 172)
> at
>
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
> 338)
> at
>
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
> 219)
> at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 136)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 570)
> at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 278)
> at
>
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
> 91)
> at elemental.js.dom.JsElementalMixinBase$.addEventListener$
> (JsElementalMixinBase.java)
> at com.google.gwt.core.client.JavaScriptObject
> $.elemental_html_ButtonElement_addEventListener(JavaScriptObject.java)
> at
>
> com.infy.elemental.client.ElementalExample.onModuleLoad(ElementalExample.java:
> 52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 405)
> at
>
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 200)
> at
>
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
> 526)
> at
>
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
> 364)
> at java.lang.Thread.run(Unknown Source)
>
> --
> Yo

Re: RequestFactory

2012-07-23 Thread Cristian Rinaldi
A good way to start is:

https://developers.google.com/web-toolkit/doc/latest/DevGuideRequestFactory


*AUS. Cristian Rinaldi
Co-founder*
Mobile: (+54) 9 (342) 5 238 083
Email: cristian.rina...@logikas.com
Skype: csrinaldi
Site: www.logikas.com
Google Plus <https://plus.google.com/u/0/>
Logikas +Page <https://plus.google.com/u/0/b/114838406697164582224/>

__

[image: eco] No me imprimas si no es necesario. PROTEJAMOS EL MEDIO AMBIENTE

AVISO LEGAL:

Esta informacion es privada y confidencial y está dirigida únicamente a su
destinatario. Si usted no es el destinatario original de este mensaje y por
este medio pudo acceder a dicha información por favor elimine el mensaje.
La distribución o copia de este mensaje está estrictamente prohibida.
Excepto que se haya establecido de otra forma, esta comunicación es sólo
para propósitos de información y no debe ser considerada como propuesta,
aceptación ni como una declaración de voluntad oficial de Logikas
"Conectando Ideas" . La transmisión de e-mails no garantiza que el correo
electrónico sea seguro o libre de error. Por consiguiente, no manifestamos
que esta información sea completa o precisa. Toda información está sujeta a
alterarse sin previo aviso.




2012/7/23 nesrine doghri 

> Hi , How can I list all the data existing in the database using RF and
> Hibernate ?
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<>

Widget with Elemental support

2012-07-03 Thread Cristian Rinaldi
I understand that Elemental is esperimental, but is robust and really is an 
excellent frame.
My question is: In the future, Widgets are written using Elemental? Is it 
planned?

Thakns

-- 
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/-/jF64ne6X_igJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.5 RC1 Is Here!

2012-06-28 Thread Cristian Rinaldi
The plugin is here
http://dl.google.com/eclipse/plugin/4.2
it is not yet on page.

Thanks GWT Team!

*AUS. Cristian Rinaldi
Co-founder*
Mobile: (+54) 9 (342) 5 238 083
Email: cristian.rina...@logikas.com
Skype: csrinaldi
Site: www.logikas.com
Google Plus <https://plus.google.com/u/0/>
Logikas +Page <https://plus.google.com/u/0/b/114838406697164582224/>

__

[image: eco] No me imprimas si no es necesario. PROTEJAMOS EL MEDIO AMBIENTE

AVISO LEGAL:

Esta informacion es privada y confidencial y está dirigida únicamente a su
destinatario. Si usted no es el destinatario original de este mensaje y por
este medio pudo acceder a dicha información por favor elimine el mensaje.
La distribución o copia de este mensaje está estrictamente prohibida.
Excepto que se haya establecido de otra forma, esta comunicación es sólo
para propósitos de información y no debe ser considerada como propuesta,
aceptación ni como una declaración de voluntad oficial de Logikas
"Conectando Ideas" . La transmisión de e-mails no garantiza que el correo
electrónico sea seguro o libre de error. Por consiguiente, no manifestamos
que esta información sea completa o precisa. Toda información está sujeta a
alterarse sin previo aviso.




2012/6/28 Albert Attard 

> Thanks for sharing this and well done.
>
> What version of Java does this work with?  Does it support Java 7 code?
>
> Albert
>
>
> On Wednesday, June 27, 2012 10:39:07 PM UTC+2, Rajeev Dayal wrote:
>
>> Hey all,
>>
>> We're excited to announce the GWT 2.5 Release Candidate! Read about it on
>> the GWT Blog <http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html>,
>> and download it here <http://developers.google.com/web-toolkit/download> 
>> (bottom
>> of the page). The RC has been uploaded to Maven Central with the version
>> string of 2.5.0-rc1.
>>
>> Please give it a try and let us know your feedback! Also, many thanks to
>> all of you for your contributions. Without your help, we wouldn't have had
>> a GWT 2.5 release at all!
>>
>>
>> -Rajeev, on behalf of the GWT team
>>
>  --
> 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/-/UYwVyAIAhDIJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

<>

Re: UiBinder as Cell widget

2012-06-13 Thread Cristian Rinaldi
I updated my local copy, I compiled and it worked!
It's weird because I had done, something must have been wrong.


A.U.S Cristian Rinaldi
Logikas - Conectando Ideas
www.logikas.com


2012/6/13 Thomas Broyer 

>
>
> On Wednesday, June 13, 2012 2:53:50 PM UTC+2, Cristian Rinaldi wrote:
>>
>> I'm using UiRenderer for cells, but I'm getting this error at compile
>> time. (I'm using the trunk)
>>
>> com.google.gwt.dev.jjs.**InternalCompilerException: Unexpected error
>> during visit.
>>  at com.google.gwt.dev.jjs.ast.**JVisitor.translateException(**
>> JVisitor.java:109)
>> at com.google.gwt.dev.jjs.ast.**JModVisitor.accept(**
>> JModVisitor.java:276)
>>  at com.google.gwt.dev.jjs.ast.**JModVisitor.accept(**
>> JModVisitor.java:265)
>> at com.google.gwt.dev.jjs.ast.**JVisitor.accept(JVisitor.java:**116)
>>  at com.google.gwt.dev.jjs.ast.**JCastOperation.traverse(**
>> JCastOperation.java:65)
>> at com.google.gwt.dev.jjs.ast.**JModVisitor.traverse(**
>> JModVisitor.java:361)
>>  at com.google.gwt.dev.jjs.ast.**JModVisitor.accept(**
>> JModVisitor.java:273)
>> at com.google.gwt.dev.jjs.ast.**JModVisitor.accept(**
>> JModVisitor.java:265)
>> 
>> 
>> *Caused by: java.lang.NoSuchMethodError: com.google.gwt.uibinder.
>> rebind.UiBinderWriter.getBundleAttributeParser(Lcom/
>> google/gwt/uibinder/rebind/XMLAttribute;)Lcom/google/gwt/
>> uibinder/attributeparsers/AttributeParser;*
>>  at com.google.gwt.uibinder.**elementparsers.**
>> ComputedAttributeInterpreter.**interpretElement(**
>> ComputedAttributeInterpreter.**java:67)
>>
>
> Which revision are you using? There's no call to getBundleAttributeParser
> from ComputedAttributeInterpreter:
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java?r=10548
>
> --
> 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/-/f7Miaca8iy4J.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: UiBinder as Cell widget

2012-06-13 Thread Cristian Rinaldi
I'm using UiRenderer for cells, but I'm getting this error at compile time.
(I'm using the trunk)

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during
visit.
 at
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
 at
com.google.gwt.dev.jjs.ast.JCastOperation.traverse(JCastOperation.java:65)
at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
 at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)


*Caused by: java.lang.NoSuchMethodError:
com.google.gwt.uibinder.rebind.UiBinderWriter.getBundleAttributeParser(Lcom/google/gwt/uibinder/rebind/XMLAttribute;)Lcom/google/gwt/uibinder/attributeparsers/AttributeParser;
*
 at
com.google.gwt.uibinder.elementparsers.ComputedAttributeInterpreter.interpretElement(ComputedAttributeInterpreter.java:67)
at
com.google.gwt.uibinder.elementparsers.UiTextInterpreter.interpretElement(UiTextInterpreter.java:61)
 at
com.google.gwt.uibinder.elementparsers.UiTextInterpreter.interpretElement(UiTextInterpreter.java:29)
at
com.google.gwt.uibinder.elementparsers.InterpreterPipe.interpretElement(InterpreterPipe.java:58)
 at
com.google.gwt.uibinder.elementparsers.HtmlInterpreter.interpretElement(HtmlInterpreter.java:97)
at
com.google.gwt.uibinder.elementparsers.HtmlInterpreter.interpretElement(HtmlInterpreter.java:37)
 at
com.google.gwt.uibinder.rebind.GetInnerHtmlVisitor.visitElement(GetInnerHtmlVisitor.java:45)
at com.google.gwt.uibinder.rebind.ChildWalker.accept(ChildWalker.java:48)
 at
com.google.gwt.uibinder.rebind.GetInnerHtmlVisitor.getEscapedInnerHtml(GetInnerHtmlVisitor.java:33)
at
com.google.gwt.uibinder.rebind.XMLElement.consumeInnerHtml(XMLElement.java:391)
 at
com.google.gwt.uibinder.elementparsers.DomElementParser.parse(DomElementP



The code is very simple:

EntityBaseCell.ui.xml:

http://dl.google.com/gwt/DTD/xhtml.ent";>






 



EntityBaseCell.java
public class EntityBaseCell extends AbstractCell {

  interface Renderer extends UiRenderer {
void render(SafeHtmlBuilder sb, String username);
   }

  private final Renderer renderer;
public EntityBaseCell() {
renderer = GWT.create(Renderer.class);
   }


@Override
public void render(com.google.gwt.cell.client.Cell.Context arg0,
 EntityBaseProxy arg1, SafeHtmlBuilder sb) {
renderer.render(sb, arg1.getName());
 }
}

Any Idea?


A.U.S Cristian Rinaldi
Logikas - Conectando Ideas
www.logikas.com


2012/6/12 Rodrigo Chandia 

> UiBinder does not handle Cell widget events. You probably want to use the
> upcoming Uibinder for Cells functionality (a.k.a. UiRenderer). It will be
> part of 2.5, but it is available in trunk, for the time being.
>
> No documentation yet, but there is a design document here:
>
>
> https://docs.google.com/document/d/1Oo_imxskoGX5O9l9LhHDtJ0yJkHvNTNQqU3dkkekZYI/edit
>
>
> On Tuesday, June 12, 2012 1:01:59 PM UTC-4, Deepak Singh wrote:
>>
>> Hi All,
>>
>> I have an UIBinder widget.
>> I created a custom cell by extending AbstractCell as follows
>>
>> public class ActivityCell extends AbstractCell {
>>
>> @Override
>> public void render(com.google.gwt.cell.**client.Cell.Context context,
>>  EachActivity value, SafeHtmlBuilder sb) {
>> if (value == null) {
>> return;
>>  }
>> sb.appendHtmlConstant(value.**getElement().getInnerHTML());
>> }
>>  }
>>
>> where  is a uibinder widget.
>>
>> There are buttons and anchors inside this uibinder.
>>
>> When added to celltable as a column, this gets rendered perfectly. But
>> the event does not get fired when clicking on the buttons and Anchors of
>> UIBinder.
>>
>> Is there any solution ?
>>
>> Help appreciated.
>>
>>
>>
>> Thanks
>> Deepak Singh
>>
>  --
> 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/-/RRQwlufNri0J.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT UI Layout

2012-06-12 Thread Cristian Rinaldi
I have built complex structures using LayoutPanel, gives much flexibility.
Also as Thomas said, you can animate transitions.

By example:
public void setDefaultLayout () {
  ...
  ...
  mainLayout.setWidgetLeftWidth (logo, 0, TCP 100, TCP);
  mainLayout.setWidgetTopHeight (logo, 0, PCT, NORTH_HEIGHT, PX);

  mainLayout.setWidgetLeftWidth (navigation, 0, TCP 100, TCP);
 mainLayout.setWidgetTopHeight (navigation, NORTH_HEIGHT, PX 38, PX);
  ...
  ...
  mainLayout.animate (500);
}

You are responsible for positioning the internal widget or panels.

A.U.S Cristian Rinaldi


2012/6/12 Santosh 

> Does layoutpanel give that kind of flexibility to build complex
> structures? I heard this is the simplest panel upon which others are
> built
>
> On Jun 12, 3:35 pm, Thomas Broyer  wrote:
> > How about the LayoutPanel?
> > The advantage of LayoutPanel is that it can animate smoothly between
> states.
> >
> >
> >
> >
> >
> >
> >
> > On Tuesday, June 12, 2012 7:10:19 AM UTC+2, Santosh wrote:
> >
> > > We wanted to design a layout in GWT which has quite a lot of small
> > > small sections on screen. Basically it has a left menu, header,
> > > footer, main content area with lot of sub sections which can be closed
> > > by user in case if he does not want to see them. Then remaining
> > > content section should get adjusted automatically.  We are using GWT
> > > Platform. I am in doubt, whether DockLayoutPanel suits for this or
> > > not, because, it has to be must more flexible. Apart from that, I
> > > didnt get any good layout examples. Can we achieve this using GWT
> > > panels or we have to manually do it using div in module html file?
>
> --
> 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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-22 Thread Cristian Rinaldi
I honestly do not think that GWT is dying.
The community is very large, and we need answers, especially for new
projects!!!
For all this, Ray thank you very much for the comments, have given us an
interesting perspective, we look forward to news good!
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







El 22 de abril de 2012 11:03, Trey Roby  escribió:

> A paragraph or two every couple of months about what  you are working on
> would make a huge difference.
>
> Trey
>
> --
> 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/-/Sh0MPpPmifUJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RequestFactory and query by example with a Proxy

2012-02-22 Thread Cristian Rinaldi
Thanks Brandon.

I'm using ValueProxy to send to the server.
Look at the code and the entities (EntityProxy) always validated regardless
of the method is called on the server (select or persist).
Perhaps the validation should performed only in methods that require it,
not always.

Regards
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/2/18 Brandon Donnelson 

> Do you use a ValueProxy?
>
> like:
>
> @ProxyFor(PeopleJdoFilter.class)
>
> public interface PeopleJdoFilterProxy extends ValueProxy {
>
>  void setSearch(List search);
>
>  List getSearch();
>
> //...
>
> }
>
> --
> 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/-/5_o0LibBEOMJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



RequestFactory and query by example with a Proxy

2012-02-17 Thread Cristian Rinaldi
I am developing a filter to search for an entity.
The filter creates a proxy for the entity to seek, and then use this proxy 
with RequestFactory.
The problem is that the entity being validated do not know why.

The request is:
*Request > findByProxy (EntityBaseProxy proxy);*

Their counterpart on the server is:
*public List  findByProxy (EntityBase proxy) {
   Query query = em.get (). CreateQuery ("from EntityBase and WHERE 
e.namelike: arg1");
   query.setParameter ("arg1" proxy.getName ());
   List list = query.getResultList  ();
   return list;
}*

The error I am getting is as follows:

*Caused by: java.lang.RuntimeException: The call failed on the server due 
to aConstraintViolation 
atcom.google.web.bindery.requestfactory.shared.Receiver.onFailure 
(Receiver.java: 44) at com.google.web.bindery . 
requestfactory.shared.Receiver.onViolation(Receiver.java: 66)

*
*
*
Thanks!!!

-- 
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/-/ZwKqWqLB9UQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Place change dynamically

2012-01-29 Thread Cristian Rinaldi
I have a place that change dynamically but these changes are not reflected 
in the URL.

In the activity, a place with information is launched, but the mapper 
(CachingActivityMapper) needs to put other information, then I tried this 
code in the Mapper:

this.eventBus.addHandler( PlaceChangeEvent.TYPE, new 
PlaceChangeEvent.Handler() {
@Override
public void onPlaceChange( PlaceChangeEvent event ) {
Place newPlace = event.getNewPlace();
if ( newPlace instanceof PlaceTrace ) {
((PlaceTrace)newPlace).setPosition( 
CachingCenterActivityMapper.getKeyPosition() );
}
}
} );

but the handler is called after writing the URL.

Any suggestions?

-- 
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/-/2nJFN_3V4BIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editors with 2 forms

2012-01-26 Thread Cristian Rinaldi
Any idea over the problem?, all examples that I view, the sub-editors are 
just Widgets *without one Activity*, and the principal widget is also a 
Editor that is managed by your Activity or Presenter.

My principal problem is that my two Widgets are managed by your Activities, 
but the Widgets are dependent.

EntityBaseWidget is the principal widgets that have a logical list of 
Address, not a widget which represents a AddressList as a CellWidget or 
AddressEditor in the same page to to charge the list , only have a link to 
the new place ( NewAddressPlace ).
This place resulting in starting of Activity for Address and the 
initializations of AddressView respectively, that is a Editor in itself.
The Address entity need the EntityBase entity to be stored, but EntityBase 
not yet been saved, the idea is to link addresses charged in AddressView 
with the logical list in EntityBaseWidget
ie, that in some way by Editors can link each address charged with 
EntityBaseWidget logical address list.

1) I do not know whether to put a AddressWidget as sub-editor in 
EntityBaseWidget, but the beginning of AddressWidget is not the classic, is 
with the start method of an activity.

2) or in any way possible, share the editor context between views, and the 
worflow in EntityBaseWidget in combination with EntityCaseActivity handle 
the saving of everything (Address and EntityBase).


thanks

-- 
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/-/8p6wQJAHyPQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editors with 2 forms

2012-01-26 Thread Cristian Rinaldi
I explain more my previous question, 
I have a EntityBaseView and your UiBinder EntityBaseWidget implementation.
Your presenter is one Activity called EntityBaseActivity and exist one 
proxy called EntityBaseproxy where show the few methods:


EntityBaseproxy
---
String getName();
void setName(String);
.
.
List getAddressList();
void setAddressList(List);


--
The EntityBaseWidget implements EntityBaseView, Editor{


} 

--
Next I have a AddressView and your UiBinder implementation AddressWidget, 
with Activity and Proxys respectively.

The AddressWidget implements AddressView, Editor{


} 
--
Some methods of my AddressProxy are:
 
String getStreet();
void setStreet();

EntityBaseProxy getEntityBase();
void setEntityBase(EntityBaseProxy entityBase);
-


Some few explanations of the workflow:
In the EntityBaseWidget exist one button that call the NewAddressProxy, 
then the AddressActivity is started. In the AddressWidget I insert all 
Address in your property respectively.

If EntityBaseWidget have your list of Address(property), how link this 
property with list loaded in the AddressWidget?

I do not know how to model the composition of editors.

-- 
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/-/IE8AGy4NZZ8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Editors with 2 forms

2012-01-25 Thread Cristian Rinaldi
I have a registration form for a person with addresses, but the directions 
will open in another form.
For each form I have an associated activity.
When I load an address (FormB), I need the person (FormA).
And in the form of the person, I need to go carrying the list of addresses.
As a link with editors, the data from this forms?.

Thanks.

-- 
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/-/boWB50-Nb-0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor Frame work and MVP

2012-01-20 Thread Cristian Rinaldi
According to a report by Martin Fowler, MVP has been withdrawn as a pattern
in July 2006, and has been divided into two variants: Passive View and
Supervising Controller.

*Passive View:* In this pattern, the view update is exclusively managed by
the presenter to reflect the changes in the model. The view never
interacts with the model. As we can see, this definition of the behavior is
not different from what was explained in the previous paragraphs. This
involves the benefits already stated, such as centering tests in the
controller (presenter), given that the view is a light component with
almost null logic content.

*Supervising Controller:* Many frameworks allow for the possibility of
making a mapping between the view and the model, called data
binding (Framework Editor). This is a very efficient approach which makes
it possible to
relate the model’s elements with the view’s elements through some sort
of declarative form. However, there are complex relations that require a
more complicated logic for the view.
In this pattern, the view interacts directly with the model to make a simple
data binding, which is declaratively defined without intervention of the
presenter. The presenter updates the model and handles the view state
only if the logic is complex and it cannot be expressed declaratively.

You can see this: http://martinfowler.com/eaaDev/uiArchs.html

Regars!!!
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/19 Qrunk 

> Hi ,
>
> Just a general question, is it true that Editor Framework breaks MVP
> paradigm?? If yes please explain how ? Can we use it while using MVP Design
> pattern ??
>
> Thanks in advance
>
> --
> 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/-/7gKJQmkbyKkJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: LayoutPanel and Custom Widget

2012-01-16 Thread Cristian Rinaldi
Hello:

The real question is: I have a widget to inherits of ComplexWidget with the
following declarations:

private Element root = Document.get().createDivElement();
private LayoutPanel header = new LayoutPanel();
private Image imgUp = new Image(getDefaultResources().imageUp());

header.add(label);
.
.
root.appendChild(header.getElement());
.
.
setElement(root);
sinkEvents(Event.ONCLICK);

Now I add a domHadler for image (the only event that interests me), but,
sinkEvents(Event.ONCLICK) register the event at level of element root, I
don't know how propagate the event at image, so that only the image, treats
you, and not the other elements of the widget.

I made this:

imgUp.addDomHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
header.setWidgetTopHeight(imgUp, 0, PX, 0, PX);
header.setWidgetTopHeight(imgDown, 0, PX, 30, PX);
collapsed = !collapsed;
collapseBody(collapsed);
}
}, ClickEvent.getType());

But entire the widget  treats the event.

Any idea?
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/16 Cristian Rinaldi 

> I am the following doubt:
> I made a custom widget that use a LayoutPanel as container of elements:
>
>   private Element root = Document.get().createDivElement();
>   private LayoutPanel layoutBody = new LayoutPanel();
>   private VerticalPanel body = new VerticalPanel();
>   
>   
>
>  public MenuAccordionWidget() {
> layoutBody.add(body);
>
> layoutBody.setWidgetLeftWidth(body, 0, PCT, 100, PCT);
> layoutBody.setWidgetTopHeight(body, 30, PX, 90, PCT);
>
> .
> .
>
> root.appendChild(header.getElement());
> root.appendChild(layoutBody.getElement());
>
> setElement(root);
>
> sinkEvents(Event.ONCLICK);
>  }
>
> The problem is heigth, but the layoutBody is hiden, need to know the
> pixels to get the percentage. But, I not want express the height in pixel
> because the height can change.
>
> Any idea?
>
> Other thing, is correct make a widget in this way, because it's like mixed
> the composite form with the low level way.
>
> Thanks.
>
> --
> 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/-/fjfy_S3KZ0wJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hyperlink with PlaceHistoryMapper

2012-01-16 Thread Cristian Rinaldi
Thanks Thomas.

Of course you're right with the theme of myStop, thanks for
the clarification.

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/16 Thomas Broyer 

>
>
> On Monday, January 16, 2012 3:10:33 PM UTC+1, Cristian Rinaldi wrote:
>>
>> Thanks thomas!!!
>> But as an internal navigation menu, I think it is best to use Hyperlink.
>>
>
> Let me disagree.
>
> The only (the one and only) difference is that with Hyperlink you update
> the history token and let the PlaceHistoryHandler handle the change and
> call the PlaceController with the deserialized Place; instead of changing
> Place which will trigger the PlaceHistoryHandler to update the history
> token.
> What it means in practice is that the PlaceChangeRequest event is
> dispatched *after* the history token has changed when using an Hyperlink
> (which uses Histoy.newItem), but before it when using PlaceController.goTo;
> so if an activity returns a non-null value from its mayStop and the  user
> cancels the navigation, the history token has already been changed.
>
> It's best to always use PlaceController.goTo, even if that means making
> your own "PlaceHyperlink" widget (feeding it with the Place to go to and a
> PlaceHistoryMapper –to build the link's href out of the Place, in case the
> user wants to "open in new tab"–).
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



LayoutPanel and Custom Widget

2012-01-16 Thread Cristian Rinaldi
I am the following doubt:
I made a custom widget that use a LayoutPanel as container of elements:

  private Element root = Document.get().createDivElement();
  private LayoutPanel layoutBody = new LayoutPanel();
  private VerticalPanel body = new VerticalPanel();
  
  

 public MenuAccordionWidget() {
layoutBody.add(body);

layoutBody.setWidgetLeftWidth(body, 0, PCT, 100, PCT);  
layoutBody.setWidgetTopHeight(body, 30, PX, 90, PCT); 

.
.

root.appendChild(header.getElement());
root.appendChild(layoutBody.getElement());

setElement(root);

sinkEvents(Event.ONCLICK);
 }

The problem is heigth, but the layoutBody is hiden, need to know the pixels 
to get the percentage. But, I not want express the height in pixel because 
the height can change.

Any idea?

Other thing, is correct make a widget in this way, because it's like mixed 
the composite form with the low level way.

Thanks.

-- 
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/-/fjfy_S3KZ0wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hyperlink with PlaceHistoryMapper

2012-01-16 Thread Cristian Rinaldi
Thanks thomas!!!
But as an internal navigation menu, I think it is best to use Hyperlink. A.U.S
Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/14 Thomas Broyer 

> If I were you, I'd use the PlaceHistoryMapper to build the token out of
> the target Place; and I would even use an Anchor with ClickHandler and
> PlaceController.goTo instead of an Hyperlink.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Hyperlink with PlaceHistoryMapper

2012-01-13 Thread Cristian Rinaldi
Jim thank you very much!!
When you are immersed in many lines of code ignores things simple.

Regards.

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/13 Jens 

> Your targetHistoryToken has to be "NewTaskPlace:newTask".
>
> By default GWT uses : as history token. The prefix can be
> configured by using the @Prefix annotation on your PlaceTokenizer class. If
> you don't do that, GWT will use the Place's class name as prefix.
>
> If you use the @Prefix annotation keep in mind that the prefix must be
> unique.
>
> -- J.
>
> --
> 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/-/LhzBZoVp9J4J.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Hyperlink with PlaceHistoryMapper

2012-01-13 Thread Cristian Rinaldi
I have a problem with Hyperlink, this code is part of my View:

*New 
Task*

When I made a click over link, the URL change to: 

http://127.0.0.1:/main.html?gwt.codesvr=127.0.0.1:9997*#newTask*

But PlaceHistoryMapper never is called, therefore, my ActivityMapper never 
know the change of place *(#newtask)* and I can never start the activity.

Other places that do not use hyperlink going well.

Some code:

*AppPlaceHistoryMapper*
@WithTokenizers({DefaultPlace.Tokenizer.class, 
NewTaskPlace.Tokenizer.class}) 
public interface AppPlaceHistoryMapper extends PlaceHistoryMapper {
}


*NewTaskPlace*
public class NewTaskPlace extends Place {

public static class Tokenizer implements PlaceTokenizer {

@Override
public NewTaskPlace getPlace(String token) {
return new NewTaskPlace();
}

@Override
public String getToken(NewTaskPlace place) {
return "newTask";
}
}
}

*Part of CenterActivityMapper*

@Override
public Activity getActivity(Place place) {

if (place instanceof DefaultPlace){
HomeActivity activity = homeActivity.get();
return activity;
} else if (place instanceof NewTaskPlace ){
TaskActivity activity = taskActivity.get();
return activity;

}
return null;
}


Thanks

-- 
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/-/SXVHPftdQXYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Activities and Place design wizard

2012-01-13 Thread Cristian Rinaldi
David:
  thanks for replying, when I have the solution, the comment in the
forum. A.U.S
Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/12 David 

> I'm not sure why you would need additional activity management beyond
> the Place Controller that you are using.   You could merely cache the
> stringified place tokens and use them in your breadcrumb or hold on to
> any other state that you may need.   If you are using Gin then you can
> configure your activities as singletons so the state won't be lost
> when the Place Controller brings a different activity into fruition.
> If you are not using singleton activities then a static variable may
> suit your needs.
> Or ,  perhaps try a caching solution that ensures state in between
> browser refreshes.
>
> David
>
> On Jan 12, 5:26 am, Cristian Rinaldi 
> wrote:
> > I need maintain the state between stages of wizard, therefore i need
> > caching the Activity. I read over CachingActivityMapper, I just wanted
> > to know if it was the appropriate solution.
> >
> > Thanks for reply
> >
> > A.U.S Cristian Rinaldi
> >
> > Teléfono Móvil: +54 9342 5238083
> >
> > www.logikas.com
> >
> > Teléfono Fijo: +54 342 483 5138
> >
> > 2012/1/12 Ashwin Desikan 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > whether you cache or not cache should be based on the user experience
> you want to provide.
> >
> > > Are there objects which needs to be re-initialized when you move from
> one activity to other? if yes, don't cache or atleast have some sort of
> intialization method in the startActivity.
> >
> > > In typical Wizards, the state is maintained between screens. If you
> want it behave similar to that including state maintenance, cache the
> activities.
> >
> > > CheckOut the CachingActivityMapper. You may probably have to expand it
> in your case to cache all the activities which form the various screens of
> your wiazard.
> >
> > > Regards
> > > Ashwin
> >
> > > On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote:
> >
> > >> Any idea for this problems?
> > >> A.U.S Cristian Rinaldi
> >
> > >> Teléfono Móvil: (0342) 155 238 083
> >
> > >>www.logikas.com<http://www.logikas.com/>
> >
> > >> Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe
> >
> > >> Teléfono Fijo: (0342) 483 5138
> >
> > >> 2012/1/10 Cristian Rinaldi  csrina...@gmail.com>>
> >
> > >>Hello:
> >
> > >>I have a question about the design using Activities and Places.
> > >>I have a set of activities that render their views in a section.
> > >>The behavior I want is that each activity, after an event (by
> > >>example: click in next button, click in activity represented in
> > >>breadcrumbs)  go to the next activity, hiding the previous view.
> > >>Top of the section, I have a breadcrumbs with the activities that
> > >>happened.
> > >>Now, if I click on one of the parts of the breadcrumbs, must be
> > >>return to the activity related and show the view with all his
> state.
> > >>The question is:  I make a map of activities that are cached? or
> > >>do not use cache, and management behavior in the start method of
> > >>activity, starting all over again.
> > >>The view is singleton, and managed by GIN.
> > >>The general behavior is like the behavior of a wizard.
> >
> > >>Any ideas?
> >
> > >>-- 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/-/W6fMEmnty14J.
> > >>To post to this group, send email to
> > >>google-web-toolkit@googlegroups.com
> > >><mailto:google-web-toolkit@googlegroups.com>.
> >
> > >>To unsubscribe from this group, send email to
> > >>google-web-toolkit+unsubscr...@googlegroups.com
> > >><mailto:google-web-toolkit%2bunsubscr...@googlegroups.com>.
> >
> > >>For more options, visit this group at
> > >>http://groups.google.com/group/google-web-toolkit?hl=en.
>

Re: AsyncProxy and ActivityMapper

2012-01-12 Thread Cristian Rinaldi
Hello:

Maybe my question sounds silly, but what is the need to use AsyncProvider
or runAsync in the Activity, if heavier is the view and we can use
AsyncProvider in the start method of the activity to get the view?

Regards.
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/10 kretel 

> Got it working. Thanks for your help Jens and Patrick.
>
> Now I have a problem with @Assisted injection for injecting a place to
> Activity constructor. Would try to solve it using factory for
> AsyncAcitivtyProxy.
> Unless someone has other idea?
>
> K
>
> --
> 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/-/UaD78qjnpycJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP understanding with Editor Framework

2012-01-12 Thread Cristian Rinaldi
It's easy to get confused when you think the MVP in the form of "Passive
View", but there is another version called Supervising Controller,
where the view interacts with the model to perform data binding,
the presenter, is relegated to attend more complexlogic, and we can
not express declaratively.

You can see this: http://martinfowler.com/eaaDev/uiArchs.html

Regars!!!
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/12 Cristian Rinaldi 

> Hello:
>  By example: if you work with RequestFactory the model in MVP means a
> proxy, ie the DTO to be transmitted from the client to the server
> according to your entities in the model.
>  This proxy is mapped to the properties view. (binding).
>
> Regards.!!
>
>
>
> A.U.S Cristian Rinaldi
>
> Teléfono Móvil: (0342) 155 238 083
>
> www.logikas.com
>
> Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe
>
> Teléfono Fijo: (0342) 483 5138
>
>
>
>
>
>
>
> 2012/1/12 Kanagaraj M :
> > Wikipedia definition for MVP reads
> >
> > Model–view–presenter (MVP) is a derivative of
> > the model–view–controller (MVC) software pattern, also used mostly for
> > building user interfaces.
> >
> > In MVP the presenter assumes the functionality of the "middle-man"
> (played
> > by the controller in MVC). Additionally, the view is responsible for
> > handling the UI events (like mouseDown, keyDown, etc), which used to be
> the
> > controller's job. Eventually, the model becomes strictly a domain model.
> >
> >
> > Take a case of using Simple Bean Editor framework with MVP.
> >
> > I ll have a PersonDAO(domain model) as well as PersonDTO (passed between
> > client and server).
> >
> > what does the M in MVP Means? Is it denoting only the Domain Model
> (Person
> > DAO)?
> >
> >
> > I am really confused with Editor Framework, because its binding the model
> > with the view. Are we not contracting the MVP?
> >
> >
> > Please correct me if my assumptions are wrong.
> >
> >
> > --
> > 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/-/cnKONNzm6fYJ.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP understanding with Editor Framework

2012-01-12 Thread Cristian Rinaldi
Hello:
  By example: if you work with RequestFactory the model in MVP means a
proxy, ie the DTO to be transmitted from the client to the server
according to your entities in the model.
  This proxy is mapped to the properties view. (binding).

Regards.!!



A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/12 Kanagaraj M :
> Wikipedia definition for MVP reads
>
> Model–view–presenter (MVP) is a derivative of
> the model–view–controller (MVC) software pattern, also used mostly for
> building user interfaces.
>
> In MVP the presenter assumes the functionality of the "middle-man" (played
> by the controller in MVC). Additionally, the view is responsible for
> handling the UI events (like mouseDown, keyDown, etc), which used to be the
> controller's job. Eventually, the model becomes strictly a domain model.
>
>
> Take a case of using Simple Bean Editor framework with MVP.
>
> I ll have a PersonDAO(domain model) as well as PersonDTO (passed between
> client and server).
>
> what does the M in MVP Means? Is it denoting only the Domain Model (Person
> DAO)?
>
>
> I am really confused with Editor Framework, because its binding the model
> with the view. Are we not contracting the MVP?
>
>
> Please correct me if my assumptions are wrong.
>
>
> --
> 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/-/cnKONNzm6fYJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Activities and Place design wizard

2012-01-12 Thread Cristian Rinaldi
I need maintain the state between stages of wizard, therefore i need
caching the Activity. I read over CachingActivityMapper, I just wanted
to know if it was the appropriate solution.

Thanks for reply


A.U.S Cristian Rinaldi

Teléfono Móvil: +54 9342 5238083

www.logikas.com

Teléfono Fijo: +54 342 483 5138







2012/1/12 Ashwin Desikan 
>
> whether you cache or not cache should be based on the user experience you 
> want to provide.
>
> Are there objects which needs to be re-initialized when you move from one 
> activity to other? if yes, don't cache or atleast have some sort of 
> intialization method in the startActivity.
>
> In typical Wizards, the state is maintained between screens. If you want it 
> behave similar to that including state maintenance, cache the activities.
>
> CheckOut the CachingActivityMapper. You may probably have to expand it in 
> your case to cache all the activities which form the various screens of your 
> wiazard.
>
> Regards
> Ashwin
>
>
>
> On Thursday 12 January 2012 07:05:03 AM IST, Cristian Rinaldi wrote:
>>
>> Any idea for this problems?
>> A.U.S Cristian Rinaldi
>>
>> Teléfono Móvil: (0342) 155 238 083
>>
>> www.logikas.com <http://www.logikas.com/>
>>
>>
>> Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe
>>
>> Teléfono Fijo: (0342) 483 5138
>>
>>
>>
>>
>>
>>
>>
>>
>> 2012/1/10 Cristian Rinaldi mailto:csrina...@gmail.com>>
>>
>>
>>    Hello:
>>
>>    I have a question about the design using Activities and Places.
>>    I have a set of activities that render their views in a section.
>>    The behavior I want is that each activity, after an event (by
>>    example: click in next button, click in activity represented in
>>    breadcrumbs)  go to the next activity, hiding the previous view.
>>    Top of the section, I have a breadcrumbs with the activities that
>>    happened.
>>    Now, if I click on one of the parts of the breadcrumbs, must be
>>    return to the activity related and show the view with all his state.
>>    The question is:  I make a map of activities that are cached? or
>>    do not use cache, and management behavior in the start method of
>>    activity, starting all over again.
>>    The view is singleton, and managed by GIN.
>>    The general behavior is like the behavior of a wizard.
>>
>>    Any ideas?
>>
>>    --     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/-/W6fMEmnty14J.
>>    To post to this group, send email to
>>    google-web-toolkit@googlegroups.com
>>    <mailto:google-web-toolkit@googlegroups.com>.
>>
>>    To unsubscribe from this group, send email to
>>    google-web-toolkit+unsubscr...@googlegroups.com
>>    <mailto:google-web-toolkit%2bunsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Activities and Place design wizard

2012-01-11 Thread Cristian Rinaldi
Any idea for this problems?
A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2012/1/10 Cristian Rinaldi 

> Hello:
>
> I have a question about the design using Activities and Places.
> I have a set of activities that render their views in a section.
> The behavior I want is that each activity, after an event (by example:
> click in next button, click in activity represented in breadcrumbs)  go to
> the next activity, hiding the previous view.
> Top of the section, I have a breadcrumbs with the activities that happened.
> Now, if I click on one of the parts of the breadcrumbs, must be return to
> the activity related and show the view with all his state.
> The question is:  I make a map of activities that are cached? or do not
> use cache, and management behavior in the start method of activity,
> starting all over again.
> The view is singleton, and managed by GIN.
> The general behavior is like the behavior of a wizard.
>
> Any ideas?
>
> --
> 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/-/W6fMEmnty14J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Activities and Place design wizard

2012-01-10 Thread Cristian Rinaldi
Hello:

I have a question about the design using Activities and Places.
I have a set of activities that render their views in a section. 
The behavior I want is that each activity, after an event (by example: 
click in next button, click in activity represented in breadcrumbs)  go to 
the next activity, hiding the previous view.
Top of the section, I have a breadcrumbs with the activities that happened.
Now, if I click on one of the parts of the breadcrumbs, must be return to 
the activity related and show the view with all his state.
The question is:  I make a map of activities that are cached? or do not use 
cache, and management behavior in the start method of activity, starting 
all over again.
The view is singleton, and managed by GIN.
The general behavior is like the behavior of a wizard.

Any ideas?

-- 
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/-/W6fMEmnty14J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
Thanks thomas,

I see it clearly now.

It's a shame, I wanted the container interface does not depend on the 
particular implementation of Address. If this changes, I just wanted to 
change the bind in GIN.

Thanks.!

-- 
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/-/vgdUNdeI7O0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
Hello Christian:

"AddressView extends View and Editor"

See below: 

public interface AddressView extends View, Editor{  
  public interface Presenter extends MutablePresenter{
  }
}




-- 
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/-/HNhboah3MP8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor not flush values of subeditors

2011-10-27 Thread Cristian Rinaldi
The error is when I declare an interface instead of a particular class 
implementation.
By example:

@UiField(provided = true)
AddressView address;  //Interface (not a concrete class)

Note that into file ui.xml the inclusion of widget also is a interface

by example:



Now, when inject AddressView by constructor in the container view 
(TerceroNewEditor), and I asign the variable before that uibinder make a 
interface, aren't because Editor do not send values contained inside the 
AddressView.

Now, if I only change the declaration:

@UiField(provided = true)
AddressView address;

by

@UiField(provided = true)
AddressEditor address;  //implementation of AddressView
 
and either way that I assign (injection or direct  creation), Editor works 
well.

This is an error or is not covered?

Thanks and please, sorry for my english!!

-- 
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/-/fcFfyRmlb1cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor not flush values of subeditors

2011-10-26 Thread Cristian Rinaldi
To test I created a new view for Address without presenter injected into
constructor.
And the Address View is not injected into the TerceroEditor view.

And things are just fine.

This works well:

   @UiField
  AddressEditor2 address;  *//AddressEditor is a concrete class.*

  private final TerceroNewView.Presenter presenter;

  @Inject
  public TerceroEditor(  *//Note: not inject sub-view AddressView, UiBinder
make a implementation*
  @Named(Constans.TerceroNewPresenter) TerceroNewView.Presenter
presenter) {

this.presenter = presenter;
ini();
  }

  private void ini(){
root = uiBinder.createAndBindUi(this);
res.erpLgkStyle().ensureInjected();
presenter.onCreate(this);
  }


TerceroNewEditor.ui.xml part:
   ...
   ...
   
   ...
   ...

//AddressView implements Editor

public class AddressEditor2 extends Composite implements AddressView {

  private static AddressEditor2UiBinder uiBinder =
GWT.create(AddressEditor2UiBinder.class);

  interface AddressEditor2UiBinder extends UiBinder
{
  }

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecorator address;

  @UiField
  ValueBoxEditorDecorator number;

  @UiField
  ValueBoxEditorDecorator code;

  public AddressEditor2() {
initWidget(uiBinder.createAndBindUi(this));
  }
}

*
-
*
*
-
*
*
*
If you inject the View with a Provider or AsyncProvider or directly not send
the information of Address.
This does not work:

   @ UiField (provided = true)
   AddressView address *//AddressView is a interface that
Implements Editor*

   private final TerceroNewView.Presenter presenter;

@Inject
public TerceroEditor(
  *Provider addressView,*
  @Named(Constans.TerceroNewPresenter) TerceroNewView.Presenter
presenter) {

   * this.address = addressView.get();*
this.presenter = presenter;
ini();
 }

private void ini(){
root = uiBinder.createAndBindUi(this);
res.erpLgkStyle().ensureInjected();
presenter.onCreate(this);
}


  TerceroNewEditor.ui.xml part:
   ...
   ...
   
   ...
   ...

//AddressView implemens Editor
public class AddressEditor implements AddressView {

  interface AddressWidgetUiBinder extends UiBinder {
  }

  private static AddressWidgetUiBinder uiBinder =
GWT.create(AddressWidgetUiBinder.class);

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecorator address;

  @UiField
  ValueBoxEditorDecorator number;

  @UiField
  ValueBoxEditorDecorator code;

  @Inject
  public AddressEditor(
  @Named(Constans.AddressNewPresenter) AddressView.Presenter presenter)
{

this.presenter = presenter;
init();
  }

  private void init(){
root = uiBinder.createAndBindUi(this);
presenter.onCreate(this);
  }

  @Override
  public Widget asWidget() {
return root;
  }
}

*Gin Module*
*
*
public class ViewModule extends AbstractGinModule {

  @Override
  protected void configure() {



*bind(AddressView.class).to(AddressEditor.class).in(Singleton.class);*
   * bind(TerceroNewView.class).to(TerceroEditor.class).in(Singleton.class);
*

.
.

 *
bind(TerceroNewView.Presenter.class).annotatedWith(Names.named(Constans.TerceroNewPresenter)).to(TerceroNewEditorPresenter.class);
*
*
bind(AddressView.Presenter.class).annotatedWith(Names.named(Constans.AddressNewPresenter)).to(AddressNewPresenter.class);
*

  }
}



A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2011/10/26 Cristian Rinaldi 

> Tanks Thomas for response.
> The rare is that AddressView implements Editor
>
> I put the codes below:
>
> *Extract for TerceroNewView*
>
> public interface TerceroNewView extends View, Editor {
>   public interface Presenter extends MutablePresenter{
>
>   }
>
>   RequestFactoryEditorDriver Editor> createEditorDriver(
>   RequestFactory rf);
> }
> *
> *
> *
> *
> *Extract for TerceroEditor*
>
> public class TerceroEditor implements TerceroNewView {
>
>   private static TerceroEditorUiBinder uiBinder =
> GWT.create(TerceroEditorUiBinder.class);
>
>   interface TerceroEditorUiBinder extends UiBinder TerceroEditor> {
>   }
>
>   interface Driver extends RequestFactoryEditorDriver TerceroEditor> {
>   }
>
>   private SimplePanel root;
>
>   @UiField
>   ClientResource res;
>
>   @UiField
>   ValueBoxEditorDecorator name;
>

Re: Editor not flush values of subeditors

2011-10-26 Thread Cristian Rinaldi
uot;T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"name":"Cristian"},"C":1,"R":"1","O":"PERSIST"},{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","C":2,"R":"1","O":"PERSIST"}],"I":[{"P":[{"T":"oNrI9YUtkvx6RRVjmYN2ooLeKvQ=","R":"1","C":1}],"R":["address"],"O":"tNTGSDAwvU0DpOikzbM$SKIPFQw="}]}

Data sent by Server to Client

{"X":[{"T":"{javax.validation.constraints.NotNull.message}","P":"code","R":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"L":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"M":"no
puede ser null"},
{"T":"{javax.validation.constraints.NotNull.message}","P":"address","R":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"L":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"M":"no
puede ser null"},
{"T":"{javax.validation.constraints.NotNull.message}","P":"number","R":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"L":{"T":"jVTUhBxMFgABvM07abYHRgwY8ps=","R":"1","C":2},"M":"no
puede ser null"}]}

About other question, tanks for sugestion.

Regards

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2011/10/26 Thomas Broyer 

>
>
> On Tuesday, October 25, 2011 10:33:55 PM UTC+2, Cristian Rinaldi wrote:
>>
>> Thomas, thanks for the fast responce. I will see if this is causing the
>> error.
>>
>> AddressWidget implements AddressView and Editor for AddressProxy, you say
>> that the AddressView must be extend Editor?
>>
>
> I'm saying that the type of the "address" field in type TerceroEditor does
> not implement Editor (or IsEditor), so the Editor framework does not treat
> it as an editor. You'll either have to change it to AddressWidget, or make
> AddressView extend Editor.
>
> Now, one design question.
>>
>> I love MVP, this pattern is very powerfull but, with Activities and Place
>> some thing are dificult.
>>
>> Activities are for when you need navigation, but if want each view has a
>> Presenter, I thought the following:
>>
>>One interface Presenter for each View, where "View" delegate the logic
>> in the presenter implementation.
>>Now, presenter is not Activity. When I need navigation, I make a
>> Activity that inject the presenter and delegate in this the logic of View.
>>
>>I want keep separate in the best forms the concepts of view and
>> presenter, but I want to know if inject the presenter in view is ok.
>>   The presenter have a method called onCreate(T) where T is a View. That
>> method is called when View is initialized after make UiBinder interface.
>>   In the onCreate(T) I inicialize the editor driver, etc.
>>
>>   When I precise a Activity, in the start method I obtain the view, by
>> example, with AsyncProvider, how the View inject Presenter, the Activity
>> delegate logic to Presenter.
>>
>>  I started think this for nested complex widget, for example, load
>> Employees associated with bank accounts, where the Widgets for list of
>> selection and creation bank account is a widget that delegate logic in a
>> presenter that is not Activity.
>>  But, i can use this widget alone in other view where is necesary one
>> Activity.
>>
>>   All this is fine or I've gone crazy?
>>
>
> I'm not sure I understood what you're coming with. All I can say is that my
> activities are presenters, and in a few cases where a complex "component" is
> to be reused, I have a presenter and view for it that's not an activity. I
> also inject my views within my presenters in their constructors, and the
> presenters "inject themselves" into their view when needed (when the
> activity starts, in my case); this allows the views to have longer lifetime
> as the presenters, because I use short-lived presenters and singleton views.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor not flush values of subeditors

2011-10-25 Thread Cristian Rinaldi
Thomas, thanks for the fast responce. I will see if this is causing the
error.

AddressWidget implements AddressView and Editor for AddressProxy, you say
that the AddressView must be extend Editor?


Now, one design question.

I love MVP, this pattern is very powerfull but, with Activities and Place
some thing are dificult.

Activities are for when you need navigation, but if want each view has a
Presenter, I thought the following:

   One interface Presenter for each View, where "View" delegate the logic in
the presenter implementation.
   Now, presenter is not Activity. When I need navigation, I make a Activity
that inject the presenter and delegate in this the logic of View.

   I want keep separate in the best forms the concepts of view and
presenter, but I want to know if inject the presenter in view is ok.
  The presenter have a method called onCreate(T) where T is a View. That
method is called when View is initialized after make UiBinder interface.
  In the onCreate(T) I inicialize the editor driver, etc.

  When I precise a Activity, in the start method I obtain the view, by
example, with AsyncProvider, how the View inject Presenter, the Activity
delegate logic to Presenter.

 I started think this for nested complex widget, for example, load Employees
associated with bank accounts, where the Widgets for list of selection and
creation bank account is a widget that delegate logic in a presenter that is
not Activity.
 But, i can use this widget alone in other view where is necesary one
Activity.

  All this is fine or I've gone crazy?

  Sorry for my english.

A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138







2011/10/25 Thomas Broyer 

> AddressView (which is the type used in TerceroEditor) extends neither
> Editor nor IsEditor, so the "address" property isn't edited.
>
> Did I miss something in your code? (I only looked at
> TerceroNewEditorPresenter, TerceroEditor and AddressView)
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Nested Editor creation question

2011-10-25 Thread Cristian Rinaldi
Hello:

Suppose you have a UserView interface, then you can use the interface instead 
of the concrete class.

class UserEditor ... {

..
..
UiField (provided = true)
UserView view




  @ Inject 
  UserEditor (UserView v) {
this.view = v;

UiBinder initialization 
  }
}


where:

  class UserViewImpl implements UserView {
 
 
  }

By example with GIN:
   bind(UserView.class).to(UserViewImpl.class).in(Singleton.class);

Now, as says Aidan, if you not use GIN or other IOC, (provided = true) it 
is not necessary, UiBinder does it for you.

-- 
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/-/KkMfsZAm9dUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Editor not flush values of subeditors

2011-10-25 Thread Cristian Rinaldi
 Hello:
  I am working in a project with GWT (RF, Editors, MVP).
  I have an error with bind of Editor

 The error itself, is that address property is not sent, not sent values
with flush is called in method save of *TerceroNewEditorPresenter*. The
unique values that are sent, are those that correspond to *Tercero (name and
lastName). *

 Attached files to see and guide me in the error.

 Thank you very much and sorry for my English.


A.U.S Cristian Rinaldi

Teléfono Móvil: (0342) 155 238 083

www.logikas.com

Lisandro de la Torre 2643 Of 5 - 3000 - Santa Fe

Teléfono Fijo: (0342) 483 5138

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

/**
 * 
 */
package com.logikas.erp.client.ui;

import com.google.gwt.user.client.ui.HasConstrainedValue;

import com.logikas.erp.client.activity.presenter.MutablePresenter;
import com.logikas.erp.shared.proxy.CityProxy;

/**
 * Package: com.logikas.erp.client.ui
 * File:AddressView.java
 * Date:11/10/2011
 * 
 * @autor cristian - Logikas Conectando Ideas
 */
public interface AddressView extends View{
  
  public interface Presenter extends MutablePresenter{

  }
  
  HasConstrainedValue getCitys(); 
  
}
/**
 * 
 */
package com.logikas.erp.client.ui;

import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.client.IsEditor;
import com.google.gwt.user.client.ui.HasConstrainedValue;

import com.logikas.erp.client.activity.presenter.NavigationPresenter;
import com.logikas.erp.shared.proxy.CityProxy;

/**
 * Package: com.logikas.erp.client.ui
 * File:SelectorCityView.java
 * Date:11/10/2011
 * 
 * @autor cristian - Logikas Conectando Ideas
 */
public interface SelectorCityView extends IsEditor>, View{
  
  public interface Presenter extends NavigationPresenter{}
  
  HasConstrainedValue getListCity();

}
/**
 * 
 */
package com.logikas.erp.client.ui;

import com.google.gwt.editor.client.Editor;
import com.google.web.bindery.requestfactory.gwt.client.RequestFactoryEditorDriver;
import com.google.web.bindery.requestfactory.shared.RequestFactory;

import com.logikas.erp.client.activity.presenter.MutablePresenter;
import com.logikas.erp.shared.proxy.TercerosProxy;

/**
 * Package: com.logikas.erp.client.ui File: TerceroView.java Date: 11/10/2011
 * 
 * Representa el formulario de carga de la informacion asociada a un tercero
 * 
 * @autor cristian - Logikas Conectando Ideas
 */
public interface TerceroNewView extends View {
  
  public interface Presenter extends MutablePresenter{

  }
 
  AddressView getAddressView();

  RequestFactoryEditorDriver> createEditorDriver(
  RequestFactory rf);

}
/**
 * 
 */
package com.logikas.erp.client.ui;

import com.google.gwt.user.client.ui.IsWidget;

/**
 * Package: com.logikas.erp.client.ui File: View.java Date: 03/10/2011
 * 
 * @autor cristian - Logikas Conectando Ideas
 */
public interface View extends IsWidget {
  
  
  
  
}
/**
 * 
 */
package com.logikas.erp.client.ui.impl;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor;
import com.google.gwt.editor.ui.client.ValueBoxEditorDecorator;
import com.google.gwt.inject.client.AsyncProvider;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HasConstrainedValue;
import com.google.gwt.user.client.ui.Widget;

import com.logikas.erp.client.Constans;
import com.logikas.erp.client.ui.AddressView;
import com.logikas.erp.client.ui.SelectorCityView;
import com.logikas.erp.shared.proxy.AddressProxy;
import com.logikas.erp.shared.proxy.CityProxy;

import javax.inject.Inject;
import javax.inject.Named;

/**
 * Package: com.logikas.erp.client.ui.impl File: AddressWidget.java Date: 11/10/2011
 * 
 * @autor cristian - Logikas Conectando Ideas
 */
public class AddressEditor implements AddressView, Editor {

  private static AddressWidgetUiBinder uiBinder = GWT.create(AddressWidgetUiBinder.class);

  private HTMLPanel root;

  private AddressView.Presenter presenter;

  @UiField
  ValueBoxEditorDecorator address;

  @UiField
  ValueBoxEditorDecorator number;

  @UiField
  ValueBoxEditorDecorator code;

  @UiField(provided = true)
  SelectorCityView city;

  interface AddressWidgetUiBinder extends UiBinder {
  }

  @Inject
  public AddressEditor(
  AsyncProvider selectorCity,
  @Named(Constans.AddressNewPresenter) AddressView.Presenter presenter) {

this.presenter = presenter;

// TODO ver si hay otra forma de inicializar las vistas
selectorCity.get(new AsyncCallback() {
  @Overr

java.lang.NoClassDefFoundError:org/json/JSONException

2011-09-16 Thread Cristian Rinaldi
I have an error when the application is deployed.
The exception is "Caused by: java.lang.NoClassDefFoundError: org/json/
JSONException". But the rare is that I have all libraries in de WEB-
INF/lib

gwt-servlet.jar
gwt-servlet-deps.jar
requestfactory-servlet.jar
validation-api-1.0.0.GA.jar

I'm not using maven and ther version of GWT is 2.4.

Thanks

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: multi pages in gwt

2011-08-29 Thread Cristian Rinaldi
What is the reason to have multiple pages? (HTML Pages)
Ajax applications respond to the pattern Sinlge Page.
You can manage the content to be displayed using MVP (Place / Activities).


A.U.S Cristian Rinaldi

2011/8/29 Marko Borges 
>
> By the way I am trying to work with gwt-multipage jar that looks simple but 
> had to update gwt and smartgwt and everything is crashing now...
> Baah
>
>
> 2011/8/29 Marko Borges 
>>
>> Thanks for your answer. This looks like a little complicated and confusing. 
>> Isnt there a easier way? I will have many pages.
>> Thanks,
>> Mark
>>
>> 2011/8/25 Sandney Farias 
>>>
>>> Mark,
>>> Try this 
>>> link http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html.
>>>  I think that it can help you.
>>>
>>> --
>>> 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/-/nKFb_l7W81UJ.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-web-toolkit+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Education Gwt??

2011-08-08 Thread Cristian Rinaldi
We invite you to visit our website and see the topics of our advanced
course on GWT.
 www.logikas.com/?page=3&subpage=2

Best regards

On 5 ago, 07:23, swedeveloper  wrote:
> Hello my name is jens!
> I am a novice in these areas, I have been doing quite a bit with web
> design and programming sleeping around with C #, Java, etc.. but I am
> a beginner in programming with little basis.
> But I'd climbed to learn GWT Ajax appenginge and " Google Apis ".
> Sure there's plenty of documentation on the net and plenty of good
> literature.
> But you can not find an online education online that individuals can
> go???
> Grateful for answers
>   have more questions, but take them separately.
>
> Regards jens

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.