Hi,
I think you need to read the manual :
http://code.google.com/intl/fr/webtoolkit/doc/latest/tutorial/buildui.html
Adding a panel to the HTML page is not just inserting the DOM
element...
Olivier
On 15 mar, 08:33, Šobis matej.poklu...@gmail.com wrote:
Hello,
I have a problem with click
Hi,
I'm working on a front with a global portal as a placeholder for
applications. Each application is an independent GWT module opened in
an iframe. The portal and all applications can talk one to each other.
Each application can send messages to the portal about it state
(working, title...).
Hi,
I think it must be interesting to read
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiHandlers.html
You need to register your own object to the event system. For example:
public MyTree() {
addDomHandler(MouseMoveEvent.getType() this);
}
Olivier
On 22 mar, 12:16, shahid
Hi ChrisK,
You need to understand how JavaScript works.
Like in many languages, the this keyword means the current object.
The JavaScript language allows you to manipulate code as a function.
This function can be affected to any variable or object member, like:
$wnd.js_callback = function() {
mar, 23:42, Olivier Monaco olivier.mon...@free.fr wrote:
The call method of a JavaScript function allows you to call it with
a differente this. Then, using $wnd.js_callback.call(otherObject),
the this variable reference otherObject. So the glue is:
var that = this;
$wnd.js_callback
ChrisK,
On 23 mar, 10:32, ChrisK cknow...@gmail.com wrote:
Thomas - your solution worked from 6 worked but at first I didn't
include both pairs of brackets after the function call MyMethod but
it turns out they are required. With only one set (i.e. no arguments),
it just doesn't work. I
.
On Mar 23, 10:07 am, ChrisK cknow...@gmail.com wrote:
Ahhh ok. Sorry for the simple questions but I'm just getting my head
around all this. I also have some other methods with arguments and
have those working thanks to both of you.
On Mar 23, 9:56 am, Olivier Monaco olivier.mon...@free.fr
This link may be a good start:
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
Olivier
On 24 mar, 07:42, Muthu muthulala...@gmail.com wrote:
Hi,
I have a java script that I use from a third party. I needed to do
some modification and as part of that I need
Hi,
Did you try something like:
Document.get().getBody().getStyle().setBackgroundColor(...);
Where Document is com.google.gwt.dom.client.Document.
Olivier
On 24 mar, 20:48, Shedokan shedok...@gmail.com wrote:
How can I do in GWT this:
document.body.style.background = red;
I'm trying to
Hi,
I don't know if I'll answer your question but we working on a main GWT-
module with pluggable sub-modules. Each sub-modules is an ui-
independant part of the whole application. To avoid interferences,
each module loads into its own iframe. I wrote a messaging system that
allow each module to
Hi Jon,
As you see in the Inter-frame communication, we has the same
requierement.We choose the iframe solution to allow integration of
external applications.Yes, it's not the best way. Yes, there will be
some problem with the history. But we try many other solutions without
success. I think you
Hi Francis,
Using your generator can lead to NPE: your getSourceWriter can returns
null (line 68).
A generator have two goals: returns the name of class to instantiate
and generate the code for that class. The first goal is mandatory, the
second not. If your generator returns the name of a class
Charan,
Of course, you search through manual (http://code.google.com/intl/fr/
webtoolkit/overview.html) without success. But did you search through
the Wiki of the Googlecode project (http://code.google.com/p/google-
web-toolkit/)?
Olivier
On 14 mai, 11:36, Charan s.chara...@gmail.com wrote:
Hi,
Doing synchronous call is globally a bad idea. What is your exact
need?
Olivier
On 14 mai, 17:05, fomba collins fomba_coll...@yahoo.com wrote:
Hi, Is there a way of making synchronous calls in GWT using RPC. I actually
need something on the client side to ensure that the asynchronous
Jan,
Please read the terms of use from the gwt web site. All is there.
Olivier
On 14 mai, 07:36, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
Hello,
I would like to reuse the source code of the GWT article 'Large scale
application development and MVP' for my own samples and articles, but
Vj,
This question is like what gaz to put in my car... which browser do
you use?
I had a similar issue with Firefox 3 under Debian Lenny (Linux). The
problem comes from the firefox profile. I've done some manual cleaning
(I don't remember what) and that worked. Maybe your problem...
Olivier
On
Hi,
Great programmers write docs, like JavaDoc. Please respect their work
by reading it.
http://www.catb.org/~esr/faqs/smart-questions.html#before
Olivier
On 15 mai, 15:53, fonghuangyee fonghuang...@gmail.com wrote:
Hi,
I dun know why GWT.isClient() always return true even in web mode.
Michael,
I'm totally disagreed with you. When you choose to answer here, you
choose to give a good one. When you know someone is going the wrong
way, don't let him going to far. Fighting against problems is not a
good way to learn, you also need to have references.
Please, read again the
developers and the way to achieve that is to do
mistakes and be willing to learn, and not a tool that tells you i do
not allow you to do that because it *might* be a bad idea...
regards,
Michael
On May 16, 9:39 pm, Olivier Monaco olivier.mon...@free.fr wrote:
Michael,
I'm totally
alone instead of
teaching him to watch out.
what we need is better developers and the way to achieve that is to do
mistakes and be willing to learn, and not a tool that tells you i do
not allow you to do that because it *might* be a bad idea...
regards,
Michael
On May 16, 9:39 pm, Olivier
Hi,
Maybe it's about this :
http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization
Olivier
On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
Dear all!
i just found this:http://degwt.googlecode.com
and i was really surprised to actually find a classname table in
Matt,
You generator is called for each permutation but it may not generate
the same code each time. You generator must include the following
code:
PrintWriter printer = context.tryCreate(logger, packageName,
className);
if (printer != null) {
// Create a
I will create a 3 GWT modules:
- app A
- app B
- app A and B
You will have the best optimization. If you add the 2 modules
separately, you will have code duplication (code for the String class
in app A and code for the same class in app B).
Olivier
On 26 mai, 11:20, Stefan Ludwig
For a traditionnal layout, I use the old school panels. It's not
really a old school, it just has another goal.
Olivier
On 26 mai, 10:33, googelybear googelyb...@gmail.com wrote:
Hi,
I am developing a webapp that should behave like a traditional web
page, meaning that when the content grows
. Use the StackLayoutPanel instead. and same for others
(DockPanel, TabPanel, ...).
What's the official policy on this?
On May 26, 11:49 am, Olivier Monaco olivier.mon...@free.fr wrote:
For a traditionnallayout, I use the old schoolpanels. It's not
really a old school, it just has another goal
at all cost. What do you think?
Dennis
On May 26, 10:06 pm, Olivier Monaco olivier.mon...@free.fr wrote:
When I want to create a website like app, I use as many HTML tags as
possible with UiBinder. Then, I use CSS to sets the position, border,
color... and never the GWT methods. That way
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/Widget.html#isAttached()
On 27 mai, 08:00, Tapas Adhikary tapas4...@gmail.com wrote:
Hi mmoossen,
Thanks for the reply. If u can explain it little more , it will be a great
help. I didn't get this part of
Hi,
Some of my unit test failed after switching to GWT 2.1m1. This is due
to the following change:
When the first request ends, the onSuccess method of the
RequestCallback is called. Send the second request from here. Example:
public void phase1() {
// first request
RequestBuilder b = ...;
...
b.setCallback(new RequestCallback() {
public void onSuccess(...) {
phase2();
}
Okay, make sense.
Thanks.
On 27 mai, 18:11, Thomas Broyer t.bro...@gmail.com wrote:
On 27 mai, 16:02, Olivier Monaco olivier.mon...@free.fr wrote:
Hi,
Some of my unit test failed after switching to GWT 2.1m1. This is due
to the following
change:http://code.google.com/p/google-web
You must not use *LayoutPanel for this purpose. Why not native HTML?
MyApp.ui.xml
!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'
ui:style
.top {
Replace Composite by Widget and initWidget by setElement...
You can also you GWT tables...
Olivier
On 28 mai, 13:08, Rizen vianney.dep...@gmail.com wrote:
Hello,
For my project, I would like to create a table in HTML by means of the
DOM tree.
For this, I'm just using the functions
Carl,
Your proposal is interesting. But as a user, if I have to wait, I
leave... So many be an application needing some wait a minute popup
is not a good approach for the future. Imagine your browser putting a
popup each time a page is loading. Tabs will become useless, multi-
core computer too
Danny,
I had no problem (in dev mode). Here is my test case:
public void onModuleLoad()
{
Button b = new Button(click me);
b.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
And autoboxing does not works in JSNI.
th...@de.test.designer::sendNode(Ljava/lang/String;Ljava/lang/
Integer)(TEST,@java.lang.Integer::new(I)(100));
Or change your sendNode method to take an int.
Olivier
On 1 juin, 04:25, Jim Douglas jdoug...@basis.com wrote:
You should start by carefully
like that should not have gone unnoticed for so long. Could
you post your code snippet?
On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:
Danny,
I had no problem (in dev mode). Here is my test case:
public void onModuleLoad()
{
Button b
Hi,
Try using a self-closing tag.
g:ListBox ui:field=.../
Olivier
On 8 juin, 08:32, Kuldeep Poonia kpoon...@gmail.com wrote:
Hi all,
I hava a variable name in Class Base and want to bind this to the
listbox. so i use
@ListBox name.
and in ui.xml i use
g:ListBox
David,
I use something like that. To easy manage my CSS class names, I use a
generator similar to the CssResource-generator. I define an interface
extending Identifiers with one method for each CSS class name:
interface MyCssClasses
extends Identifiers
{
public String firstClass();
public
Hi,
JSONParser must only be used with trusted JSON because it uses
eval(). Thing about using a real JSON parser. This will avoid
problem like this one.
As a JSON parser example, you can see my port of the JavaScript parser
from json.org:
Please give a small use case.
On 9 juin, 11:51, Kuldeep Poonia kpoon...@gmail.com wrote:
Hi Olivier
Thanks for Reply. But same problem comming
The UiField com.google.gwt.user.client.ui.ListBox itemName does not
have a HaxText or HasValue super-interface
On Jun 9, 11:14 am, Olivier Monaco
Try to replace your $.jqplot by $wnd.$.jqplot. The window object
where the JSNI is run is not the main window. You can access it
through $wnd.
Olivier
On 9 juin, 11:39, Rizen vianney.dep...@gmail.com wrote:
Finally I think I'm going to try with the JavaScriptObject class,
cause I can cast it
Okay, next try (I've read your post this time ;)).
You want to cast a JavaScriptObject to an Element. You can... but it's
a bad idea. A Widget needs an Element because it offer some DOM
manipulation. Providing a JSO may lead to strange behavior. You need
to write a clean GWT wrapper around
For the $, maybe the library is not loaded when you try to create
your chart.
As I told before, you need to write a wrapper. This wrapper create the
div needed by jqPlot and add an unique ID to it. This ID is used as
the first argument to jqPlot JavaScript function. But you can't
create your
I'm okay for blocking one part of the application or the whole for
global processing (login...). What I dislike is application blocking
me when I just ask for a little component to upgrade. Like if you have
a iGoogle page and click refresh on one widget block all widgets ;).
Olivier
On 10 juin,
You have also some framework like piriti allowing easy mapping between
JSON and Java object. But I don't like them because their overhead. I
use another approach.
My model is made of interfaces. I share the interfaces between the
server and GWT. For GWT, I have a generator that automatically
Hi,
Imagine you have this in your HTML page:
-
html
...
script
window.data = { prop1 : { prop2: 42 } };
/script
...
/hmtl
-
First create a JSO for the prop1 value:
class InnerJSO extends JSO {
protected InnerJSO() {}
public native int getProp2() /*-{ return this.prop2;
.
So for all lists/collections I found it broke down pretty quick
Roger
On Jun 10, 2010, at 5:55 AM, Olivier Monaco wrote:
You have also some framework like piriti allowing easy mapping between
JSON and Java object. But I don't like them because their overhead. I
use another approach
Because the array is bound to the sub-frame used by GWT.
When you create an array using [], the Array function is called. This
is the same as new Array(). Then the following condition returns
true: [].constructor == Array.
But, there is an Array function for each frame. If you create an array
in
Hi Kevin,
You can rewrite your Foo class as:
public class Foo implements MagicClass {
@Trace
@Secured
public void bar() {
}
}
Then, associate a generator for sub-types of MagicClass and use
GWT.create to instantiate a new Foo.
GWT.create(Foo.class);
So your generator will be called.
Hi Kerem,
Your way to create a bookmarklet is not trivial. If you want a easier
way, you can try my bookmarklet linker (http://code.google.com/p/tyco/
source/browse/#svn/trunk/tyco-gwt/src/main/com/googlecode/tyco/gwt/
bookmarklet). Then, you just have to write a bookmarklet that load
the
injection container (gin), which
means there's already a deferred binding implementation generated by
ginjector.
On Fri, Jun 11, 2010 at 5:58 PM, Olivier Monaco olivier.mon...@free.frwrote:
Hi Kevin,
You can rewrite your Foo class as:
public class Foo implements MagicClass {
�...@trace
My linker generate .cache.js files instead of .nocache.js (in fact it
use XsLinker). Then, it create a bootstrap script (the .nocache.js)
derived from the one for XsLinker.
But there's a limitation. The bootstrap needs the base path of the GWT
folder (the one with .cache.js files). To find it,
It doesn't support hosted mode. I have one project with standard
linker for debugging and on project with bookmarklet linker.
Olivier
On 14 juin, 13:33, dino dinos...@gmail.com wrote:
how do you do the debugging?
It doesn't work in hosted mode or does it?
On 14 jun, 09:16, Olivier Monaco
Hi,
The easiest way is not an frame... you will have many issue. You can
create a Widget backing by an object tag. Or you can try some library
like http://code.google.com/p/gwtai/.
Olivier
On 16 juin, 13:17, mariyan nenchev nenchev.mari...@gmail.com wrote:
I said the easiest way to do it :)
Do you want:
1) scroll the whole page? Don't use layouts (*LayoutPanel), there are
made to avoid scrolling. Did you read
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels.html?
Try:
RootPanel
\_ DockPanel
\_ DecoratedTabPanel
2) scroll the content area of the tabs? Add a
Elben,
The layout panels are made to avoid scrolling. They must have a fixed
size. They use the whole window and updates there content viewport as
the window is resized. If their content is too large to be shown, a
part of it will be hidden (http://code.google.com/intl/fr/webtoolkit/
at? in the meantime you can
have a look at my code by browsing through the
projecthttp://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeyc...
kind regards,
ingo
On 16 Jun., 13:48, Olivier Monaco olivier.mon...@free.fr wrote:
Do you want:
1) scroll the whole page? Don't use layouts
Yes, Stefan, I missed it. Thanks.
On 16 juin, 18:33, Stefan Bachert stefanbach...@yahoo.de wrote:
The layout panels are made to avoid scrolling. They must have a fixed
size.
The latter sentence is not completly true.
A LayoutPanel does not calculate its size from children.
Especially it
Hi,
Depending on the size of object2, I will use a dedicated presenter
or not. Commonly, I like to have a dedicated one so I can easily reuse
it, extends it... and, more important, I have more encapsulation,
reducing the complexity of my code.
Olivier
On 16 juin, 17:20, Bilousme
Hi,
What do you think about that way :
SearchForm.ui.xml
g:FormPanel styleName=search form action= method=post
g:HTMLPanel
fieldset
...
/fieldset
/g:HTMLPanel
/g:FormPanel
SearchForm.java
public class SearchForm extends Composite {
interface Binder
Hi,
Configure your backend server to serve the folder where your GWT
HTML page is (and the compiled JS). Then, open this page in your
browser. The URL may be something like:
http://localhost:88/mypage.html
This load the compiled version of your application. Add a parameter
named gwt.codesvr
Try to add a ; after the JS comment of getUserAgent:
public static native String getUserAgent() /*-{
return navigator.userAgent.toLowerCase()
}-*/;
Olivier
On 20 juin, 17:55, Shedokan shedok...@gmail.com wrote:
I have this Class:
package
Yes, but think that user will ask for more interactivity... resulting
in more requests. But, of course, bandwidth, CPU and memory will be
saved. They will be saved more is a good architecture is used like a
Rest-like server, I think.
Olivier
On Jun 22, 10:33 am, Chris Boertien
If your need is only to define new view (with few logic), maybe using
a descriptive language will be better. You can write a templating
engine using GWT like a XUL interpreter or something like that. This
is not the best approach for optimized JS (file size, speed...) but
may be the best
Not the parent object. Your class is erp.client.Test but the class
of u is erp.client.Test$1. $1 means the first anonymous class of
Test. This is a Java behavior.
Olivier
On Jun 22, 1:22 pm, ahhat...@gmail.com ahhat...@gmail.com wrote:
Hi,
I tried to do the following:
University u = new
to convince them that the Generators are not bad.
regards,
Rudolf Michael
On Tue, Jun 22, 2010 at 1:10 PM, Olivier Monaco olivier.mon...@free.frwrote:
If your need is only to define new view (with few logic), maybe using
a descriptive language will be better. You can write a templating
-assignable class=InterfaceB /
/generate-with
How do I write generatorA and generatorB so that they generate the same
file, but cascading the effects? Obviously, I'm only looking for general
directions, not specific details.
Thanks,
On Sun, Jun 13, 2010 at 8:10 PM, Olivier Monaco olivier.mon
The iframe is the GWT iframe or another one? Do you have a usecase ?
Olivier
On 22 juin, 18:37, randasin r4nd7...@gmail.com wrote:
I have some JSNI code that assign a function to a variable in the
window as suggested in JSNI document: Calling a Java Method from
Handwritten JAvascript
Hi,
You added a catch block. What is the caught exception? Can you add a
uncaught exception handler using GWT.setUncaughtExceptionHandler in
the constructor of your EntryPoint? Do you catch an exception? Do you
have a small project with this error?
Olivier
On Jun 13, 6:48 pm, Xandel
Hi,
If your problem comes from class name included in the JavaScript files
(and affected to some properties of JavaScript object), you can try to
use the following optimization:
http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization
Olivier
On Jun 22, 3:55 pm, moorsu
Maybe http://code.google.com/p/gwt-mobile-webkit/
Olivier
On Jun 25, 4:38 pm, Ravi Sharma ping2r...@gmail.com wrote:
Hi All,
How can we use GWT with HTML5 local database storage feature. I was
thinking about using Google gears but then HTML5 is coming where each
browser will be implementing
Hi,
When your app run, do you have some trace in the Development Mode
tab in Eclipse? If you had some error in your code (compilation
error), do your app still run? Or changes are used?
Olivier
On 16 juil, 07:37, David Vree david.h.v...@gmail.com wrote:
I should mention that the only jar I
Hi Sekhar,
You have some framework like piriti (http://code.google.com/p/piriti/)
for JSON serialization of data. It can be a good start. However, it
does not use overlays: it copy JSON values to POJO fields.
Maybe you can be interested in my code:
Hi,
I've updated the issue with a more specific test case and a possible
workaround.
Olivier
On 19 juil, 15:09, Björn bjoernham...@web.de wrote:
Hi George, hi Gal,
thanks for you help! The Resymbolization did the trick.
After having two days of real fun with compiled javascript I think I
If you think so, star the issue
On 20 juil, 15:46, Paul Stockley pstockl...@gmail.com wrote:
The GWT team needs to be all over issues like this. Nothing will put
people off GWT quicker than a flaky compiler you cannot depend on.
On Jul 20, 5:53 am, Olivier Monaco olivier.mon...@free.fr wrote
Hi
You may be interested in reading
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels.html
Olivier
On 21 juil, 13:35, Magnus alpineblas...@googlemail.com wrote:
Hi,
I've got it working now. The actual hierarchie is: DockLayoutPanel -
StackLayoutPanel - ScrollPanel -
Hi,
You need to use version 1.2 of gwt-maven plugin. The 1.1 does not
support GWT 2.0 due to the replacement of Hosted Mode by the Dev Mode.
The Hosted Mode is specific for each platform and so gwt-maven
plugin need to download a jar specific to linux. But with the Dev
Mode, the same code (the
77 matches
Mail list logo