How To test Application an emulate many users

2011-09-27 Thread Foermchen82
Hi everybody,

the GWT Test tools only allows to test single modules.

But who is it possible to test a deployed application? I want to
emulate multiple users to have whole load test.

Kind regrads,

-- 
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 use external Java beans on client

2011-09-27 Thread David
I need to use Java beans (classes with getters and setters) from an
external jar-file (like Xyz-1.2.3.jar) on the browser client. These
beans implements java.io.Serializable and the Java source is available
in a separate Xyz-1.2.3-sources.jar. How could this be done?

I found http://www.vogella.de/articles/GWTModules/article.html but
still can't get it to work.

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



What do you think?

2011-09-27 Thread Bruno Sandivilli
Hi , what do you think about this:
http://amplicate.com/hate/gwt/4104355-i-hate-gwt-its-one-of-the-worst-frameworks-ive/
 ?

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



XSRF protection

2011-09-27 Thread Vampire
Hi

Does RequestFactory has included XSRF protection?
For RPC Requests I see the XsrfProtectedServiceServlet.
But I don't see a XsrfProtectedRequestFactoryServlet or similar.
While the documentation states that RequestFactory is better and newer
and should be used.
Does this mean it has XSRF protection included, or would one have to
rebuild what XsrfProtectedServiceServlet does for the
RequestFactoryServlet?

And why does the XsrfProtectedServiceServlet need the session cookie
name injected?
Why doesn't it simply use HttpServletRequest.getSession().getId()
which wouldn't need any manual configuration?

Regards

-- 
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: Edit an object in a List without a ListEditor

2011-09-27 Thread Maiku
Woops, I mean Eclipse Debug runs Development Mode and Eclipse "Run"
runs Production Mode.  (I keep getting confused with the change in
terminology for the modes :) )

-- 
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: Edit an object in a List without a ListEditor

2011-09-27 Thread Maiku
Hmmm... this looks it might be a bug in the Development mode for
Eclipse under Firefox 6.02 (although I had my ListEditor problem back
in FF 5.0).  Running under IE9 and Chrome both work and using the
"Run" command in Eclipse (which I assume starts Hosted Mode?) instead
of the "Debug" command, also allows it to work in Firefox.

-- 
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: Edit an object in a List without a ListEditor

2011-09-27 Thread Maiku
Crud, seems I spoke too soon. The code worked the first time I tried
it but after changing something in a totally different area I get:


com.google.gwt.core.client.JavaScriptException: (TypeError):
__static[524442].call is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at
com.google.web.bindery.autobean.gwt.client.impl.ClientPropertyContext
$Setter$.beanSetter(ClientPropertyContext.java)
at
com.google.web.bindery.requestfactory.shared.messages.InvocationMessageAutoBean.traverseProperties(InvocationMessageAutoBean.java:
91)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:
166)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:
101)
at
com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doCoderFor(AutoBeanCodexImpl.java:
521)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:
276)
at
com.google.web.bindery.requestfactory.shared.messages.InvocationMessageAutoBean.access
$8(InvocationMessageAutoBean.java:1)
at
com.google.web.bindery.requestfactory.shared.messages.InvocationMessageAutoBean
$2.setOperation(InvocationMessageAutoBean.java:73)
at
com.google.web.bindery.requestfactory.shared.messages.InvocationMessageAutoBean
$1.setOperation(InvocationMessageAutoBean.java:32)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.makePayloadInvocations(AbstractRequestContext.java:
990)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.access
$4(AbstractRequestContext.java:980)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
$StandardPayloadDialect.makePayload(AbstractRequestContext.java:220)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.doFire(AbstractRequestContext.java:
944)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fire(AbstractRequestContext.java:
468)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.fire(AbstractRequest.java:
54)
at
com.google.web.bindery.requestfactory.shared.impl.AbstractRequest.fire(AbstractRequest.java:
59)
at
com.myproject.client.activity.ConfigDialogPresenter.edit(ConfigDialogPresenter.java:
97)


I've received a similar error code before when trying to create a List
Editor with UIBinder (but the stack trace was totally different). How
can I debug into this further to find out the problem as it is turning
up in the javascript code?

-- 
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: Detecting ONPASTE on a richtextbox? (possible?)

2011-09-27 Thread darkflame
I'm guessing its because richtextbox use's a iFrame...so somehow the
handler needs to listen within that?
Dont know the solution though.

