Re: Sending long parameter via cross-site JSON

2009-09-27 Thread Gintare Ragaisiene


I found such solution:

1) split long text into array Arr of shorter strings
2) go through for loop of Arr and send Arr[i] texts with index i as
parameter
3) store into database fragmets of text with sequenseNo = i;
4) when you need to get all text get all text from sequenced
fragments.

Still don't know is it the best solution..


On 27 Rugs, 20:23, Ben  wrote:
> Is it possible to move this into body instead of put it in parameter?
> I think that is a good way to go.
>
> On Sep 26, 12:57 am, Hlunboi  wrote:
>
> > Hi,
> > I have similar requirement. Anyone who implement this?
>
> > Regards
> > Hlun
>
> > On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene <
>
> > gintare.ragaisi...@gmail.com> wrote:
>
> > > Hello,
>
> > >  I'm developing GWT UI that talks with my server via JSON. I do
> > > access of service by passing url like this :
>
> > >http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message...
>
> > > to function:
>
> > >    public void callJsonService(String url){
> > >        url = URL.encode(url) + "&callback=";
> > >        System.out.println("url = "+url);
> > >        singleton.getJson(this.jsonRequestId++, url, singleton);
> > >    }
>
> > >    /**
> > >   * Make call to remote server.
> > >   */
> > >  private native void getJson(int requestId, String url,
> > > AccessRemoteJsonService handler) /*-{
> > >        var callback = "callback" + requestId;
> > >        var script = document.createElement("script");
> > >        script.setAttribute("src", url+callback);
> > >        script.setAttribute("type", "text/
> > > javascript");
>
> > >        window[callback] = function(jsonObj) {
>
> > > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > > ::handleJsonResponse
> > > (Lcom/google/gwt/core/client/JavaScriptObject;)(jsonObj);
> > >        window[callback + "done"] = true;
> > >        }
>
> > >        // [4] JSON download has 1-second timeout.
> > >        setTimeout(function() {
> > >        if (!window[callback + "done"]) {
>
> > > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > > ::handleJsonResponse
> > > (Lcom/google/gwt/core/client/JavaScriptObject;)(null);
> > >        }
>
> > >        // [5] Cleanup. Remove script and callback elements.
> > >        document.body.removeChild(script);
> > >        delete window[callback];
> > >        delete window[callback + "done"];
> > >        }, 3000);
>
> > >        // [6] Attach the script element to the document body.
> > >        document.body.appendChild
> > > (script);
> > >        }-*/;
>
> > > I did this by following tutorial in
> > >http://code.google.com/intl/lt/webtoolkit/tutorials/1.6/Xsite.html
> > > .
>
> > > The question is, how to pass a really long parameter string message1
> > > to service? It seems, that parameter string of 5000 chars is too log
> > > to fit in url.
>
> > > Thanks,
> > > Gintare
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: dialog box background - BUG?

2009-09-27 Thread John V Denley

OK, thanks Isaac, Ill try to get onto that tomorrow

On Sep 17, 3:47 pm, Isaac Truett  wrote:
> John,
>
> The first step in reporting a bug is to create the smallest possible
> piece of code that reproduces the problem. You can post that code here
> and the group can help you determine if you have a legitimate bug.
>
> - Isaac
>
> On Thu, Sep 17, 2009 at 5:36 AM, John VDenley
>
>  wrote:
>
> > ive just tried to set the background colour of all my dialog boxes
> > using CSS and its immediately obvious that there seems to be a bug
> > with the DIV somewhere, as the background colour is appearing to the
> > immediate right of the actual dialog box, its exactly the same height,
> > but approximately 30% wider. One of my dialog boxes has a disclosure
> > panel, and when i open that up, the "shadow" background expands with
> > it, again maintaining the same height, but approximately 30% more
> > width.
>
> > Has anyone else seen this, is it a known bug? If not how can i report
> > it officially?
>
> > I know i could probably work out how to report it etc myself, but I
> > have a deadline today to get my first version finished before i go off
> > on holiday tomorrow, and I still have a lot to do!!
>
> > Thanks,
> > 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CustomButton rollover effects fail when ON_MOUSE_OUT is never fired

2009-09-27 Thread Vlad Skarzhevskyy

I also can see the same effect. The HoveringFace of PushButton remains
active if you quickly move the mouse cursor over the buttons. (in all
browsers including Chrome).

I used images from ImageBundle to construct the buttons.

Since all methods in CustomButton are package you can override the
behavior, for example call setHovering(false) from additinal even
handler.


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



Re: swt-win32-3235.dll

2009-09-27 Thread John (Eric) Hamacher

