Re: Problem on server side

2009-05-27 Thread alex.d

I would put all your code in
try{}
catch(Exception e)
{
System.out.println(e.getMessage());
System.out.println(e.getStackTrace());
}

that should give your a clue ;-)

On 27 Mai, 17:53, Jemerson Damasio  wrote:
> Hi guys,
>     I'm facing a very strange problem. I can access the app server side, and
> operate partially on it. The problem is this "partially" thing. I'd like to
> know if someone can help on figuring out this issue, here is the code and
> the trace of execution with prints ;)
>
> -
> Code:
>
> public class TransactionServiceImpl extends RemoteServiceServlet implements
> TransactionService {
>
> public String startBD() {
> try {
>                         System.out.println("I'm here!");
> Controller c = Controller.getInstance();} catch (Exception e) {
>
> return "Problem during DB start.";}
>
> return "DB Start succeed.";
>
> }
> }
>
> private Controller() {
> System.out.println("There it goes!");
>         this.bdFacade = new BDFacade();}
>
> public DBFacade() {
>         System.out.println("Please get to this code!");
>
> }
>
> --
> The execution trace is:
>     I'm here!
>     There it goes!
>
>     The call failed on the server; see server log for details
>
> 
>
> It means that I can't access the BDFacade, or any other class; instead, I
> can call any Controller method, that it works fine. HELP, please! ;(
>
> Thanks in advance.
>
> Jemerson Figueiredo Damasio
--~--~-~--~~~---~--~~
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: Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M)

2009-05-27 Thread alex.d

You should also increase the heap size for your application itself.
You can find it under "Run configurations"->Arguments->VM Arguments.
Set it to -Xmx512m - works fine for me.

On 27 Mai, 14:41, Sagar  wrote:
> Hello all,
>
> I created a sample GWT application using GWT1.5. then i moved this
> application to GWT 1.6 as instructed in the tutorial provided at the
> google web toolkit. after finishing i am getting the error of
>
> "Out of memory; to increase the amount of memory, use the -Xmx flag at
> startup (java -Xmx128M) ".
> I increased the heap size for eclipse to a maximum of enormous 1024MB
> still the same error coming.
>
> Kindly suggest..
>
> Regards,
> Sagar
--~--~-~--~~~---~--~~
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: Introducing Shandor Xul: Run you app as Gwt, Swing and SWT

2009-05-27 Thread maku

Hi,

I would also interested in seeing a online demo to get a better
understanding what's possible in context with GWT (and of course the
source code).

Regards,
Martin



On 20 Mai, 19:20, codeoncoffee  wrote:
> For the past year Pentaho has been developing a JavaXulframework for
> writing apps that run in Swing, Swt and Gwt without code modification.
> It's been open source from the start (LGPLv2) but not advertised.
> We've recently moved the project out into BitBucket.org as ShandorXul
> and are looking for contributors!
>
> About ShandorXul:
> Shandor allows you to write applications in a UI agnostic framework
> built on the MozillaXULdeclarative mark-up syntax. Shandor is not
> code-gen! It's a runtime framework with agnostic interfaces that you
> code against. There's an live abstract DOM representing your
> application that you can interact with and bind your code to.
>
> Below are some of the Killer things Shandor can do for you:
>
> Built-in Binding Framework (including collections to UI)
> Includes and Overlays (overlays allow runtime changing of the UI, free
> plug-in framework!)
> IOC ready (Spring, Juice, etc.)
> Groovy event handler support.
> Built-in i18n
>
> Being able to change a UI without recompiling is fantastic for our
> users as well as our Graphic Designers. Not having to write and
> maintain the same code in 3 places... dead sexy.
>
> Shandor has been of great use to us and we hope that it can do the
> same for the larger java community. We're looking for anyone who would
> like to contribute to the project, from users to coders!
>
> The code, doc (some) and a sample application can be found 
> here:http://bitbucket.org/codeoncoffee/shandor-xul/wiki/Home
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Underlying TabPanel components

2009-05-27 Thread Michelle Wood

One thing I've learned in my experience with designing a gwt app: look 
for lots of nesting. Once you understand how something is built, you can 
correctly implement and style it. That being said, while it works fine 
in terms of the javascript output, the tabpanel's HTML output has me 
slightly confused.

The tab panel, as I understand, is created via a tabbar and deckpanel 
inserted into a verticalpanel. So, that should mean the HTML would show 
a two-row container table (the verticalpanel) with the top row housing 
the tabbar table and the bottom row housing the deckpanel div. However, 
when I create a tabpanel in gwt and then view in Firefox, trusty Firebug 
indicates there is an extra div between the deckpanel div and the child 
widget. Here's a very simplified example:

//gwt-code:
final TabPanel pUserTabs = new TabPanel();
pBody.add(pUserTabs);
final Button btnTest = new Button("test");
pUserTabs.add(btnTest, "Test");
pUserTabs.selectTab(0);











 




Test



 











 

test







Why is an extra div thrown in here? While in the above example there's 
not much of a problem, I'm currently trying to tame two nested tabpanels 
with further nested children, and it can be difficult to style 
everything when there's something extra thrown into the inheritance that 
I wasn't expecting and can't reach. Anyone ever seen this or have any 
suggestions as to why it's there?

Michelle

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



Removing comments from generated gwt.js and *.nocache.html files

2009-05-27 Thread pie...@gmail.com

Hi all,

I'm corious if there is any way to simply switch off comments for
generated gwt.js and *.nocache.html files?
We use Cenzic PCI complience tool and it shows few warnings pointing
to those generated files.
I would disable those comments (with mimial effor made - whitout
modifing those files manually).

Is it possible?

Cheers
Lukasz

PS We are using gwt1.3, but would like to migrate to 1.6 soon.

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



Re: GWT 1.6.4 fails to load

2009-05-27 Thread Dan H