On Sep 27, 11:56 am, Javier  wrote:
> im in the same problem.
> some links that works good in textarea widgets but not in richtext 
> :(:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> related 
> issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=4030
>
> same 
> question:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> On 4 sep, 21:01, darkflame  wrote:
>
>
>
> > Is it possible to detect aonpasteevent in a richtextbox?
>
> > I followed this method here for a 
> > textbox;http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> > (basicly just extending a richtextbox instead)
>
> > Nothing seems to fire though in Chrome.

-- 
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: [ANN] Scala+GWT 0.1-M2 released

2011-09-27 Thread Alain Ekambi
This is interesting.
Will check it out.
Thx for sharing

2011/9/27 Grzegorz Kossakowski 

> Hello,
>
> I'm excited to announce second milestone of Scala+GWT project.
>
> Download (and then follow README instructions) from here:
> http://goo.gl/93hsR
>
> Release notes (included below) can be found here: http://goo.gl/H8san
>
>
> Scala+GWT 0.1-M2
> 
>
> The second official milestone release from the Scala+GWT project.
>
> You can check release notes for Scala+GWT 0.1-M1 [here](
> http://scalagwt.github.com/releasenotes).
>
> This release consists of just samples packaged along with snapshot
> of jars needed to build them. Those jars include our own version
> of both GWT and Scala.
>
> This release doesn't come with any official artifacts apart from the
> tarball you can download from [
> http://github.com/scalagwt/scalagwt-sample](http://github.com/scalagwt/scalagwt-sample)
> .
>
> ### Changes since last release
>
>   * Vastly improved compilation speed
>   * No more issues with GWT classpath thus build process for samples got
> simplified
>   * Development mode works
>
> ### Development mode
>
> GWT's development mode is supported for Scala project now. You can get
> simple version
> of development mode by running `ant devmode`. Then load your application
> using the
> url GWT provides. Change edit source code for Hello world sample and then
> type
> `ant scalac` in second terminal. Refresh your page in browser. You should
> see your
> changes.
>
> Read more about [development mode](
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode
> ).
>
> Watch [video](http://www.youtube.com/watch?v=w1nluQmkE8g) showing
> full-blown development mode for Scala.
>
> ### Known issues
>
>   * many patterns in pattern matching logic are not supported (tough issue)
> examples include
> * pattern alternatives (`|`)
> * guard patterns (`if` guard)
>   * in some cases (like gwtdlx sample) optimizations enabled in gwt lead to
> broken JS code
>
> ### Reporting issues
>
> We appreciate feedback. If you find something that doesn't work (e.g.
> crashes either Scala or GWT compiler)
> or JavaScript gives you weird results we'd love to hear about it. The most
> effective way of reporting issues
> is to modify `Hello World` sample to show your problem. Exact steps are:
>
>   1. Fork `scalagwt-sample` repo from here:
> http://github.com/scalagwt/scalagwt-sample
>   2. Clone it: `git clone git://
> github.com/YOUR_USER_NAME/scalagwt-sample.git`
>   3. Modify hello world sample located in
> `src/com/google/gwt/sample/jribble/client`
>   4. Commit and publish your example.
>   5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and
> mention your
>  fork while explaining your issue.
>
> If you want to discuss your problem before reporting it, join
> [scala...@googlegroups.com](http://groups.google.com/group/scalagwt).
>
> ### What if I don't know GWT?
>
> That shouldn't be a big problem. You've got Scala source code for samples
> that show basic functionality
> and provides basic setup. You may want to start with channging hello world
> sample, recompiling it and
> testing in a browser.
>
> ### What if I don't know Scala?
>
> You might still want to check out samples to see how they might look like
> in other language than Java.
> We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
> receive enough of Scala's
> [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766).
>
> ### Need help? Want to discuss something?
>
> Join us here: [scala...@googlegroups.com](
> http://groups.google.com/group/scalagwt).
>
>
> Happy playing!
>
> *Scala+GWT team*
>
>
> --
> Grzegorz Kossakowski
>
>  --
> 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  non Java based platforms
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: Permutation, code splitting and deferred property

2011-09-27 Thread Pierre Coirier
I added logs to my generator and it seems the generator is called when
it is supposed to (aka only once for each permutation with the right
value for myProperty):
Computing all possible rebind results for
'com.mvp4g.client.Mvp4gModule'
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'gecko1_8, ginModule=com$mvp4g$example
$client$FirefoxGinModule
   2409 classes scanned in 22 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_79617565
   Generating source for
com.mvp4g.client.Mvp4gModuleImpl_79617565
   Mvp4g Compilation: 232ms.
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'ie6, ginModule=com$mvp4g$client
$DefaultMvp4gGinModule
   2409 classes scanned in 18 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Generating source for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Mvp4g Compilation: 77ms.
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'ie8, ginModule=com$mvp4g$client
$DefaultMvp4gGinModule
   2409 classes scanned in 11 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Mvp4g Compilation: 23ms.
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'ie9, ginModule=com$mvp4g$client
$DefaultMvp4gGinModule
   2409 classes scanned in 8 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Mvp4g Compilation: 121ms.
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'opera, ginModule=com$mvp4g$client
$DefaultMvp4gGinModule
   2409 classes scanned in 7 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Mvp4g Compilation: 73ms.
 Rebinding com.mvp4g.client.Mvp4gModule
Invoking generator com.mvp4g.util.Mvp4gGenerator
   User.agent: 'safari, ginModule=com$mvp4g$client
$DefaultMvp4gGinModule
   2409 classes scanned in 18 ms.
   Generating writer for
com.mvp4g.client.Mvp4gModuleImpl_A1473246115
   Mvp4g Compilation: 32ms.

but when I look at the soyc report, I can tell that both
implementations are used for each permutation to calculate the
fragments for code splitting. Any idea why?

Thanks,
Pierre


On Sep 27, 8:35 am, Pierre Coirier  wrote:
> Thanks for pointing that out. It was a typo error, in my code I do
> have myProperty = value2.
>
> If it helps, you can find the code that I'm using to reproduce the
> error:http://mvp4g.googlecode.com/svn/temp/gwt-example.zipand the
> soyc report:http://mvp4g.googlecode.com/svn/temp/compile-report.zip
>
> When you look at the report, you do see the expected deferred property
> set:
> Permutation 0 ('myProperty' : 'value1' , 'user.agent' : 'gecko1_8')
>
> but clicking on the Slip Point Report, you see the 2 implementations
> generated are here whereas only one is expected.
>
> Pierre
>
> On Sep 27, 8:00 am, Paul Robinson  wrote:
>
>
>
>
>
>
>
> > I don't know the answer to your question, but there is a mistake in the 
> > gwt.xml fragment you posted. You assign myProperty=value1 when user.agent 
> > equals FF and also when user.agent is not FF. You never assign myProperty = 
> > value2.
>
> > HTH
> > Paul
>
> > On 27/09/11 05:37, Pierre Coirier wrote:
>
> > > Hi,
>
> > > I got an issue with deferred property and code splitting.
>
> > > In my GWT configuration file, I have defined the following property:
> > > 
> > > 
> > >    
> > > 
> > > 
> > >    
> > >      
> > >    
> > > 
>
> > > and I have a generator with the following code that generates one
> > > implementation depending on this deferred property value:
>
> > > public String generate( TreeLogger logger, GeneratorContext context,
> > > String typeName ) throws UnableToCompleteException {
> > >      String value = propertyOracle.getSelectionProperty( logger,
> > > "myProperty" );
> > >      if("value1".equals(value)){
> > >          return generateImpl1();
> > >      } else {
> > >          return generateImpl2();
> > >      }
> > > }
>
> > > According to my settings for each browser, you can have only one
> > > value, ie for each permutation my generator should generate either
> > > Impl1 or Impl2 but not both. However in my soyc report, I noticed that
> > > for each browser/permutation, both implementations are generated.
>
> > > The issue I have is that my generator generates the same GWT.runAsync
> > > call for both implementation and since the 2 implementations are
> > > generated for each permutation 

FlexTable border and TabPanel

2011-09-27 Thread hadar
Hi,

I want to create flexTable that show difference between two lists.
each two rows show one row from first list and second line one from
second list.
Total number of rows is size of list * 2.
I need that between each first and second line to have "little" border
and between each 2 rows "bigger" splitter.

Below is example code and css that show the problem.

Another question is that I want to create 2 tables that I can switch
between them by using TabPanel.
When I try this I got the following exception  from code line -
tabPanel.add(flexTable1);   :
Caused by: java.lang.UnsupportedOperationException: A tabText
parameter must be specified with add().

The code :
public void onModuleLoad() {

TabPanel tabPanel = new TabPanel();
FlexTable flexTable1 = new FlexTable();
flexTable1.addStyleName("FlexTable");
FlexTable flexTable2 = new FlexTable();

tabPanel.add(flexTable1);
tabPanel.add(flexTable2);
HTMLTable.RowFormatter rf = flexTable1.getRowFormatter();
for(int i = 0; i < 6; i+=2) {
rf.addStyleName(i, "FlexTable-PrevRow");
rf.addStyleName(i+1, "FlexTable-CurrRow");
flexTable1.setText(i, 0, "Text1"+i);
flexTable1.setText(i, 1, "Text2"+i);
flexTable1.setText(i+1, 0, "Text1"+i);
flexTable1.setText(i+1, 1, "Text4"+i);
flexTable1.getCellFormatter().addStyleName(i, 
1,"FlexTable-
diffPrev");
flexTable1.getCellFormatter().addStyleName(i+1, 
1,"FlexTable-
diffCurr");
}

RootPanel.get("compare").add(flexTable1);
}

The css :
.FlexTable {
  border-top: thin solid #44;
  border-left: thin solid #44;
  border-right: thin solid #11;
  border-bottom: thin solid #11;
  background-color:  #505050;
}

.FlexTable-PrevRow {
  background-color: #cc;
  border-bottom: solid;
}

.FlexTable-CurrRow {
  background-color:  #505050;
  border-bottom: dashed;
}

.FlexTable-diffPrev {
  color: blue;
}

.FlexTable-diffCurr {
  color:  red;
}




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



[ANN] Scala+GWT 0.1-M2 released

2011-09-27 Thread Grzegorz Kossakowski
Hello,

I'm excited to announce second milestone of Scala+GWT project.

Download (and then follow README instructions) from here:
http://goo.gl/93hsR

Release notes (included below) can be found here: http://goo.gl/H8san


Scala+GWT 0.1-M2


The second official milestone release from the Scala+GWT project.

You can check release notes for Scala+GWT 0.1-M1 [here](
http://scalagwt.github.com/releasenotes).

This release consists of just samples packaged along with snapshot
of jars needed to build them. Those jars include our own version
of both GWT and Scala.

This release doesn't come with any official artifacts apart from the
tarball you can download from [
http://github.com/scalagwt/scalagwt-sample](http://github.com/scalagwt/scalagwt-sample)
.

### Changes since last release

  * Vastly improved compilation speed
  * No more issues with GWT classpath thus build process for samples got
simplified
  * Development mode works

### Development mode

GWT's development mode is supported for Scala project now. You can get
simple version
of development mode by running `ant devmode`. Then load your application
using the
url GWT provides. Change edit source code for Hello world sample and then
type
`ant scalac` in second terminal. Refresh your page in browser. You should
see your
changes.

Read more about [development mode](
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideDevMode
).

Watch [video](http://www.youtube.com/watch?v=w1nluQmkE8g) showing full-blown
development mode for Scala.

### Known issues

  * many patterns in pattern matching logic are not supported (tough issue)
examples include
* pattern alternatives (`|`)
* guard patterns (`if` guard)
  * in some cases (like gwtdlx sample) optimizations enabled in gwt lead to
broken JS code

### Reporting issues

We appreciate feedback. If you find something that doesn't work (e.g.
crashes either Scala or GWT compiler)
or JavaScript gives you weird results we'd love to hear about it. The most
effective way of reporting issues
is to modify `Hello World` sample to show your problem. Exact steps are:

  1. Fork `scalagwt-sample` repo from here:
http://github.com/scalagwt/scalagwt-sample
  2. Clone it: `git clone git://
github.com/YOUR_USER_NAME/scalagwt-sample.git`
  3. Modify hello world sample located in
`src/com/google/gwt/sample/jribble/client`
  4. Commit and publish your example.
  5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and
mention your
 fork while explaining your issue.

If you want to discuss your problem before reporting it, join
[scala...@googlegroups.com](http://groups.google.com/group/scalagwt).

### What if I don't know GWT?

That shouldn't be a big problem. You've got Scala source code for samples
that show basic functionality
and provides basic setup. You may want to start with channging hello world
sample, recompiling it and
testing in a browser.

### What if I don't know Scala?

You might still want to check out samples to see how they might look like in
other language than Java.
We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
receive enough of Scala's
[pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766).

### Need help? Want to discuss something?

Join us here: [scala...@googlegroups.com](
http://groups.google.com/group/scalagwt).


Happy playing!

*Scala+GWT team*


-- 
Grzegorz Kossakowski

-- 
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: RequestFactoryServlet and security : passing sessionId back and forth

2011-09-27 Thread koma

Thx for the pointer. The Expenses/GAE example overwrites createCallback() to 
deal with Response.SC_UNAUTHORIZED responses.

I guess I will have to overwrite *configureRequestBuilder(RequestBuilder 
builder)* and add the SESSIONID in the header of each request. 

protected void configureRequestBuilder(RequestBuilder builder) {

builder.setHeader(CONSTANT_SESSION_ID, getCurrentUserSessionId());
super.configureRequestBuilder(builder);
}


Koen 

-- 
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/-/PmeSgruN0Z4J.
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: How to implement this function?

2011-09-27 Thread TreKing
On Tue, Sep 27, 2011 at 1:22 AM, SophiaWang  wrote:

> How could I realize that?
>

Read the documentation on WebView and web apps.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

-- 
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: Is there anyway to don't go to a place until a rpc is done?

2011-09-27 Thread Jens
Also keep in mind that the user can simply hit the back/forward button of 
the browser to switch places. In that case it would not really help to 
disable the view/navigation or using a PopupPanel with active glass panel 
because the user can still navigate using the browsers buttons. You would 
have to disable these buttons as well (not quite sure if its possible).

So I would say in some cases its just better to assume that the UI in some 
rare cases may show wrong data. In your case its maybe not a big deal if a 
user is shown in a list that is already deleted. If your app user selects 
this deleted user from the list and you are trying to load it from your 
database you could tell the app user that its not there and then remove it 
from the list. So basically you would "repair" the UI state if the app user 
really requests that deleted user from the list. But it depends on your app 
if its a good solution or not.

If you really have to solve this problem then you probably have to make sure 
that the server executes the requests from the client in the exact same 
order as the client sends them. So you might have to implement some sort of 
a sequence number. Using a sequence number you could reorder the server 
requests on server side so that they will be executed in the exact same 
order as they are executed on the client. That way you could make sure that 
DELETE is always executed before LIST gets executed. 


-- 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/-/KXnxz9-HDqkJ.
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 install a previous version of the GWT - Eclipse Plugin with Maven

2011-09-27 Thread Jose CT
Hi all,

I have been following the instructions found at
http://code.google.com/eclipse/docs/getting_started.html#installing
for installing the Eclipse plugin for GWT. The latest version of the
GWT plugin includes the 2.4.0 SDK and the GAE 1.5.4 SDK.

I have been having trouble finding how to install an older version of
both of these SDKs to my Eclipse 3.7. I need versions 2.3.0 of GWT SDK
and version 1.5.3 of GAE SDK. Is there a way of forcing eclipse to use
these older versions?

Thanks,
Jose

-- 
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: Is there anyway to don't go to a place until a rpc is done?

2011-09-27 Thread Thomas Broyer
This is what the mayStop() method of Activity is for. As Jens said, you can 
also somehow disable navigation until your app is in a state that "allows" 
it (but beware that if the user refreshes the page, the app won't have any 
way to know that a previous call was issued → implement mayStop anyway, to 
warn users).

As an alternative, implement your navigation as events on the event bus, and 
a central listener maps them to PlaceController.goTo calls, possibly 
swallowing or deferring them, possibly loading required data before actually 
navigating, etc.

Oh, and of course, you could also display a "glass panel" with a progress 
bar or spinner arrows (or just a message) –e.g. in the form of a PopupPanel 
with setGlassEnabled(true)– that makes all interaction with the app 
impossible until the RPC response is back (but the "refresh page" scenario 
is still to be considered).

Web apps are not like desktop apps: you cannot "lock" users in until 
something is done. They can open the app in another tab/window/browser, they 
can "unload" the app at any time, and possibly reload it while some action 
started by the "previous load" is still being done on the server-side.

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



UiBinder using Element and appendChild(child) possible?

2011-09-27 Thread benjamin_ma...@lavabit.com
Hi,
I wanted to create some lightweight Elements using UiBinder. I've
created a 'root' Element called GlassPanel:

(.ui.xml)







(.java)
public class GlassPanel extends UiObject {
interface GlassUiBinder extends UiBinder {}
private static GlassUiBinder uiBinder =
GWT.create(GlassUiBinder.class);

@UiField DivElement panel;

public GlassPanel() {
setElement(uiBinder.createAndBindUi(this));
}
}




There will now be several other Elements that should use this one as
their 'root'. I want to do something like this:

(.ui.xml)









It works if I say that GlassPanel.java implements HasHTML. But then
UiBinder uses the setHTML method which kills the inner div in my
GlassPanel panel. Instead it would be cool if it could call
'appendChild()' on my GlassPanel panel and simply add the additional
Element. Is it possible?
Maybe somehow using @UiChild ?!

I'm using Eclipse 3.7 and GWT 2.4.

-- 
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: What was Direct-Eval RPC, and why didn't it work ?

2011-09-27 Thread brad
It had a dependency on the Sun JVM (specifically it used sun.misc.Unsafe)

There were some plans for a workaround, but for whatever reason TPTB decided 
to work on RequstFactory instead. You can get the same speed advantages with 
RF but there is a whole lot more boilerplate code needed (which in turn can 
be alleviated with DI and down the rabbit hole you go).*
*

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



Column sorting using async dataprovider in celltable

2011-09-27 Thread jgm
Hello,

We are using an async dataprovider in our celltable, and we have had
some problemt gettting the sorting to work.

In the OnRangeChanged method, we implement sorting this way:

if (sortList.get(0).getColumn().equals(costManagementNameColumn)) {
Collections.sort(effectConfigurationCache, new
Comparator() {
public int compare(EffectConfiguration o1, EffectConfiguration 
o2) {
if (o1 == o2) {
return 0;
}
// Compare the cost management name columns.
int diff = -1;
if (o1 != null) {
diff = (o2 != null) ?
o1.getCostManagementName().compareTo(o2.getCostManagementName()) : 1;
}
return sortList.get(0).isAscending() ? diff : -diff;
}
});
} else if (sortList.get(0).getColumn().equals(orgUnitNameColumn)) {
Collections.sort(effectConfigurationCache, new
Comparator() {
public int compare(EffectConfiguration o1, EffectConfiguration 
o2) {
.
.
}
});
} else if (sortList.get(0).getColumn().equals(effectTypeNameColumn)) {
Collections.sort(effectConfigurationCache, new
Comparator() {
public int compare(EffectConfiguration o1, EffectConfiguration 
o2) {
..
.
}
});
} else if (sortList.get(0).getColumn().equals(maximumThresholdColumn))
{
Collections.sort(effectConfigurationCache, new
Comparator() {
public int compare(EffectConfiguration o1, EffectConfiguration 
o2) {
..
.
}
});
}

This seems to be quite cumbersome !
Can this be done more elegantly?


Previously we used the ListDataProvider, and here sorting is
implemented directly on the ListHandler by setting a comparator for
each column, wich we think is a elegant way to do it!

-- 
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: Is there anyway to don't go to a place until a rpc is done?

2011-09-27 Thread nacho
For example, let's say I have a menu option "List Users", and I have a 
button in the List Users view that removes a User.

Then a user of my app clicks in the "Delete User" button, and inmediately 
clicks in "List Users" option in the menu. This RPC goes to the server 
before that the deleteUser RPC is done. And maybe also the fetchUsers RPC is 
back before the deleteUser RPC efectively deleted the user, so in the list 
will come the deleted user.

So I was looking a way to don't allow the user to go to the Users Lists 
activity before the deleteUser rpc is done. 

-- 
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/-/bHS8nJLtSCwJ.
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: is it possible to open menu on Header of celltable?

2011-09-27 Thread Brito
working tanksss!

On Sep 27, 5:39 pm, Sudhakar Abraham 
wrote:
> Put a ClickableTextCell in Header. Override  onBrowserEvent() method
> in Header class.  Try the code below.
>
> //code segement
>
>  Header header = new Header(new ClickableTextCell())
>  {
>       @Override
>       public String getValue()
>       {
>             return "your_header_name";
>       }
>
>      Command command = new Command()
>       {
>           public void execute()
>           {
>               Window.alert("clicked");
>           }
>       };
>
>       @Override
>       public void onBrowserEvent(Context context, Element parent,
> NativeEvent event)
>       {
>         MenuBar menuBar = new MenuBar();
>         MenuItem fileName = new MenuItem("New",command);
>         menuBar.addItem(fileName);
>         menuBar.setSize("10px", "10ex");
>       }
>
>     };
>
>    //add your header to celltable
>     cellTable.addColumn(your_column_name, header);
>
> S. Abrahamwww.DataStoreGwt.com
> Persist objects directly in GAE
>
> On Sep 27, 4:08 pm, Brito  wrote:
>
> > I wana add menu on header of celltable.
>
>

-- 
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: RequestFactoryServlet and security : passing sessionId back and forth

2011-09-27 Thread Thomas Broyer


On Tuesday, September 27, 2011 5:28:21 PM UTC+2, koma wrote:
>
> Hi
>
> As so many others before me, I went through the *LoginSecurityFAQ* and 
> have been reading about *passing the SESSIONID from the client to the 
> server in the payload for each and every request*. The message is that we 
> cannot trust the HttpSession server side because of potential CSRF attacks.
>
> Question : 
>
>
>- Do I have to *add an additional parameter SESSIONID to each and every 
>service call* that I am launching from GWT to the server ?
>
> No 

>
>- Or perhaps I can attach the *SESSIONID as request attribute*, so my 
>service interfaces stay clean of this extra parameter ?
>
> Yes 

>
>- I also noticed that in earlier versions of RfServlet there was a *init 
>parameter UserInfo* but this seems to have *disappeared*. I never used 
>it but I suspect this is some mechanism to address the above issues ? Is 
>there some replacement mechanism ?
>
>
Use a custom RequestTransport on the client-side, and a servlet filter on 
the server-side. Have a look at the Expenses sample from the GWT SDK, which 
does this for AppEngine authentication.

-- 
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/-/0pw34kOddD4J.
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: Ways to catch server side exception when using request factory?

2011-09-27 Thread July
Quite helpful, Thanks very much for the reply.

On Tue, Sep 27, 2011 at 11:20 PM, opn  wrote:

> Hello,
>
> the 
> DefaultExceptionHandleris
>  not doing much. As you can see it only sends the message over the wire.
> I think you should hook in your own implementation of an ExceptionHandler.
>
> My ExceptionHandler, for example, sends the exception class over to the
> client, too. I don't know how far you can go (sending the whole stacktrace
> or sth.).
>
> To use it you also need to extend RequestFactoryServlet and pass your own
> ExceptionHandler implementation in the constructor.
>
> public MyRequestFactoryServlet() {
> super(new MyExceptionHandler());
> }
>
> and add this Servlet to your web.xml for sure!
>
> Regards
> Alex
>
>  --
> 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/-/InnkUvczgLgJ.
>
> 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: too much code: GWT Development with Activities and Places

2011-09-27 Thread jscheller
On Sep 26, 2:49 pm, camerojo  wrote:

> It is the bugs in the GWT core that I feel need to be strongly
> prioritized. That is where any development resources that Google
> assigns to GWT are most profitably deployed.
>
> My worry is that I see those valuable resources being applied to new
> high level architectural concepts which may or may not be useful to
> users, while nasty reported bugs remain for months or even years in
> the core functionality. A solid core is critical.

I'm don't want to seem unappreciative by adding to a discussion that
might be a little critical, but I couldn't agree more strongly with
what John said above. I've struggled to get excited about much of the
GWT functionality since 2.2 came out and I keep hoping the focus will
change back to infrastructure rather than architecture.

Core functionality (date/timezone/calendar, drag and drop, etc.) and
weird compatibility problems (FireFox key events and similar) seem to
languish for so long. Arguably, much of this isn't Google's
responsibility, but the vision of GWT as a layer over all the browser
craziness implies these areas (along with regular GPE updates, no
matter how annoying Mozilla's policies) should be something of a
priority.

Beyond this, some people seem to make the case that third parties
should be filling the gap with various UI widgets, but the lifespan of
the various bits of code floating around out there makes using third
party parts problematic. I'm amazed at how much pre-2.0, listener-
centric code is still out there. I feel like I'm in jungle as soon as
I start looking around outside the toolkit. A stable set of core UI
widgets (masked text entry, date/time pickers, currency, etc.) would
go a long way towards making GWT easy to use to build meaningful apps
with a lower learning curve.

In a nutshell, I'd have been much more excited to see a healthy list
of compatibility fixes and a really nice timezone-savvy date/time
picker that I knew would be supported long term rather than all the
Roo stuff that came out recently.

Not that I don't appreciate everything that's already there, though.
GWT is awesome and I just hope to see it keep getting better.

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



RequestFactoryServlet and security : passing sessionId back and forth

2011-09-27 Thread koma
Hi

As so many others before me, I went through the *LoginSecurityFAQ* and have 
been reading about *passing the SESSIONID from the client to the server in 
the payload for each and every request*. The message is that we cannot trust 
the HttpSession server side because of potential CSRF attacks.

Question : 


   - Do I have to *add an additional parameter SESSIONID to each and every 
   service call* that I am launching from GWT to the server ?
   - Or perhaps I can attach the *SESSIONID as request attribute*, so my 
   service interfaces stay clean of this extra parameter ?
   - I also noticed that in earlier versions of RfServlet there was a *init 
   parameter UserInfo* but this seems to have *disappeared*. I never used it 
   but I suspect this is some mechanism to address the above issues ? Is 
   there some replacement mechanism ? 


Old implementation (part of doPost) of RequestFactoryServlet :

// Check that user is logged in before proceeding
UserInformation userInfo = 
UserInformation.getCurrentUserInformation(request.getHeader("pageurl"));
if (!userInfo.isUserLoggedIn()) {
  response.setHeader("login", userInfo.getLoginUrl());
  response.sendError(HttpServletResponse.SC_UNAUTHORIZED);
} else {
  response.setHeader("userId", String.format("%s", 
userInfo.getId()));
  response.setStatus(HttpServletResponse.SC_OK);
  RequestProcessor requestProcessor = new 
JsonRequestProcessor();
  requestProcessor.setOperationRegistry(new 
ReflectionBasedOperationRegistry(
  new DefaultSecurityProvider()));
  requestProcessor.setExceptionHandler(exceptionHandler);
  response.setContentType(RequestFactory.JSON_CONTENT_TYPE_UTF8);
  
writer.print(requestProcessor.decodeAndInvokeRequest(jsonRequestString));
  writer.flush();
}



Thx 

Koen

-- 
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/-/WDA1sfVapK4J.
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: Ways to catch server side exception when using request factory?

2011-09-27 Thread opn
Hello,

the 
DefaultExceptionHandleris
 not doing much. As you can see it only sends the message over the wire.
I think you should hook in your own implementation of an ExceptionHandler.

My ExceptionHandler, for example, sends the exception class over to the 
client, too. I don't know how far you can go (sending the whole stacktrace 
or sth.).

To use it you also need to extend RequestFactoryServlet and pass your own 
ExceptionHandler implementation in the constructor.

public MyRequestFactoryServlet() {
super(new MyExceptionHandler());
}

and add this Servlet to your web.xml for sure!

Regards
Alex

-- 
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/-/InnkUvczgLgJ.
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: EntityProxy injection with Guice - Guice-persist

2011-09-27 Thread koma
Ok, thx  I figured it out...

First I needed to inject a ServiceLayerDecorator to with Guice like this 
example project https://github.com/mgenov/injecting-request-factory
And indeed, the EntityManager must be passed as Provider 
otherwise it is not ThreadLocal and you run into closed EntityManager 
exception (because the trheads make concurrent use of the EntityManager).

I got it working.

-- 
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/-/uJznvJq9RykJ.
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 DatePicker +CSS

2011-09-27 Thread Sean
Hey guys,

I'm trying to create a calendar that represents when my DB has data. So I 
see DatePicker has addStyleToDates(styleName,List). That's all well 
and good, but it seems that weekends have a style that is overriding my 
style, and it never shows my style on the weekend. Looking at GWT's code, 
they have a PRIVATE styler that can take in a boolean to make it set style 
name, instead of add, but again, its private and I can't access it.

Are there any ways around this without creating my own DatePicker or 
implementing the entire style heirarchy?

My style is super simple for reference

.hasData
{
background-color:green;
}

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



Encode URL in ISO-8859-1

2011-09-27 Thread Mogoye
Hello,

I have a GWT app that must open a new window to display a PDF.
The PDF is sent by a server that must receive GET URLs with parameters
encoded in ISO-8859-1 for special caracters.

My problem is that I don't know how to encode this URL in GWT client
side.
I've found  URL.encode but it encodes in UTF-8 and the server does not
understand it.
I cannot change the server, it is in production with several other
services using it...

Does any one have an idea ?
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.



What was Direct-Eval RPC, and why didn't it work ?

2011-09-27 Thread Leonel Gayard
The documentation mentions a feature called Direct-Eval RPC[1], saying 
it didn't work as planned, and is now discouraged.

What was it, and why is it now considered a bad idea ?

  [1]: 
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideDeRPC

-- 
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/-/_ZrS2K54DDgJ.
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-Project with JBoss 5.1

2011-09-27 Thread Sascha Hoffmann
Hi Mariano

I've done this and it works in the JBoss 4.2.3 but not in the JBoss 5.1 or
higher.

**

*Caused by: **org.jboss.xb.binding.JBossXBException**: Failed to parse
source: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
@ vfsfile:/D:/
jboss-5.1.0.GA/server/default/deploy/XQuality.war/WEB-INF/web.xml[88,11]atorg.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(
SaxJBossXBParser.java:203**)*

*at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(**
UnmarshallerImpl.java:168**)*

*at org.jboss.xb.util.JBossXBHelper.parse(**JBossXBHelper.java:189**)*

*at org.jboss.xb.util.JBossXBHelper.parse(**JBossXBHelper.java:166**)*

*at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(**
SchemaResolverDeployer.java:137**)*

*at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(**
SchemaResolverDeployer.java:121**)*

*at
org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(
**AbstractVFSParsingDeployer.java:256**)*

*at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(**
AbstractVFSParsingDeployer.java:188**)*

*at
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(
**AbstractParsingDeployerWithOutput.java:348**)*

My web.xml looks like this:



http://java.sun.com/dtd/web-app_2_3.dtd";>

<*web-app*>





loginServlet

xquality.server.LoginServiceImpl





loginServlet

/*xquality*/login





TargetAttributKategorieServlet

xquality.server.TargetAttributeKategorieServiceImpl





TargetAttributKategorieServlet

/*xquality*/targetAttributKate





TargetAttributServlet

xquality.server.TargetAttributServiceImpl





TargetAttributServlet

/*xquality*/targetAttribut





SperrkennzeichenServlet

xquality.server.SperrkennzeichenServiceImpl





SperrkennzeichenServlet

/*xquality*/sperrKennzeichen





MasterMandantServlet

xquality.server.MasterMandantServiceImpl





MasterMandantServlet

/*xquality*/masterMandant





SubMandantServlet

xquality.server.SubMandantServiceImpl





SubMandantServlet

/*xquality*/subMandant





SubMandantCountryServlet

xquality.server.SubMandantCountryServiceImpl





SubMandantCountryServlet

/*xquality*/subMandantCountry





SourceTypeNameServlet

xquality.server.SourceTypeNameServiceImpl





SourceTypeNameServlet

/*xquality*/sourceTypeName



 



XQuality.html





What I have to do to corect the web.xml?

Sascha


2011/9/27 Mariano Ortega 

> Hi Sascha,
>
> There is not much to say here, you have to deploy your GWT app like a
> normal WAR or EAR application (depending on your needs).
>
> If you just want to do a quick try, do a GWT compile and create a WAR file
> (with the contents of your war directory) and put it into one of your JBOSS
> servers 'deploy' directory (pick the right one depending on your needs, but
> typically for a quick test you can use the one named 'default').
>
> This deployment process is not related with GWT at all, after GWT
> compilation is done you just end up with static stuff (html, js, css,
> etc...) and class files for your server side (ie: servlets); If you are not
> familiar with it, I'd recommend you to search on google for "war deployment"
> or something the like.
>
> Hope it helps,
> Mariano
>
> --
> 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/-/Q7PeKHgRGkkJ.
>
> 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-Project with JBoss 5.1

2011-09-27 Thread Mauro
Hi Sascha Hoffmann

Take a look at: 
http://stackoverflow.com/questions/5712906/getting-error-the-content-of-element-type-web-app-must-match

I hope this helps

-- 
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/-/Qw-qgALrAgMJ.
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.



Ways to catch server side exception when using request factory?

2011-09-27 Thread July
hi all:
 I'm using RequestFactory to do B-S communication, usually the server throw 
an exception that i didn't catch, at the client side there will be an pop-up 
dialog indicating the server error, and from the exception stack, all are 
client side trace, and the message is "server error", so i have no way to 
know which method at server-side was throwing(there are more than one 
gwtrequest at one time), debugging this problem cost me much time, I was 
wondering if there a way to catch/show/debug server-side exception so i can 
get the problem immediately. 

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/-/TRmppiT6BlwJ.
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: Is there anyway to don't go to a place until a rpc is done?

2011-09-27 Thread Jens
Why would you want to wait? Seems like the user isn't interessted anymore in 
Activity/Place Foo. If you force the user to wait, your app may feel 
unresponsive and slow.

But if your really want to, just disable the menu while the activity loads 
the data and re-enable it when the data is loaded.

-- 
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/-/NxZ7gouEdrsJ.
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-Project with JBoss 5.1

2011-09-27 Thread Mariano Ortega
Hi Sascha,

There is not much to say here, you have to deploy your GWT app like a normal 
WAR or EAR application (depending on your needs).

If you just want to do a quick try, do a GWT compile and create a WAR file 
(with the contents of your war directory) and put it into one of your JBOSS 
servers 'deploy' directory (pick the right one depending on your needs, but 
typically for a quick test you can use the one named 'default'). 

This deployment process is not related with GWT at all, after GWT 
compilation is done you just end up with static stuff (html, js, css, 
etc...) and class files for your server side (ie: servlets); If you are not 
familiar with it, I'd recommend you to search on google for "war deployment" 
or something the like.

Hope it helps,
Mariano

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



Is there anyway to don't go to a place until a rpc is done?

2011-09-27 Thread nacho
For example, let's say that I have this dummy menu [ *Goto Activity Foo* | 
*Goto 
Activity Bar* ]

When I click on [ *Goto Activity Foo* ] I go to the the Foo Activity, and in 
the start() method I call to a rpc, let's say dummyService.fetchData().

And, then I click on the [ *Goto Acitivity Bar* ] before that the rpc that 
the rpc call dummyService.fetchData() finished. Is there anyway to don't go 
to Bar Activity if the previous rpc is still undone?

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/-/UWIifo3tqJAJ.
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-Project with JBoss 5.1

2011-09-27 Thread Sascha Hoffmann
Hallo

I have a gwt project and would like to deploy it in the JBoss 5.1-
Server. Can somebody give me a hint where or how I can do this?

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



App with hundreds of code splits won't finish compiling

2011-09-27 Thread hindog
I have an app that generates hundreds of additional classes during
compile that I then manage via a single class that uses GWT.runAsync
to perform code splitting so that I can load these classes lazily at
runtime.

My problem is that the compile never finishes, it will just eat up all
of my system ram until either my system becomes unresponsive, or the
compiler chokes out with an OutOfMemoryException.  I've tried
compiling with up to 50GB available to the compiler and no avail (it
will use it all).  I am using GWT maven plugin with localWorkers=1 to
keep the permutation compilation to 1 worker thread.  I want the
compileReport, so I have that turned on, but it doesn't help if it's
turned off, either.

Without code splitting, the compile finishes, but my app weighs in
pretty heavy, so that's why I'm looking to get the code split working.

My questions are:

Has anyone else tried to do a massive amount of code splitting
(hundreds or more) and had success?

Does anyone have any internal knowledge on how code splits are handled
by the compiler that might cause this?  I've hooked up a profiler and
can see that the majority of the heap is getting used by HashMap and
char[].

As a test, I short-circuited the generation stage to generate only 6
classes total, instead of the 100's that would normally be generated,
and the compile finishes no problem (and the code splits look OK).
For that run, here is a snippet from my compilerMetrics.xml:

 
   








   
  

I think my next step is to hook a debugger up to the compiler, but I
figured I shoot this out there just in case.

Cheers,

Aaron

-- 
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 implement this function?

2011-09-27 Thread SophiaWang
I want to implement such a function:

There is a Page A, in which there are many links when I click, it will
open a new window to direct to other URLs. I want to implement some
new function, whenever I open a new window from Page A. How could I
realize that?

Or, is there a function that could implement Window.OnOpenListener
(which does not exist)?

-- 
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: is it possible to open menu on Header of celltable?

2011-09-27 Thread Sudhakar Abraham
Put a ClickableTextCell in Header. Override  onBrowserEvent() method
in Header class.  Try the code below.

//code segement

 Header header = new Header(new ClickableTextCell())
 {
  @Override
  public String getValue()
  {
return "your_header_name";
  }

 Command command = new Command()
  {
  public void execute()
  {
  Window.alert("clicked");
  }
  };

  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
  {
MenuBar menuBar = new MenuBar();
MenuItem fileName = new MenuItem("New",command);
menuBar.addItem(fileName);
menuBar.setSize("10px", "10ex");
  }

};

   //add your header to celltable
cellTable.addColumn(your_column_name, header);

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 27, 4:08 pm, Brito  wrote:
> I wana add menu on header of celltable.

-- 
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: Permutation, code splitting and deferred property

2011-09-27 Thread Pierre Coirier
Thanks for pointing that out. It was a typo error, in my code I do
have myProperty = value2.

If it helps, you can find the code that I'm using to reproduce the
error: http://mvp4g.googlecode.com/svn/temp/gwt-example.zip and the
soyc report: http://mvp4g.googlecode.com/svn/temp/compile-report.zip

When you look at the report, you do see the expected deferred property
set:
Permutation 0 ('myProperty' : 'value1' , 'user.agent' : 'gecko1_8')

but clicking on the Slip Point Report, you see the 2 implementations
generated are here whereas only one is expected.

Pierre

On Sep 27, 8:00 am, Paul Robinson  wrote:
> I don't know the answer to your question, but there is a mistake in the 
> gwt.xml fragment you posted. You assign myProperty=value1 when user.agent 
> equals FF and also when user.agent is not FF. You never assign myProperty = 
> value2.
>
> HTH
> Paul
>
> On 27/09/11 05:37, Pierre Coirier wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I got an issue with deferred property and code splitting.
>
> > In my GWT configuration file, I have defined the following property:
> > 
> > 
> >    
> > 
> > 
> >    
> >      
> >    
> > 
>
> > and I have a generator with the following code that generates one
> > implementation depending on this deferred property value:
>
> > public String generate( TreeLogger logger, GeneratorContext context,
> > String typeName ) throws UnableToCompleteException {
> >      String value = propertyOracle.getSelectionProperty( logger,
> > "myProperty" );
> >      if("value1".equals(value)){
> >          return generateImpl1();
> >      } else {
> >          return generateImpl2();
> >      }
> > }
>
> > According to my settings for each browser, you can have only one
> > value, ie for each permutation my generator should generate either
> > Impl1 or Impl2 but not both. However in my soyc report, I noticed that
> > for each browser/permutation, both implementations are generated.
>
> > The issue I have is that my generator generates the same GWT.runAsync
> > call for both implementation and since the 2 implementations are
> > generated for each permutation (even if only one can be used for each
> > permutation), GWT believes there are 2 split points and since it's the
> > same code inside the 2 split points, all the code is added to the left
> > fragment code.
>
> > My question is how come my generator is called twice for each
> > permutation? Since only one value is possible for each permutation
> > shouldn't it be called only once? Am I doing something wrong in my
> > configuration which could explain why my generator is called twice?
>
> > Thanks for your help,
> > Pierre

-- 
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: Permutation, code splitting and deferred property

2011-09-27 Thread Paul Robinson

I don't know the answer to your question, but there is a mistake in the gwt.xml 
fragment you posted. You assign myProperty=value1 when user.agent equals FF and 
also when user.agent is not FF. You never assign myProperty = value2.

HTH
Paul



On 27/09/11 05:37, Pierre Coirier wrote:

Hi,

I got an issue with deferred property and code splitting.

In my GWT configuration file, I have defined the following property:


   


   
 
   


and I have a generator with the following code that generates one
implementation depending on this deferred property value:

public String generate( TreeLogger logger, GeneratorContext context,
String typeName ) throws UnableToCompleteException {
 String value = propertyOracle.getSelectionProperty( logger,
"myProperty" );
 if("value1".equals(value)){
 return generateImpl1();
 } else {
 return generateImpl2();
 }
}

According to my settings for each browser, you can have only one
value, ie for each permutation my generator should generate either
Impl1 or Impl2 but not both. However in my soyc report, I noticed that
for each browser/permutation, both implementations are generated.

The issue I have is that my generator generates the same GWT.runAsync
call for both implementation and since the 2 implementations are
generated for each permutation (even if only one can be used for each
permutation), GWT believes there are 2 split points and since it's the
same code inside the 2 split points, all the code is added to the left
fragment code.

My question is how come my generator is called twice for each
permutation? Since only one value is possible for each permutation
shouldn't it be called only once? Am I doing something wrong in my
configuration which could explain why my generator is called twice?

Thanks for your help,
Pierre



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



Base64 encoded image in ImageCell?

2011-09-27 Thread Jonas
I'm trying to display a base 64 encoded image in my cell table. I've tried 
using the ImageCell but nothing is displayed.

Column ownerImageColumn = new Column(new ImageCell())
{
   @Override
   public String getValue(TravelDto object)
   {
  return object.getOwner().getPicture();
   }
};

Is this possible some other way?

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



is it possible to open menu on Header of celltable?

2011-09-27 Thread Brito
I wana add menu on header of celltable.

-- 
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: byte array to Image

2011-09-27 Thread AgitoM
Decided to deal with the 32kb limit in Internet Explorer 8. (Internet
Explorer 9 is not a problem).
Dealt with the problem by creating a servlet that outputs the byte
array as a image.
I'm sending the ID of the image, in this case a map, to the servlet
using the GET method.

This is the code for the doGet operation for my dedicated
ImageServlet:

protected void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
response.setContentType("image/png");

if(request.getParameter("MapID") != null) {
int mapID = 
Integer.parseInt(request.getParameter("MapID"));

byte[] image = null;
try {
image = wsStub.getMapImage(mapID);
}
catch (Exception e) {
e.printStackTrace();
}

OutputStream out = response.getOutputStream();
out.write(image);
out.close();
}
}

On my RPC Servlet side, I simply return this as the "URL" of the
image:
("ImageServlet?MapID=" + mapID)

Code on the client side didn't change from what I earlier posted.

-- 
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: Class Cast Exception while running requestfactory-apt

2011-09-27 Thread Romain BIARD
Thank you Thomas, I found the issue just after i started this thread.

-- 
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/-/7CH_yeS5P9UJ.
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: Detecting ONPASTE on a richtextbox? (possible?)

2011-09-27 Thread Javier
im in the same problem.
some links that works good in textarea widgets but not in richtext :(:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/09a3527707d22be0?fwc=1
related issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4030

same question:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b49f9c7c1e5bea45/949c4a83fd799109?lnk=gst&q=richtextarea+onpaste#949c4a83fd799109

On 4 sep, 21:01, darkflame  wrote:
> Is it possible to detect aonpasteevent in a richtextbox?
>
> I followed this method here for a 
> textbox;http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> (basicly just extending a richtextbox instead)
>
> Nothing seems to fire though in Chrome.

-- 
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: Class Cast Exception while running requestfactory-apt

2011-09-27 Thread Thomas Broyer
A TypeSymbol instance represents a type 
variable.
 
The RequestFactory annotation processor looks at the type parameters of the 
Request or InstanceRequest to find the return type of the domain method, and 
it assumes it's a 
"class"
.

Here, the problem is your "P" in InstanceRequest.

Probably related: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6794

-- 
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/-/u7BhwN7VgsAJ.
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: ie8 problem with gwt 2.4?

2011-09-27 Thread guillaume prime
Yes, it was the problem !

I modify my module XML file with :
















Thanks a lot !

On 26 sep, 19:52, Chi Hoang  wrote:
> If Chrome-frame is not enabled on your page and you have it installed
> in your browser, you are most likely running into this issue
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6665
>
> On Sep 26, 10:23 am, Chi Hoang  wrote:
>
>
>
>
>
>
>
> > Based on your user-agent, it seems like you have chrome frame
> > installed.
> > GWT 2.4 added detection of chrome frame, and uses the safari user
> > agent if it is installed and enabled.
>
> > On Sep 26, 1:53 am, guillaume prime  wrote:
>
> > > We can see the problem on the GWT Showcase :
>
> > > Webpage error details
>
> > > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; 
> > > Trident/4.0;
> > > chromeframe/14.0.835.186; .NET CLR 1.1.4322; InfoPath.1)
> > > Timestamp: Mon, 26 Sep 2011 07:52:05 UTC
>
> > > Message: Object doesn't support this property or method
> > > Line: 1532
> > > Char: 127
> > > Code: 0
> > > URI:http://gwt.google.com/samples/Showcase/showcase/56292F4D7C74D54F38D6A...
>
> > > Why the user agent is "Mozilla (compatible IE8)" ?

-- 
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: too much code: GWT Development with Activities and Places

2011-09-27 Thread Rob
Hi,

And gwt-platform:

-> http://code.google.com/p/gwt-platform/

Cheers
Rob

On Sep 27, 7:44 am, Felipe Martim Vieira 
wrote:
> Maybe you should have a look at this:
>
> http://code.google.com/p/mvp4g/
>
> I have never used it, but it looks like a great alternative to reduce
> the amount of work.
>
>
>
>
>
>
>
>
>
> On Mon, Sep 26, 2011 at 6:14 AM, Aidan O'Kelly  wrote:
> > On Sat, Sep 24, 2011 at 4:53 PM, Thomas Broyer  wrote:
>
> >> And BTW, MVP is a design pattern, and there's no one single way of
> >> implementing it (the MVP articles in the GWT doc makes it kind of clear).
> >> And the fact that Activities and Places (which people sometimes erroneously
> >> call "MVP framework") are quite new makes it clear that it's not "the" way
> >> to build GWT apps: there must have been ways to do it before they're
> >> introduced!
>
> > Point taken, the docs do make it very clear its a pattern and one way
> > of implementing it, and that its best suited for large scale projects
> > and why. Though reading through the User Guide, you could be forgiven
> > for thinking 'This is the way I should go with my app!', especially if
> > you decide to use UiBinder, as the Activity/Places MVP article uses it
> > and is almost like a tutorial on building an app.
>
> > I guess its just because the other tutorial in the User Guide, the
> > Stock Watcher, doesn't use UiBinder, which is a very attractive
> > feature to anyone new to GWT. Would be nice to have a chapter/tutorial
> > on building a small/medium sized UiBinder based app that doesn't use
> > MVP.
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Felipe Martim

-- 
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: Jetty as Standalone Server

2011-09-27 Thread mP
They are both very capable servlet containers, used by many. If you
really need or want Jetty's WebSockets then it is the deal breaker
that selects Jetty.

On Sep 27, 5:32 pm, Markus Unger 
wrote:
> Hello!
>
> Currently I use the Tomcat as Servlet Container, but I need to use
> WebSockets. So I find the Jetty WebContainer with integrated WebSocket
> support.
>
> I search for some tutorials and looked for some books for jetty as
> webserver. But the results are low...
>
> Is there a good reason why I should not use Jetty instead of Tomcat?
>
> Thanks for help

-- 
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: NPE with RequestFactory (GWT 2.4.0) when returned List contains a null value

2011-09-27 Thread Alexandre Ardhuin
Oups, I had searched on this group but not in issue tracker.

Thanks Thomas

-- 
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: how to make flow layout

2011-09-27 Thread Thomas Broyer
Use FlowPanel and/or HTMLPanel?

-- 
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/-/d5nmF9OAnAMJ.
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: NPE with RequestFactory (GWT 2.4.0) when returned List contains a null value

2011-09-27 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6809

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



Class Cast Exception while running requestfactory-apt

2011-09-27 Thread Romain BIARD
Hi all,

I'm updating my project to GWT 2.4.0 but i'm facing an issue not
really documented while running requestfactory-apt.

[INFO] javac option: -proc:only
[INFO] javac option: -d
[INFO] javac option: /Users/romainbiard/Soft/workspace-foo/bar/target/
foobar-1.0.8-SNAPSHOT/WEB-INF/classes
[INFO] javac option: -s
[INFO] javac option: /Users/romainbiard/Soft/workspace-foo/bar/target/
generated-sources/apt
[INFO] diagnostic /Users/romainbiard/Soft/workspace-foo/bar/src/main/
java/com/foo/cis/foobar/client/requestfactory/Persistable.java:9:
java.lang.ClassCastException: com.sun.tools.javac.code.Symbol
$TypeSymbol cannot be cast to javax.lang.model.element.TypeElement
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitExecutable(RequestContextScanner.java:
62)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitExecutable(RequestContextScanner.java:
35)
at com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:
1227)
at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:
122)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:
63)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scanAllInheritedMethods(ScannerBase.java:
126)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitType(RequestContextScanner.java:
104)
at
com.google.web.bindery.requestfactory.apt.RequestContextScanner.visitType(RequestContextScanner.java:
35)
at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:
832)
at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:
122)
at
com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:
63)
at
com.google.web.bindery.requestfactory.apt.State.executeJobs(State.java:
248)
at
com.google.web.bindery.requestfactory.apt.RfValidator.process(RfValidator.java:
83)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:
625)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:
554)
at
com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:
699)
at
com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:
981)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:
727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
at
org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:
350)
at
org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:
197)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)

