Re: How to debug CSS

2011-07-22 Thread Ionuț G. Stan

On Jul/21/2011 18:32, Thomas Broyer wrote:

No, but there are workarounds:
http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler?

(note that setting user.agent or a single locale won't speed up the
DevMode, but they are honored anyway, so this can be used to set
devmode-only properties: you'll have a dev module and a prod module,
instead of the suggested firefox and all browsers module; FYI, this
is what Apache Wave uses to optimize the compiled code for production
but have as much debug info as possible when developping)


Thanks Thomas, that should be enough for my needs right now.

--
Ionuț G. Stan  |  http://igstan.ro

--
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: login form

2011-07-22 Thread Ionuț G. Stan

Reposting to mailing list.

 Original Message 
Subject: Re: login form
Date: Thu, 21 Jul 2011 18:56:09 -0700 (PDT)
From: Josh josh.e.ander...@gmail.com
To: Ionuț G. Stan ionut.g.s...@gmail.com

These links touches on it. If your forms are not in the pages HTML
then browsers will not recognize them as a login password combo. The
first link suggested using div.

http://stackoverflow.com/questions/2778350/let-browser-save-username-password-values-in-a-login-form
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

On Jul 20, 2:37 pm, Ionuț G. Stan ionut.g.s...@gmail.com wrote:

On Jul/20/2011 18:03, Paolo Inaudi wrote:

 I've made a login form in gwt with a textbox, a passwordtextbox and a
 button.
 everything is fine, but browser isn't asking me to store the password.
 Do I have to make the button a html submit input and create another
 page? or is there a way to tell the browser this is a login form?
 thanks a lot
 Paolo

I once worked on a project that did the same thing. They noticed the
password remember stuff to late (they pretty much ignored it) and I had
to fix this issue.

After some research the conclusion I reached was that it's best to keep
the login process as classical as possible. By classic I mean, the
HTML should not be generated by JS, but be written by the server, and
the POST request should not be sent via Ajax, but rather using a normal
form request. If you don't do this, the results will vary across
browsers (this list is from memory):

1. no browser will remember user/pass combo unless it sees the HTML as
it parses the page. So, no JS generated form elements.

2. As far as I remember, Firefox was the only browser that offered the
remember password dialog for Ajax request (the heuristic were quite
smart). The other browsers needed a classic request.

3. Chrome was very picky in that the remember password dialog was shown
only on the first page after the redirect. If it happens that you do two
redirects after successful login, then no dialog is shown. Oh, and the
response of the page should be 2XX, but that's to be expected.

There were a lot of other issues that I don't remember right now. So my
advice is to go for a classic HTML form/request. You can have the form
with display:none and after the GWT code loads reposition it wherever
you want on the page, or even read the text input values and populate
another form element with them. But, as I said, submission should not be
done via JS.

Hope it helps,

--
Ionuț G. Stan  |  http://igstan.ro


--
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-compile issue

2011-07-22 Thread Abhijit Rai



Juan Pablo Gardella gardellajuanpablo@... writes:

 
 
 Can you show the classpath?
 2011/6/17 Navindian navind...@gmail.com
 I have imported working project. It is giving the following error. please 
let me know asap.
 
 Compiling module com.ge.inds.evse.io.EVSEGRI
 [ERROR] Unexpected
 java.lang.NoSuchFieldError: 
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
 
 
   at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
(JdtCompiler.java:398)
 
   at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
(JdtCompiler.java:228)
 
 
   at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:689)
 
   at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile
(CompilationStateBuilder.java:215)
 
 
   at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom
(CompilationStateBuilder.java:406)
 
   at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom
(CompilationStateBuilder.java:299)
 
 
   at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:325)
 
   at com.google.gwt.dev.Precompile.precompile(Precompile.java:507)
 
 
   at com.google.gwt.dev.Precompile.precompile(Precompile.java:492)
 
   at com.google.gwt.dev.Precompile.precompile(Precompile.java:405)
 
 
   at com.google.gwt.dev.Compiler.run(Compiler.java:215)
 
   at com.google.gwt.dev.Compiler.run(Compiler.java:187)
 
   at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
 
   at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:87)
 
 
   at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:81)
 
   at com.google.gwt.dev.Compiler.main(Compiler.java:166)
 
 
 
 

Hey guys facing the same issue wuth eclipse Galelio with gwt 2.3 plugin 

My run config in eclipse is:

Main class: 
com.google.gwt.dev.GWTShell