In case anyone is still hitting this problem... I ran into it today
and figured out that it is caused by using the same identifier for the
GWT module and the DIV that you're injecting the GWT module into (I
have a feeling it would be a problem if any DOM elements have the same
name as the GWT module, actually).

dan

On Apr 27, 1:27 pm, BR  wrote:
> Just changed the title to make it clear it's 1.6.4.
>
> On Apr 27, 10:51 am, BR  wrote:
>
> > I am running into the very same issue.
>
> > To answer your questions:
>
> > 1. No. It's happening in hosted mode as well (MacOS - so safari too)
>
> > 2. The HTML is plain as can be (looks identical to the ones from
> > dynatable sample, really). I have votecreator.hml and in the same
> > directory, a votecreator directory which is the result of compiling my
> > module (which is renamed-to votecreator). I am using RootPanel.get
> > ('mydiv') to bootstrap the original panel.
>
> > Any insights would be greatly appreciated.
>
> > Thanks!
> > Ben
>
> > On Mar 24, 7:51 am, Sumit Chandel  wrote:
>
> > > Hi Soren,
> > > No solutions to suggest for the problem you're experiencing as of yet, 
> > > but a
> > > couple of questions to help figure out what's going on:
>
> > > 1) Does this only occur in Firefox? If this fails in other browsers, what
> > > kind of error messages / application loading behaviour do you observe 
> > > there?
>
> > > 2) Is there anything special about how you're attaching your GWT module do
> > > you host page? Is GWT the entire page itself, or added as a part of an
> > > existing fully-fledged application page? Also, in either of these last two
> > > cases, are you adding your GWT module as a panel to the RootPanel, or as a
> > > Frame?
>
> > > Hopefully this will help narrow down the issue.
>
> > > Hope that helps,
> > > -Sumit Chandel
>
> > > 2009/3/19 Søren Brønsted 
>
> > > > I just downloaded 1.6.2 and converted my project so that I have no
> > > > errors and warnings, but my application will not load.
> > > > I have compiled with style DETAILED and loaded the application i
> > > > Firefox, and firebug reports an error in this code:
>
> > > >        function maybeStartModule() {
> > > >                if (scriptsDone && loadDone) {
> > > >                        var iframe = $doc.getElementById($intern_1);
> > > >                        var frameWnd = iframe.contentWindow;
> > > >                        if (isHostedMode()) {
> > > >                                frameWnd.__gwt_getProperty = 
> > > > function(name)
> > > > {
> > > >                                        return computePropValue(name);
> > > >                                };
> > > >                        }
> > > >                        groupapp = null;
> > > > --                  frameWnd.gwtOnLoad(onLoadErrorFunc, $intern_1,
> > > > base);
> > > >                        $stats && $stats( {
> > > >                                moduleName :$intern_1,
> > > >                                subSystem :$intern_2,
> > > >                                evtGroup :$intern_6,
> > > >                                millis :(new Date()).getTime(),
> > > >                                type :$intern_7
> > > >                        });
> > > >                }
> > > >        }
>
> > > > with they message "frameWnd is undefined". I stops marked by ""
>
> > > > I guess that this is an entry point and the error does not say much,
> > > > and I am not an expert on javascript.
> > > > I there anyway to get more information on whats is going on?
>
> > > > I have tryed to debug my application but the error happens before
> > > > entry point is reached.
>
> > > > Any suggestions?
>
> > > > regards
> > > > Søren
>
> > > > --
> > > > Søren Brønsted
> > > > Kirkebjergvej 2
> > > > 4623 Lille Skensved
> > > > +45 30 64 63 50
> > > >www.bronsted.dk
>
>

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



Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M)

2009-05-27 Thread Sagar

Hello all,

I created a sample GWT application using GWT1.5. then i moved this
application to GWT 1.6 as instructed in the tutorial provided at the
google web toolkit. after finishing i am getting the error of

"Out of memory; to increase the amount of memory, use the -Xmx flag at
startup (java -Xmx128M) ".
I increased the heap size for eclipse to a maximum of enormous 1024MB
still the same error coming.

Kindly suggest..

Regards,
Sagar

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



Multiple Entry Points in the same module

2009-05-27 Thread John_Idol

I have multiple entry points in the same module.

For example I have an Home entry point for the home page and an Admin
entry point for the admin page.




The way I am setup now - I need to check somt like this in my
OnModuleLoad:

if((RootPanel.get("someHomeWidget")!=null)&&
  (RootPanel.get("someOtherHomeWidget")!=null))
{
  // do the stuff
}

in order the the Admin Entrypoint not to be executed when the Home
page gets open and the other way around.

Not doing the check above also involves that if I have a div with the
same name in both the Home and Admin page whatever I am injecting in
it shows up twice on each of them.

This stinks 1000 miles away and is obviously wrong: what's the correct
way to do this in people experience?

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



Problem on server side

2009-05-27 Thread Jemerson Damasio
Hi guys,
I'm facing a very strange problem. I can access the app server side, and
operate partially on it. The problem is this "partially" thing. I'd like to
know if someone can help on figuring out this issue, here is the code and
the trace of execution with prints ;)

-
Code:

public class TransactionServiceImpl extends RemoteServiceServlet implements
TransactionService {

public String startBD() {
try {
System.out.println("I'm here!");
Controller c = Controller.getInstance();
} catch (Exception e) {
return "Problem during DB start.";
}
return "DB Start succeed.";
}

}

private Controller() {
System.out.println("There it goes!");
this.bdFacade = new BDFacade();}

public DBFacade() {
System.out.println("Please get to this code!");
}

--
The execution trace is:
I'm here!
There it goes!

The call failed on the server; see server log for details