and here's the interface previously mentionned :

package com.foo.cis.foobar.client.requestfactory;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.Insta

Re: initWidget(uiBinder.createAndBindUi(this));

2011-09-27 Thread Alexandre Ardhuin
Hi,

As javadoc of Composite.initWidget() says :
Sets the widget to be wrapped by the composite. The wrapped widget must be
set before calling any {@link Widget} methods on this object, or adding it
to a panel. This method may only be called once for a given composite.

So, it doesn't matter where you call this sentence. However, you should
write this in constructor instead of onload, thus you will be sure that
initWidget will be call only one time.

Alexandre.

2011/9/27 wahaha 

> "initWidget(uiBinder.createAndBindUi(this));"
>
> does this sentance shoud write in onload() method or in the contrator
> method?
>
> --
> 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 make flow layout

2011-09-27 Thread wahaha
how to make flow layout in gwt?

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



initWidget(uiBinder.createAndBindUi(this));

2011-09-27 Thread wahaha
"initWidget(uiBinder.createAndBindUi(this));"

does this sentance shoud write in onload() method or in the contrator
method?

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



NPE with RequestFactory (GWT 2.4.0) when returned List contains a null value

2011-09-27 Thread Alexandre Ardhuin
Hi,

After migrate from gwt-2.3.0 to gwt-2.4.0, I face the following NPE when the
requestFactory method returns a List containing a null value :