Arguments :
-remoteUI ${gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -
codeServerPort 9997 -port  com.iflex.cards.Cards/Cards.html

classpath :
JRE6
src
project specific jars

Please do tell me if someone is able to nail the issue. Will keep posted with 
my findings.

Regards,
Abhijit




-- 
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: Sub-classing UiBinder based Widgets

2011-07-22 Thread Alexander Orlov
What is the advantage of this practice to Thomas' proposal?

DefaultUI.ui.xml is missing in your example.I've implemented the
DefaultUI.ui.xml manually:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui

g:VerticalPanel
g:SpanElement ui:field=_someLabel/
g:ButtonElement ui:field=_someButton/
/g:VerticalPanel
/ui:UiBinder

SomeSubClass.ui.xml is missing in your example.I've implemented the
DefaultUI.ui.xml manually:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui

g:VerticalPanel
g:FormElement ui:field=_form/
/g:VerticalPanel
/ui:UiBinder


...didn't solve the problem: The example fails to compile =

DEBUG: Rebinding
dp.verp.planer.client.ExampleUiBinderWidget.DefaultUI.DefaultUIBinder.
ERROR: Deferred binding failed for
'dp.verp.planer.client.ExampleUiBinderWidget.DefaultUI.DefaultUIBinder';
expect subsequent failures.

I've changed
@UiTemplate(com.tomaszgawel.example.client.ExampleUiBinderWidget.ui.xml)
to
@UiTemplate(dp.verp.planer.client.ExampleUiBinderWidget.ui.xml)

and
@UiTemplate(com.tomaszgawel.example.client.SomeSubClass.ui.xml)
to
@UiTemplate(dp.verp.planer.client.SomeSubClass.ui.xml)

-Alex

On Jul 22, 3:55 am, gawelt tomaszga...@op.pl wrote:
 Hi,
 I used to apply similar pattern as Thomas bt with some remarkable
 difference.
 here is the example to illustrate the differences and the concept
 itself - it's quite simple and not show all possible combinations but
 i think it's just enough for getting started communication - if you
 were interested in it and need some hepl feel free to ask

 import com.google.gwt.core.client.GWT;
 import com.google.gwt.dom.client.ButtonElement;
 import com.google.gwt.dom.client.DivElement;
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.dom.client.FormElement;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.dom.client.SpanElement;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.uibinder.client.UiTemplate;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.EventListener;
 import com.google.gwt.user.client.ui.Widget;

 public class ExampleUiBinderWidget extends Widget {

         public static interface UI {
                 Element root();
                 Element someButton();
                 Element someLabel();
         }

         public static class DefaultUI implements UI {

                 //different from thomas - I used to inject UiBinder interface
 definition
                 //inside the layout inner class - why look below

 @UiTemplate(com.tomaszgawel.example.client.ExampleUiBinderWidget.ui.xml)
                 static interface DefaultUIBinder extends UiBinderDivElement,
 DefaultUI {}
                 final static DefaultUIBinder uiBinder =
 GWT.create(DefaultUIBinder.class);

                 //i could have declared this fields the same as return types 
 from
                 //coresponding UI methods - so avoid necessity to cast later -
                 //but it is to show the flexibility of this approach
                 DivElement _root;
                 @UiField ButtonElement _someButton;
                 @UiField SpanElement _someLabel;

                 public DefaultUI(){
                         _root = uiBinder.createAndBindUi(this);
                 }
                 @Override public Element root() {
                         return _root.cast();
                 }
                 @Override public Element someButton() {
                         return _someButton.cast();
                 }
                 @Override public Element someLabel() {
                         return _someLabel.cast();
                 }
         }

         UI ui;
         int counter;

         public ExampleUiBinderWidget(){
                 this(new DefaultUI());
         }

         public ExampleUiBinderWidget(UI ui){
                 assert ui != null : Provide ui - widgets do not like to show
 naked :P;

                 //move initailisation from constructor
                 //in case you want call setElement on something else than 
 ui.root()
                 this.ui = ui;
                 init();
         }

         protected void init() {
                 setElement(ui.root());
                 someInitActions();
         }

         protected void someInitActions() {
                 DOM.sinkEvents(ui.someButton(), Event.ONCLICK);
                 DOM.setEventListener(ui.someButton(), new EventListener() {
                         @Override public void onBrowserEvent(Event event) {
             

Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread gawelt

Alex,

DefaultUI.ui.xml and SomeSubClass.ui.xml are not needed for anything
in that example. You should provide
dp.verp.planer.client.ExampleUiBinderWidget.ui.xml and
dp.verp.planer.client.SomeSubClass.ui.xml instead, where
dp.verp.planer.client. is the JNDI path to your templates (e.g. they
should be in dp/verp/planer/client/ directory on your classpath - I
pointed custom path to template with @UiTemplate annotation not to
rely on default as it could tedious with UiBinder template bound to
inner static class).

-- 
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: Sub-classing UiBinder based Widgets

2011-07-22 Thread gawelt
... and the advantage over the thomas' pattern is that you can incject
any UI implementation form outside withouth defining subclass of the
widget. and it can be implemented WITH or WITHOUT uibinder or even
attached to existing DOM Nodes. - read comments in the example above.

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



Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Alexander Orlov
Ok, got your example going...

On Jul 21, 5:35 pm, Thomas Broyer t.bro...@gmail.com wrote:
 (using @UiChild methods
 to allow adding child widgets when you use it in another ui.xml template)

That's basically what I want. Is it also possible to declare some
methods abstract to change their logic for child widgets or is exactly
this what you mean with using @UiChild annotations for methods?

class SuperClass {
// ..
static class Layout {
// ...
// put you @UiField, @UiHandler, etc. here
@UiField
Button test;
}

final Layout layout;

public SuperClass() {
this.layout = new Layout(this);
 
RootPanel.get(widget).add(BINDER.createAndBindUi(this.layout));
}

@UiChild
public void myMethod(String text) {
// ...is this the proper use for @UiChild methods?
}

public void onModuleLoad() {
}
}

And where can I assign a handler to the test button?

-Alex

-- 
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-compile issue

2011-07-22 Thread Abhijit Rai


Ok that was stupid !!!
The problem is that com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions 
(JdtCompiler.java:208) 
is Referring to CompilerOptions which as fate would have it is referencing to 
the implementation in selenium-server.jar instead of gwt specific 
implementation.
This jar of course is not needed and can be safely removed(Its there since I 
was working on the Selenium framework).
So once this dependency is removed it works fine .

If you have a similar problem try figuring out which jar CompilerOptions is 
referring to thats where the problem might be .



Cheers :)
Abhijit


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



Aw: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Jens
If you have a custom widget, e.g. MyPanel, you can do something like the 
following in any other *.ui.xml file:

my:MyPanel
  my:header
 g:LabelHeader/g:Label
  /my:header

  my:footer
g:LabelFooter/g:Label
  /my:footer
/my:MyPanel

Your Java implementation of MyPanel would then contain methods:

@UiChild
public void addHeader(Widget w) {
 //your add logic
}

@UiChild
public void addFooter(Widget w) {
  //your add logic
}

Its up to you how you add the widgets to MyPanel and of course you could 
simply do an instanceof check if you want to add things differently based on 
the widget that should be added.

-- 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/-/R15ItmIegagJ.
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: Eclipse Analyzing Sources Slow

2011-07-22 Thread Alex Luya
Same problem here,even reusing old workspace

On Jul 22, 6:55 am, gutto thomas.gutteri...@gmail.com wrote:
 Hi

 Has anyone ever encountered the analyzingsources stage of an
 eclipse build taking an inordinately long time? It seems to be
 required each time I make a change to the dependencies of the project.
 It takes roughly 5 minutes, which is unacceptable.

 Does anyone know what is happening during this stage? I'm assuming its
 building Eclipse metadata or something. Can you suggest what I might
 try to find the cause of the slow running?

 Eclipse Indigo (3.7), Google Plugin for Eclipse 3.7, GWT SDK 2.3.0,
 OpenJDK 1.6.0_22, Ubuntu 11.04 x84_64,

 Thanks

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



Re: Sub-classing UiBinder based Widgets

2011-07-22 Thread Alexander Orlov
On Fri, Jul 22, 2011 at 12:29 PM, gawelt tomaszga...@op.pl wrote:

 ... and the advantage over the thomas' pattern is that you can incject
 any UI implementation form outside withouth defining subclass of the
 widget. and it can be implemented WITH or WITHOUT uibinder or even
 attached to existing DOM Nodes. - read comments in the example above.


I guess therefore you're using WidgetElements instead of Widgets
(ButtonElement instead of Button)? This technique wouldn't work without
using WidgetElements?

-Alex

-- 
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: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Thomas Broyer


On Friday, July 22, 2011 1:03:55 PM UTC+2, Alexander Orlov wrote:

 class SuperClass { 
 // .. 
 static class Layout { 
 // ... 
 // put you @UiField, @UiHandler, etc. here 
 @UiField 
 Button test; 
 } 

 final Layout layout; 

 public SuperClass() { 
 this.layout = new Layout(this); 
   
 RootPanel.get(widget).add(BINDER.createAndBindUi(this.layout)); 


D'oh, this is not at all the place to do this kind of thing. You should 
stick with the create something, then put it somewhere pattern (rather 
than a create something, and it'll automatically show at a predefined 
location)
 

 And where can I assign a handler to the test button?


In the Layout inner class, and you can simply defer to your outer class:
abstract class SuperClass { 
...
static class Layout { 
private final SuperClass owner;
...
// put you @UiField, @UiHandler, etc. here 
@UiField 
Button test; 

@UiHandler(test)
void onTestClicked(ClickEvent event) {
  this.owner.onTestClicked();
}

protected abstract void onTestClicked();
...
}

BTW, I'm not saying this is the best way of doing it, but it works, and it 
shows what should be obvious: you're not forced to pass 'this' to 
createAndBindUi (and incidentally to call createAndBindUi from an UiBinder 
owner class instance).
I still believe it's better to make a reusable widget, using @UiChild to 
allow adding children to it and events/delegate to communicate changes to 
the container (or actually anything using it).

-- 
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/-/g2T_OxUrHo8J.
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: Eclipse Analyzing Sources Slow

2011-07-22 Thread Ionuț G. Stan
I've had the same problem and the times improved a bit after downgrading 
to Eclipse Helios. It seems there are some problems with Indigo.


On Jul/22/2011 14:36, Alex Luya wrote:

Same problem here,even reusing old workspace

On Jul 22, 6:55 am, guttothomas.gutteri...@gmail.com  wrote:

Hi

Has anyone ever encountered the analyzingsources stage of an
eclipse build taking an inordinately long time? It seems to be
required each time I make a change to the dependencies of the project.
It takes roughly 5 minutes, which is unacceptable.

Does anyone know what is happening during this stage? I'm assuming its
building Eclipse metadata or something. Can you suggest what I might
try to find the cause of the slow running?

Eclipse Indigo (3.7), Google Plugin for Eclipse 3.7, GWT SDK 2.3.0,
OpenJDK 1.6.0_22, Ubuntu 11.04 x84_64,

Thanks





--
Ionuț G. Stan  |  http://igstan.ro

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



RPC RemoteServiceServlet multiple methods

2011-07-22 Thread ph09
Hey,

I have got some questions about the RPC.

Is it possible to define more than one method in one
RemoteServiceServlet? And does this make any Sense?
Like this:

public class SpeicherServiceImpl extends RemoteServiceServlet
implements SpeicherService {

/**
 *
 */
private static final long serialVersionUID = 1L;

@Override
public String getName(String name) {
return(Server hat folgendes empfangen: \n + name);
}

public String getName2(String name2){
return(Test2 + name2);
}

}

I tried to call both methods. The first method was served, but the
second throw the following Exception:
[ERROR] javax.servlet.ServletContext log: SpeicherService: An
IncompatibleRemoteServiceException was thrown while processing this
call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Could not locate requested method
'getName2(java.lang.String)' in interface
'de.fhdo.kuss.client.SpeicherService' )
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:310)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
206)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)

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



Aw: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread Jens
Sure you can and its totally fine to do so. Just make sure that all methods 
are defined in the service interface and in its async interface.

The exception you have received indicates that your browser uses some old 
cached javascript file (so clear your cache and reload the site) or your 
have forgotten to put your getName2() method into the service interface.

I don't know if you already know it, but try to avoid using general 
interfaces in your RPC method signature (e.g. List) because GWT has to 
generate code for every possible implementation of these interfaces (because 
GWT does not know which implementation you will choose). So in case of List 
its better to directly use ArrayList of whatever List implementation you 
would like to use in the method signature.

-- 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/-/qm6CQNTA57cJ.
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: Sub-classing UiBinder based Widgets

2011-07-22 Thread Tomasz Gawel
@Alex,
When you extend Composite not Widget/UiObject, you init it with
initWidget() not setElement - you cannot provide UI implementations
that takes use of existing DOM Nodes in html page. without this
exception thera no other differences.

-- 
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: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread swapnil marghade
Mostly u have forgot to declare it in SpeicherService because code u have
posted in not showing @Override annotation above 2nd method.

On Fri, Jul 22, 2011 at 7:09 PM, Jens jens.nehlme...@gmail.com wrote:

 Sure you can and its totally fine to do so. Just make sure that all methods
 are defined in the service interface and in its async interface.

 The exception you have received indicates that your browser uses some old
 cached javascript file (so clear your cache and reload the site) or your
 have forgotten to put your getName2() method into the service interface.

 I don't know if you already know it, but try to avoid using general
 interfaces in your RPC method signature (e.g. List) because GWT has to
 generate code for every possible implementation of these interfaces (because
 GWT does not know which implementation you will choose). So in case of List
 its better to directly use ArrayList of whatever List implementation you
 would like to use in the method signature.

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

 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: RPC Error: No file found for..

2011-07-22 Thread swapnil marghade
Check ur url pattern it seems incomplete...

On Thu, Jul 21, 2011 at 11:21 PM, ph09 ph.hei...@googlemail.com wrote:

 Hello,

 sry I am newbie to this Topic. I have searched the whole day for a
 solution, but I can't find the problem.
 I've tried a lot, without any bettering. Hope you can help me.

 When I tried to call a RPC Service, I get always this Message:
 [WARN] No file found for: /kuss_projekt/SpeicherService

 Thats my source code:

 web.xml:
 web-app

 servlet
 servlet-nameSpeicherService/servlet-name
 servlet-classde.fhdo.kuss.server.SpeicherServiceImpl/servlet-class
 /servlet

 servlet-mapping
 servlet-nameSpeicherService/servlet-name
 url-pattern/SpeicherService/url-pattern
 /servlet-mapping

 !-- Default page to serve --
 welcome-file-list
 welcome-fileKuss_Projekt.html/welcome-file
 /welcome-file-list

 /web-app

 -

 Kuss_Projekt.gwt.xml:
 module rename-to='kuss_projekt'
 !-- Inherit the core Web Toolkit stuff. --
 inherits name='com.google.gwt.user.User' /

 !-- Inherit the default GWT style sheet. You can change --
 !-- the theme of your GWT application by uncommenting --
 !-- any one of the following lines. --
 inherits name='com.google.gwt.user.theme.clean.Clean' /
 !--inherits name='com.google.gwt.user.theme.standard.Standard'/ --
 !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
 !--inherits name='com.google.gwt.user.theme.dark.Dark'/ --

 !-- Other module inherits --

 !-- Specify the app entry point class. --
 entry-point class='de.fhdo.kuss.client.Kuss_Projekt' /

 !-- Specify the paths for translatable code --
 source path='client' /
 source path='shared' /

  /module

 -

 Speicherservice:
 @RemoteServiceRelativePath(SpeicherService)
 public interface SpeicherService extends RemoteService {

   String getName(String name);

   public static class Util {
 private static SpeicherServiceAsync instance;
 public static SpeicherServiceAsync getInstance(){
   if (instance == null) {
 instance = GWT.create(SpeicherService.class);
   }
 return instance;
}
   }
 }

 -

 SpeicherServiceAsync:
 public interface SpeicherServiceAsync {

   void getName(String name, AsyncCallbackString callback);

 }

 -

 SpeicherServiceImpl:
 public class SpeicherServiceImpl extends RemoteServiceServlet implements 
 SpeicherService {

 @Override
   public String getName(String name) {
 return(Server meldet sich  + name);
   }
 }

 -

 Test():
 public void test() {
 AsyncCallbackString callback = new AsyncCallbackString() {

 @Override
 public void onFailure(Throwable caught) {
 // TODO Auto-generated method stub
 }

 @Override
 public void onSuccess(String result) {
 Window.alert(result);
 }
 };

 SpeicherService.Util.getInstance().getName(test,callback);
 }

  --
 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/-/JeNzul1toOEJ.
 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: Best practices for building UiBinder based widgets: Composition vs Inheritance vs ...

2011-07-22 Thread Alexander Orlov
On Fri, Jul 22, 2011 at 1:22 PM, Jens jens.nehlme...@gmail.com wrote:

 my:MyPanel
   my:header
  g:LabelHeader/g:Label
   /my:header
 /my:MyPanel

 Your Java implementation of MyPanel would then contain methods:

 @UiChild
 public void addHeader(Widget w) {
  //your add logic
 }


Great, that's basically everything I need!

-Alex

-- 
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: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread ph09
On 22 Jul., 15:39, Jens jens.nehlme...@gmail.com wrote:
 Sure you can and its totally fine to do so. Just make sure that all methods
 are defined in the service interface and in its async interface.

 The exception you have received indicates that your browser uses some old
 cached javascript file (so clear your cache and reload the site) or your
 have forgotten to put your getName2() method into the service interface.

Thank for your help so far. I clear the cache with no effect. Maybe i
show you my other classes.
I think the service interface have to be correct. the problem might be
by calling the service?
I call both method, test1() and test2() and only test1() get served.

@RemoteServiceRelativePath(SpeicherService)
public interface SpeicherService extends RemoteService {

String getName(String name);
String getName2(String name2);


public static class Util {
private static SpeicherServiceAsync instance;
public static SpeicherServiceAsync getInstance(){
if (instance == null) {
instance = GWT.create(SpeicherService.class);
}
return instance;
}
}
}

public interface SpeicherServiceAsync {

void getName(String name, AsyncCallbackString callback);

void getName2(String name2, AsyncCallbackString callback);

}

public void test(String ausgabe) {
AsyncCallbackString callback = new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
System.out.println(Server Fehler);
caught.printStackTrace();
}

@Override
public void onSuccess(String result) {
Window.alert(result);
}
};

SpeicherService.Util.getInstance().getName(ausgabe, callback);
}

public void test2() {
AsyncCallbackString callback = new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
System.out.println(Server Fehler);
caught.printStackTrace();
}

@Override
public void onSuccess(String result) {
Window.alert(result);
}
};
SpeicherService.Util.getInstance().getName2(miau,callback);
}



 I don't know if you already know it, but try to avoid using general
 interfaces in your RPC method signature (e.g. List) because GWT has to
 generate code for every possible implementation of these interfaces (because
 GWT does not know which implementation you will choose). So in case of List
 its better to directly use ArrayList of whatever List implementation you
 would like to use in the method signature.

