Monday, May 31, 2010

ClickHandler not called on second click

I have a button with a ClickHandler. When I move the mouse over the
button and click the button, the ClickHandler is called. When I do no
move the mouse away from the button, the ClickHandler is not called on
any subsequent clicks. I have to move the mouse away from the button
and back. Then the ClickHandler is called when I click again.

To investigate, I have added a MouseDownHandler and a MouseUpHandler.
These are called on subsequent clicks, only the ClickHandler is not
called.
As the focus stays on the button, I have tried hitting the enter key.
This triggers calling the ClickHandler.

I 've tried adding a DeferredCommand to the ClickHandler with a
variaty of actions(remove focus, remove focus and set focus again),
but this does not change anything.

Environment
- GWT 2.0.3
- Vista
- Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

There are several posts in this forum that describe a similar
behaviour (e.g.
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/aa9ce024e173390e/65802ce6da9482e7?lnk=gst&q=second+click#65802ce6da9482e7)
but none have a solution.

Any idea how to solve this?

Thanks in advance,

Danny

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

Dialog Box Dragging?

When a DialogBox is dragged off the screen and realease ur mouse,
everthing gets locked. Cant even see the dialog box to drag back...

any solutions?

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

Re: Need a way to get width of each column in a Grid

Never mind guys. Figured it out. Just in case there are any searches:

public CellFormatter cellFormatter = new CellFormatter();
public Element cellElement;

and then I made 2 methods that I found very useful within my class
that extends Grid:

public int getColumnWidth(int column) {
cellElement = cellFormatter.getElement(0, column);
return cellElement.getClientWidth();
}

public int getColumnOffset(int column) {
cellElement = cellFormatter.getElement(0, column);
return cellElement.getOffsetLeft();
}

in the getElement function you can specify a row also, but I chose to
use 0 because all my columns in a given row have the same width. Be
wary though, I've noticed it rounds. I used a similar method to get
the total width for the table, and then I subtracted all the column
widths while the borders were set to 0, and the result I got was -3.
So there is slight rounding going on, which is why I found the
getOffsetLeft method of Element so useful since its more accurate for
me to get exactly where something is placed.

Best of luck!

On May 31, 10:33 pm, spierce7 <spier...@gmail.com> wrote:
> I'm trying to find a way to get the specific width of each column
> individually within a grid. Height isn't as important, but I wouldn't
> mind knowing that either. I don't need the table total width, but
> rather specific columns.
>
> Getting the absolute location of a cell, column, or row might also
> work. I've been looking for over an hour now and can't seem to find a
> way.

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

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

It is not possible to avoid refresh(reload) through scripts. The only
possible thing is you could display an alert message through the
browser which provides the User with option to either stay on the page
or leave it. Which is what is done in the CloseHandler in your example
script.

What federico wants to say is you should use history-tokens to save
your states.

Use Refresh, Back, Forward as a feature and not a catastrophe, with
the the help of GWT History support.

On Jun 1, 6:57 am, Mike Jiang <mikej1...@gmail.com> wrote:
> Don't get it. Please show your good design in an understandable style.
>
> On Fri, May 28, 2010 at 4:49 PM, federico <federico.mona...@gmail.com>wrote:
>
>
>
> > bad design.
> > "refresh" is a feature and you should provide bokmarkable refresh-save
> > pages.
>
> > On 28 Mag, 20:42, Mike J <mikej1...@gmail.com> wrote:
> > > Hi,
> > >    I ran into a problem about clicking the "reload" button on a web
> > > browser.
>
> > >    My app is a stateful GWT app. Users need to be authenticated for
> > > login. After login they can surf on various pages. But users sometimes
> > > were used to press the "reload" button on the browser to refresh the
> > > page.
>
> > >    The reloading process just bring the screen back to a reboot state,
> > > with all state info lost. That's not what we expect.
>
> > >    The quick solution is, catch the reload event before the browser
> > > sends the "reload" request to the web server and prevent the browser
> > > from sending it.
>
> > >    I have read the relevant posts in this group and found the useful
> > > info that "reload" event is equivalent to the Window Closing event. So
> > > in the following code snippet I can catch the event,
>
> > >    Window.addCloseHandler(new CloseHandler<Window>() {
> > >             public void onClose(CloseEvent<Window> event) {
> > >                 //prevent browser sending the reload request to the
> > > web browser
> > >             }
> > >         });
>
> > >    But I don't know how I can stop the browser from sending the
> > > "reload" request to the web server.
>
> > >    Thanks for any help,
>
> > >    Mike J.
>
> > --
> > 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Need a way to get width of each column in a Grid

I'm trying to find a way to get the specific width of each column
individually within a grid. Height isn't as important, but I wouldn't
mind knowing that either. I don't need the table total width, but
rather specific columns.

Getting the absolute location of a cell, column, or row might also
work. I've been looking for over an hour now and can't seem to find a
way.

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

Re: Calling Methode using JSNI failed

You should start by carefully reading the JSNI documentation:

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html

A simple JSNI method looks like this (note the specially formatted
braces, which Java sees as a comment block, and therefore ignores):

public static native void alert(String msg) /*-{
$wnd.alert(msg);
}-*/;

On May 31, 3:25 pm, malibubu <webmaster@mailball.de> wrote:
> Sorry, this was a typo.
>
> I also tried the signature
>
>   this.@de.test.Designer::sendNode(Ljava/lang/String;I)("TEST",100);
>
> with methode sendNode(String id, int x)
>
> Same problem :(
>
> On 31 Mai, 23:48, kozura <koz...@gmail.com> wrote:
>
>
>
> > Maybe try with int x and use I instead of the Integer class.  Also
> > even as is, your Integer method signature isn't quite right: land-
>
> > >lang.
>
> > On May 31, 3:15 pm, malibubu <webmas...@mailball.de> wrote:
>
> > > Hi,
>
> > > I've the following class:
>
> > > package de.test;
> > > public class Designer {
>
> > > public native void addNode() {
> > >    alert("Pre JSNI");
> > >    th...@de.test.Designer::sendNode(Ljava/lang/String;Ljava/land/
> > > Integer)("TEST",100);
> > >    alert("Post JSNI");
>
> > > }
>
> > > void sendNode(String id, Integer x) {
> > >    GWT.log("It Works!");
>
> > > }
> > > }
>
> > > If addNode() is called, the first Alert is shown. Then, the following
> > > JS-Error occurs (IE8):
>
> > > Details zum Fehler auf der Webseite
> > > Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
> > > Trident/4.0)
> > > Zeitstempel: Mon, 31 May 2010 21:15:12 UTC
> > > Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
> > > Zeile: 11460
> > > Zeichen: 7
> > > Code: 0
> > > URI:http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cach...
>
> > > Any ideas what I'm doing wrong?
>
> > > Thank you!- Zitierten Text ausblenden -
>
> > - Zitierten Text anzeigen -

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

Re: How can I prevent from reloading the page when the reload button on browser is clicked?

Don't get it. Please show your good design in an understandable style.

 

On Fri, May 28, 2010 at 4:49 PM, federico <federico.monaldi@gmail.com> wrote:
bad design.
"refresh" is a feature and you should provide bokmarkable refresh-save
pages.

On 28 Mag, 20:42, Mike J <mikej1...@gmail.com> wrote:
> Hi,
>    I ran into a problem about clicking the "reload" button on a web
> browser.
>
>    My app is a stateful GWT app. Users need to be authenticated for
> login. After login they can surf on various pages. But users sometimes
> were used to press the "reload" button on the browser to refresh the
> page.
>
>    The reloading process just bring the screen back to a reboot state,
> with all state info lost. That's not what we expect.
>
>    The quick solution is, catch the reload event before the browser
> sends the "reload" request to the web server and prevent the browser
> from sending it.
>
>    I have read the relevant posts in this group and found the useful
> info that "reload" event is equivalent to the Window Closing event. So
> in the following code snippet I can catch the event,
>
>    Window.addCloseHandler(new CloseHandler<Window>() {
>             public void onClose(CloseEvent<Window> event) {
>                 //prevent browser sending the reload request to the
> web browser
>             }
>         });
>
>    But I don't know how I can stop the browser from sending the
> "reload" request to the web server.
>
>    Thanks for any help,
>
>    Mike J.

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

Using JavaScript Overlay Types for Nested JavaScriptObjects

I have this in my html and I can use JavaScriptOverlay types no
problem and it works:

<script>
var properties = {"width":640, "height":480};
</script>

public class Properties extends JavaScriptObject
{
protected Properties() { }

public final native String getWidthString() /*-{ return this.width; }-
*/;
public final native String getHeightString() /*-{ return
this.height; }-*/;
}

However, when I start nesting objects like below I do not know how to
extract the "property" object from "properties".

<script>
var properties = {"property":{"canvasWidth":1920, "canvasHeight":
1200, "width":640, "height":480, "fps":15, "bgcolor":"#FFFFFF"}};
</script>


What do I need to do to get the "properties" object, and then get to
the "property" object?

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

Re: GWT Compiler fails with 'Too many open files' error / internal compiler error

Make and extra income from home. International company seek motivated individuals to work from home. Positions available data entry, research and more
 
 
 
 
 
Contact us at
Saima Khan
United Kikgdom (London)

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

Hibernate problems after deploying to google appspot

Hi all,

I have an application which uses hibernate that runs fine in hosted
mode, but no longer when deployed.
Here's the details:

In hosted mode it connects to a database that resides on a remote
server.
Connection details set in hibernate.cfg.xml

When run I it get a long stacktrace with errors similar to the
following:

SEVERE: Unable to instrument
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8. Security restrictions may not be entirely emulated.

Which apparently has to do with the fact that it's being run in hosted
mode, and I read that it can be ignored.
The application saves and retrieves data without problems.

After deploying it on appspot and when I try to save a new row in a
table I get this:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean
com.appspot.positivevoice.client.panels.blog.BlogService.saveBlog(com.appspot.positivevoice.client.models.BlogModel)'
threw an unexpected exception: java.lang.NoClassDefFoundError: Could
not initialize class com.mysql.jdbc.ConnectionImpl
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)


Since the app works fine in hosted mode ( apart from those
exceptions ) I am not even sure which files I should add to the
post...

Any idea much appreciated!

Thanks

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

Re: GWT Compiler fails with 'Too many open files' error / internal compiler error

Hi,

are you on Linux? There's a limit of open files you can have. Google
for "Too many open files" to find a solution. Here's a good page:
http://confluence.atlassian.com/display/CONF29/Fix+'Too+many+open+files'+error+on+Linux+by+increasing+filehandles

If your parameters are in a normal range before calling the GWT
compiler, then there may be a problem with GWT though, because I'm not
sure, if it's supposed to use so many open files.

HTH
Chris


On Jun 1, 12:28 am, googelybear <googelyb...@gmail.com> wrote:
> Hi,
>
> When I compile my gwt project via ant I regularly get the following
> error
> '[java]             Invoking
> com.google.gwt.dev.javac.StandardGeneratorContext@28e4f4ad
>      [java]                [ERROR] Generator
> 'com.google.gwt.uibinder.rebind.UiBinderGenerator' threw threw an
> exception while rebinding (...)
> [java]  java.lang.RuntimeException: java.io.FileNotFoundException:
> (...)web/core/client/ui/LanguageBarPanel.ui.xml (Too many open
> files)'
> [java]  at
> com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:
> 100)
>      [java]     at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerato r.java:
> 147)
>      [java]     at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGener ator.java:
> 124)
>      [java]     at
> com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator .java:
> 105)
>      [java]     at
> com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGene ratorContext.java:
> 418)
>      [java]     at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 38)
>      [java]     at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:108)
>      [java]     at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:54)
>      [java]     at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava:
> 154)
>      [java]     at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava:
> 143)
>      [java]     at com.google.gwt.dev.Precompile
> $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.ja va:
> 317)
>      [java]     at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe binds(WebModeCompilerFrontEnd.java:
> 95)
>      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.process(AbstractCompiler.java:200)
>      [java]     at
> org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
>      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:123)
>      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:234)
>      [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.access$200(AbstractCompiler.java:109)
>      [java]     at
> com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
> 522)
>      [java]     at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( BasicWebModeCompiler.java:
> 112)
>      [java]     at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio ns(WebModeCompilerFrontEnd.java:
> 47)
>      [java]     at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript Compiler.java:
> 422)
>      [java]     at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a:
> 32)
>      [java]     at
> com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
>      [java]     at
> com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
>      [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:201)
>      [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
>      [java]     at
> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
>      [java]     at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu nner.java:
> 81)
>      [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:159)
>
> followed by (probably subsequent errors) like the following
> (truncated):
>
>      [java] java.lang.NullPointerException
>      [java]     at com.google.gwt.dev.util.Util.copyNoClose(Util.java:
> 259)
>      [java]     at com.google.gwt.dev.util.Util.copy(Util.java:180)
>      [java]     at
> com.google.gwt.dev.util.Util.readStreamAsString(Util.java:755)
>      [java]     at com.google.gwt.dev.javac.Shared.readSource(Shared.java:
> 150)
>
> Does anyone have similar problems or is this a known bug? Is there any
> more information I should provide that could help?
>
> thanks for any help,
>
> Dennis

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

Re: Using SliderBar from incubator

Leslie --

We had to fine-tune the incubator classes to work with GWT 2.x; you're
welcome to our tweaked versions of SliderBar, ProgressBar, and
Spinner. (We've also added vertical orientation to the SliderBar and
ProgressBar.) I can't figure out how to send attachments to the list
-- let me know if you'd like these, and I'll email them to you, or to
anyone else who wants them. (I'd be happy to contribute these back to
GWT, but I'm not sure how to do that.)


On May 31, 11:57 am, leslie <web...@me.com> wrote:
> GWT 2.0.3
> Eclipse 3.5
> Mac OS X 10.5
> Java 5
>
> Hello,
>
> I'm attempting to use the SliderBar in the incubator project.  The
> name of the incubator file I've obtained was called "gwt-
> incubator.jar".  My import statement for the SliderBar looks like
> this:
>
> import com.google.gwt.widgetideas.client.SliderBar;
>
> I can see the SliderBar, I have the css set up and I can manipulate
> the values of the slider programmatically, like
>
> mySliderBar.setCurrentValue(Double.parseDouble("10"));
>
> But I'd like to be able to manipulate the position of the slider
> manually, by sliding the image with the mouse, like you can do here:
>
> http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/Sli...
>
> But when I attempt to mouse over my slider nothing happens.  Nothing
> moves.  Clearly I'm missing listener information.  If anyone can point
> me in the direction of finding more information about the use of
> SliderBar I'd be grateful.  For example, is it possible to see the
> code that operates the SliderBar in the link I've given above?  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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

GWT Compiler fails with 'Too many open files' error / internal compiler error

Hi,

When I compile my gwt project via ant I regularly get the following
error
'[java] Invoking
com.google.gwt.dev.javac.StandardGeneratorContext@28e4f4ad
[java] [ERROR] Generator
'com.google.gwt.uibinder.rebind.UiBinderGenerator' threw threw an
exception while rebinding (...)
[java] java.lang.RuntimeException: java.io.FileNotFoundException:
(...)web/core/client/ui/LanguageBarPanel.ui.xml (Too many open
files)'
[java] at
com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java:
100)
[java] at
com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerator.java:
147)
[java] at
com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGenerator.java:
124)
[java] at
com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator.java:
105)
[java] at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
418)
[java] at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
38)
[java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.tryRebind(StandardRebindOracle.java:108)
[java] at com.google.gwt.dev.shell.StandardRebindOracle
$Rebinder.rebind(StandardRebindOracle.java:54)
[java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
154)
[java] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
143)
[java] at com.google.gwt.dev.Precompile
$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
317)
[java] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
95)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
[java] at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
[java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
[java] at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
[java] at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
[java] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
[java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
422)
[java] at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
[java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
[java] at
com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[java] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:159)

followed by (probably subsequent errors) like the following
(truncated):

[java] java.lang.NullPointerException
[java] at com.google.gwt.dev.util.Util.copyNoClose(Util.java:
259)
[java] at com.google.gwt.dev.util.Util.copy(Util.java:180)
[java] at
com.google.gwt.dev.util.Util.readStreamAsString(Util.java:755)
[java] at com.google.gwt.dev.javac.Shared.readSource(Shared.java:
150)

Does anyone have similar problems or is this a known bug? Is there any
more information I should provide that could help?

thanks for any help,

Dennis

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

Re: Calling Methode using JSNI failed

Sorry, this was a typo.

I also tried the signature

this.@de.test.Designer::sendNode(Ljava/lang/String;I)("TEST",100);

with methode sendNode(String id, int x)

Same problem :(

On 31 Mai, 23:48, kozura <koz...@gmail.com> wrote:
> Maybe try with int x and use I instead of the Integer class.  Also
> even as is, your Integer method signature isn't quite right: land-
>
> >lang.
>
> On May 31, 3:15 pm, malibubu <webmas...@mailball.de> wrote:
>
>
>
> > Hi,
>
> > I've the following class:
>
> > package de.test;
> > public class Designer {
>
> > public native void addNode() {
> >    alert("Pre JSNI");
> >    th...@de.test.Designer::sendNode(Ljava/lang/String;Ljava/land/
> > Integer)("TEST",100);
> >    alert("Post JSNI");
>
> > }
>
> > void sendNode(String id, Integer x) {
> >    GWT.log("It Works!");
>
> > }
> > }
>
> > If addNode() is called, the first Alert is shown. Then, the following
> > JS-Error occurs (IE8):
>
> > Details zum Fehler auf der Webseite
> > Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
> > Trident/4.0)
> > Zeitstempel: Mon, 31 May 2010 21:15:12 UTC
> > Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
> > Zeile: 11460
> > Zeichen: 7
> > Code: 0
> > URI:http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cach...
>
> > Any ideas what I'm doing wrong?
>
> > Thank you!- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -

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

Re: Calling Methode using JSNI failed

Maybe try with int x and use I instead of the Integer class. Also
even as is, your Integer method signature isn't quite right: land-
>lang.

On May 31, 3:15 pm, malibubu <webmas...@mailball.de> wrote:
> Hi,
>
> I've the following class:
>
> package de.test;
> public class Designer {
>
> public native void addNode() {
>    alert("Pre JSNI");
>    th...@de.test.Designer::sendNode(Ljava/lang/String;Ljava/land/
> Integer)("TEST",100);
>    alert("Post JSNI");
>
> }
>
> void sendNode(String id, Integer x) {
>    GWT.log("It Works!");
>
> }
> }
>
> If addNode() is called, the first Alert is shown. Then, the following
> JS-Error occurs (IE8):
>
> Details zum Fehler auf der Webseite
> Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
> Trident/4.0)
> Zeitstempel: Mon, 31 May 2010 21:15:12 UTC
> Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
> Zeile: 11460
> Zeichen: 7
> Code: 0
> URI:http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cach...
>
> Any ideas what I'm doing wrong?
>
> 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Calling Methode using JSNI failed

Hi,

I've the following class:

package de.test;
public class Designer {

public native void addNode() {
alert("Pre JSNI");
this.@de.test.Designer::sendNode(Ljava/lang/String;Ljava/land/
Integer)("TEST",100);
alert("Post JSNI");
}

void sendNode(String id, Integer x) {
GWT.log("It Works!");
}

}

If addNode() is called, the first Alert is shown. Then, the following
JS-Error occurs (IE8):

Details zum Fehler auf der Webseite
Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0)
Zeitstempel: Mon, 31 May 2010 21:15:12 UTC
Meldung: Das Objekt unterstützt diese Eigenschaft oder Methode nicht.
Zeile: 11460
Zeichen: 7
Code: 0
URI: http://localhost:8080/test/test/DDB7CB660FDE7BAFEE5000321CF27CD1.cache.html


Any ideas what I'm doing wrong?

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

JSNI Methode call does not work...

Hi,

I've the following Class:

public class Designer {
private final native JavaScriptObject addNode() /*-{
alert("Pre JSNI call");

this.@de.go2one.sdui.client.processdesigner.ProcessDesigner::sendNode(Ljava/
lang/String;Ljava/lang/Integer;Ljava/lang/Integer;)("TEST", 100, 100);
alert("Post JSNI call");
}

void sendNode(String id, String x, String y) {
GWT.log("sendNode() called");
}

}

When addNode is called, "Pre JSNI Call"-Alert is shown. After the
click on "OK", an JS-Error is thrown:

Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0)
Zeitstempel: Mon, 31 May 2010 20:52:56 UTC


Meldung: Annahme ausgelöst und nicht aufgefangen.
Zeile: 36
Zeichen: 7
Code: 0
URI: http://localhost:8080/desk/desk/hosted.html?desk

Any ideas what I'm doing wrong?
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: SplitLayoutPanel, Resizing

Hi Kirt,

FF has a problem using absolute mode with <input> and resize. When
your problem is just an extension of this bug, there is a fix
available.

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

Stefan Bachert
http://gwtworld.de


On 31 Mai, 06:27, kirtcathey <kirtcat...@gmail.com> wrote:
> Hi All. Back again. I have nailed this problem down to a rich text
> editor resize problem in Firefox. Other browsers work okay, but not
> great... very jerky. Any other widget resizes. I am now looking at the
> possible solutions with TinyMCE or just using something rolled with
> HTML5 as a rich text editor.
>
> On May 2, 12:39 am, kozura <koz...@gmail.com> wrote:
>
> > As much as it tries to abstract, GWT is still bound underneath to html
> > elements and thus you must tinker with styling/CSS to get layout
> > right.  And unlike most layout systems out there, there is no great
> > child-type independent layout containers that work perfectly.
> > LayoutPanels try, but still not perfect.  Myself not coming into GWT
> > as a CSS expert, I recommend using Firebug and a willingness to dicker
> > with the different elements styling with "height:100%" or whatnot to
> > figure out exactly what's needed to get the correct layout and
> > repositioning/resizing action.
>
> > Also, be sure you are following everything here:http://code.google.com/webtoolkit/doc/latest/DevGuideUiPanels.html#La...,
> > standard html mode, rootlayoutpanel to hold the SplitLayoutPanel or
> > explicit sizing of it, etc.
>
> > For #2, this is more the responsibility of your tomcat/jetty engine,
> > which have the tools for dealing with this.
>
> > Dunno what you're trying to do in #3, if you clear a listbox and
> > repopulate it with new data, the new data should show up just fine?
>
> > On Apr 30, 2:59 am, kirtcathey <kirtcat...@gmail.com> wrote:
>
> > > Hi All.
>
> > > Relatively new to GWT, but have given it about a 20,000 line test
> > > drive and .... oh, yeah.... I like. I like :-))
> > > Just got all working on a hosting service a couple nights ago and am
> > > impressed with performance as well.
>
> > > A couple of questions .... (will update the post if I find the answer
> > > before response)
> > > 1) In my application I am implementing a splitlayoutpanel with two
> > > rich text editors - one in the NORTH panel and one in the CENTER panel
> > > (top and bottom). When the vertical adjustment  slides up, I would
> > > like to anchor the bottom of the rich text editor to the bottom and of
> > > the CENTER split layout panel, and vice versa for the rich text editor
> > > that is in the NORTH panel. In other languages, there is usually a
> > > 'bind' or 'anchor' command on such sliders.
>
> > > I looked high and low for examples of resize, but found very little.
> > > If there is explanatory code, please send a link.
>
> > > 2) Is there a way with Java servlets to gauge the amount of sessions
> > > being served on a JVM - trying to setup a poor man's load balancer.
>
> > > 3) I cannot get any of my list boxes to refresh. I call
> > > projectListBox.clear(); and that seems to work, but the data that
> > > comes back up on the list boxes are the same. Is there a way to do
> > > this efficiently?
>
> > > Thank you.
> > > Kirt Cathey
> > > sysrisk.com
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://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+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.-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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Personalized table using thead / tfoot / tbody

Sounds like something the ui binder and html panel can solve.

2010/5/31 Stefan Bachert <stefanbachert@yahoo.de>
Hi,

when you are trying to re-use existing css, you need to create exactly
the same structure.
This means: either a GWT-widget supports this structure, or you have
to build one of your own.
It seems that you are going the latter, but this is tedious.

Stefan Bachert
http://gwtworld.de

On 31 Mai, 12:53, Rizen <vianney.dep...@gmail.com> wrote:
> Hello everybody !
>
> I'm trying to create a table using thead, tfoot and tbody.
> Moreover I have to reuse an existing CSS file. This one is using few
> table
> properties like thead, tbody, tfoot and others styles name.
> So I must create a personalized table thanks to the DOM tree.
>
> First of all, I tried to use the function DOM.createTable(). But my
> table is hugh and it's
> very long to coding step by step.
> Then I used the innerHTML method, faster but I don't think it's the
> best solution.
>
> Is the TableElement class better ? Cause I don't know how to create a
> tbody element in my HTML page with this.
>
> Thanks a lot.

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

refresh page in GWT

hello-
i have a big GWT application have more than 50 composites ,i have
big issue when customer, refresh the application , the browser reload
all application again and back user to home page , i need solve this
issue????

Ahmed Saleh
Senior Software engineer
+2 010 3580 355

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

Re: Persisting web pages locally

Hi,

Gears supports this but Gears will discontinue further development.
The reason is that HTML5 will support some way of persisting data on
the client.

However, this means that you have to use a Html5 capable browser. And
IE is not.

Stefan Bachert
http://gwtworld.de

On 31 Mai, 10:46, bcw <bcw1...@gmail.com> wrote:
> The usual model is a source serving pages, and the source persists the
> data in various ways.
>
> I am writing a note-taking (and other uses) application using GWT.
> Properly, a lot of the smarts will reside on the server, but I must
> make choices about persisting the information the user enters.  The
> primary entry is by handwriting.
>
> It would be useful if the user could save in a format that displays
> the writing even when opened on a machine that does not have the smart
> server, keeping the notes visible, and embedded in an HTML document.
> I am already experimenting with rendering the writing with PNG
> images.  I'm expecting to save the handwriting data as InkML, and
> there may be other related information (such as the interpreted text).
>
> Are there any approaches using GWT to allow me to save PNG images
> along with a local copy of a page, so it's readable without the server
> to interpret it?  I would need to fetch the images from the server and
> them write it all locally.  I could have the server do this while
> connected, or the browser (if that's practical), but I would like a
> one-file format that could be opened in the browser on another machine
> and show the writing/PNG.
>
> Later I'm thinking of other content as well, so general pointers would
> be helpful.
>
> Thanks for any ideas,
> bcw

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

Re: Personalized table using thead / tfoot / tbody

Hi,

when you are trying to re-use existing css, you need to create exactly
the same structure.
This means: either a GWT-widget supports this structure, or you have
to build one of your own.
It seems that you are going the latter, but this is tedious.

Stefan Bachert
http://gwtworld.de

On 31 Mai, 12:53, Rizen <vianney.dep...@gmail.com> wrote:
> Hello everybody !
>
> I'm trying to create a table using thead, tfoot and tbody.
> Moreover I have to reuse an existing CSS file. This one is using few
> table
> properties like thead, tbody, tfoot and others styles name.
> So I must create a personalized table thanks to the DOM tree.
>
> First of all, I tried to use the function DOM.createTable(). But my
> table is hugh and it's
> very long to coding step by step.
> Then I used the innerHTML method, faster but I don't think it's the
> best solution.
>
> Is the TableElement class better ? Cause I don't know how to create a
> tbody element in my HTML page with this.
>
> Thanks a lot.

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

Re: Help to find only clickable panel except focuspanel

Hi Deepak,

I tried your corrected code (I use g: instead of gwt, gwr).
However, no <input> are is created.

I am using FF. May this is a workaround for other browser.
Did you checked the issues?

------------------
container.getElement().getChild(container.getTabIndex()).removeFromParent();

Please provide your suggestions, is it a correct way to remove this
tabindex ?
------------

The above may accidently work. Logically it is wrong. A tabIndex is in
general not a element child index.

Stefan Bachert
http://gwtworld.de

On 29 Mai, 20:27, Deepak Bammi <deepak.ba...@gmail.com> wrote:
> Hi Stefan,
>
> Thanks for your response.
>
> I'm using focuspanel to create a simple div element which is clickable so
> that i can embed any widget.
>
> e.g
> Using UiBinder.
>
>  <gwt:FocusPanel>
>    <gwt:FlowPanel>
>                // Widget.
>    </gwr:FlowPanel>
>  </gwt:FocusPanel>
>
> The above code creates two div element (one for focuspanel and other for
> flowpanel), but the focus panel will automatically inserts the textbox
> before the second div element into DOM and i want to remove this textbox
> from fouspanel.
>
> I think now you will get the problem and if still you have any doubt please
> feel free to share.
>
> Thanks,
> Dev
> On Sat, May 29, 2010 at 7:55 PM, Stefan Bachert <stefanbach...@yahoo.de>wrote:
>
> > Hi Deepak,
>
> > I use focusPanel with a ClickHandler for the tab of an own TabPanel.
> > I don't understand what your problem is?
> > Did you also added a textbox into the focus panel?
>
> > Or do you call the focus marquise as "input box"?
> > When yes, remove the attribute "tabIndex".
> > (getElement().removeArribute())
>
> > Otherwise we need more information about your issue
>
> > Stefan Bachert
> >http://gwtworld.de
>
> > On 29 Mai, 11:55, Deepak Bammi <deepak.ba...@gmail.com> wrote:
> > > Hi All,
>
> > > I need a panel which is clickable.I found focuspanel but it has one
> > drawback
> > > in my case that it automatically embeds the input box which causes a
> > problem
> > > for me.
>
> > > Please share to access the input box in the focus panel or to find the
> > > clickable panel.
>
> > > Thanks,
> > > Dev
>
> > --
> > 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+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Persisting web pages locally

I understand Gears allows local storage of remotely sourced web data.
I don't know of any way it solves the problem of embedding PNG in a
locally saved html file so the file can be viewed on a machine which
doesn't have my server installed, and which may not be connected to
the network at the time.

This is a note taking application at first, with the idea of making
the notes 'smarter' in later versions. I'd like to have the notes
always viewable just with a browser, just as with any locally saved
html file. The notes would be read-only, and not smart, but
accessible.

So my question is more how to embed (PNG) data presented with a GWT
Image widget into a saved html file so it can be displayed in a 'dumb'
browser. The Image is how the handwriting is shown, with backing
smarts in the full application.

Thanks.

On Jun 1, 5:17 am, kozura <koz...@gmail.com> wrote:
> Well this is the idea behind Google Gears, allowing you to locally
> persist data in a little lightweight db.  Normal js won't allow this
> due to the myriad security issues; with gears the user installs it and
> allows client side code to access it.  But the status of gears going
> forward is a little unclear, for instance I haven't seen some major
> issues that cause browsers to hang being addressed..  However the GWT-
> gears lib is up to date:http://code.google.com/p/gwt-google-apis/wiki/GearsGettingStarted
>
> On May 31, 2:46 am, bcw <bcw1...@gmail.com> wrote:
>
>
>
> > The usual model is a source serving pages, and the source persists the
> > data in various ways.
>
> > I am writing a note-taking (and other uses) application using GWT.
> > Properly, a lot of the smarts will reside on the server, but I must
> > make choices about persisting the information the user enters.  The
> > primary entry is by handwriting.
>
> > It would be useful if the user could save in a format that displays
> > the writing even when opened on a machine that does not have the smart
> > server, keeping the notes visible, and embedded in an HTML document.
> > I am already experimenting with rendering the writing with PNG
> > images.  I'm expecting to save the handwriting data as InkML, and
> > there may be other related information (such as the interpreted text).
>
> > Are there any approaches using GWT to allow me to save PNG images
> > along with a local copy of a page, so it's readable without the server
> > to interpret it?  I would need to fetch the images from the server and
> > them write it all locally.  I could have the server do this while
> > connected, or the browser (if that's practical), but I would like a
> > one-file format that could be opened in the browser on another machine
> > and show the writing/PNG.
>
> > Later I'm thinking of other content as well, so general pointers would
> > be helpful.
>
> > Thanks for any ideas,
> > bcw

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

Using SliderBar from incubator

GWT 2.0.3
Eclipse 3.5
Mac OS X 10.5
Java 5

Hello,

I'm attempting to use the SliderBar in the incubator project. The
name of the incubator file I've obtained was called "gwt-
incubator.jar". My import statement for the SliderBar looks like
this:

import com.google.gwt.widgetideas.client.SliderBar;

I can see the SliderBar, I have the css set up and I can manipulate
the values of the slider programmatically, like

mySliderBar.setCurrentValue(Double.parseDouble("10"));

But I'd like to be able to manipulate the position of the slider
manually, by sliding the image with the mouse, like you can do here:

http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/SliderBar/index.html

But when I attempt to mouse over my slider nothing happens. Nothing
moves. Clearly I'm missing listener information. If anyone can point
me in the direction of finding more information about the use of
SliderBar I'd be grateful. For example, is it possible to see the
code that operates the SliderBar in the link I've given above? 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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

How to add new event to HandlerManager

Hi, I'm fairly new to GWT and I'm trying to add events to my
"eventBus"...

final HandlerManager eventBus = new HandlerManager(null);
..

eventBus.addHandler(RequestEvent.TYPE, new RequestEvent.Handler() {
public void onRequestEvent(RequestEvent requestEvent) {
if (requestEvent.getState() == State.SENT) {
System.out.println("RPC sent!");
}
}
});

This RequestEvent event works fine, but this doesn't work for
instance...or at least I don't think it works:
eventBus.addHandler(KeyPressEvent.getType(), new KeyPressHandler()
{
public void onKeyPress(KeyPressEvent arg0) {
System.out.println("Key pressed event!");
}
});

Any tips are greatly appreciated!

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

Rebar: Gears workers, jdbc, and jpa for GWT

Hi all,

I just wanted to share the link for a few modules related to GWT /
gears / HTML5 that we've recently packaged as open source at
http://code.google.com/p/rebar, which includes:

* GWT linker for building (Gears) workers, complete with RPC support
* JDBC emulation layer that facilitates testing,
* An experimental JPA implementation for client-side GWT (and it
works!)

We'll be adding deferred bindings for browsers that support HTML5 in
the coming month, but right now the suite works nicely with Gears. I
think there's a few folks out there that have used it in their
projects successfully, so thought it might be a good moment to share
with the newsgroup.

Best,

Alex at
be data driven
com

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

DockPanel - how to maximize center?

Hi,

I use the following code to create my "screen". I want a MenuBar at
the top and that the content in the middle is always centered:

pnl = new DockPanel ();
pnl_Center = new VerticalPanel ();

pnl_Center.setHorizontalAlignment (VerticalPanel.ALIGN_CENTER);
pnl_Center.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
pnl_Center.setSize("100%", "100%");

pnl.setSize("100%","100%");
pnl.add (mnb,DockPanel.NORTH);
pnl.add (pnl_Center,DockPanel.CENTER);

RootLayoutPanel root = RootLayoutPanel.get();
root.add (pnl);

However, I noticed the following: The north part of pnl is a little
bit heigher than the MenuBar. And: When I add small content to
pnl_Center, its heigher than when I add big content to the center.

How can I achieve that the north part is just as high as the MenuBar?

Thank you
Magnus

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

Updating Google App Engine datastore

Hello,
I've just an applications using GWT and GAE. After reading the docs
and doing some examples I decided to begin coding but soon I reach
something tricky.

My application data would be at the GAE datastore. I want to assume
that the app "will live". Let me explain this:
The entities at the datastore will change. This means that some
properties would be added and some of them maybe removed what leaves
me with a ton of exceptions to handle. Knowing this, which should be
the way to update the datastore entities? One by one after a change is
made? Should I handle exceptions and then change just the entitie
requested? Is there a way to do this cleaner?

I've been thinking about how to do this stuff with my actual knowledge
and i think that the most logical way to proceed is get the object,
remove it from the database, create a new one based on this old object
and then persist it again.

To sum up the question is about if there's a way to add a property to
an stored entitie in the datastore (GAE) easily.

I hope you to understand my lines. Any suggestion would be
appreciated.

Thanks,

Víctor.

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

Re: An implementation of Selection/Cursor for RichTextArea

FYI in lieu of getting it into GWT, I posted a standalone library to
the issue mentioned above, with some caveats of a few cases that still
need addressed.

On May 31, 3:55 am, Yanick <yanick.roc...@gmail.com> wrote:
> If there is a selectAll(); method in the RichTextArea's formatter,
> having a getSelection(); and a setSelection(Selection); methods would
> be very nice for this widget.
>
> +1 for a more complete text selection API for the RichTextArea

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

Re: Persisting web pages locally

Well this is the idea behind Google Gears, allowing you to locally
persist data in a little lightweight db. Normal js won't allow this
due to the myriad security issues; with gears the user installs it and
allows client side code to access it. But the status of gears going
forward is a little unclear, for instance I haven't seen some major
issues that cause browsers to hang being addressed.. However the GWT-
gears lib is up to date: http://code.google.com/p/gwt-google-apis/wiki/GearsGettingStarted


On May 31, 2:46 am, bcw <bcw1...@gmail.com> wrote:
> The usual model is a source serving pages, and the source persists the
> data in various ways.
>
> I am writing a note-taking (and other uses) application using GWT.
> Properly, a lot of the smarts will reside on the server, but I must
> make choices about persisting the information the user enters.  The
> primary entry is by handwriting.
>
> It would be useful if the user could save in a format that displays
> the writing even when opened on a machine that does not have the smart
> server, keeping the notes visible, and embedded in an HTML document.
> I am already experimenting with rendering the writing with PNG
> images.  I'm expecting to save the handwriting data as InkML, and
> there may be other related information (such as the interpreted text).
>
> Are there any approaches using GWT to allow me to save PNG images
> along with a local copy of a page, so it's readable without the server
> to interpret it?  I would need to fetch the images from the server and
> them write it all locally.  I could have the server do this while
> connected, or the browser (if that's practical), but I would like a
> one-file format that could be opened in the browser on another machine
> and show the writing/PNG.
>
> Later I'm thinking of other content as well, so general pointers would
> be helpful.
>
> Thanks for any ideas,
> bcw

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

Which is the best: Hibernate, Ibatis, Toplink??

Hi,
    I wish to know which of the following ORMs is the best to use with GWT and why.
Regards
   

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

Re: Personalized table using thead / tfoot / tbody

On 31 mai, 12:53, Rizen <vianney.dep...@gmail.com> wrote:
> Hello everybody !
>
> I'm trying to create a table using thead, tfoot and tbody.
> Moreover I have to reuse an existing CSS file. This one is using few
> table
> properties like thead, tbody, tfoot and others styles name.
> So I must create a personalized table thanks to the DOM tree.
>
> First of all, I tried to use the function DOM.createTable(). But my
> table is hugh and it's
> very long to coding step by step.
> Then I used the innerHTML method, faster but I don't think it's the
> best solution.

You won't find anything faster; but yes you have to be careful about
the HTML you're producing.

> Is the TableElement class better ?

TableElement isn't different from DOM.createTable(). It's a different
API around the exact same underlying DOM manipulation; just that the
DOM class will be deprecated in a future release and TableElement
should be preferred in new development (code is more readable too).

> Cause I don't know how to create a
> tbody element in my HTML page with this.

Document.get().createTBodyElement()

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

Re: Label for form-element using UIBindings

On 31 mai, 13:08, Stephan T <stephan.tern...@gmail.com> wrote:
> How do I achieve this code this using UI Bindings?
>
> <label for="someUniqueFieldId">First name</label>
> <input type="text" id="someUniqueFieldId" name="firstname"/>

See https://docs.google.com/Doc?docid=0AQcd-Zsy2T-YZG1mZG5jNl84Z3NkMmJuZHo&hl=en
The original can be found on Wave:
https://wave.google.com/wave/#restored:wave:googlewave.com!w%252BEI8yh67GA

Pay attention to the "usage example" subsection of "what can be done
now?", which gives code you can use right now!

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

Map-Based Model in Large Scaled Applications

Hello,

Wanted to share an approach we are using in large scaled enterprise
level applications since GWT 1.4 and up to now.

http://buzdin.blogspot.com/2010/05/gwt-dynamic-model.html

Would be great to know opinion of the community on the Dynamic Model
(Generic Transfer Object) approach and whether it will be still
feasible in post 2.0 world. Are there any plans to propose default
approach to serialization of server-side model aside of Enhanced
Classes Serialization?

The reason behind this thread is that I am still in doubt if it will
be a good start-up for yet another gwt-related open source project, or
problems described in the post are too specific and already solved in
some other way.

Regards,
Dmitry

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

SerializerBase.check(String,int) throws useless exception?

Greetings,

I'm having a frustrating time debugging a bunch of code I'm trying to
port to GWT. There are various subtle serialization issues (not
surprising, since GWT has its special rules).

The real problem I'm running in to is that the exception I keep
getting is this:

com.google.gwt.user.client.rpc.SerializationException: null
at
com.google.gwt.user.client.rpc.impl.SerializerBase.check(SerializerBase.java:
161)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java:
145)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java:
199)
...

This exception is terrible: it doesn't tell me what class is having
the trouble. It tries to print out the 'typeSignature', but the
typeSignature is null for classes with certain types of serialization
issues.

A couple of thoughts:

1. it would be Really Nice if GWT could be changed to fix this
exception to be more meaningful (at least include the class name
that's having the trouble)

2. Does anybody have tips on what to do when you get this exception?
I've encountered one case: don't have fields of type java.lang.Object
in your GWT Serializable classes. Is there more?

Thanks!
-Shawn.

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

How to use CallBack-Methode in JS

Hi @all,

I have a JavaScript-Methode called
>> void addSelectionListener( <Object> w) <<

where 'w' is an object which implements a 'onSelectionChanged' method.

I'm using a native JSON-Methode to consutruct my JS-Object and I'll
call addSelectionListener(...), but what should I submit as a
parameter if I want the object to call a Java-Methode called
onSelectionChanged()?

regards!

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

Re: How to run a unittest for a class in client folder of gwt which makes Async calls to the server

If you're using EasyMock, this is a very easy way to mock a service.
Been using this for a long time.

http://robvanmaris.jteam.nl/2008/04/22/test-driven-development-for-gwt-ui-code-with-asynchronous-rpc/

Take a particular look at AsyncCallbackMockSupport class.

Cheers!

Tristan

On May 30, 8:16 pm, Trung <gwtdevelo...@gmail.com> wrote:
> See this thread
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> discussing GWT RPC calls from Java
>
> On May 28, 3:39 pm, Sumit Somani <sumitsom...@google.com> wrote:
>
>
>
> > I am an engineering intern and want to write a test for a class which
> > makes a Async Request to the server How do I juct mock it up or use
> > some pre-built library. Please provide advise on resources

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

Re: MVP + appController useful for the big projects ?

gwtp, and handlebars are some others

On May 31, 5:35 am, Rizen <vianney.dep...@gmail.com> wrote:
> Yes I think it's probably the best solution for the big project. So
> now I need to learn it ^^
> Thanks very much.
>
> On May 30, 7:09 pm, Subhrajyoti Moitra <subhrajyo...@gmail.com> wrote:
>
>
>
> > i think one of the mvp frameworks could help.
> > gwt-dispatch,gwt-presenter, mvp4g.. there are more..
>
> > HTH.
> > Subhro.

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

Authentication and login

Hi,

Im wondering what's the best way to do a login functionality. I'm
using GWT and GAE, and I can't use openID or Google Accounts (my app
relies on phonenumber + pincode).

I've built a Composite with the two boxes and a button for logging in,
and on the server I would normally store a flag in the session that
the user is logged in. However, when someone kicks the server, the
user has to log in again, which is a pain, so session-only coding is a
no-go.

What's the best way to do this ? I can of course code everything
myself, like

1) verify that the user exists
2) hash the pin + the time
3) store the time and the hash in the db and set the flag in session
4) encapsulate all server commands, so that the hash is being re-sent
(by db lookup), if (for some reason) the server has been kicked and
the session lost, or navigate to the login composite, if the hash has
expired

It just seems like a lot of work, for something that should be
standard. What have I missed in the docs ??

Cheers

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

Authentication and login

Hi,

Im wondering what's the best way to do a login functionality. I'm
using GWT and GAE, and I can't use openID or Google Accounts (my app
relies on phonenumber + pincode).

I've built a Composite with the two boxes and a button for logging in,
and on the server I would normally store a flag in the session that
the user is logged in. However, when someone kicks the server, the
user has to log in again, which is a pain, so session-only coding is a
no-go.

What's the best way to do this ? I can of course code everything myself, like

1) verify that the user exists
2) hash the pin + the time
3) store the time and the hash in the db and set the flag in session
4) encapsulate all server commands, so that the hash is being re-sent
(by db lookup), if (for some reason) the server has been kicked and
the session lost, or navigate to the login composite, if the hash has
expired

It just seems like a lot of work, for something that should be
standard. What have I missed in the docs ??

Cheers

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

Re: Status of Joda/Goda time, future of Date handling

That's not particularly suprising to me. One of the reasons that gwt-
time is still listed as being in alpha status is that there is a
possibility of needed further API changes to deal with issues like
that. Unfortunately, I have been distracted for the past little while
and am only just now able to get back to working on it. However, I'll
post an issue-report on the large download size so that we won't
forget it. If any of you are willing, we are looking for contributors
to help get this thing off the ground.

Thanks,

Scott Fines

On May 31, 8:43 am, Paul Stockley <pstockl...@gmail.com> wrote:
> I did that already. There isn't really anything that can easily be
> removed. There is just a lot of code. The jar is 839kb including
> source. In java your don't really notice it. I am looking for
> something more lightweight.
>
> On May 30, 9:57 pm, Chris Lercher <cl_for_mail...@gmx.net> wrote:
>
>
>
> > On May 31, 2:26 am, Paul Stockley <pstockl...@gmail.com> wrote:
>
> > > I am using gwt-time. I haven't had any issues as yet. However, the
> > > biggest
> > > problem is that it adds 250 - 300 kb to the project js download.
>
> > That's massive, and it would be way too much for my project. I wonder,
> > why it's that large - What does the SOYC compile report say? If it's
> > mainly the timezone tables, maybe there's a way to reduce them.

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

Re: Status of Joda/Goda time, future of Date handling

I did that already. There isn't really anything that can easily be
removed. There is just a lot of code. The jar is 839kb including
source. In java your don't really notice it. I am looking for
something more lightweight.

On May 30, 9:57 pm, Chris Lercher <cl_for_mail...@gmx.net> wrote:
> On May 31, 2:26 am, Paul Stockley <pstockl...@gmail.com> wrote:
>
> > I am using gwt-time. I haven't had any issues as yet. However, the
> > biggest
> > problem is that it adds 250 - 300 kb to the project js download.
>
> That's massive, and it would be way too much for my project. I wonder,
> why it's that large - What does the SOYC compile report say? If it's
> mainly the timezone tables, maybe there's a way to reduce them.

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

Analogous of ListCellRenderer

Hello everybody.

I look for the analogous of ListCellRenderer(Java) for GWT.

What I need is the following (example):

I have:
- the class Person:
public class Person{
private String name;
private String surname;
}

- ArrayList<Person>
- 2 ListBox

I want to add all the item of the arraylist in the two ListBox, but in
the first one I want to display the name and in the second one the
surname. I don't want to give explicity the field name/surname to the
ListBox.

In this way I could then see directly which person the user select
from the List.

In java I've solved with the ListCellRenderer for the JList.

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