27 sept. 2011 10:10:39
com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost
GRAVE: Unexpected error
java.lang.NullPointerException
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:618)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:383)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133)

// in myRequest
Request> getStringsWithNull();
Request> getStringsWithoutNull();

// in implementation
public List getStringsWithNull() {
  return Arrays.asList("test", null, "test");
}
public List getStringsWithoutNull() {
  return Arrays.asList("test", "test");
}

Calling getStringsWithoutNull() works as expected but
getStringsWithoutNull() throws the NPE.

Is there a explication for that or is it a bug ?

Alexandre.

-- 
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: Isn't the Activities and Places model violating the MVP pattern?

2011-09-27 Thread Thomas Broyer


On Tuesday, September 27, 2011 2:45:20 AM UTC+2, Behi wrote:
>
> Thanks for the response. I shall have a look at those links later 
> tonight. 
>
> > If you value theory and "purity" more than pragmatism and productivity, 
> then 
> > yes, it probably violates the pattern, as it doesn't use the observer 
> > pattern. 
>
> My concern is not that passing the presenter to the view is a bad 
> thing per se, but that when doing so we can not say we have 
> implemented the MVP pattern anymore, as in each design pattern the 
> collaborators, their responsibilities, and the relationships between 
> them are set in stone so that when I say that Foo is Singleton it is 
> universally clear what Foo is. In other words, design patterns make it 
> possible to communicate ideas clearly as long as they have a clear and 
> universal definition. 
>
> So maybe we should call this design pattern something else. However 
> looks like there's not a clear definition of MVP available anyway, as 
> for example in Dolphin Smalltalk it means something different to 
> ASP.NET.
>

Exactly, there's actually no "MVP" pattern. The agreed-upon definition of 
MVP is that you have M↔P↔V, vs. the M→V→C→M triangle of MVC (which is not to 
be confused with the "web MVC" pattern popularized by Ruby on Rails and used 
in ASP.NET).
 

> Now back to passing the Presenter to the View, what methods of the 
> presenter should be exposed to the view? Should the view still be 
> ignorant about the model? or should we expose 
> PresenterImpl.getContacts(): ArrayList to the view as well?


Go read the slides I linked to earlier ;-)

I didn't do it that way personally, but I'll try to stick with that approach 
from now on. Basically, all interfaces are "push-oriented": the presenter 
pushes data to the view and/or otherwise control how the view should appear 
and behave, and the view "pushes" changes to the presenter in response to 
user events.
Of course, this is again only theory, as the use of the Editor framework 
and/or cell widgets (CellTable, CellList) blurs the presenter/view line and 
changes their interaction a bit (the editor framework is based on the Flow 
Synchronization pattern, whereas the above idea is a bit more like Observer 
Synchronization –despite not using events and observers per se–)

One thing is clear (to me at least): there's absolutely no reason that your 
view is ignorant about the model, particularly if it makes things easier to 
code and maintain, and doesn't decrease testability.

That being said, I'm a supporter of a "do things like you feel they best 
suit your needs" approach rather than "try to stick to the patterns as 
closely as possible", so don't take my words above for granted.

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



Jetty as Standalone Server

2011-09-27 Thread Markus Unger
Hello!

Currently I use the Tomcat as Servlet Container, but I need to use
WebSockets. So I find the Jetty WebContainer with integrated WebSocket
support.

I search for some tutorials and looked for some books for jetty as
webserver. But the results are low...

Is there a good reason why I should not use Jetty instead of Tomcat?

Thanks for help

-- 
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, HTMLPanel, and style interactions

2011-09-27 Thread Sudhakar Abraham
Wrap  div element in  a HTML panel. You don't need padding the content
of  the div element. Instead, you use the margin tag of css.

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 27, 2:04 am, Mike Dee  wrote:
> I'm noticing something weird.  It is my first attempt at using
> HTMLPanel.  The app is laid out with a DockLayoutPanel.  The south
> panel is a footer panel and simply has a piece of text in it, which is
> always there.  I want the text to be right justified with a bit of
> padding.
>
> 
> 
>   Some Text Here
> 
> 
>
> The style, my-footer-panel, has a font, color, and padding.  The
> padding doesn't appear to work.
>
> When I look at the page in Firebug I seem some strange things (see
> below).  The style is in there (as a class), but the style attribute
> looks to be overriding the class with some inline styles.
>
> 
> 
> Some Text Here
> 
> 
>
> Why does the DIV have both a class and a style?  Where does the style
> come from (the DockLayoutPanel)?
>
> Mike

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