Re: RequestFactory & Entities relationship

2011-03-31 Thread Metronome & Basic
In fact I'm trying to convert a Datastore accessed via RPC and DTOs to 
RequestFactory.
So far the entities have been populated by the old system
I'm just trying to read data for the now

I'm sorry I'v just missed this paragraph !


Thanks anyway

Patrick

  - Original Message - 
  From: Y2i 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, March 31, 2011 8:54 AM
  Subject: Re: RequestFactory & Entities relationship


  You don't have to use with() if you don't want to populate relations of the 
object graph 
  
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships



  to refer to more than one relation, use with("rel1", "rel2", "etc")

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


--

--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011

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



JPA & JAXB Classes with GWT RPC

2011-03-31 Thread Michele Rossi
Hi,
I would like to use JPA-annotated classes and schema-generated 
JAXB-annotated classes as data transfer objects for my RPC services.

Is there anything fundamentally difficult / wrong with this?
I tried some time ago but I couldn't get it to work so I had to code up ugly 
DTO translators.

I assume that provided I make a GWT module with the source java files 
available RPC should happy right?

thanks,
Michele

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



GWT library to wrap the W3C file API

2011-03-31 Thread Lukas Laag
Hello,
I have developed a new library to address the problem of loading files
which are on the local filesystem of the end-user into GWT
applications. Actually the library is just a simple GWT wrapper for
the W3C file API and some parts of the HTML5 drag and drop API. If you
are developing an application where you want your users to open files
on their local filesystem without having to upload them to a server
first, this might be of interest to you.

The lib is published under LGPLv3.

More details can be obtained here:
http://www.vectomatic.org/google-web-toolkit/a-file-api-for-gwt
The lib itself is available here:
http://code.google.com/p/lib-gwt-file/
A demo is also available here:
http://www.vectomatic.org/gwt/lib-gwt-file-test/lib-gwt-file-test.html

Regards,

Lukas

-- 
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 Failure :Not working in GWT 2.1

2011-03-31 Thread Susan
Hi,

I have got the solution for it.
My project was using gwt-mosaic-0.4.0-rc4.jar which has
com.google.gwt.uibinder.rebind.UIBinder class in it which was clashing
with com.google.gwt.uibinder.client.UIBinder in gwt-user.jar.
Hence modify gwt-mosaic-0.4.0-rc4.jar by removing UIBinder class from
it.

It works!!!

Regards,
Susan.

Susan wrote:
> Hi All,
> I just moved our project which was working in GWT2.0 with UiBinder.
> When I move the project to GWT 2.1 I am not able to compile the same.
> Please find below the error message.
> Warm Regards,
> Susan George
>
> java.lang.NoSuchMethodError:
> com.google.gwt.uibinder.rebind.UiBinderWriter.(Lcom/google/gwt/
> core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/
> google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/
> rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/
> google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/
> uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
> UiBinderContext;)V
>   at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
> 135)
>   at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
> 119)
>   at
> com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
> 427)
>   at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 39)
>   at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:115)
>   at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:58)
>   at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> 161)
>   at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> 150)
>   at com.google.gwt.dev.Precompile
> $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
> 345)
>   at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
> 106)
>   at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.process(AbstractCompiler.java:254)
>   at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>   at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:175)
>   at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:288)
>   at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
> $400(AbstractCompiler.java:145)
>   at
> com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
> 632)
>   at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
> 124)
>   at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
> 54)
>   at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
> 484)
>   at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
> 32)
>   at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
>   at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
>   at com.google.gwt.dev.Compiler.run(Compiler.java:205)
>   at com.google.gwt.dev.Compiler.run(Compiler.java:177)
>   at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
>   at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>   at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
> 81)
>   at com.google.gwt.dev.Compiler.main(Compiler.java:156)
>
> [ERROR] Unexpected
> java.lang.NoSuchMethodError:
> com.google.gwt.uibinder.rebind.UiBinderWriter.(Lcom/google/gwt/
> core/ext/typeinfo/JClassType;Ljava/lang/String;Ljava/lang/String;Lcom/
> google/gwt/core/ext/typeinfo/TypeOracle;Lcom/google/gwt/uibinder/
> rebind/MortalLogger;Lcom/google/gwt/uibinder/rebind/FieldManager;Lcom/
> google/gwt/uibinder/rebind/messages/MessagesWriter;Lcom/google/gwt/
> uibinder/rebind/DesignTimeUtils;Lcom/google/gwt/uibinder/rebind/
> UiBinderContext;)V
>   at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
> 135)
>   at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
> 119)
>   at
> com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
> 427)
>   at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 39)
>   at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:115)
>   at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:58)
>   at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle

Re: Post on remote server

2011-03-31 Thread Jambi
I don´t know if it´s possible from the client. But you can do the post
on your own server and exchange the data via GWT-RPC. That´s the way I
handle my OAuth authentication with facebook, google and twitter.

On 31 Mrz., 03:37, ns  wrote:
> Hello,
> I am new to gwt and i just have a quick question. I want to post to a
> remote server but whenever i try to do so using requestbuilder, i
> always get Cross Domain Restriction. If i use jsonp, i can't use
> "post". Is there some simple way in gwt to post to a remote server and
> get json response back?
>
> 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: MVP + Handlers + Carelessness = Memory Leak ?

2011-03-31 Thread Jambi
Hi Peter,

I´m not sure if i got your question right but I think the activities
and places pattern could help you. Normally, you have to care about
the unloading of your handlers, but within the activity framework, GWT
handles all the handler unloading as soon as you stop the activity
(remove the presenter). It shouldn´t be to hard to port an existing
mvp app into activities and places. I could be wrong, because I´m also
not that experienced, but I think this is the way to achieve this.

Cheers,
Mike

On 30 Mrz., 19:58, pete  wrote:
> Hallo,
>
> I'm not sure how GWT handles this, so I want to evaluate a short
> example scenario for memory leaks. Suppose I write my own handler
>
> public Interface BlubbHandler {
>     void onBlubb(BlubbEvent event);
>
> }
>
> have my presenter
>
> public class MyPresenter {
>     private final MyView view;
>     private final StringContainer justToBeFinal;
>
>     @Inject
>     public MyPresenter(MyView view) {
>         this.view = view;
>         view.addBlubbHandler(new BlubbHandler(){
>             justToBeFinal.setText("BLUBB");
>         });
>     }
>
> }
>
> and now my Widget is disposed. Will the memory it uses ever be freed?
> Or does the reference to view prevent view from being disposed, and
> the reference of view's BlubbHandler to justToBeFinal prevent
> MyPresenter to be disposed?
> I'm not even sure, how it would be in Java, but I think in Java this
> would cause a memory leak, wouldn't it?
> So do I have to add a dispose() method to pesenter, that must be
> called to null out the BlubbHandlers of view?
> And how is this handled with GWT's own event system? Or with event
> systems constructed on top of GWTs own one, using SimpleEventBus and
> extending / implementing GWT's classes?
>
> Anyone who is more versatile in these matters and can help me would be
> very appreciated :-) I don't want to find out after lines and lines of
> code, that I'm memory leaking like stupid...
> Greetz,
> Peter

-- 
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 GAE Session getThreadLocalRequest

2011-03-31 Thread Kayode Odeyemi
subscribing

On 3/31/11, John Wheeler  wrote:
> getThreadLocalRequest().getSession() is returning a different session
> object than the one I instantiate with request.getSession(true) in
> another servlet--but only in IE. FF Chrome Safari all work. I was
> reading more news posts, and it seems to have to do with either IE
> using multiple threads while processing javascript. Or, it might be
> related more to this.
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=2236
> which has to do with instance variable thread locals.
>
> I have tried everything. I have tried setting cookies, filtering
> requests and keeping my own thread local storage, using dynamic host
> page, setting *.js as resource-files (for app engine) and placing
> filters around them.
>
> --
> 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.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

-- 
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 & Entities relationship

2011-03-31 Thread Metronome & Basic
It is also necessary to use the with() method to retrieve any properties with 
types extending ValueProxy. The with() method takes multiple String arguments, 
so you can specify multiple property names at once. To specify nested 
properties, use dot notation. Putting it all together, you might have

Request findReq = find(personId).with("phone","address.city","address.zip")does 
it means that you have to persist or merge using with tooThanksPatrick- 
Original Message - 
  From: Metronome & Basic 
  To: google-web-toolkit@googlegroups.com 
  Sent: Thursday, March 31, 2011 10:00 AM
  Subject: Re: RequestFactory & Entities relationship


  In fact I'm trying to convert a Datastore accessed via RPC and DTOs to 