It means that I can't access the BDFacade, or any other class; instead, I
can call any Controller method, that it works fine. HELP, please! ;(


Thanks in advance.

Jemerson Figueiredo Damasio

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



stress test gwt application simulate users

2009-05-27 Thread asianCoolz

how do you folks stress test gwt application simulate thousands of
users using the app?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RequestBuilder and native XSL stylesheet processing

2009-05-27 Thread Laurent Malvert

Hello all,


Here's what I have:
- I have a bunch of XML file on a server describing data, and a bunch
of XSL file defining transformations to HTML code.
- Each XML file contains the reference to its dedicated timesheet (so
that basically, using a browser to view the XML file will render it
more or less correctly).

Here's what I want:
I want the browser's native XSLT processor to apply the XSL
transformations to the XML file, so that I can inject the resulting
HTML code within another page.

Here's what I've done:
So far I am using the RequestBuilder to fetch the XML file, which
works OK, but of course the response's content is the raw XML file,
and not the processed result. Which makes sense (I guess, otherwise
that could be pretty annoying in other cases).
My question is, how do I, preferably from GWT, have the browser's
native XSLT processor do its magic and then get the result to inject
it?

Any ideas or suggestions?


In the meantime, because I didn't find anything to do this so far (but
I might have missed it in the docs), I was thinking of improting
ajaxslt-0.8.1 [1] in my GWT module and call it using JSNI, as it seems
it is powerful enough to process my stylesheets.
(but I would have to modify both the stylesheets and the XML files to
remove the declarations, or maybe remove them dynamically)
Another possibility was to use Johann Burkard's excellent
"xslt.js" [2] library, which wraps the native XSLT processor of the
browser, but I would have preferred a more "GWT-only" solution, in
case there's already one.


Thanks in advance for the help.


[1] http://code.google.com/p/ajaxslt/
[2] http://johannburkard.de/software/xsltjs/

--
Laurent Malvert
Analyst Programmer
 Macquarie University, NSW 2109, Australia
 Office of Institutional Advancement

 p: +61-2-9850-1385
 m: +61-4-1095-7130
 e: laurent.malv...@mq.edu.au
 w: http://www.comp.mq.edu.au/

 CRICOS Provider No 2J

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



How to disable click events in Grid cell

2009-05-27 Thread Suren

Hi All,

I am having a grid with 100 columns. Among these certain columns are
meant for readonly purpose. For these columns I want to disable the
text selected when user tries to double click on that cell.

Currently when a user double click any cell in the Grid, the text get
selected with blue background. I want to disable this functionality
for certain cells / entire columns.

Can anyone help me in this regards

Thanks
Suren
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Gwtext Null Pointer exception : any Help Please

2009-05-27 Thread jeeva

Hi friends ,

i am trying to run some code , but i end in as error .
may some one help me to come out this .

What kind of error this is ?

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at
sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)  at
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)  at
java.lang.reflect.Method.invoke(Method.java:585)  at
com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320)  at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:329)  at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300
(BrowserWidgetIE6.java:37)  at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:76)  at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)  at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
294)  at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)  at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
117)  at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)  at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:
1925)  at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
2966)  at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:
720)  at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)  at
com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

thx friend .

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



SOP and linker cross-site

2009-05-27 Thread John

I have spent a lot of time on this, and gotten myself totally
confused.  At this point I'm not even sure how to clearly frame the
question!

Let me try this:  With Eclipse, and the Google plug in, I create the
simple "greeter" example.  Now, I deploy on Google AppEngine (Java).
All goes well.

Now I want to create an HTML page on a totally unrelated domain and
have the greeter application run on this page.

1. we add the  to module.gwt.xml
2. we change the relative address of the nocache.js to absolute like:
  src="http://location-app.appspot.com/jplocation/jplocation.nocache.js";

All is well, except that the RPC fails, presumably because it can't
find the location of the servlet.  Perhaps I need to be looking at
web.xml and tweaking the url-pattern?  However, when deploying to
AppEngine, it's pretty fussy about what goes in as url-pattern.

Assuming there is some way of doing what I want, how do I hook up with
the servlet?  Again, hopefully this is helpful: we use a totally
standard Google Plugin New Application Builder, only the cross-site
link statement added, and only the one change on the html host page
(don't care about css at this point).

If you can throw any light on what I'm missing, I would appreciate it.

John

--~--~-~--~~~---~--~~
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: Will GWT meet my needs?

2009-05-27 Thread peterk

Oops! Sorry for the double reply. I thought the first one hadn't gone
through.

I think I've found what the problem is with what I was doing..it seems
GWT isn't designed to be added dynamically to a page after the fact. A
blog post here alludes to the problem:

http://www.pathf.com/blogs/2007/08/bjax-a-quick-ha/

The fix there worked with GWT 1.4, but I've hacked through my own
nocache.hs to make similar changes, and now it appears to be loaded
properly to my pages 'after the fact', after onLoad's already fired
etc.

I do wonder if this is 'safe' though? Does GWT make other assumptions
that would make it dangerous to dynamically add it to a page after the
initial page load, or am I OK?

Cheers,

On May 27, 9:39 pm, peterk  wrote:
> Hey Ian,
>
> Thanks very much for your reply.
>
> I don't absolutely need the widget-y stuff, no..
>
> I gave this a quick bash to see if I could get something working
> quickly. I have a simple GWT app that should add a button to the end
> of the page it loads in. It works OK in a test page on my machine,
> loading the .js file from a remote server (I have compiled it for
> cross site access).
>
> However when I get a firefox extension to embed the script in a page
> on page load, it seems to lock up the page.. it'll load the right page
> initially, but then it 'redirects', almost, to a blank page and loads
> i perpetually. Not sure if there's a quick and easy answer to that
> question, maybe there's more configuration that needs doing in order
> to allow a gwt app to be dynamically added to an arbitrary page (?)
>
> On May 27, 9:17 pm, Ian Petersen  wrote:
>
> > I think it depends on what you're doing when you "modify the page".
> > As of GWT 1.5 (the last version I've used personally), it's difficult
> > to construct a Widget around an existing DOM element.  On the other
> > hand, if you don't need GWT's Widget API, then GWT is exactly what you
> > need.
>
> > Some people are confused by GWT's offering, but it's really important
> > to remember that it's a very modular tool.  The only thing you need to
> > have in order to say you're "using GWT" is the GWT compiler.  The
> > download also includes various modules for doing things in a web page,
> > though, that make your life easier.  At the very bottom is the DOM API
> > that mirrors the browser's DOM API into Java.  There's also a module
> > for doing AJAXy stuff, and an RPC-over-HTTP module that's built on top
> > of that.  If it suits you, you can use the Widget API, but it's not
> > necessary.
>
> > Ian
--~--~-~--~~~---~--~~
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: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-27 Thread abby

Did anyone open a RFE for this?

Also, is the best workaround now having the images in same package as
the Bundle interface?
--~--~-~--~~~---~--~~
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: Will GWT meet my needs?

2009-05-27 Thread peterk

Hey Ian,

Thanks very much for your reply.

I don't absolutely need the widget-y stuff, no..

I gave this a quick bash to see if I could get something working
quickly. I have a simple GWT app that should add a button to the end
of the page it loads in. It works OK in a test page on my machine,
loading the .js file from a remote server (I have compiled it for
cross site access).

However when I get a firefox extension to embed the script in a page
on page load, it seems to lock up the page.. it'll load the right page
initially, but then it 'redirects', almost, to a blank page and loads
i perpetually. Not sure if there's a quick and easy answer to that
question, maybe there's more configuration that needs doing in order
to allow a gwt app to be dynamically added to an arbitrary page (?)

On May 27, 9:17 pm, Ian Petersen  wrote:
> I think it depends on what you're doing when you "modify the page".
> As of GWT 1.5 (the last version I've used personally), it's difficult
> to construct a Widget around an existing DOM element.  On the other
> hand, if you don't need GWT's Widget API, then GWT is exactly what you
> need.
>
> Some people are confused by GWT's offering, but it's really important
> to remember that it's a very modular tool.  The only thing you need to
> have in order to say you're "using GWT" is the GWT compiler.  The
> download also includes various modules for doing things in a web page,
> though, that make your life easier.  At the very bottom is the DOM API
> that mirrors the browser's DOM API into Java.  There's also a module
> for doing AJAXy stuff, and an RPC-over-HTTP module that's built on top
> of that.  If it suits you, you can use the Widget API, but it's not
> necessary.
>
> Ian
--~--~-~--~~~---~--~~
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: Will GWT meet my needs?

2009-05-27 Thread peterk

Hey Ian. Thanks for your reply :)

I don't absolutely need the widget stuff, no..

FWIW, I just tried out a very naive first attempt with a simple gwt
app that just adds a button to the end of the page. I compiled it for
cross-site access ( in the .gwt.xml file), and
embedding it in a test page on my computer, it seemed to work. But
now, getting a firefox extension to add it to the page on a page
load..the page just spins forever on a blank page. It'll momentarily
load the right page, then 'redirect', almost, and show a blank page
that's perpetually loading..

Not sure if there's a quick and easy answer to that one! Maybe I've
missed another thing you have to do for embedding a gwt app into a
page not hosted on the same domain.

On May 27, 9:17 pm, Ian Petersen  wrote:
> I think it depends on what you're doing when you "modify the page".
> As of GWT 1.5 (the last version I've used personally), it's difficult
> to construct a Widget around an existing DOM element.  On the other
> hand, if you don't need GWT's Widget API, then GWT is exactly what you
> need.
>
> Some people are confused by GWT's offering, but it's really important
> to remember that it's a very modular tool.  The only thing you need to
> have in order to say you're "using GWT" is the GWT compiler.  The
> download also includes various modules for doing things in a web page,
> though, that make your life easier.  At the very bottom is the DOM API
> that mirrors the browser's DOM API into Java.  There's also a module
> for doing AJAXy stuff, and an RPC-over-HTTP module that's built on top
> of that.  If it suits you, you can use the Widget API, but it's not
> necessary.
>
> Ian
--~--~-~--~~~---~--~~
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: Will GWT meet my needs?

2009-05-27 Thread Ian Petersen

I think it depends on what you're doing when you "modify the page".
As of GWT 1.5 (the last version I've used personally), it's difficult
to construct a Widget around an existing DOM element.  On the other
hand, if you don't need GWT's Widget API, then GWT is exactly what you
need.

Some people are confused by GWT's offering, but it's really important
to remember that it's a very modular tool.  The only thing you need to
have in order to say you're "using GWT" is the GWT compiler.  The
download also includes various modules for doing things in a web page,
though, that make your life easier.  At the very bottom is the DOM API
that mirrors the browser's DOM API into Java.  There's also a module
for doing AJAXy stuff, and an RPC-over-HTTP module that's built on top
of that.  If it suits you, you can use the Widget API, but it's not
necessary.

Ian

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



Will GWT meet my needs?

2009-05-27 Thread peterk

Hi there,

I'd appreciate any advice on this.

I currently have a javascript application that serves as the base of
extensions for various browsers, for a service I run.

Basically the extensions pull this javascript into whatever webpage
the user loads, and the javascript does some stuff with the webpage,
and so on, making calls to a server (hosted on AppEngine :)), sending
it data and retrieving json (getting around Javascript's same origin
policy to do this. The Javascript may be embedded into, say, cnn.com
and making calls to my appengine hosted backend).

I'm wondering..could I replace my Javascript with a GWT-compiled
Javascript file in this scenario? I'm not sure if the nature of GWT
deployment would preclude me from embedding a GWT JS file in arbitrary
webpages..?

I'm sort of tempted by the idea of having 'google optimised'
javascript code for my app, and benefiting from GWT's other features
and community, but I'm not sure if this is really feasible..

Can anyone say if my scenario is suitable for GWT or not? Thanks in
advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT design question

2009-05-27 Thread Paul van Hoven

Thank you, i now made exaclty the same way and it works great.

On 27 Mai, 15:15, Chris  wrote:
> I do this type of thing also.  For us it comes down to packing the
> deployments correctly.
>
> We have multiple client applications in the same gwt project (we use
> eclipse).  We then have a gwt xml file for each.  During our build
> process we build each of the applications separately and the last step
> of the process creates a war with the client apps and server classes.
> We then have different html entry pages for each app.
>
> If you want 1 entry page,the other option is to use deferred binding
> and use a different main module with the entry point for each
> different platform.  One for desktop browsers (the default one) and a
> different one for the iPhone which would then be overriden in the
> gwt.xml.  Since I haven't done this before, I'm not sure if the entry
> point can be replaced, but it should be possible - even if all the
> main entry point does is call another class that can be deferred
> bound.
>
> Chris...
>
> On May 27, 7:57 am, Paul van Hoven 
> wrote:
>
> > I've developped a GWT app which runs fine. Now a special version for
> > the iPhone of my website is needed. So far i know gwt runs well on the
> > iPhone. But i have a problem.
>
> > On the Desktop-Page the user has the full functionality of my webapp.
> > But on the iPhone he should only be able to use certain functions due
> > to simpler navigation. Both pages use the same business logic on the
> > server. Only the view is different.
>
> > I thought of this approach:
> > If the user comes from a desktop my initial servlet will dispatch him
> > to the desktop version of my site
> > If the user comes from an iphon my initial servlet will dispatch him
> > to the iphone page
>
> > The problem: i do not want to combine the iphone version and the
> > desktop version since then the user would have to load both apps
> > although he would only use one part at a time.
>
> > Therefore i want to split up both parts. What is the best approach for
> > this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Frame.setURL in IE6/7 always cause's refresh of contents? (even if just the #token changed)

2009-05-27 Thread darkflame

Ive notice that, under IE browsers (-sigh-) that setting a frames Url
always seems to cause the whole frames contents to refresh, even if
its only the history token thats changed;
eg.

Frame.setURL("www.existingurl.com#old")
..
Frame.setURL("www.existingurl.com#new")

Firefox and Opera neatly change the token of the Frames url without
refreshing its contents.

Is this intended? Any work arounds?
I tried using  setPropertyString and setAttribute to directly change
the url of the Frames element, but that didnt help. (in fact it made
it worse...Firefox and Opera both refreshed the contents completely
too).







--~--~-~--~~~---~--~~
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: Validation problem

2009-05-27 Thread Ian Bambury
Try
if(!textBox.getText().matches("[A-Za-z]+")) // fails validation, can't be
blank

if(!textBox.getText().matches("[A-Za-z]*")) // fails validation, can be
blank

You can amend the regular expression to validate pretty much anything


Ian

http://examples.roughian.com


2009/5/27 hezjing 

> Hi poonam
> Instead of writing your own validation class, would you consider one of the
> GWT validation libraries?
> e.g. https://sourceforge.net/projects/gwt-vl/
>
> I'm a newbie, and I'm still looking for a GWT validation library ... is
> there anyone able to share their experience in GWT validation?
>
>
> On Wed, May 20, 2009 at 8:43 PM, poonam  wrote:
>
>>
>> Can anyone help me in writing a simple gwt class for validating the
>> input.
>> My requirement is that, I need to check that the input in the textbox
>> is alphabetic, and if the input is anything other than alphabet it
>> displays the error message.
>> Thanks
>>
>>
>
>
> --
>
> Hez
>
> >
>

--~--~-~--~~~---~--~~
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: Introducing Shandor Xul: Run you app as Gwt, Swing and SWT

2009-05-27 Thread Rakesh

Do you have an online showcase that would show us how a simple sample
application would "look like" all the three platforms? And also the
code associated with it?

On May 20, 12:20 pm, codeoncoffee  wrote:
> For the past year Pentaho has been developing a Java Xul framework for
> writing apps that run in Swing, Swt and Gwt without code modification.
> It's been open source from the start (LGPLv2) but not advertised.
> We've recently moved the project out into BitBucket.org as Shandor Xul
> and are looking for contributors!
>
> About Shandor Xul:
> Shandor allows you to write applications in a UI agnostic framework
> built on the Mozilla XUL declarative mark-up syntax. Shandor is not
> code-gen! It's a runtime framework with agnostic interfaces that you
> code against. There's an live abstract DOM representing your
> application that you can interact with and bind your code to.
>
> Below are some of the Killer things Shandor can do for you:
>
> Built-in Binding Framework (including collections to UI)
> Includes and Overlays (overlays allow runtime changing of the UI, free
> plug-in framework!)
> IOC ready (Spring, Juice, etc.)
> Groovy event handler support.
> Built-in i18n
>
> Being able to change a UI without recompiling is fantastic for our
> users as well as our Graphic Designers. Not having to write and
> maintain the same code in 3 places... dead sexy.
>
> Shandor has been of great use to us and we hope that it can do the
> same for the larger java community. We're looking for anyone who would
> like to contribute to the project, from users to coders!
>
> The code, doc (some) and a sample application can be found 
> here:http://bitbucket.org/codeoncoffee/shandor-xul/wiki/Home
--~--~-~--~~~---~--~~
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: Validation problem

2009-05-27 Thread hezjing
Hi poonam
Instead of writing your own validation class, would you consider one of the
GWT validation libraries?
e.g. https://sourceforge.net/projects/gwt-vl/

I'm a newbie, and I'm still looking for a GWT validation library ... is
there anyone able to share their experience in GWT validation?


On Wed, May 20, 2009 at 8:43 PM, poonam  wrote:

>
> Can anyone help me in writing a simple gwt class for validating the
> input.
> My requirement is that, I need to check that the input in the textbox
> is alphabetic, and if the input is anything other than alphabet it
> displays the error message.
> Thanks
> >
>


-- 

Hez

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



Re: GWT and Hibernate XML files vs Annotations

2009-05-27 Thread Rafael Barrera Oro
Sorry for taking so long in replying and thank you for your answers. I am
trying to map the following relationship.

I have a contact table which holds common data such as name, last name,
observations, etc and i have a employee table which inherits all the fields
from the contact table and adds the employeenumber field. So, it will be a
simple case of inheritance with a table per sublass mapping

Thanks in advance!

Rafael


2009/5/21 eggsy 

>
> Hi Rafel,
>
> Yeah you can do everything in Hibernate Annotations its really quite
> powerful. We have moved to using it fully now instead of mapping
> files.
>
> Using the mapping file to simply hold our queries.
>
> What kind of relationship are you trying to map?
>
> Eggsy
>
> PS. Paul - yeah that framework does seem to be plugged quite a
> lot. ;)
>
> On May 21, 7:22 am, George Georgovassilis 
> wrote:
> > And Jim, no, we don't find Hibernate hard to use, especially since
> > it's a quasi-standard;-)
> >
> > On May 20, 7:56 pm, Jim  wrote:
> >
> > > Rafael,
> >
> > > If you find Hibernate is difficult to use, you may try Dreamsource ORM
> > > for your application. You can find an GWT example inhttp://
> www.gwtorm.com/mail/Mail.html.
> >
> > > Jimhttp://www.gwtorm.comforGWT ORMhttp://
> code.google.com/p/dreamsource-orm/
> >
> > > On May 20, 12:52 pm, Rafael  wrote:
> >
> > > > Hello everyone!
> >
> > > >I have the following problem and was hoping you guys could help me
> > > > out. I have the need to implement a relation inheritance (table per
> > > > subclass) so i searched the hibernate documentation.
> > > >The thing is that i am using a project structure which i took from
> > > > a tutorial i found, and i have the following configuration files:
> >
> > > > applicationContext.xml (Spring stuff i suppose)
> >
> > > > hibernate.cfg.xml (mappings)
> > > > database.hbm.xml (hibernate query definitions)
> >
> > > > My question is where should the code to define complex relations
> > > > should go, hibernate.cfg.xml or database.hbm.xml?
> >
> > > > Is it possible to take care of everything with annotations
> > > > (eliminating the need to change xml files)?
> >
> > > > Thanks in advance y'all!
> >
> > > > PD: Thank you Eggsy for your tutorial on GWT, Hibernate ans Spring
> > > > combined! very enlightning :)
> >
>

--~--~-~--~~~---~--~~
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: Handling focus/change events on composite widgets

2009-05-27 Thread Ian Bambury
Ah, I get it now.
Have a timer.

Start the timer when either box onBlurs. A few ms will do (25?) - you'll
have to test, but even quite large delays (500ms) might be acceptable.

Cancel the timer if either box gets focus

The timer validates the boxes when it runs. It doesn't really matter whether
the text has changed or not since the validation is not time consuming.

OR

Have one box and validate for acceptable strings - 1' 2" or 1ft 2in etc

Ian

http://examples.roughian.com


2009/5/27 retro 

>
> Hi Ian,
>  Sorry for being vague. The use case is having a item height
> widget with separate boxes for height in feet and one for inches. I
> need to be able to fire validation on this box as a whole when one of
> the box changes but only if the focus is not in the other boxes, so
> this logically needs to behave as one box for focus lost events. This
> could be true for another use case as well where widget has 3
> textboxes but they need to fire focus lost as one when some boxes
> value changes, but not if user is still focused on the other two
> boxes.
>
>
> >
>

--~--~-~--~~~---~--~~
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: Problem with using History tokens and Frames in IE (very basic code included)

2009-05-27 Thread twdarkflame

Ok, an update on progress in case anyone finds it usefull;

The above overkill method does work;
If the HTML is loaded as part of the main DOM, gwt hyperlinks changing
the history token wont refresh the page anymore in IE.

If anyone else's use's this message, I'd suggest only using it for IE,
and to put a message up blaming the users choice of browser for the
extra second or two loading time.

On May 21, 12:17 pm, twdarkflame  wrote:
> Ok, I have come up with a work-around, but its such a kludge and
> rather extreme, Id still be interested in other solutions to this
> problem. (Id also like to here if its just IE6 or IE7/8 too, as I dont
> have those installed).
>
> My preposed solution is thus;
>
> 1) Use a HTMLPanel rather then an iFrame
> 2) Load the HTML into a string.
> 3) Parse the string, swapping ,
> giving each a unique ID.
> 4) Creating a Hyperlink object that has "#oldlinkurl" as its token.
> 5) Place the Hyperlink objects in the HTMLPanel at the correct places
> using "addAndReplaceElement"
> 6) Add a historylistener to the main app that detects when the token
> is set to a url, and then loads that new url into the HTMLpanel,
> starting the whole process again from step 2.
>
> Now, I believe this will work, asIEdosnt refresh the page for
> internal settings of the history token, only when a link is clicked.
>
> However, its naturally a rather ridiculous, not to mention slow,
> method to go though.
>
> On May 18, 5:05 pm, darkflame  wrote:
>
>
>
> > Specificaly, it seems impossible to have a link within a Frame change
> > the token of the parent (top) page, without the whole thing
> > refreshing.
>
> > For instance this;
>
> >http://www.darkflame.co.uk/iFrame%20problem/FrameTest.html
>
> > Click on the links in firefox, and the token changes nicely.
> > Click on the links inIE, and the whole page refreshs.
>
> > Now, the interesting thing is this problem only happens if the History
> > is actualy used listened for.
> > The code on that page is just;
> > =
> > public void onModuleLoad() {
>
> > //iframe
> >         Frame testFrame = new Frame();
>
> >         RootPanel.get().add(testFrame,100,100);
> >         testFrame.setSize("90%","90%");
> >         testFrame.setUrl("2.html");
>
> >             //* REMOVE THIS LINE AND IT WORKS INIE*
> >             History.addValueChangeHandler(this);
> >             //*
> >         }
>
> >         public void onValueChange(ValueChangeEvent event) {
> >                 String historyToken = event.getValue();
> >                 Window.alert("page changed to:"+historyToken);
> >         }
> > 
> > (just a standard project made with the plugin, with that code, and the
> > html you see used on the two pages)
> > 
>
> > My theory;
>
> > I'm guessing that by using the GWT history, the page is put into an
> > extra frame which somehow stops the links from working without
> > refreshing the page. Allthough refering to "top" in the javascript
> > still has the same effect.
>
> > Interesting to note; The history changes first, then the page refreshs
> > afterby a clear half second or so.
>
> > I hope someone can help with this, as this is actually a really major
> > issue for my project. Using iFrames becomes kinda worthless to me if
> > the historytokenscant be relied apon as a way to pass messages to
> > the containing app.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is there a Java URL encoder class that can be used in both Java/Javascript?

2009-05-27 Thread Jason Essington

perhaps you could use GWT.isClient() to decide which implementation to  
use, the GWT version in a GWT environment or the java version in a JVM?

-jason

On May 27, 2009, at 12:30 AM, TimOnGmail wrote:

>
> Hi all...
>
> I have a class that I'd like to use in GWT, and have it work both in a
> freestanding Java app, and in GWT.  The problem is, it needs to do
> some URL encoding, but GWT's URL class does it's encoding/decoding in
> a native method (in Javascript), and URLEncoder/URLDecoder in Java are
> not allowed in GWT.
>
> Does anyone know if a Java class out there on the web that implements
> a good-enough URL encoding/decoding mechanism and which does not
> depend on any disallowed classes?
>
> - Tim
>
> >


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



Disable the TAB key effect on a SuggestBox

2009-05-27 Thread Twentyseven

Hello,

I'd like to know if it's possible to disable the TAB key effect on a
SuggestBox :
by default the TAB key select the suggestion and go to the next field.
I'd like to go to the next field without selecting the suggestion and
keeping what the user entried.

Thank's,

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



Re: Handling focus/change events on composite widgets

2009-05-27 Thread retro

Hi Ian,
  Sorry for being vague. The use case is having a item height
widget with separate boxes for height in feet and one for inches. I
need to be able to fire validation on this box as a whole when one of
the box changes but only if the focus is not in the other boxes, so
this logically needs to behave as one box for focus lost events. This
could be true for another use case as well where widget has 3
textboxes but they need to fire focus lost as one when some boxes
value changes, but not if user is still focused on the other two
boxes.


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



Re: GWT design question

2009-05-27 Thread Chris

I do this type of thing also.  For us it comes down to packing the
deployments correctly.

We have multiple client applications in the same gwt project (we use
eclipse).  We then have a gwt xml file for each.  During our build
process we build each of the applications separately and the last step
of the process creates a war with the client apps and server classes.
We then have different html entry pages for each app.

If you want 1 entry page,the other option is to use deferred binding
and use a different main module with the entry point for each
different platform.  One for desktop browsers (the default one) and a
different one for the iPhone which would then be overriden in the
gwt.xml.  Since I haven't done this before, I'm not sure if the entry
point can be replaced, but it should be possible - even if all the
main entry point does is call another class that can be deferred
bound.

Chris...

On May 27, 7:57 am, Paul van Hoven 
wrote:
> I've developped a GWT app which runs fine. Now a special version for
> the iPhone of my website is needed. So far i know gwt runs well on the
> iPhone. But i have a problem.
>
> On the Desktop-Page the user has the full functionality of my webapp.
> But on the iPhone he should only be able to use certain functions due
> to simpler navigation. Both pages use the same business logic on the
> server. Only the view is different.
>
> I thought of this approach:
> If the user comes from a desktop my initial servlet will dispatch him
> to the desktop version of my site
> If the user comes from an iphon my initial servlet will dispatch him
> to the iphone page
>
> The problem: i do not want to combine the iphone version and the
> desktop version since then the user would have to load both apps
> although he would only use one part at a time.
>
> Therefore i want to split up both parts. What is the best approach for
> this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hibernate and GWT - location for hibernate xml mapping files under a GWT project - org.hibernate.MappingNotFoundException

2009-05-27 Thread nico

Thank you very much, you solved this problem !
--~--~-~--~~~---~--~~
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: Hibernate and GWT - location for hibernate xml mapping files under a GWT project - org.hibernate.MappingNotFoundException

2009-05-27 Thread nico

Thank you very much, you solved my problem !

--~--~-~--~~~---~--~~
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: Handling focus/change events on composite widgets

2009-05-27 Thread Ian Bambury
You need to be more specific, more unambiguous, and less open to
interpretation - if you can't then maybe give a real-life example of its
use.
Ian

http://examples.roughian.com


2009/5/27 retro 

>
> anyone has not tackled this? please reply?
> >
>

--~--~-~--~~~---~--~~
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: Handling focus/change events on composite widgets

2009-05-27 Thread retro

anyone has not tackled this? please reply?
--~--~-~--~~~---~--~~
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 design question

2009-05-27 Thread Paul van Hoven

I've developped a GWT app which runs fine. Now a special version for
the iPhone of my website is needed. So far i know gwt runs well on the
iPhone. But i have a problem.

On the Desktop-Page the user has the full functionality of my webapp.
But on the iPhone he should only be able to use certain functions due
to simpler navigation. Both pages use the same business logic on the
server. Only the view is different.

I thought of this approach:
If the user comes from a desktop my initial servlet will dispatch him
to the desktop version of my site
If the user comes from an iphon my initial servlet will dispatch him
to the iphone page

The problem: i do not want to combine the iphone version and the
desktop version since then the user would have to load both apps
although he would only use one part at a time.

Therefore i want to split up both parts. What is the best approach for
this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Wierd errors when trying to test GWT app in IE 7.0

2009-05-27 Thread Neo

Hi,
I am working on a database driven GWT application. In my application I
have a Multi Column Tree control which again is populated by db values
and it allows user edits also. I have used Smart GWT in my application
to create the Multi-Column tree.

My application runs fine when I run it in hosted mode but when I try
running it in IE (by using Compile/Browse) button it the following
compile errors :

[ERROR]  The type com.google.gwt.dev.js.rhino.ObjToIntMap$Iterator
cannot be resolved. It is indirectly referenced from required .class
files

[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.createParameter(BuildTypeMap.java:392)
at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.mapParameters(BuildTypeMap.java:514)
at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit
(BuildTypeMap.java:314)


Could you please help me out in resolving these issues ?
I want to deploy my application but due to these errors I am not to
proceed.
Please help me.

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



Re: Hibernate and GWT - location for hibernate xml mapping files under a GWT project - org.hibernate.MappingNotFoundException

2009-05-27 Thread Raul

Do not put the file anywhere inside WEB-INF directory.
Put it inside the root directory of your class path. i.e. say you are
modifying the sample Guestbook application. then put it just inside
the src directory like.

src
 hibernate.cfg.xml
 GuestBook
 GuestBook.client
 GuestBook.server
war
  WEB-INF
 classes
 lib
 web.xml
   GuestBook.css
   GuestBook.html


The compilation unit automatically place it under war/WEB-INF
directory wherever it would need to be.


Raul



On May 26, 8:44 pm, nico  wrote:
> Hi all,
>
> I'm developing an application with Hibernate3, I encountered the
> following error :
>
> I manually copied the hibernate xml mapping files in WEB-INF/classes/
> com/model. However the problem is that GWT automatically deletes the
> xml files under this path therefore prevents hibernate from working
> afterwards at init time:
>
> ---
> Initial SessionFactory creation
> failed.org.hibernate.MappingNotFoundException: resource: com/commons/
> model/Credit.hbm.xml not found
> ---
>
> Where can I put the hibernate xml mapping files under the GWT project
> so that they are found by hibernate at run time?
>
> Your help is very much 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is there a Java URL encoder class that can be used in both Java/Javascript?

2009-05-27 Thread Thomas Broyer



On 27 mai, 08:30, TimOnGmail  wrote:
> Hi all...
>
> I have a class that I'd like to use in GWT, and have it work both in a
> freestanding Java app, and in GWT.  The problem is, it needs to do
> some URL encoding, but GWT's URL class does it's encoding/decoding in
> a native method (in Javascript), and URLEncoder/URLDecoder in Java are
> not allowed in GWT.

Just a note on URLEncoder/URLDecoder, keep in mind that they are only
equivalents of the encodeURIComponent/decodeURIComponent JS methods;
*not* encodeURI/decodeURI. I've seen (reported, actually) this error
in Alfresco (and their might be many other apps out there with this
same issue), where it causes problems with "+"s:
https://issues.alfresco.com/jira/browse/ETWOTWO-1153
(the workaround was to use a servlet-filter to replace "+" with "%2B"
in all but the query-string part of the request URL)

> Does anyone know if a Java class out there on the web that implements
> a good-enough URL encoding/decoding mechanism and which does not
> depend on any disallowed classes?

I'd go the same way as Ian said; or maybe rather take advantage of
 in GWT: instead of using an interface, make a class
that does the "Java" thing; and in a , re-implement
that class deferring to com.google.gwt.http.client.URL)
--~--~-~--~~~---~--~~
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: AJAX app stuck when running Selenium RC

2009-05-27 Thread Carl Pritchett

Not sure if this is the same issue but Selenium has a clash with GWT
that causes certain operations to "freeze" (namely RPC calls after
clicks). The answer was to compile with Obfuscated mode (-style OBF).

The issues is reported here: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=2861

At the very least it proves that Selenium does indeed disrupt the
application execution.

On Apr 1, 8:25 pm, sthueb...@googlemail.com (Stefan Hübner) wrote:
> To proof that Selenium does disrupt application execution I've
> modified the application so that it sends messages to the server in
> 1000ms intervalls. Those messages should get logged in the webserver
> log.
>
> Now if I open the deployed application messages appear in the log as
> expected. If I then fire up the Selenium tests on the very same
> application no such messages end up on the server!
>
> I haven't found any info whether this happened to other people as
> well. But I'm asking again: Has anybody had similar issues? And maybe
> a solution?
>
> Thanks,
> -Stefan
>
> sthueb...@googlemail.com (Stefan Hübner)
> writes:
>
> > Hi,
>
> > We have a problem with testing a GWT (Google Web Toolkit) based
> > application. The application has different dialogs which get
> > attached/unattached to the DOM due to user navigation.
>
> > Now the problem is, when running Selenium RC test (using the Selenium
> > Client Java Driver and Selenium server 1.0-beta-2) the app gets stuck
> > while Selenium tests wait for elements to become present. We use
> > isElementPresent() via the provided Wait class as recommended in the
> > Selenium-Wiki FAQ. It seems Selenium blocks the normal javascript
> > execution of the application, since the elements to wait for never show
> > up and it's waiting forever. Under normal circumstances attaching these
> > elements is a snap (a matter of milliseconds).
>
> > This is a serious issue since it brakes all our tests. How could I get
> > around this behaviour?
>
> > Thanks,
> > -Stefan
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---