You mean something like this, or is it ok?

public static class Util {
private static SpeicherServiceAsync instance;
public static SpeicherServiceAsync getInstance(){
if (instance == null) {
instance = GWT.create(SpeicherService.class);
}
return instance;
}
}

-- 
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: Question about the API of Validation

2011-07-22 Thread Nick Chalko
On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon 
adolfo.pan...@gmail.com wrote:

 As I said in another email I'm working with gwt api validation.

 Now I'm doing some tests, it is still not allowed the validation of fields
  belonging to the package java.util with @Valid constraint.


Can you show the code you have that fails.

You might also try the GWT 2.4 beta it includes Validation see
http://code.google.com/p/google-web-toolkit/wiki/BeanValidation.

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



Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Karthik Reddy
@Thomas

When you say  cached for a while  could you give an example how this can 
be achieved. (For example: Do you maintain the time it needs to be cached 
for, in a separate variable.  )

In concept, I am able to understand but the execution details are kinda 
teasing my mind.

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



Aw: Re: RPC RemoteServiceServlet multiple methods

2011-07-22 Thread Jens
The code seems fine. Just make sure that your server code matches the client 
code and it should work. Really seems like a cache problem (clear browser 
cache, clear project, restart development mode, redeploy the application if 
you use an external server).


 I don't know if you already know it, but try to avoid using general 
  interfaces in your RPC method signature (e.g. List) because GWT has to 
  generate code for every possible implementation of these interfaces 
 (because 
  GWT does not know which implementation you will choose). So in case of 
 List 
  its better to directly use ArrayList of whatever List implementation you 
  would like to use in the method signature. 

 You mean something like this, or is it ok? 

 public static class Util { 
 private static SpeicherServiceAsync instance; 
 public static SpeicherServiceAsync getInstance(){ 
 if (instance == null) { 
 instance = GWT.create(SpeicherService.class); 
 } 
 return instance; 
 } 
 }


No I mean something like:

public interface MyService extends RemoteService {
  public void save(ListString items);
  public ListString getItems();
}

With such a service GWT will generate Serializer classes for all classes 
that implement List (ArrayList, LinkedList, etc) which will increase the 
resulting javascript code. So its better to use a concrete implementation of 
List, e.g.:

public interface MyService extends RemoteService {
  public void save(ArrayListString items);
  public ArrayListString getItems();
}

Its not related to the code you posted here, but I thought it would be a 
nice info for you because at some point in your application you may want to 
transfer lists of objects between client and server.

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



Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Juan Pablo Gardella
I define an interface in the presenter as mention in
http://www.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

2011/7/22 Karthik Reddy karthik.ele...@gmail.com

 @Thomas

 When you say  cached for a while  could you give an example how this can
 be achieved. (For example: Do you maintain the time it needs to be cached
 for, in a separate variable.  )

 In concept, I am able to understand but the execution details are kinda
 teasing my mind.

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