RequestFactory.
  So far the entities have been populated by the old system
  I'm just trying to read data for the now

  I'm sorry I'v just missed this paragraph !


  Thanks anyway

  Patrick

- Original Message - 
From: Y2i 
To: google-web-toolkit@googlegroups.com 
Sent: Thursday, March 31, 2011 8:54 AM
Subject: Re: RequestFactory & Entities relationship


You don't have to use with() if you don't want to populate relations of the 
object graph 

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships



to refer to more than one relation, use with("rel1", "rel2", "etc")

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






Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011


--

  Aucun virus trouvé dans ce message.
  Analyse effectuée par AVG - www.avg.fr
  Version: 10.0.1209 / Base de données virale: 1500/3541 - Date: 30/03/2011


  -- 
  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: access a from a JSNI function in GWT

2011-03-31 Thread Thomas Broyer
If the form is in a ui.xml, why don't you put a ui:field on it (instead of 
id) and have uiBinder inject the FormElement into an @UiField of your Java 
class? (and then pass the FormElement ro your JSNI method instead of the 
getElementById)

But back to your actual issue with JSNI: use '$doc' instead of 'document'. 
GWT by default loads in a hidden iframe, so the 'document' is the iframe's 
doc, not the host page's one.

-- 
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: symbolMap files

2011-03-31 Thread Thomas Broyer
I don't think you can have the Compiler *not* generate them at all, but you 
can have it generate them wherever you want (maybe including /dev/null ?) 
using the -deploy argument.

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



can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
i am trying to get an tab layout which gets 100% of screensize but all
set size with percentage is beeing ignored. here is my code:

public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
String text1 = "Lorem ipsum dolor sit amet...";
String text2 = "Sed egestas, arcu nec accumsan...";
String text3 = "Proin tristique, elit at blandit...";
TabLayoutPanel panel = new TabLayoutPanel(1, Unit.CM);
panel.setHeight("100%");
panel.setWidth("100%");

LayoutPanel layoutPanel = new LayoutPanel();
layoutPanel.add(new Label(text1));
panel.add(layoutPanel, "New Widget", false);

LayoutPanel layoutPanel_1 = new LayoutPanel();
layoutPanel_1.add(new Label(text2));
panel.add(layoutPanel_1, "New Widget", false);

LayoutPanel layoutPanel_2 = new LayoutPanel();
layoutPanel_2.add(new Label(text3));
panel.add(layoutPanel_2, "New Widget", false);

panel.selectTab(0);


rootPanel.add(panel);
}

So how to get an tab layout with all tabs getting 100%?

Thx in advance

-- 
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 library to wrap the W3C file API

2011-03-31 Thread nino ekambi
Hi there,
nice job.

can this process PDF and Excel file ?
Regards,

Alain

2011/3/31 Lukas Laag 

> Hello,
> I have developed a new library to address the problem of loading files
> which are on the local filesystem of the end-user into GWT
> applications. Actually the library is just a simple GWT wrapper for
> the W3C file API and some parts of the HTML5 drag and drop API. If you
> are developing an application where you want your users to open files
> on their local filesystem without having to upload them to a server
> first, this might be of interest to you.
>
> The lib is published under LGPLv3.
>
> More details can be obtained here:
> http://www.vectomatic.org/google-web-toolkit/a-file-api-for-gwt
> The lib itself is available here:
> http://code.google.com/p/lib-gwt-file/
> A demo is also available here:
> http://www.vectomatic.org/gwt/lib-gwt-file-test/lib-gwt-file-test.html
>
> Regards,
>
> Lukas
>
> --
> 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.
>
>


-- 

GWT API for the Flash Platform
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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.



Re: can't get tabLayout with 100% size

2011-03-31 Thread Jens
Put your TabLayoutPanel in a RootLayoutPanel instead of a RootPanel. Then it 
should work and you do not need to set any width/height.

-- 
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: JPA & JAXB Classes with GWT RPC

2011-03-31 Thread Paul Robinson

JAXB generated classes import jaxb classes that are used for annotations, and 
that gives you problems with the compilation to javascript. I've seen various 
people post to this list with problems getting this to work with GWT RPC, but I 
don't recall anybody saying they'd managed it.


On 31/03/11 09:08, Michele Rossi wrote:

Hi,
I would like to use JPA-annotated classes and schema-generated JAXB-annotated 
classes as data transfer objects for my RPC services.