I told you I was new!  Copied the two dll files in the zip file to the
0.0.0 directory.  Thanks.

On Sep 25, 3:54 pm, badgerduke  wrote:
> Today I built GWT from the trunk.  I'm baffled by the following error
> when I build my project.  This file is present in gwt-
> windows-0.0.0.zip which I installed to repository.  I pretty new to
> both GWT and Maven.
>
> java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and
> Settings\er
> ic_hamacher\.m2\repository\com\google\gwt\gwt-dev\0.0.0/swt-
> win32-3235.dll
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
>         at java.lang.Runtime.load0(Runtime.java:769)
>         at java.lang.System.load(System.java:968)
>         at org.eclipse.swt.internal.Library.loadLibrary(Library.java:
> 132)
>         at org.eclipse.swt.internal.win32.OS.(OS.java:18)
>         at org.eclipse.swt.widgets.Display.(Display.java:125)
>         at com.google.gwt.dev.SwtHostedModeBase.
> (SwtHostedModeBase.java:
> 105)
> Exception in thread "main" [INFO]
> --
>
> I used the following command to install the zip file:
>
> mvn install:install-file -Dfile=gwt-windows-0.0.0.zip -Dpackaging=zip -
> DgroupId=com.google.gwt -DartifactId=gwt-dev -Dclassifier=windows-libs
> -Dversion=0.0.0
>
> and my dependency in my pom.xml is:
>
>                         
>                         com.google.gwt
>                         gwt-dev
>                         ${gwtVersion}
>                         ${platform}-libs
>                         zip
>                         provided
>                 
>
> Any help would be appreciated!
>
> Eric
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Problem loading GWT Module - $stats not defined

2009-09-27 Thread BR

I have a couple of GWT module which I deploy inside a Confluence page
(the Wiki from Atlassian). I am currently testing on the latest 3.1
release of Confluence, and ran into an issue which is a

- a serious blocker for me
- seems worthy of consideration as an issue for GWT

This is with Mac OS X (Leopard, not Snow Leopard), under 1.6.4, 1.7.0
and a fairly recent 2.0.0-SNAPSHOT build and Java 1.5. (I am testing
the most recent one right now but the relevant code seems unchanged).

Basically, when my module loads, in both Firefox and Safari, I get:

$stats is not defined
90734B7A402A18B139AB51E75E202209.cache.html()90734B7A...ache.html
(line 24886)
[Break on this error] $stats && $stats({moduleName:'taskdock.p...te
()).getTime(),type:'moduleEvalEnd'});\n90734B7A...ache.html (line
24886)

The module loads fine in Confluence 3.0 but not under Confluence 3.1.
The primary different is that in 3.1, additional third party
JavaScript libraries are used, and they are all loaded at the end of
the page rather than the beginning. Obviously some interaction is
happening, but I would imagine that GWT should take steps to protect
itself from this sort of thing.

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



GWT state management in multiple modules across web-pages

2009-09-27 Thread AndrewG

I am looking at modifying a (largely) JSF-based web application to use
GWT. I have done some preliminary experiments which have been quite
successful so far - in providing a richer UI and better user
experience.

The main issue that I see at the moment is that the current
application has approx 100 pages of one sort of another (many are
light-weight - but not always simple - 'popup' editor forms for back-
end data).

The structure of the UI - redesigned for GWT - would be a bit
different - making use of being able to dynamically switch page
content - rather than using a reasonably big web page hierarchy.

Given the number of features to migrate - the final structure and
migration path are a bit of a concern.

Common sense suggests that it may not be a good idea to try to produce
a gwt 'monster app' module containing the whole UI - but instead make
it more modular. Current thinking is that the new design should
consist of a number of different pages - each containing the
equivalent functionality of perhaps 5-10 of the original web pages. A
horizontal main menu at the top would allow switching between these
pages - each of which would correspond to a different set of app
functionality - built into a gwt module.

Each gwt 'mini app' module would run on its own web page - so none of
these would be too large - and they could be developed one at a time -
and integrated into the existing app - replacing the corresponding set
of old jsf-based web pages.

I have tested this for two of these 'mini-apps' modules - and it works
quite nicely. The obvious problem going forward is how to track/manage
state in each of these modules when users navigate between them. For
example, the 'current' page might contain a series of trees/tables etc
- and the user navigates away from the web page hosting that app/
module - and then back again - it will not be in the state that he
left it (but in its fresh state).

There are obviously a number of different ways to tackle this (from
client side cookies to server side backing beans, etc) - but is there
a 'proper' way to do it within the context of gwt - ie one that the
gwt framework is designed to support easily ? - I suspect that there
ought to be - but I have only just started with gwt - so not sure
myself.

Any informed opinions would be appreciated.

thx

Andrew


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



Re: Sending long parameter via cross-site JSON

2009-09-27 Thread Ben

Is it possible to move this into body instead of put it in parameter?
I think that is a good way to go.

On Sep 26, 12:57 am, Hlunboi  wrote:
> Hi,
> I have similar requirement. Anyone who implement this?
>
> Regards
> Hlun
>
> On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene <
>
>
>
> gintare.ragaisi...@gmail.com> wrote:
>
> > Hello,
>
> >  I'm developing GWT UI that talks with my server via JSON. I do
> > access of service by passing url like this :
>
> >http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message...
>
> > to function:
>
> >    public void callJsonService(String url){
> >        url = URL.encode(url) + "&callback=";
> >        System.out.println("url = "+url);
> >        singleton.getJson(this.jsonRequestId++, url, singleton);
> >    }
>
> >    /**
> >   * Make call to remote server.
> >   */
> >  private native void getJson(int requestId, String url,
> > AccessRemoteJsonService handler) /*-{
> >        var callback = "callback" + requestId;
> >        var script = document.createElement("script");
> >        script.setAttribute("src", url+callback);
> >        script.setAttribute("type", "text/
> > javascript");
>
> >        window[callback] = function(jsonObj) {
>
> > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > ::handleJsonResponse
> > (Lcom/google/gwt/core/client/JavaScriptObject;)(jsonObj);
> >        window[callback + "done"] = true;
> >        }
>
> >        // [4] JSON download has 1-second timeout.
> >        setTimeout(function() {
> >        if (!window[callback + "done"]) {
>
> > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > ::handleJsonResponse
> > (Lcom/google/gwt/core/client/JavaScriptObject;)(null);
> >        }
>
> >        // [5] Cleanup. Remove script and callback elements.
> >        document.body.removeChild(script);
> >        delete window[callback];
> >        delete window[callback + "done"];
> >        }, 3000);
>
> >        // [6] Attach the script element to the document body.
> >        document.body.appendChild
> > (script);
> >        }-*/;
>
> > I did this by following tutorial in
> >http://code.google.com/intl/lt/webtoolkit/tutorials/1.6/Xsite.html
> > .
>
> > The question is, how to pass a really long parameter string message1
> > to service? It seems, that parameter string of 5000 chars is too log
> > to fit in url.
>
> > Thanks,
> > Gintare
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is it possible to have history with the normal GET url format

2009-09-27 Thread Sripathi Krishnan
You can still have 'query parameters' in the history token.

http://mywebsite.com?param1=value1¶m2=value2#?param3=value3¶m4=value4


   - The above url is an example. param1 and param2 are the only ones that
   will be available to you on server side via request.getParameter.
   - GWT provides you a convenient way to read param1 and param1, but as
   Thomas mentioned - you can't modify them in javascript without reloading the
   page.
   - Anything after the # will not be accessible on the server side, but is
   accessible on the client side.
   - GWT will give you the entire string "?param3=value3¶m4=value4" to
   your HistoryListener - and thereafter it is a simple matter ofparsing out
   the string manually.

So, you can still achieve what you want by using a token that has ? and &,
and doing the parsing yourself. It is a bit convoluted, but is perhaps the
only way right now.

--Sri


2009/9/27 Thomas Broyer 

>
>
>
> On 27 sep, 02:36, Jaap  wrote:
> > The way I understand it you can history in your gwt app by using a
> > history token which is displayed as follows in the URL
> >
> > http://www.example.com/#token
> >
> > I actually need a combination of tokens and prefer to use the normal
> > syntax you have with GET urls. So I'd like to have history which looks
> > like
> >
> > http://www.example.com/?locale=es&query=test
> >
> > Is this possible with GWT
>
> No, because it's just not possible at all with anything JavaScript.
>
> FYI, HTML5 defines a pushState() that'll allow such a thing, but to my
> knowledge no-one has implemented it already (but work is underway in
> at least Firefox and WebKit)
> >
>

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



Re: advantages of hibernate

2009-09-27 Thread PJ Gray
Hello,

I was in a similar situationlots of technology around and everyone seems
to talk about hibernate.As far as I can tell, the advantages are being
able to refer to your objects AS OBJECTS, yet have them persisted in the
database.  ie: you don't have to write the code to persist  them yourself.
If you were making a huge app, this might be necessary.   For smaller
operations, I think the best bet is just writing the resultset code
yourself.You get better control over what happens, and personally, I
think its always better to understand whats going on behind the scenes
before I jump into the new automated way of doing things.

Plus, there is always:  K.I.S.S.

-pj



On Fri, Sep 25, 2009 at 9:26 AM, ces  wrote:

>
> Hi guys!
>
> I'm new in GWT... I want to create a web app that will show a table
> from a database and I would like to know if I should use Hibernate and
> not the usual way in Java of fetching data from DB (i.e. resultset)?
> What are its advantages?
> thanks in advance for any information you'll give... :D
>
> >
>

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



Re: advantages of hibernate

2009-09-27 Thread Evan Ruff

CES,

There is a hibernate connector out there for GWT called Gilead:
http://noon.gilead.free.fr/gilead/ . I've used the library to quickly
get started with the project; however, from a performance standpoint I
never felt that it was good enough for actual production deployment.
Now I'm no Hibernate expert, so there's a big chance that I was doing
something wrong with the mappings, but I've found the only way to get
acceptable performance is to man-up and roll your own DAO objects.
Serialization and transfer of the model objects is one of the most
expensive (and fantastic) operations available to a GWT application. I
was never able to get the hibernate objects to serialize in an
efficient manner.

E

On Sep 25, 9:26 am, ces  wrote:
> Hi guys!
>
> I'm new in GWT... I want to create a web app that will show a table
> from a database and I would like to know if I should use Hibernate and
> not the usual way in Java of fetching data from DB (i.e. resultset)?
> What are its advantages?
> thanks in advance for any information you'll give... :D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can GWT handle real time data?

2009-09-27 Thread Evan Ruff

I'll second Wil here. Comet is the way to go.

I like running a separate meteor server on an alternate sub-domain to
get around the whole blocking issue as well.

E

On Sep 25, 3:08 pm, "wil.pannell" 
wrote:
> One or the other -- "GWT in Practice," or "GWT in Action" has a
> chapter on emulating server push using the Comet API.
>
> On Sep 25, 10:32 am, looklook  wrote:
>
>
>
> > I want to know how GWT handles real time data? For example, a text
> > field of a web page needs to display real time data got from the
> > server, this means once the server receives real time data, it will
> > send to the web page and the text field of the web page gets updated.
> > Can GWT handle this and how? Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: can i cancel request?

2009-09-27 Thread Thomas Broyer



On 26 sep, 20:48, Henrique Miranda  wrote:
> I'm uploading a file but i want can cancel this upload. how can i do it? I
> would like to know how can i canel a request?

Have a look at http://code.google.com/p/gwtupload/ which has an
Uploader#cancel()

(I've never used it, so don't ask me more, I just know it exists ;-) )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is it possible to have history with the normal GET url format

2009-09-27 Thread Thomas Broyer



On 27 sep, 02:36, Jaap  wrote:
> The way I understand it you can history in your gwt app by using a
> history token which is displayed as follows in the URL
>
> http://www.example.com/#token
>
> I actually need a combination of tokens and prefer to use the normal
> syntax you have with GET urls. So I'd like to have history which looks
> like
>
> http://www.example.com/?locale=es&query=test
>
> Is this possible with GWT

No, because it's just not possible at all with anything JavaScript.

FYI, HTML5 defines a pushState() that'll allow such a thing, but to my
knowledge no-one has implemented it already (but work is underway in
at least Firefox and WebKit)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: list serialization

2009-09-27 Thread mirceade

PS: list of objects also works in 1.6.

On Sep 25, 6:06 pm, mwaschkowski  wrote:
> Hi,
>
> Quick question about serialization:
>
> If I have something to be serialized with the following type defined:
>
>   private List resultList
>
> gwt gives me a serialization error, but if I take away the 
> tag:
>
>   private List resultList
>
> it works fine.
>
> I'm a bit worried that I'm breaking a rule somehow, and if things get
> tightened up in a future version, my app might break. Can someone
> please shed a little light on this for me?
>
> Thanks,
>
> Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: list serialization

2009-09-27 Thread mirceade

I'm using list of serializables just fine (it only shows some warnings
since gwt 1.6) because my domain classes are not ready to inherit some
strange superclass just for gwt ser. to work. So I guess you're using
1.5 or lower.

On Sep 25, 6:06 pm, mwaschkowski  wrote:
> Hi,
>
> Quick question about serialization:
>
> If I have something to be serialized with the following type defined:
>
>   private List resultList
>
> gwt gives me a serialization error, but if I take away the 
> tag:
>
>   private List resultList
>
> it works fine.
>
> I'm a bit worried that I'm breaking a rule somehow, and if things get
> tightened up in a future version, my app might break. Can someone
> please shed a little light on this for me?
>
> Thanks,
>
> Mark
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: help on my small project

2009-09-27 Thread mdwarne

I use a deckpanel to hold all my pages.

For example

deckPanel.showWidget(0)  // Show My Welcome/Login page
deckPanel.showWidget(1)  // Show page 1 of application.
deckpanel.showWidget(2) // Show another page of the app etc.

Each Page is some type of Panel, with other widgets on it.

Successful login causes the application to switch to page 1 of the
app.


Mike.





On Sep 25, 3:48 am, monk3y  wrote:
> Hi derrck
>
> What i usually do is create a DockPanel, then set the width and height
> to "100%" and stick my login box in the center panel of the
> DockPanel.
>
> TextBox login=new TextBox();
> Dockpanel myDock=new DockPanel()
> myDock.setSize("100%","100%");
> myDock.add(login,DockPanel.CENTER);
>
> Something like that should do the trick.
>
> On Sep 25, 11:37 am, Derrick Xiang  wrote:
>
>
>
> > Sorry to clarify, i am not using a dialogbox, i want my rootpanel to
> > be centralized in the web page, as I previewed, it's always located at
> > the top left corner.
>
> > Regards,
> >  Derrick
>
> > On Sep 25, 3:47 pm, Norman Maurer  wrote:
>
> > > Hi Parvez,
>
> > > just a note.. Hupa moved to james.apache.org as subproject (I'm just
> > > in preparations to deploy the website). The website can be found (
> > > after I finished the work) underhttp://james.apache.org/hupa.
>
> > > The svn repos is:
>
> > >http://svn.apache.org/repos/asf/james/hupa
>
> > > Bye,
> > > Norman
>
> > > Ps: README.txt should include everything to get it running ;)
>
> > > 2009/9/25 Parvez Shah :
>
> > > > If you are new to GWT based development my suggestion is learn from 
> > > > project
> > > > HUPA
> > > >http://svn.apache.org/repos/asf/labs/hupa
>
> > > > its based on pretty good architecture and in my experience you straight
> > > > lift  lot of initial Boiler plate code.
>
> > > > In my view dont get too much into running its ok if you cant run it, 
> > > > just
> > > > read the code starting from entry point and you will be good to go .
>
> > > > as far as your query goes its simple dialogbox.center and
> > > > dialogbox.show/hide will do.
>
> > > > On Fri, Sep 25, 2009 at 6:52 AM, Derrick Xiang 
> > > > wrote:
>
> > > >> Hi all,
> > > >> I am quite new to GWT development, now am struggling in a small web
> > > >> application, my application include a lot of GUI.
>
> > > >> while, I got two questions here,
> > > >> 1). How can centralize the application on the final web page? e.g. I
> > > >> create a login window which is quite small, when I preview on the web
> > > >> page, it's not in the center of the page, how can i capture the web
> > > >> page size in my java code?
>
> > > >> 2). As the application has a lot of GUI, how should I switch between
> > > >> different windows? e.g. after login, the main window should display
> > > >> and the login window should be hide, how to do this?
>
> > > >> thanks for your attention, any comments are appreciate.
>
> > > >> Regards,
> > > >>  Derrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help - my web site based on GWT fails to load in IE8

2009-09-27 Thread Itzik Yatom

It is working! I use Canvas class and it doesn't work in IE8, I have
disabled, temporarily, the canvas object and it works. Now I need to
find another implementation for what I did with the Canvas.

There is an old open issue about this - 
http://code.google.com/p/gwt-canvas/issues/detail?id=12

Thanks again
Itzik

On 25 ספטמבר, 18:55, DaveS  wrote:
> To get some traction on debugging the JS code, you need to build with
> UNOBFUSCATED mode, in the project configuration (e.g. the POM if
> building with maven).
>
> Also, you could post the error here, someone might be able to help you
> then, with more detail to go on.
>
>   Dave.
>
> On Sep 25, 3:06 pm, Itzik Yatom  wrote:
>
> > I have just finished to develop a web site that is mostly written in
> > GWT. During a non-trivial load that contains many panels and widgets
> > build, asynchronous server requests for grabbing information from DB
> > and XML file contents, it fails in IE8 on adding the main Composite
> > object to the root panel with unclear JavaScript message.
> > In Firefox and IE7 it works fine. How can I get information about the
> > failure cause ? and this is, actually, a general question - How can I
> > get information where is the failure in my Java classes when at
> > runtime all Java classes are compiled to JS ?
>
> > It looks like a nightmare when everything works at development
> > environment where you can debug the Java code but it fails on runtime
> > with an error that tells you nothing about the real problem.
>
> > Thanks in advance
> > Itzik Yatom
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---