gwt file upload

2011-07-22 Thread Dennis Haupt
hi there,

i'm trying to upload a file to a servlet using a gwt form. this works fine:

public static DialogBox buildFileUploadDialog(final String importLabel,
 final String serviceToCall) {
final DialogBox box = new DialogBox(true, false);
final FormPanel form = new FormPanel();
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);
form.setWidth(275px);
final FileUpload fileUpload = new FileUpload();
fileUpload.setName(singleFileSelection);
final VerticalPanel holder = new VerticalPanel();
holder.add(fileUpload);
form.add(holder);
holder.add(new com.google.gwt.user.client.ui.HTML(hr /));

holder.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
final Button importButton = button(importLabel);
importButton.addClickHandler(new ClickHandler() {
public void onClick(final ClickEvent unused) {
form.submit();
}
});
holder.add(importButton);
form.setAction(BaseForm.backendServerUrl() + data/?model= +
serviceToCall);
form.addSubmitCompleteHandler(new FormPanel.SubmitCompleteHandler()
{
public void onSubmitComplete(final FormPanel.SubmitCompleteEvent
event) {
System.out.println(submit complete :D);
}
});
box.add(form);
return box;
}

the post reaches my servlet's post-method where i grab the file content like
this:

@Override
protected void doPost(final HttpServletRequest req, final
HttpServletResponse resp)
 throws ServletException, IOException {
if (ServletFileUpload.isMultipartContent(req)) {
try {
final FileItemFactory factory = new MemoryFileItemFactory();
//(from gwtupload-0.6.3.jar)
final ServletFileUpload upload = new
ServletFileUpload(factory);
final List items = upload.parseRequest(req);
final FileItem next = (FileItem) items.iterator().next();
final byte[] binaryContent = next.get();

however, the byte[] is 4 mb in size, no matter how small the file acually
is.

when using DiskFileItemFactory (in commons-fileupload-1-2-2.jar), the
byte[]-size is fine.

what's the problem with using gwtupload's implementation?

-- 
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: GPE Support for m2e 1.0

2011-07-22 Thread cheleb
There is some rumor ( :) ) about in a near future that GEP will be
open sourced, then it will be easier to implement clean m2e support.
Until this happen (hopefully soon), I is easy to support compile/i18n/
generateSync and css goals. I've already proposed my (temporary)
solution. I've just uploaded an zipped update site at google code:
http://code.google.com/p/m2e-gwt-wtp/downloads/detail?name=org.maven.ide.eclipse.gwt.site-0.0.1-SNAPSHOT-site.zip

HIH


On Jul 22, 6:03 am, Cristiano cristiano.costant...@gmail.com wrote:
 Hi all,
 any news on the status of the support for m2e 1.0?

 On 14 Lug, 00:18, cheleb olivier.nougu...@gmail.com wrote:







  Hi Mike,

   Sorry for the late reply.
   To begin you can try/take a look 
  at:https://github.com/cheleb/m2eclipse-wtp-gdt

   Here is a first attempt (from Fred Bricon and I) to support GWT / m2e
  for indigo / m2e 1.0

   I guess that google will soon support m2e out of the box (the current
  GEP depends on org.sonatype.m2eclipse:-/ ).

   This plugin support:

  * GWT SDK configuration (Change settings to ignore missing SDK).
  * I18N bundle (code generation).

  HIH

  On 29 juin, 00:03, youngm you...@gmail.com wrote:

   Thanks for the response David.  Is there any way you can better
   qualify what you mean by a while before we're able to support that?

   The thread you referenced talked about the m2e Discovery stuff.
   You're not required to make your configurer available through that
   service if that is an issue.  You can bundle the configurer with GPE
   like you have before.

   The Indigo release of our internal eclipse distro is somewhat stalled
   with this feature missing.  If this feature may be coming in a month
   or sooner we may delay release of our internal distro for this
   feature.  If you're thinking several (2+ months) before m2e 1.0
   support then we'd probably need to internally develop a way to work
   around this for now.

   Thanks,
   Mike

   On Jun 28, 9:41 am, David Chandler drfibona...@google.com wrote:

Thomas, are you sure you're using m2e 1.0 (not 0.12x)? According to this
thread, m2e core is now released from Eclipse and it will be a while 
before
we're able to support that. But yes, 0.12 with m2extras works for me 
also in
Indigo.

   http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00754.html

/dmc

On Tue, Jun 28, 2011 at 4:31 AM, Thomas Broyer t.bro...@gmail.com 
wrote:
 Works for me…

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

 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.

--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w:http://code.google.com/
b:http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Thomas Broyer
If you use dependency injection properly, then it'd be done at the moment 
you getXxxView from your client factory (to use the terms from the GWT 
articles re. MVP).
Instead of:
private XxxView xxxView; // singleton
public XxxView getXxxView() {
   if (xxxView == null) {
  xxxView = new XxxView(...dependencies here...);
   }
   return xxxView;
}
You'd have something like:
private XxxView xxxView; // cached for a while
private Timer resetXxxView = new Timer() {
   @Override
   public void run() {
  xxxView = null;
   }
};
public XxxView getXxxView() {
   if (xxxView == null) {
  xxxView = new XxxView(...dependencies here...);
   }
   resetXxxView.schedule(...sliding window...);
   return xxxView;
}

If you're using GIN, it's unfortunately a bit hard to do it... until GIN 
implements custom scopes.
(honestly, I never tried, I'm just using singletons for now)

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



Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
We have a excel file stored as blob in the database. The user requested to 
display in the web browser and they can do basic editing for the excel 
document, such as change the cell, deleting or adding rows, and save the 
modified excel to the server side.  Is that possible to use GWT to program 
something like the Google doc? We use the java J2EE platform.

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



AbstractDataProvider, JsArray, and java.util.List

2011-07-22 Thread Scott Spyrison
Hello,

I've been working on a GWT project that integrates the CellTable
widget with remote services that provide JSON data.

So far, I have successfully created JavaScript Overlay Types and used
the JsonUtils.safeEval method to parse the returned JSON into either
an individual JavaScriptObject or a JsArrayJavaScriptObject.  I can
use the overlay type objects to access the data and populate various
widgets with no problems.

My problem came up when I tried to wire the JsArray as the data
provider for a CellTable.  It seems that AbstractDataProvider has an
updateRowData method that is always looking for a java.util.List, and
my JsArray does is not a List.  So far, I have been unable to find any
GWT provided mechanism to convert a JsArray as a List.  I have seen
other code that uses a helper method to iterate through the JsArray
and add each item to a new List.

Has anyone else encountered this challenge?  How did you (or would
you) approach it?  Ay feedback is welcomed.



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



Entity proxy for RequestFactory could not work with CellTable's selectionModel

2011-07-22 Thread Lopakhin
I believe requestfactory and new feature such as cell widget and cell
table should be development paradigm to work in tandem, but I found
that they might not work as  expected, I don't know it's a bug or just
I don't know how to use it right.

The symptom is when using entity proxy as the T in celltable and
selectionModel creation process, onSelectionChange event won't be
triggered; if I get rid of keyProvider in selectionModel and celltable
creation ,the onSelectionChange will be triggered, but I still can not
get the selected object by using ' selected =
selectionModel.getSelectedObject();'
Below is entity proxy,celltable creation code snippet:

*ContactProxy.java
@ProxyFor(Contact.class)
public interface ContactProxy extends EntityProxy {
  Long getId();

  String getName();

  String getAddress();

  void setName(String name);

  void setAddress(String address);

  void setId(Long id);
}
__

*cellTable creation
  private void createTable() {
table = new CellTableContactProxy(keyProvider);

// Create name column
TextColumnContactProxy nameColumn = new
TextColumnContactProxy() {
  public String getValue(ContactProxy object) {
return object.getName();
  }
};

// Create address column
TextColumnContactProxy addressColumn = new
TextColumnContactProxy() {
  public String getValue(ContactProxy object) {
return object.getAddress();
  }
};

// Add a selection model to handle user selection.
final SingleSelectionModelContactProxy selectionModel =
new SingleSelectionModelContactProxy(keyProvider);
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
  public void onSelectionChange(SelectionChangeEvent event) {

ContactProxy selected = selectionModel.getSelectedObject();
Window.alert(ok + selected.getId());
if (selected != null) {
 
clientFactory.setSelectedContactId(selected.getId().toString());
}
  }
});

table.addColumn(nameColumn, Name);
table.addColumn(addressColumn, Address);

  }


my guess is selectionModel does not welcome interface, is that right?
thank you .

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



Error in ant build

2011-07-22 Thread PetrKostroun
Hi, i try to build GWT project with ant (I use for start source
generated by eclise GWT Wizzard), but I get this error
[java] [ERROR] Unable to find 'org/heller/build/demo/client/
AntBuildDemo.gwt.xml' on your classpath; could be a typo, or maybe you
forgot to include a classpath entry for source?

Here is my build.xml file
[code]
project name=MyApp default=dist basedir=.
property name=project.name value=AntBuildDemo /
property name=src.dir location=src /
property name=src.web.dir location=src/web /
property name=lib.dir location=lib /
property name=build.dir location=build /
property name=build.web.dir location=build/web /
property name=metainf.dir location=src/web/META-INF /
property name=dist.dir location=dist /
property name=gwt.entrypoint.class
value=org.heller.build.demo.clien.AntBuildDemo /
property name=gwt.sdk.location location=C:/data/gwtsdk /
property name=gwt.home location=C:/data/gwtsdk/
property name=gwt.dev.jar location=C:/data/gwtsdk/gwt-dev.jar/

!-- Include property values --
property file=build.properties /

!-- Java Compile Classpath --
path id=compile.classpath
fileset dir=${lib.dir} includes=**/*.jar /
pathelement path=${java.class.path}/ /
/path

!-- GWT Compile Classpath --
path id=gwt.compile.classpath
pathelement path=${java.class.path}/ /
pathelement location=${gwt.sdk.location}/gwt-user.jar /
pathelement location=${gwt.sdk.location}/gwt-dev.jar /
pathelement location=${src.dir} /
fileset dir=${lib.dir} includes=**/*.jar /


/path

path id=gwt.heller.classpath
fileset dir=src/org/heller/build/demo/client
include name=**/*.java /
/fileset
fileset dir=src/org/heller/build/demo
include name=**/*gwt.xml/
   /fileset
/path

!-- Delete everything this build.xml created --
target name=clean description=Clean all build directories
delete dir=${build.dir} /
delete dir=${dist.dir} /
delete dir=${gwt.entrypoint.class} /
/target

!-- Prep up the tokens --
target name=init
tstamp /
filter token=implVendor value=${project.vendor} /
filter token=implVendorId value=${project.vendor.id} /
filter token=implVersion value=${project.version} /
filter token=projectName value=${project.name} /
filter token=projectPackage value=${project.package} /
filter token=specVendor value=${project.spec.vendor} /
filter token=specVersion value=${project.spec.version} /
/target

!-- Create the folder structure --
target name=prepare depends=init
mkdir dir=${build.dir} /
mkdir dir=${build.web.dir} /
mkdir dir=${build.web.dir}/META-INF /
mkdir dir=${build.web.dir}/WEB-INF /
mkdir dir=${build.web.dir}/WEB-INF/classes /
mkdir dir=${build.web.dir}/WEB-INF/lib /
mkdir dir=${dist.dir} /
/target

!-- Copy static files to build. GWT compilation will generate static
files
so run gwt-compile first --
target name=static depends=prepare

!-- Copy and filter configuration files --
!-- copy todir=${build.dir}/META-INF filtering=on --
!-- file=${metainf.dir}/MANIFEST.MF / --

!-- Copy static web resources --
!-- copy todir=${build.web.dir} filtering=on --
!-- fileset dir=${src.web.dir} / --
!-- /copy --

!-- Copy libraries from lib.dir directory --
copy todir=${build.web.dir}/WEB-INF/lib flatten=true
fileset dir=${lib.dir}
include name=**/*.jar /
exclude name=**/gwt-user.jar /
/fileset
/copy
/target

!-- AJAX Compilation with GWT --
target name=gwt-compile depends=static

java classpathref=gwt.compile.classpath
classname=com.google.gwt.dev.Compiler
fork=true
classpath
pathelement location=src/ /
path refid=gwt.compile.classpath /
/classpath

arg value=AntBuildDemo /
arg value=${build.dir} /
arg value=${gwt.entrypoint.class} /

/java
/target


target name=gwtc depends=static description=GWT compile to
JavaScript

Scrollbar isn't appearing when content goes off the page

2011-07-22 Thread Alexander Zylman
I've got a page written with declarative UIs that has a CellTable. If the 
data in the CellTable gets long enough that it goes off the bottom of the 
page, the scrollbar doesn't appear allowing you to scroll down to see it. Is 
there something special I need to do to make this appear, or is there 
something set up incorrecntly, or what's going on?

-- 
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/-/UId2yi7V_c0J.
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 eclipse plugin archive ?

2011-07-22 Thread patrick foure
I would like to know if it's possible to download an old release of
gwt eclipse plugin ( version 2.2 ) ?
I can't ugrade to 2.3 actually .

Thanks

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



Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Karthik Reddy
Great answer. Made my day.

I wish there was a way to rate answers in google groups. (just like 
stackoverflow).

@Thomas 

You are being a real asset to the community and to also to the product. 
 Just curious. Were you approached by the GWT team with an offer to join 
their team.  Just a rhetorical question.  You do not have to answer. 



-- 
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/-/Wy3A-E1Iru0J.
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.



Aw: Re: MVP best practices, how to expose a view to a presenter?

2011-07-22 Thread Jens
Couldn't you just implement a provider for a given view in the same way when 
using GIN?

In XxxViewProvider.get() you would do the same as in your getXxxView() 
method. Doesn't seem that hard but honestly I've never tried it and maybe 
I'm missing something.

-- 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/-/7DYdfYAvqYkJ.
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 get readyState from GWT Frame object?

2011-07-22 Thread jhulford
I had the same issue and ended up having to write some JSNI to query
the frame's readyState every X milliseconds for IE (load event wasn't
firing consistently).  It's pretty straightforward to do, but I don't
have the code any more because there were just too many other IE
issues with the iframe download approach the way I had been doing it
that I just used the simple anchor tag downloads instead.