Is there anything fundamentally difficult / wrong with this?
I tried some time ago but I couldn't get it to work so I had to code up ugly 
DTO translators.

I assume that provided I make a GWT module with the source java files available 
RPC should happy right?

thanks,
Michele

--
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 + Handlers + Carelessness = Memory Leak ?

2011-03-31 Thread Kayode Odeyemi
The GWT Activity and Place is not a solution that is fit for all kinds of
client requests. I have
seen places where I still have to use a combination of MVP and Activity &
Place in the same
application.

On Thu, Mar 31, 2011 at 9:40 AM, Jambi wrote:

> Hi Peter,
>
> I´m not sure if i got your question right but I think the activities
> and places pattern could help you. Normally, you have to care about
> the unloading of your handlers, but within the activity framework, GWT
> handles all the handler unloading as soon as you stop the activity
> (remove the presenter). It shouldn´t be to hard to port an existing
> mvp app into activities and places. I could be wrong, because I´m also
> not that experienced, but I think this is the way to achieve this.
>
> Cheers,
> Mike
>
> On 30 Mrz., 19:58, pete  wrote:
> > Hallo,
> >
> > I'm not sure how GWT handles this, so I want to evaluate a short
> > example scenario for memory leaks. Suppose I write my own handler
> >
> > public Interface BlubbHandler {
> > void onBlubb(BlubbEvent event);
> >
> > }
> >
> > have my presenter
> >
> > public class MyPresenter {
> > private final MyView view;
> > private final StringContainer justToBeFinal;
> >
> > @Inject
> > public MyPresenter(MyView view) {
> > this.view = view;
> > view.addBlubbHandler(new BlubbHandler(){
> > justToBeFinal.setText("BLUBB");
> > });
> > }
> >
> > }
> >
> > and now my Widget is disposed. Will the memory it uses ever be freed?
> > Or does the reference to view prevent view from being disposed, and
> > the reference of view's BlubbHandler to justToBeFinal prevent
> > MyPresenter to be disposed?
> > I'm not even sure, how it would be in Java, but I think in Java this
> > would cause a memory leak, wouldn't it?
> > So do I have to add a dispose() method to pesenter, that must be
> > called to null out the BlubbHandlers of view?
> > And how is this handled with GWT's own event system? Or with event
> > systems constructed on top of GWTs own one, using SimpleEventBus and
> > extending / implementing GWT's classes?
> >
> > Anyone who is more versatile in these matters and can help me would be
> > very appreciated :-) I don't want to find out after lines and lines of
> > code, that I'm memory leaking like stupid...
> > Greetz,
> > Peter
>
> --
> 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.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



GWT application works on FF3.6, IE, Chrome but fails on

2011-03-31 Thread jantekb
hi!

I have a GWT + GWTExt application, that stopped working when I
upgraded to FF 4. It used to work well on the popular browsers. (IE8,
Chrome, FF 3.6) The error message is the following that I see in the
firebug console:

uncaught exception: [Exception... "'Unrecognized type object for value
Tue Mar 01 2011 00:00:00 GMT+0100' when calling method:
[nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e
(NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: 
chrome://firebug/content/spy.js
:: callPageHandler :: line 744" data: no]

do you have any idea what shall I do to get this working? had anyone
issues like this?

bye, jb

-- 
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 + Handlers + Carelessness = Memory Leak ?

2011-03-31 Thread Thomas Broyer

On Wednesday, March 30, 2011 7:58:43 PM UTC+2, pete wrote:
>
> Hallo, 
>
> I'm not sure how GWT handles this, so I want to evaluate a short 
> example scenario for memory leaks. Suppose I write my own handler 
>
> public Interface BlubbHandler { 
> void onBlubb(BlubbEvent event); 
> } 
>
> have my presenter 
>
> public class MyPresenter { 
> private final MyView view; 
> private final StringContainer justToBeFinal; 
>
> @Inject 
> public MyPresenter(MyView view) { 
> this.view = view; 
> view.addBlubbHandler(new BlubbHandler(){ 
> justToBeFinal.setText("BLUBB"); 
> }); 
> } 
> } 
>
> and now my Widget is disposed. Will the memory it uses ever be freed? 
> Or does the reference to view prevent view from being disposed,


Yes.
 

> and 
> the reference of view's BlubbHandler to justToBeFinal prevent 
> MyPresenter to be disposed?
>

It depends how the view keeps a reference to the BlubbHandler (or rather *
who* keeps a reference to it).
Having A keeping a reference on B, and B a reference on A doesn't 
(necessarily) create a memory leak: both will be reclaimed when there's no 
longer any reference to any of them.
 

> I'm not even sure, how it would be in Java, but I think in Java this 
> would cause a memory leak, wouldn't it? 
> So do I have to add a dispose() method to pesenter, that must be 
> called to null out the BlubbHandlers of view? 
> And how is this handled with GWT's own event system? Or with event 
> systems constructed on top of GWTs own one, using SimpleEventBus and 
> extending / implementing GWT's classes?
>

As I said above, it depends *who* keeps a reference on the handlers, and its 
lifetime. If you're using a HandlerManager (or EventBus) that has the same 
lifetime as the view, then you've just changed the A->B->A above to 
A->B->C->A, but it's still OK.
 

> Anyone who is more versatile in these matters and can help me would be 
> very appreciated :-) I don't want to find out after lines and lines of 
> code, that I'm memory leaking like stupid...


Given that anything related to the DOM is quite heavyweight and slow, it 
could be a good idea to keep some views around as singletons (instead of 
building a new one each time). Presenters are on the other hand generally 
lightweight objects, so having them short-lived makes them easier to code 
(as you don't have to reset their internal state each time they're reused). 
That means it's good practice to include "dispose" methods in presenters to 
"detach" from the view, thus preventing memory leaks (if you create 10 
presenters for a single view, and never "detach" them, you'll still have all 
10 in memory *and* listening to events *and* probably trying to update the 
shared view all at once; bad for memory usage, bad for performance, and 
highly error prone!)
As Jambi suggested, GWT 2.1 Activities makes it easy, as an activity's 
lifecycle is clearly define: it starts (time where you "attach" to the view) 
and then either is cancelled (before it has finished 
asynchronously-starting) or is later stopped (time to "detach" from the 
view).

In the end, it all depends how you manage the lifecycle and lifetime of your 
objects.

-- 
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: can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
thank you very much,

since hours i try this :-)

On 31 Mrz., 12:44, Jens  wrote:
> Put your TabLayoutPanel in a RootLayoutPanel instead of a RootPanel. Then it
> should work and you do not need to set any width/height.

-- 
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: access a from a JSNI function in GWT

2011-03-31 Thread mightymightyblues
So, I create a :

   


use the uiBinde to take te FormPanel, and after that I can to use that
"FormPanel" like a FormData in jsni? Is compatible?

On 31 mar, 12:01, Thomas Broyer  wrote:
> If the form is in a ui.xml, why don't you put a ui:field on it (instead of
> id) and have uiBinder inject the FormElement into an @UiField of your Java
> class? (and then pass the FormElement ro your JSNI method instead of the
> getElementById)
>
> But back to your actual issue with JSNI: use '$doc' instead of 'document'.
> GWT by default loads in a hidden iframe, so the 'document' is the iframe's
> doc, not the host page's one.

-- 
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: access a from a JSNI function in GWT

2011-03-31 Thread mightymightyblues
Now I have this in JSNI:

var formData = new
FormData(this.@com.libregeosocial.backend.client.tools.RequestJson::fileinfo);

And fileinfo is a FormPanel. But this crash ... any Idea? is not the
same a FormData javascript and a FormPanel Java ?!

On 31 mar, 13:08, mightymightyblues 
wrote:
> So, I create a :
>  name="fileinfo" ui:field="fileinfo">
>    
> 
>
> use the uiBinde to take te FormPanel, and after that I can to use that
> "FormPanel" like a FormData in jsni? Is compatible?
>
> On 31 mar, 12:01, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > If the form is in a ui.xml, why don't you put a ui:field on it (instead of
> > id) and have uiBinder inject the FormElement into an @UiField of your Java
> > class? (and then pass the FormElement ro your JSNI method instead of the
> > getElementById)
>
> > But back to your actual issue with JSNI: use '$doc' instead of 'document'.
> > GWT by default loads in a hidden iframe, so the 'document' is the iframe's
> > doc, not the host page's one.

-- 
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 2.2 + JPA problem?

2011-03-31 Thread Juan Pablo Gardella
What is the package of entity.User ? Are you put in client package?

Juan

2011/3/30 zoejules 

> I am working with GWT 2.2, JPA, Java EE 6 Web, glassfish v3. My
> problem is that I receive the following error if I use my entity in an
> RPC call: "No source code is available for type entity.User; did you
> forget to inherit a required module?"
>
> First I tought the problem was the annotation, but then I read that
> from GWT 2.0 version should be working if "The class is annotated with
> a JPA javax.persistence.Entity annotation". Is this mean that I don't
> have to have the entity class in the client?
>
> Ummm, I think I just write here everything what I think is important.
> I have the GWT project with the following packages:
>
> org.ecommunity
> org.ecommunity.client (and org.ecommunity.client.view)
> org.ecommunity.server -> and here is just a service impl.:
> public class ECommunityServiceImpl extends RemoteServiceServlet
> implements ECommunityService  {
>@EJB
>ECommunitySB bean;
>
>@Override
>public User loginService(String username) {
>return bean.getUserByUsername(username);
>}
> }
> My Main.gwt.xml looks like this:
>
> 
>
>
>
>
> 
>
> And I have an EJB Module Project with the following packages: entity
> (in here is my User entity class) and a sessionbean (with my
> sessionbean).
>
> What is the problem? Do I miss something?
>
> --
> 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: Spring

2011-03-31 Thread Juan Pablo Gardella
You can make a service that provide it.

Juan

2011/3/30 l3dx 