On Jul 21, 2:28 pm, elloalisboa elloalis...@gmail.com wrote:
 I'm using GWT 2.3.0 in my project and I have an iframe and a loading
 mask. When the iframe content (to be more specific, the content is a
 PDF) is loaded I need to hide the loading mask.

 I tried using:

 Frame frame = new Frame(http://www.example.com/example.pdf;) {{
    addDomHandler(new LoadHandler() {
       public void onLoad(LoadEvent event) {
          loadingMask.setVisible(false);
       }
    }, LoadEvent.getType());

 }};

 and:

 Frame frame = new Frame(http://www.example.com/example.pdf;) {
     @Override
     protected void onLoad() {
         super.onLoad();
         loadingMask.setVisible(false);
     }

 };

 Because of the content is a PDF, both codes don't work in IE.

 Is there a way to get the readyState iframe property with GWT?

 I would appreciate any feedback. Thanks for all.

-- 
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 get readyState from GWT Frame object?

2011-07-22 Thread Tomasz Gawel
hi,

try something like this: (I'm not sure if there is any built in
solution but this native patch should work ;) )

public class ReadyStateWatch {
public static enum ReadyState {
COMPLETE {
@Override public String toString() { return complete; 
}
},
LOADING {
@Override public String toString() { return loading; }
},
INTERACTIVE {
@Override public String toString() { return 
interactive; }
},
UNINITIALIZED {
@Override public String toString() { return 
uninitialized; }
}
}
Frame iframe;

public ReadyStateWatch(Frame iframe){
this.iframe = iframe;
addNativeReadyStateWatch(this, 
iframe.getElement().IFrameElement
cast());
}

public HandlerRegistration addReadyStateChangeHandler(
ValueChangeHandlerReadyState handler) {
return iframe.addHandler(handler, ValueChangeEvent.getType());
}

public ReadyState getReadyState(){
try {
return
ReadyState.valueOf(iframe.getElement().getPropertyString(readyState));
}
catch (Exception e) {
return null;
}
}

@SuppressWarnings(unused) //used in native function
private void fireReadyStateChange(){
iframe.fireEvent(new 
ValueChangeEventReadyState(getReadyState())
{});
}

private static native void addNativeReadyStateWatch(ReadyStateWatch
self, IFrameElement e) /*-{
var handleStateChange = function(){

se...@com.your.package.ReadyStateWatch::fireReadyStateChange()();
};
if (e.addEventListener) {
e.addEventListener(onreadystatechange, 
handleStateChange, false);
}else if (e.attachEvent) {
e.attachEvent(onreadystatechange,handleStateChange);
}else{
e.onreadystatechange=handleStateChange;
}
}-*/;
}

-- 
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 get readyState from GWT Frame object?

2011-07-22 Thread Tomasz Gawel
and sample usage:

class UsageExample {
public static void useItLikeThat(){
Frame frame = new Frame(http://www.example.com/example.pdf;);
new ReadyStateWatch(frame).addReadyStateChangeHandler(
new ValueChangeHandlerReadyState() {
@Override public void 
onValueChange(ValueChangeEventReadyState
event) {
switch(event.getValue()){
case COMPLETE:
Window.alert(I am loaded);
break;
case INTERACTIVE:
case LOADING:
case UNINITIALIZED:
}
}
});
}
}

-- 
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: Question about the API of Validation

2011-07-22 Thread Adolfo Panizo Touzon
Ok.
I have two simple class: Person and Email.

Also I´m  using the api of validation that includes in the gwt-2.4.0, and
the configuration of the module is correct (because if I comment the @Valid
contraints the code works well).

The Person class class has some fields that belong to the java package
java.util
and are annotated with the @Valid constraint.

*class Person{*
*
*

*//Works fine*

*
@Valid
private HashMapString, Email codigos;

//Not work.
@Valid
private HashMapInteger, HashMapString,Email movidas;

//Works fine
@Valid
private ArrayListEmail mails;
*

*}*

Finally the code that raise the exception are:

*public class GenValGui implements EntryPoint {*
* public void onModuleLoad() {*
Validator validator =
Validation.buildDefaultValidatorFactory().getValidator();
ErrMessagePanel emp =new ErrMessagePanel();
 Person p = new Person(..);
 *validator.validate(p, Default.class);*
*}*
*}*

The deduction of this behavior is logic, the validation api does not allow
validate nested java.util fields like *ArrayList**ArrayListString.*

My question is that if in the future will be allowed or a restriction that must
always be so.

Thank you very much for answering and if I have not explained well or you
need more information, let me know.

Thanks.

Adolfo.

2011/7/22 Nick Chalko ncha...@google.com



 On Thu, Jul 21, 2011 at 2:45 AM, Adolfo Panizo Touzon 
 adolfo.pan...@gmail.com wrote:

 As I said in another email I'm working with gwt api validation.

 Now I'm doing some tests, it is still not allowed the validation of
 fields belonging to the package java.util with @Valid constraint.


 Can you show the code you have that fails.

 You might also try the GWT 2.4 beta it includes Validation see
 http://code.google.com/p/google-web-toolkit/wiki/BeanValidation.

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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



calling gwt from external client

2011-07-22 Thread fchas
My use case is:
I have a gwt application with a mysql db and UI that preforms crud ops
on some simple domain objects.  One domain object is called a task,
it represents some work that is executed by the gwt application.  The
gwt application will check the db periodically for tasks and run
them.

Tasks can be entered by users via the UI, but I also want to support
Task creation from outside of the application by another program,
curl, wget, etc.  How can I achieve this with GWT?

thanks in advance!

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



Re: calling gwt from external client

2011-07-22 Thread Jeff Larsen
If the GWT app periodically checks the db for tasks, I don't think you need 
to do anything to get it to work other than implement your other clients. 

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



Using GNU getText (.po files) to manage the internationalization process

2011-07-22 Thread ialexei
Hi,

Our company is looking at using gnu gettext through out the product,
due to the availability of abundant tools that work with the .po
standard.
It seems straight forward to go with the .po files for a pure java
swing application and C/C++ pieces of our product.
But our WebGUI is built with GWT.

Has anyone tried using these in a GWT project ?
Any ideas/suggestions ?

-A

-- 
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: center view to any part of html

2011-07-22 Thread Deepak Singh
Any idea pls..

On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi All,

 I have one html which contains may div elements. Each div element contains
 different widget.
 Now based on the user activity i want to show a particular div on the
 center of screen by just scrolling up or down the html as it happens in
 google+ now.
 How can i acheive this?

 Also, I need this by keypress also. Kindly suggest.

 Regards
 Deepak




-- 
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 Developer Plugin for Firefox.

2011-07-22 Thread Jeff Chimene
On 07/20/2011 12:16 PM, Chris Conroy wrote:
 Agreed these are serious issues facing the FF plugin. For the moment,
 we're doing a little bit of wait and see to see if this new release
 strategy (specifically the forced rebuild of all extensions) actually
 sticks. If it does, we'll certainly need to retool how we spin plugin
 builds for new versions of Firefox.
 
 The size issue will definitely be a problem. In anticipation of that,
 we've reduced the compiled output size considerably by turning off some
 debug flags, and our plugin supporting 3.0-5.0 clocks in at just 2.0MB.
  Long term, we'll probably need to fashion some kind of split binary or
 revisit the notion of having every version supported in a single xpi.
 
 Short term, the unsatisfying answer that I can give to you is that we
 will lag Firefox's release schedule. If you rely on the Firefox GWT
 DevMode plugin, be sure to keep an instance of a known working version
 of firefox around for your development.

It might also be worth contacting Mozilla Developer Network with
feedback on this issue. I'll certainly write an email message to
Someone, Somewhere on this topic.

Also, there was some announcement on one of the Mozilla blogs about a
Mozilla Enterprise something-or-other panel. As it wasn't open to Mere
Mortals it didn't seem interesting to me. It may be worth contacting
them on this keeping up with the Joneses strategy they seem to have
adopted.

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



Aw: Using GNU getText (.po files) to manage the internationalization process

2011-07-22 Thread Jens
Haven't tried it but maybe using http://jsgettext.berlios.de/ along with a 
custom GWT wrapper using GWT's JSNI feature could work.

-- 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/-/Kcb34Eby6QkJ.
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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-22 Thread Eric Ridge
On Thu, Jul 21, 2011 at 5:22 PM, Darmawan dsuwi...@gmail.com wrote:

 Looks like it's because the Webkit Plugin API is deprecated in Safari 5.1
 ( regardless the OSX version ) ? Can anybody help to confirm this ?
 Thanks.

I don't think that's the case per se.  The Plugin API still exists
within the WebKit.framework.  I saw some rumblings on the 'net about
the API being deprecated, but couldn't find anything definitive on
Apple's developer website.

I'm no Cocoa expert, so there's probably a thousand reasons why I
failed, but I couldn't even get the WebKitPluginStarter example from
developer.apple.com to work.  Looks like it was created long ago, so
maybe it's bit-rotted.  Safari did load it (unlike the GWT plugin),
but it didn't actually work.

I really wish somebody from the GWT development team would see this
thread (and issue #6601
http://code.google.com/p/google-web-toolkit/issues/detail?id=6601) and
reply.

Lion  Safari 5.1 are definitely brand new, but I find it hard to
believe that nobody on the GWT team was involved with the developer
previews of Lion.

eric

-- 
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: center view to any part of html

2011-07-22 Thread VisualFox
Sorry I am not sure I understand what you mean. Are you speaking about
layout or some way to control the scrollpane/focus?

On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote:
 Any idea pls..

 On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.comwrote:







  Hi All,

  I have one html which contains may div elements. Each div element contains
  different widget.
  Now based on the user activity i want to show a particular div on the
  center of screen by just scrolling up or down the html as it happens in
  google+ now.
  How can i acheive this?

  Also, I need this by keypress also. Kindly suggest.

  Regards
  Deepak

-- 
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: calling gwt from external client

2011-07-22 Thread VisualFox
a) want to create a web API - if you just need to populate your db you
are free to use whatever technology as Jeff said. If you want to
expose some part of the GWT app you may want to check GWT Exporter:
http://code.google.com/p/gwt-exporter/

b) you need some server side client and in this case you can use
whatever language to push data to the server. My favorite will be redis
+octobot.

In any case I don't think you can call and execute a GWT application
from wget or curl but node.js may be your friend

On Jul 22, 6:59 pm, fchas charlesford...@gmail.com wrote:
 My use case is:
 I have a gwt application with a mysql db and UI that preforms crud ops
 on some simple domain objects.  One domain object is called a task,
 it represents some work that is executed by the gwt application.  The
 gwt application will check the db periodically for tasks and run
 them.

 Tasks can be entered by users via the UI, but I also want to support
 Task creation from outside of the application by another program,
 curl, wget, etc.  How can I achieve this with GWT?

 thanks in advance!

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



Re: Can GWT be used to edit excel?

2011-07-22 Thread Kevin Jordan
Unless you're wanting to send it down to the client and get the
contents using the File API or similar, just parse it on the server
using POI or jExcelAPI and send it to the client via a request and
display it in a grid/table on the client.  Then after they're done
editing it, send their changes to the server and use POI or jExcelAPI
to create a spreadsheet and save it in there.  If you're wanting to
use the File API to read the binary data on the client side, I'm not
sure I've seen a javascript excel parser yet.

On Jul 21, 8:33 pm, Sharon11 sharonlu9...@yahoo.com wrote:
 We have a excel file stored as blob in the database. The user requested to
 display in the web browser and they can do basic editing for the excel
 document, such as change the cell, deleting or adding rows, and save the
 modified excel to the server side.  Is that possible to use GWT to program
 something like the Google doc? We use the java J2EE platform.

-- 
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: center view to any part of html

2011-07-22 Thread Deepak Singh
No. Not layout.

Say, suppose this is the html as follows,

div id=a/
div id=b/
div id=c/
div id=d/

And at runtime contents are added to these div.

Now, the content of div id=d will be at the lowest position so it may not
be visible to the user at first glance, so the user has to scroll down to
the browser to see the last div content.

Now i want that whenever the content is added to div id=d, the browser
should automatically scroll down enough to make the content of last div
visible to the user.

How to acheive this?

On Fri, Jul 22, 2011 at 11:58 PM, VisualFox mecha...@gmail.com wrote:

 Sorry I am not sure I understand what you mean. Are you speaking about
 layout or some way to control the scrollpane/focus?

 On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote:
  Any idea pls..
 
  On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.com
 wrote:
 
 
 
 
 
 
 
   Hi All,
 
   I have one html which contains may div elements. Each div element
 contains
   different widget.
   Now based on the user activity i want to show a particular div on the
   center of screen by just scrolling up or down the html as it happens in
   google+ now.
   How can i acheive this?
 
   Also, I need this by keypress also. Kindly suggest.
 
   Regards
   Deepak

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



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



Re: center view to any part of html

2011-07-22 Thread VisualFox
Thanks! That make sense. Did ensureVisible can help you there?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#ensureVisible%28com.google.gwt.user.client.ui.UIObject%29

On Jul 22, 9:24 pm, Deepak Singh deepaksingh...@gmail.com wrote:
 No. Not layout.

 Say, suppose this is the html as follows,

 div id=a/
 div id=b/
 div id=c/
 div id=d/

 And at runtime contents are added to these div.

 Now, the content of div id=d will be at the lowest position so it may not
 be visible to the user at first glance, so the user has to scroll down to
 the browser to see the last div content.

 Now i want that whenever the content is added to div id=d, the browser
 should automatically scroll down enough to make the content of last div
 visible to the user.

 How to acheive this?







 On Fri, Jul 22, 2011 at 11:58 PM, VisualFox mecha...@gmail.com wrote:
  Sorry I am not sure I understand what you mean. Are you speaking about
  layout or some way to control the scrollpane/focus?

  On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote:
   Any idea pls..

   On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh deepaksingh...@gmail.com
  wrote:

Hi All,

I have one html which contains may div elements. Each div element
  contains
different widget.
Now based on the user activity i want to show a particular div on the
center of screen by just scrolling up or down the html as it happens in
google+ now.
How can i acheive this?

Also, I need this by keypress also. Kindly suggest.

Regards
Deepak

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

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



Re: center view to any part of html

2011-07-22 Thread Deepak Singh
So, how do i get the access to the vertical scrollbar of the browser to
acheive this one ?


On Sat, Jul 23, 2011 at 1:04 AM, VisualFox mecha...@gmail.com wrote:

 Thanks! That make sense. Did ensureVisible can help you there?

 http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ScrollPanel.html#ensureVisible%28com.google.gwt.user.client.ui.UIObject%29

 On Jul 22, 9:24 pm, Deepak Singh deepaksingh...@gmail.com wrote:
  No. Not layout.
 
  Say, suppose this is the html as follows,
 
  div id=a/
  div id=b/
  div id=c/
  div id=d/
 
  And at runtime contents are added to these div.
 
  Now, the content of div id=d will be at the lowest position so it may
 not
  be visible to the user at first glance, so the user has to scroll down to
  the browser to see the last div content.
 
  Now i want that whenever the content is added to div id=d, the browser
  should automatically scroll down enough to make the content of last div
  visible to the user.
 
  How to acheive this?
 
 
 
 
 
 
 
  On Fri, Jul 22, 2011 at 11:58 PM, VisualFox mecha...@gmail.com wrote:
   Sorry I am not sure I understand what you mean. Are you speaking about
   layout or some way to control the scrollpane/focus?
 
   On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote:
Any idea pls..
 
On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh 
 deepaksingh...@gmail.com
   wrote:
 
 Hi All,
 
 I have one html which contains may div elements. Each div element
   contains
 different widget.
 Now based on the user activity i want to show a particular div on
 the
 center of screen by just scrolling up or down the html as it
 happens in
 google+ now.
 How can i acheive this?
 
 Also, I need this by keypress also. Kindly suggest.
 
 Regards
 Deepak
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: center view to any part of html

2011-07-22 Thread VisualFox
I see two ways:

a) disable the browser scrollbar and have the ScrollPanel filling the
full space
b) look at the implementation of the ScrollPanel and reimplemented it
for fitting your need

you can also look for javascript examples (I believe that jquery have
this function)

On Jul 22, 10:25 pm, Deepak Singh deepaksingh...@gmail.com wrote:
 So, how do i get the access to the vertical scrollbar of the browser to
 acheive this one ?







 On Sat, Jul 23, 2011 at 1:04 AM, VisualFox mecha...@gmail.com wrote:
  Thanks! That make sense. Did ensureVisible can help you there?

 http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...

  On Jul 22, 9:24 pm, Deepak Singh deepaksingh...@gmail.com wrote:
   No. Not layout.

   Say, suppose this is the html as follows,

   div id=a/
   div id=b/
   div id=c/
   div id=d/

   And at runtime contents are added to these div.

   Now, the content of div id=d will be at the lowest position so it may
  not
   be visible to the user at first glance, so the user has to scroll down to
   the browser to see the last div content.

   Now i want that whenever the content is added to div id=d, the browser
   should automatically scroll down enough to make the content of last div
   visible to the user.

   How to acheive this?

   On Fri, Jul 22, 2011 at 11:58 PM, VisualFox mecha...@gmail.com wrote:
Sorry I am not sure I understand what you mean. Are you speaking about
layout or some way to control the scrollpane/focus?

On Jul 22, 7:42 pm, Deepak Singh deepaksingh...@gmail.com wrote:
 Any idea pls..

 On Mon, Jul 18, 2011 at 3:38 PM, Deepak Singh 
  deepaksingh...@gmail.com
wrote:

  Hi All,

  I have one html which contains may div elements. Each div element
contains
  different widget.
  Now based on the user activity i want to show a particular div on
  the
  center of screen by just scrolling up or down the html as it
  happens in
  google+ now.
  How can i acheive this?

  Also, I need this by keypress also. Kindly suggest.

  Regards
  Deepak

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

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

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



Aw: Re: center view to any part of html

2011-07-22 Thread Jens
I think you can use Window.scrollTo(int left, int top) 
(http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/Window.html).

The top position you want to scroll to can be obtained via 
DivElement.getAbsoluteTop() 
(http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/dom/client/Element.html)


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



Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11
Thanks, Kevin. I am new to GWT. My another question is how easy that
will be in GWT to edit the grid/table? Does GWT provide API to do
that? When I tried a small program the cell in the table of GWT is not
editable. Do you have to put the widget for each cell and customize
it  to handle the edit of the table part?
And I saw the similar answer of using POI or jExcelAPI to handle the
excel. But we have alreay used another tool call reportMill to
generate the excel for us. If we have to parse and reprocess the
excel. Our previous work on reportMill will be a total waste. Do you
know if the GWT provide Widget to edit the table internally so I don't
have to write code for that. I saw someone successfully import excel
to gwt table and export gwt to excel after editing.
At this point we try to find the existing tools to edit excel whithout
parsing that.

On Jul 22, 2:38 pm, Kevin Jordan ke...@kjordan.net wrote:
 Unless you're wanting to send it down to the client and get the
 contents using the File API or similar, just parse it on the server
 using POI or jExcelAPI and send it to the client via a request and
 display it in a grid/table on the client.  Then after they're done
 editing it, send their changes to the server and use POI or jExcelAPI
 to create a spreadsheet and save it in there.  If you're wanting to
 use the File API to read the binary data on the client side, I'm not
 sure I've seen a javascriptexcelparser yet.

 On Jul 21, 8:33 pm, Sharon11 sharonlu9...@yahoo.com wrote:



  We have aexcelfile stored as blob in the database. The user requested to
  display in the web browser and they can do basic editing for theexcel
  document, such as change the cell, deleting or adding rows, and save the
  modifiedexcelto the server side.  Is that possible to useGWTto program
  something like the Google doc? We use the java J2EE platform.- Hide quoted 
  text -

 - Show quoted text -

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



Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11


On Jul 22, 2:38 pm, Kevin Jordan ke...@kjordan.net wrote:
 Unless you're wanting to send it down to the client and get the
 contents using the File API or similar, just parse it on the server
 using POI or jExcelAPI and send it to the client via a request and
 display it in a grid/table on the client.  Then after they're done
 editing it, send their changes to the server and use POI or jExcelAPI
 to create a spreadsheet and save it in there.  If you're wanting to
 use the File API to read the binary data on the client side, I'm not
 sure I've seen a javascript excel parser yet.

 On Jul 21, 8:33 pm, Sharon11 sharonlu9...@yahoo.com wrote:



  We have a excel file stored as blob in the database. The user requested to
  display in the web browser and they can do basic editing for the excel
  document, such as change the cell, deleting or adding rows, and save the
  modified excel to the server side.  Is that possible to use GWT to program
  something like the Google doc? We use the java J2EE platform.- Hide quoted 
  text -

 - Show quoted text -

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



Re: Can GWT be used to edit excel?

2011-07-22 Thread Sharon11


On Jul 22, 2:38 pm, Kevin Jordan ke...@kjordan.net wrote:
 Unless you're wanting to send it down to the client and get the
 contents using the File API or similar, just parse it on the server
 using POI or jExcelAPI and send it to the client via a request and
 display it in a grid/table on the client.  Then after they're done
 editing it, send their changes to the server and use POI or jExcelAPI
 to create a spreadsheet and save it in there.  If you're wanting to
 use the File API to read the binary data on the client side, I'm not
 sure I've seen a javascript excel parser yet.

 On Jul 21, 8:33 pm, Sharon11 sharonlu9...@yahoo.com wrote:



  We have a excel file stored as blob in the database. The user requested to
  display in the web browser and they can do basic editing for the excel
  document, such as change the cell, deleting or adding rows, and save the
  modified excel to the server side.  Is that possible to use GWT to program
  something like the Google doc? We use the java J2EE platform.- Hide quoted 
  text -

 - Show quoted text -

-- 
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 and Guice

2011-07-22 Thread Christopher Piggott
Hi,

I set up a com.google.web.bindery.requestfactory.shared.ServiceLocator
but I really would like to have it create the instances via guice.
Unfortunately, I'm not the guy who creates MyServiceLocator - that
happens somewhere behind the scenes, as a result of for example:

@Service(value = Counter.class, locator=GenericServiceLocator.class)
public interface CounterRequest extends RequestContext { ... }

I'm wondering how I should handle this... what I would really like
would be to have RequestFactoryServlet use an instance I create rather
than making up its own.  Possible?

--Chris

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



Aw: GWT and Guice

2011-07-22 Thread Jens
Have you 
seen: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory ? 
Maybe thats what you are looking for.

-- 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/-/lR9qNHpjWL8J.
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 and Guice

2011-07-22 Thread Christopher Piggott
No, I hadn't seen that ... thanks, and sorry for the noise.


On Fri, Jul 22, 2011 at 6:08 PM, Jens jens.nehlme...@gmail.com wrote:
 Have you
 seen: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory ?
 Maybe thats what you are looking for.
 -- 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/-/lR9qNHpjWL8J.
 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 can i write a javascript library in GWT ?

2011-07-22 Thread Saeed Zarinfam
Hi guys,
I want to develop a shared library so that the team member can call
its method in JavaScript. how can i do that ?

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



Load compiled GWT module in a GWT application !

2011-07-22 Thread Saeed Zarinfam
Hi guys,
I know this is a strange question but i have this problem in a real
project. We are developing a container (e.g. gadget container) using
GWT and also we want to have a GWT project per our module (modules
load with container at run-time) :

1- we have a shared GWT project that every module inherit it. is it
true ?
2- we have a GWT project for our container , we want to compile each
module (another GWT project) and then load them with container without
any submit on the server and also container has to communicate with
modules. how can we do these ?

thanks in advance.

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



Re: calling gwt from external client

2011-07-22 Thread Saeed Zarinfam
Hi
You can write web service for task creation operation and then call
web service from out side of the application for creating task.

-- 
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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-22 Thread Jeff Schnitzer
It's not a Lion issue - Safari 5.1 is the latest upgrade on 10.6.8, and it
breaks as well :-(

Jeff

On Fri, Jul 22, 2011 at 11:15 AM, Eric Ridge eeb...@gmail.com wrote:

 On Thu, Jul 21, 2011 at 5:22 PM, Darmawan dsuwi...@gmail.com wrote:
 
  Looks like it's because the Webkit Plugin API is deprecated in Safari 5.1
  ( regardless the OSX version ) ? Can anybody help to confirm this ?
  Thanks.

 I don't think that's the case per se.  The Plugin API still exists
 within the WebKit.framework.  I saw some rumblings on the 'net about
 the API being deprecated, but couldn't find anything definitive on
 Apple's developer website.

 I'm no Cocoa expert, so there's probably a thousand reasons why I
 failed, but I couldn't even get the WebKitPluginStarter example from
 developer.apple.com to work.  Looks like it was created long ago, so
 maybe it's bit-rotted.  Safari did load it (unlike the GWT plugin),
 but it didn't actually work.

 I really wish somebody from the GWT development team would see this
 thread (and issue #6601
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6601) and
 reply.

 Lion  Safari 5.1 are definitely brand new, but I find it hard to
 believe that nobody on the GWT team was involved with the developer
 previews of Lion.

 eric

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



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



Re: Error in ant build

2011-07-22 Thread Saeed Zarinfam
Hi,
Please describe more.
Which target do you run?
What is complete error message?

-- 
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-contrib] Introducing a new CellTableBuilder API, which allows users to customize the structure of a CellT... (issue1501803)

2011-07-22 Thread jlabanca

Reviewers: pengzhuang_google.com,

Description:
Introducing a new CellTableBuilder API, which allows users to customize
the structure of a CellTable by building zero or more table rows per row
value and adding zero or more Cells per TD.  The table rows are built
using the generic ElementBuilder API, which allows for colspans and
rowspans.  The CellTableBuilder interface defines one method
#buildRow(T, int, Utility) that takes the row value and row index to
build, as well as a Utility class.  The Utility class defines a
#startRow() method to append a DOM row and associate it with the row
value.  Using this API, you can define multiple rows per row value, such
as an error row that spans all of the columns, or a set of child
rows to simulate a tree table.  The Utility also contains a method
#renderCell(ElementBuilder, Context, Column, T rowValue) that renders a
Cell into the row.  The TableBuilder can be swapped out using
setTableBuilder(), and the default tableBuilder renders a grid based on
the Columns defined in the CellTable.  This change only applies to the
data portion of the CellTable.  A subsequent change will add a similar
HeaderBuilder that applies to the header and footer.

This API change required a significant refactor of CellTable because
CellTable assumed a grid structure with one row per row value, one cell
per column, and a structure consisting of a div inside of a td for every
Cell.  Now that the structure is open ended, CellTable sets the ID of
the row value on the TR and assigns a unique ID to Cells that is set as
a DOM attribute of the cell's parent element.  Instead of looking for
the TD that contains the cell, we walk up from the event target looking
for the cell ID attribute and the row attribute on the TR. We then look
up the cell by its ID in a Map.

In addition, there is an internal concept of subrows, which occurs
when a row value is rendered into multiple rows.  The subrow is now
included in the Context that is passed to Cells when they handle events.
There is nothing special about rendering one row versus five, we just
consider the one row to be the 0th subrow.  The entire set of subrows
rendered with a row value are considered a block associated with the row
value. If the row value changes, the entire block of subrows is
re-rendered as well.

Keyboard selection is also affected, and in particular there are
different ways that users might want to handle keyboard selection
depending on the existance of subrows.  So, I abstracted the keyboard
selection code out to a CellPreviewEvent.Handler, which is how normal
Selection works.  This abstraction cleans up some of the code, and it
allows users to override how keyboard selection works (say, by changing
the keys or actions) using #setKeyboardSelectionHandler().  In addition,
we now expose methods like get/setKeyboardSelectionRow() to allow users
to programatically change the keyboard selected row.  The default
implementation of the handler navigates between interactive cells in the
first row of each row value.  It does not navigate into subrows unless
the user actually clicks on the subrow.

Currently, TableBuilder is implemented using HtmlBuilder because it
still seems faster than DOM manipulation.  I added a TODO to test
DomBuilder in more depth.  The TableBuilder API is generic enough that
we can switch out the implementation without affecting user code.

There is a legacy code path to provide a decent level of backward
compatibility for users who are overriding the protected method
AbstractCellTable#renderRowValues(SafeHtmlBuilder), which is now
deprecated and no longer used. We still call #renderRowValues(), but we
expect it to throw an UnsupportedOperationException, which we detect and
continue.  If it does not throw an UnsupportedOperationException, then
we pass the rendered html to replaceChildren().  The only way it would
not throw an UnsupportedOperationException is if the user overrides
#renderRowValues().  I also added an unused method
AbstractCellTable#renderRowValuesLegacy() in case users want to revert
to the old style.

I also added a sample to Showcase. Demo availabale at
http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid


Please review this at http://gwt-code-reviews.appspot.com/1501803/

Affected files:
  M  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource.properties
  M  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_ar.properties
  M  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_fr.properties
  M  
samples/showcase/src/com/google/gwt/i18n/client/LocalizableResource_zh.properties

  M samples/showcase/src/com/google/gwt/sample/showcase/Showcase.gwt.xml
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/MainMenuTreeViewModel.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/ShowcaseConstants.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ContactDatabase.java
  A