> Hi!
>
> I'm also interested in this. How can one get information about the
> authenticated user from within GWT?
> I'm not even sure if I need this, but I started to think about it and
> became curious :)
>
> /Thomas
>
> On Mar 30, 3:51 pm, joe kolba  wrote:
> > It's really not hard at all, basically start by setting up a typical
> spring
> > security framework project and after that is set add the gwt project
> > capabilities and in the applicationContext-security protect your
> hosted.html
> > file.  If you have any questions feel free to email me.
> >
> > On Wed, Mar 30, 2011 at 9:48 AM, Alexei Telles  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I missed my last conversation (didn't receive e-mail answer because of
> > > membership option and I can't find it here in the group discussion).
> >
> > > I'm sorry but I have to post it again.
> > > I've developing GWT app for some years and now I have to implement
> > > Spring Security in my app.
> >
> > > I found some tutorials and some libraries in this group, but all old
> > > posts.
> >
> > > Does anyone know a good tutorial to get started with GWT + Spring
> > > Security?
> >
> > > Thanks again.
> >
> > > --
> > > 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.



RequestBuilder don't store coockies?

2011-03-31 Thread mightymightyblues
Hi,

I'm making some test about CORS and trying to make a POST to a server,
to make login, and the server send me a message with a 200 state ( the
login was correct ) , but the browser don't save the coockies. this is
my code:

RequestBuilder rb = new
RequestBuilder(RequestBuilder.POST, Url);
rb.setHeader("Content-type", "application/x-www-form-
urlencoded");

try {
Request response = rb.sendRequest(postData, new 
RequestCallback()
{

public void onError(Request request, Throwable 
exception) {
}
public void onResponseReceived(Request request, Response
response) {
Window.alert(response.getText());
}
});
}
catch (RequestException epa) {
Window.alert("Failed to send the request: " + epa.getMessage());
}


The response.getText() show me the "ok, you are login" but there are
no coockies en my browser with this ... If I use XMLHttpRequest() with
JSNI, the browser save it the coockies.

Any Idea... I'm getting tired about this task jeje, when I find a
way ... I will upload the code and made some guide! Lol

-- 
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: com.google.gwt.junit.client.GWTTestCase can not be found in source packages

2011-03-31 Thread Yusuf Sutarko
Please see this link
http://forums.instantiations.com/viewtopic.php?f=11&t=1381

On Mar 7, 9:22 pm, Sai  wrote:
> Hi,
>
> I have down loaded StockWatcher to understand GWT RPC better.
>
> I have imported the project into my eclipse work space and I get the
> following problem:
>
> " com.google.gwt.junit.client.GWTTestCase can not be found in source
> packages. Check the inheritance chain from your module; it may not be
> inheriting a required module or a module may not be adding its source
> path entries properly "
>
> Tried doing:
> 1. Exceptionally added gwt-user.jar and gwt-dev.jar to the classpath
>
> 2. added  to .gwt.xml
> file
>
> still the problem persists.
>
> I use GWT2.1.1, I dont think version matters for this problem, shared
> for the information.
>
> Appreciate your reply!
>
> Thanks and Regards,
> -Saida Dhanavath.

-- 
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: symbolMap files

2011-03-31 Thread mike b
Thx for the reply.  I see the -deploy now, thanks for that reference.  I'm 
on windoze, so I don't know of a /dev/null equivalent.  So, I'm just 
throwing them into another directory that our ant build deletes before each 
build.  

Thx again, 
mikeb

-- 
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 + Spring Security

2011-03-31 Thread cheleb
Hi
  You could check:
* http://code.google.com/p/net-orcades-spring/
* http://code.google.com/p/orcades-gwt-spring/ for a MVP approach.
 if will at least give you some ideas.


On Mar 9, 5:23 am, "j.singh.developer" 
wrote:
> This may be a repeatable question. I am looking for a resource
> (example would be nice) that takes into consideration all security
> aspects of GWT and implements it using Spring Security. Any
> guidelines, pointing to resources will be really appreciated.
>
> 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.



how to set selected widget in stackLayoutPanel?

2011-03-31 Thread tanteanni
i found only this: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4453

but how is this "fixed"? how can can set the selected widget within a
stacklayoutpanel?

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



How can I unit test some basic JavaScript overlay objects with the need for a Servlet and GWTTestCase ?

2011-03-31 Thread stuckagain
I have a few JavaScriptObject overlay types that I need to check for correct 
behaviour.
 
They basically represent data that I receive from a JSONP request.
 
I tried adding a servlet for testing that would serve the JSONP following 
the JUnit testing docs of GWT but 
I noticed that it does not start the servlet that I configured in the 
MyTest.gwt.xml file and I don't want to 
expose this testing servlet in the web.xml of my application.
 
Any ideas on how I could do this as a real unittest (without GWTTestCase). 
I can easily generate the json payload but that is using code that is not 
GWT compilable.
I have no way to instantiate the JavaScript overlay object (because it gives 
an error that it could not bind the native methods)... 
 
is there a way that I could somehow let this run with Rhino ? I just need to 
be able to check that my overlays are compatible with the data that I 
generate.
 
David

-- 
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 2.2 + JPA problem?

2011-03-31 Thread ngspk
It is in another project (EJB Module Project).

On Mar 31, 1:28 pm, Juan Pablo Gardella 
wrote:
> What is the package of entity.User ? Are you put in client package?
>
> Juan
>
> 2011/3/30 zoejules 
>
>
>
>
>
>
>
> > I am working with GWT 2.2, JPA, Java EE 6 Web, glassfish v3. My
> > problem is that I receive the following error if I use my entity in an
> > RPC call: "No source code is available for type entity.User; did you
> > forget to inherit a required module?"
>
> > First I tought the problem was the annotation, but then I read that
> > from GWT 2.0 version should be working if "The class is annotated with
> > a JPA javax.persistence.Entity annotation". Is this mean that I don't
> > have to have the entity class in the client?
>
> > Ummm, I think I just write here everything what I think is important.
> > I have the GWT project with the following packages:
>
> > org.ecommunity
> > org.ecommunity.client (and org.ecommunity.client.view)
> > org.ecommunity.server -> and here is just a service impl.:
> > public class ECommunityServiceImpl extends RemoteServiceServlet
> > implements ECommunityService  {
> >    @EJB
> >    ECommunitySB bean;
>
> >    @Override
> >    public User loginService(String username) {
> >        return bean.getUserByUsername(username);
> >    }
> > }
> > My Main.gwt.xml looks like this:
>
> > 
> >    
> >    
> >    
> >    
> > 
>
> > And I have an EJB Module Project with the following packages: entity
> > (in here is my User entity class) and a sessionbean (with my
> > sessionbean).
>
> > What is the problem? Do I miss something?
>
> > --
> > 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.



How to host GWT in a google-site page?

2011-03-31 Thread sibiquin
I have searched and struggled with this, but cannot successfully host
a (simple example) GWT application in a google site page.

The only mechanism for this is a google gadget on the page that
contains the HTML and javascript. I have other (javascript-based)
gadgets that work OK, but the GWT application never runs (just the
HTML appears, but looks like the javascript does not execute). I
uploaded the .js file and referenced it in the  tag something
like: