Invoke GWT Entry point from extrenal java script included in separate/external HTML

2008-09-29 Thread Manish Kumar

Hi everybody,

Thanks all for great co-operation and support.

I am a bit new to GWT Though i have learnt a lot from this mailing-list in 
last couple of weeks

I am stuck up with How to call GWT component ( mean to say ,give the the 
control to GWT entry point class for excuting onModuleLoad  )
from extrenal HTML document.

While working on integartion of GWT with external component, I am bit 
confused.
My requirement is like this : I have a html displayed in the browser which 
is having mutiple buttons.
This HTML is not part of GWT .This is being displayed in browser by some 
other component(currently .Net).
On click of HTML Button in the browser I want to call gwt component that 
makes a call either to external tomcat server
or displayes GWT widgets (widget button click , it also makes a call to 
external tomcat).

One more thing is that can I have mutiple HTML for a single entry point so I 
can display various widget on requirement.I want to handle mutiple condition
in a single own entrypoint class( inside the method onModuleLoad ) .

Can anybody please provide ideas to get rid of this.

Regards
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 5:16 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> The main issue is that jsp existed on external webserver accepts only 
>> file
>> path to save the comments content.
>
> I think you confuse PATH_INFO with file path. The path-info of a URL is
> everything in the URL after the actual resource, so given a JSP-page
> that is accessed
> via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt
> the PATH_INFO in that case would be /my/path/info/hello.txt (I write
> PATH_INFO that way because this is the variable being used when using
> the CGI-gateway.
>
> In servlets (i.e. in JSP-pages as well) you can access the path-info-
> value with getPathInfo() provided by the HttpServletRequest (that
> can be accessed with the variable request inside JSP-pages).
>
>> So I am force to create file having comments for each clicked item on the
>> browser.
>
> I still don't see a need for the creation of files but it is looking
> more like a special URL to be constructed. Again RequestBuilder would
> be the class of choice in that case. On the other hand, if your JSP-
> page expects a previous file-upload, you're screwed. In that case,
> before starting a Signed Applet Project, you should consider extending
> your JSP-page/servlet to accept the "file" as content of a POST-request.
>
>> Sorry to ask Once more about (2) as I am bit confused , does RPC 
>> mechanisnm
>> work on production environment also.   If yes ,Can I process as mention 
>> in
>
> RPC works on production systems as well. gwt-servlet.jar and your server-
> classes must be in the classpath of your web-application/server. As well,
> your web.xml must contain a servlet-entry for your servlet. If you want
> to use the PATH_INFO-functionality, you might need two entries, one
> with the URL-pattern /MyServletPattern and /MyServletPattern/*
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread joseanquiles

Hi Ananda,
have you added the gwt-incubator.jar to classpath in the compilation
script? File xxx-compile.cmd
Regards,
José Antonio



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



IE8

2008-09-29 Thread [EMAIL PROTECTED]

I've searched around this group, the buglist, googling keywords like
'gwt ie8' and 'gwt ie8 compatability', etc and I find little all
together on GWT and IE8.  I know IE8 is in beta, but still It makes me
nervous when QA gives us blocker bugs like "Does not work in IE8
Beta".  Obviously I need to (somehow) install IE8  and replicate the
bug my QA team encountered and report it to the bugilist, but I was
just curious if there was some official line on IE8 compatibility?
You don't even have to go as far as "Google is fully supported to
supporting IE8 when it emerges from beta", but maybe just a something
like http://extjs.com/forum/showthread.php?t=45610";>this
just to let us know you have your eye on the ball?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + comet?

2008-09-29 Thread [EMAIL PROTECTED]

I hate to say it but you've got me wondering now.  I mean, it would be
a whole lot easier to do considering you can see the source code of
your competitor a lot easier these days...

On Sep 7, 5:29 pm, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote:
> Glad you liked the missive. I've saved a bookmark for future reference
> in case someone else comes in and asks (Comet usually comes up once a
> month or so).
>
> For game development: Just screw IE. There's no way to do halfway
> decent graphics on IE, period. Go flash, or tell people to switch to
> firefox/opera/safari/comet.
>
> All 3 non-IE browsers are trying to speed up javascript. Opera 9.5 has
> a fairly spiffy javascript engine already, and both firefox and webkit
> are on the verge of shipping custom very smart and very fast VMs for
> javascript (tracemonkey for firefox, and squirrelfish for safari).
> Then there's V8, which you can see at work today in Google Chrome. It
> looks like V8, Tracemonkey, and squirrelfish will all be roughly as
> fast as one another (can you say meep meep?) - should do wonders for
> attempts to write games in canvas.
>
> Which brings us back to IE. F!*k IE.
>
> There's future hope though:
>
> I believe apple has rescinded copyright/patent claims on canvas, or
> they ran out, so in theory nothing is stopping IE from implementing
> them now - though as I understand it, Microsoft never expressed
> interest in supporting them.
>
> Microsoft is part of the W3C and evidently they have not been able to
> use their considerable weight there to stop the latest news at W3C.
>
> W3C's own home-grown XHTML 2.0 effort has effectively been mothballed
> indefinitely, and instead HTML5 has been adopted (HTML5 started as
> something from the WHAT-WG, which is a much less officious entity
> compared to W3C, and consists of the developers of Opera, WebKit
> (Safari), and Gecko (Firefox/mozilla). - e.g. the anti-IE league, and
> the main reason stuff like canvas has seeded so quickly to the other
> non-IE browsers) HTML5 has been dollied up with some lip service to
> XHTML but make no mistake: Few really expected the W3C to 'fold' to
> the clearly superior HTML5 work in progress. HTML5 includes Canvas
> (seehttp://www.whatwg.org/specs/web-apps/current-work/multipage/the-canva...
> for proof). The question now becomes: Does Microsoft break even more
> from the W3C than they already have (remember, IE isn't exactly
> standards compliant). So far betas ofIE8indicate that Microsoft is
> seriously attempting to build a more compatible browser, so there's
> hope. Then again, armchair analysts (like myself ㋛) believe that
> Microsoft is still trying to prevent the web from becoming the host of
> virtually every computer app out there, in order to keep their own OS
> (Windows) in a safe market leader position. Microsoft's stranglehold
> on the web community by way of IE is one of the things holding web
> apps back, so there are plenty of pessimists who believe that the
> final version ofIE8will be a big disappointment.
>
> On Sep 7, 9:41 pm, markww <[EMAIL PROTECTED]> wrote:
>
> > Thanks for the excellent response, that was very helpful. Everything
> > makes sense, I was taking a look at Jetty and it seems easy to use for
> > what I want to do. I had been writing my own java nio server for a
> > class I was taking, it's cool to see how Jetty has taken advantage of
> > the nio stuff to support 'comet'.
>
> > From a game development point of view, this is great because we can
> > wait for the server to send us data instead of constantly polling it.
>
> > One thing that still seems to be missing is fast graphics support, to
> > actually render dynamic game data. I was working with the gwt canvas
> > intensively a few months ago, but was disappointed to find out that
> > IE's support for it was just horrible. Firefox and Safari (and
> > probably Chrome now) can do a decent job of rendering simple
> > primitives fast in a . In fact, my iPhone could render
> > primitives faster than IE! I wonder if there is any development on
> > this (providing a fast canvas for direct pixel manipulation) by the
> > browsers. Right now it seems like the only way to do it is by using
> > Flash.
>
> > Anyway thanks again for all those answers, definitely got me in the
> > right direction,
>
> > Mark
>
> > On Sep 7, 6:30 am, Reinier Zwitserloot <[EMAIL PROTECTED]> wrote:
>
> > > As you said, comet is a complex problem on the server side. On the
> > > client it's relatively straightforward.
>
> > > Some issues:
>
> > > 1) You either need an async webserver (such as something based on the
> > > fairly new java Simple, or the continuation support available in
> > > jetty), or you need an OS + VM combo which can handle tons of threads
> > > without a high overhead (the latest linux + the latest java 6 seems
> > > capable of this). Be especially careful if you've got a frontloader
> > > (such as Apache) that merely redirects to your actual java stuff.
> > > Apache, out of the b

Re: Google, how do I use your toolkit and make a site that is also searchable by your webcrawler?

2008-09-29 Thread Ian Petersen

I don't work for Google, and I'm not doing anything with GWT that I
want to be crawlable, but you might search the web for "hijax", and
see what you can make of it.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Google, how do I use your toolkit and make a site that is also searchable by your webcrawler?

2008-09-29 Thread bill robertson

I don't want to create two websites, one that is "traditional" i.e.
link driven, and another that is ajax driven.  I'm not even sure how
to really manage that either, as any google search that hit the site
would go to the link driven site, when I really want visitors to go to
the ajax driven part.

AFAIK, I also can't "fake it" by showing your crawler the the link
driven site, and then somehow sending customers to the appropriate
Ajax part of the site.  IIRC, that is a quick trip to getting
delisted.

Is there some way to manage it with the "hyperlink" classes that I
just don't understand?  If I am missing something obvious, then please
feel free to heap scorn upon me, after you give me a good link.

So please Google, I want to use your uber-cool toolkit, but I need to
know how to make it work with your webcrawler.

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gwt with php

2008-09-29 Thread Ian Bambury
Forget the 'Framework.' bit I should have removed that.

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



Re: Gwt with php

2008-09-29 Thread Ian Bambury
Another way to get PHP responses in hosted mode is like this

Create the url...

String url = Framework.getBaseUrlWithSlash() + filePathAndName;

where getBaseUrlWithSlash() is

public static String getBaseUrlWithSlash()
{
String url = GWT.getModuleBaseURL();
String baseUrlSplitOnSlash[] = url.split("/");
if(baseUrlSplitOnSlash[2].equals("localhost:")) url = "
http://localhost";;
return url + "/";
}
Then point your web server at your /public/ folder

If you regularly swap between projects, it can be a pain to reset the doc
root and restart, so you can have different projects using different ports.
Abyss is good for this. the free version only allows you to have one site
per server, but you can run as many copies of the server as you like, and
start them up as and when and if you need them.

Don't forget that if you are developing the client side, you can put a valid
response as plain text in the (supposedly) PHP (*.php) script file and then
you don't need PHP or a web server. You can also test invalid PHP responses
this way without having to screw up your system to get the invalid response.

Ian

http://examples.roughian.com

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



Re: FocusPanel not allowing focus on nested text fields

2008-09-29 Thread Michael Neale

I am just trying to "detect" that the user has clicked on ANYTHING
within the FP. I just capture an event that they clicked and note
that, that is all.

On Tue, Sep 23, 2008 at 6:05 PM, Thomas Broyer <[EMAIL PROTECTED]> wrote:
>
>
>
> On 23 sep, 07:11, "Michael Neale" <[EMAIL PROTECTED]> wrote:
>> If I have a composite, which in turn has text fields in it, when I
>> wrap all that in a FocusPanel - I can't seem to *easily* click on it
>> (I have to click a few times) to set the focus on the field to edit
>> it.
>>
>> Any ideas on what this is? (tabbing seems to work - its the mouse
>> clicking). Am I abusing FocusPanel?
>
> Maybe (probably?). What are you using the FocusPanel for? What's the
> use case? What's the intended behavior?
> >
>



-- 
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com

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



Re: Gwt with php

2008-09-29 Thread Jim Freeze

On Mon, Sep 29, 2008 at 7:56 PM, stymie <[EMAIL PROTECTED]> wrote:
> I cannot figure out how to get gwt working with php on the server
> side. I know the tomcat server shell will not work. I am using eclipse
> and gwt designer.
>
> Does anyone know of any good resources for getting gwt to work with
> php?

It's a bit tricky. The following should get you going.
In the project explorer, right click the project and select
properties. Then select run/debug settings and click edit. Select the
arguments tab. Under program arguments you need something like:

-out www -noserver -whitelist "^http[:][/][/]127[.]0[.]0[.]1"
http://127.0.0.1:4000/yourindex.html

Under VM arguments you can do something like:

-XstartOnFirstThread -Xmx1024M -Xms512M

You don't need the -XstartOnFirstThread if you are not running on OS X.

Note, you will need to have your server up and running or the host
window will default to it's built in url.

Ian has already responded with how to send requests and get responses
back from the server.

Hope that helps.

Jim

>
> Thanks
> >
>



-- 
Jim Freeze

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gwt with php

2008-09-29 Thread Ian Bambury
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
url);
builder.setHeader("Content-Type",
"application/x-www-form-urlencoded");
builder.sendRequest(parameters, callback);

Ian

http://examples.roughian.com


2008/9/30 stymie <[EMAIL PROTECTED]>

>
> Hi,
>
> I cannot figure out how to get gwt working with php on the server
> side. I know the tomcat server shell will not work. I am using eclipse
> and gwt designer.
>
> Does anyone know of any good resources for getting gwt to work with
> php?
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Ian Bambury
Zach/Grundle/Whatever,

The setup you describe works perfectly OK.

If posters to this group don't post real code which exhibits the behaviour
they are complaining of, then it wastes the time of anyone trying to
help and also reduces their chance of being helped the next time. "Wolf!"
and all that.

Ian

http://examples.roughian.com


2008/9/29 Grundle <[EMAIL PROTECTED]>

>
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
> > Srini,
> >
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
> >
> > -Zach
> >
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
> >
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
> >
> > > flexTable.setWidth("200px");
> >
> > > -Srini
> >
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
> >
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began
> trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
> >
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
> >
> > > > The data shows up as intended.  However if I do
> >
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
> >
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
> >
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
> >
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
> >
> > > > i.e.
> >
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Joe Cole

We have experienced issues with flextable when setting up the table in
DeferredCommands

e.g.:

List commands = new ArrayList(){{
  add(buildStructure());
  add(buildCellWidgets());
  add(setInitialValues());
  add(setBackgroundColors());
}};
Incrementally.execute(commands);

I am not sure what was happening, but basically it just didn't show &
no amount of debugging helped.

Perhaps this is what you are running into as well? We just reverted to
the non-deferred method of building the table.

Joe

On Sep 30, 3:59 am, Grundle <[EMAIL PROTECTED]> wrote:
> I am currently developing an application where GWT has been the
> primary API.  So far things have gone fairly well until I began trying
> to implement a data entry portion.  I am experience strange behavior
> with FlexTable where if I use
>
> FlexTable.setText(0, 0, "foo");
> FlexTable.setText(0, 1, "bar");
>
> The data shows up as intended.  However if I do
>
> FlexTable.setWidget(0, 0, new Label("FooBar"));
> FlexTable.setWidget(0, 1, new TextBox());
>
> suddenly the components are not appearing on the screen.  I cannot
> figure out why setText data appears, but setWidget does not want to
> render.  I experienced the same behavior using Grid as well, so I am
> at the point where I feel like I have missed something obvious.  I
> feel like I have tried everything, such as TextBox.setVisible() ,
> TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> This really makes no sense.  As for the other Widgets/Panels that are
> being used see the following:
>
> Specifically I am adding the FlexTable to a VerticalPanel, which is
> then being added to a DockPanel.
>
> i.e.
>
> VerticalPanel.add(FlexTable);
> DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Gwt with php

2008-09-29 Thread stymie

Hi,

I cannot figure out how to get gwt working with php on the server
side. I know the tomcat server shell will not work. I am using eclipse
and gwt designer.

Does anyone know of any good resources for getting gwt to work with
php?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.52 Compile error

2008-09-29 Thread ben

My Solution for InvalidJarIndexException:
1. If you are including any jars built from GWT, they all need to be
compiled in the latest library as well
2. I had an old gwt-ext library in my libs folder, and when I deleted
it, all problems went away.

Hope that helps someone

On Sep 29, 3:17 pm, ben <[EMAIL PROTECTED]> wrote:
> Did you fix this?  I'm getting the same error.  The checksum however
> matches.
>
> On Sep 11, 3:42 am, timmys <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm trying to upgrade my GWT 1.4 project to 1.52. But I get this
> > strange exception when invoking the compiler. I can compile the exact
> > same code with 1.4 perfectly.
> > Has anyone seen this before?
>
> > Exception in thread "main" sun.misc.InvalidJarIndexException:Invalid
> >index
> > at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
> > at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
> > at sun.misc.URLClassPath.getResource(Unknown Source)
> > at java.net.URLClassLoader$1.run(Unknown Source)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at java.net.URLClassLoader.findClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClass(Unknown Source)
> > at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Unknown Source)
> > at com.google.gwt.dev.javac.JdtCompiler
> > $INameEnvironmentImpl.findType(JdtCompiler.java:140)
> > at com.google.gwt.dev.javac.JdtCompiler
> > $INameEnvironmentImpl.findType(JdtCompiler.java:125)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.j
> > ava:122)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.j
> > ava:178)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:
> > 2391)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:
> > 2129)
> > at
> > org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveTyp
> > e(ParameterizedSingleTypeReference.java:98)
> > at
> > org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(Parame
> > terizedSingleTypeReference.java:222)
> > at
> > org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:
> > 1
> > 14)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:
> > 1121)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.jav
> > a:915)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
> > 961)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(Compil
> > ationUnitScope.java:290)
> > at
> > org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnv
> > ironment.java:218)
> > at
> > org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:
> > 603)
> > at
> > org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:
> > 357)
> > at
> > org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
> > at
> > com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:277)
> > at
> > com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:193)
> > at
> > com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:
> > 115)
> > at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:
> > 327)
> > at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
> > at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
> > at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to access event from another widget

2008-09-29 Thread anabillo

I think there is a simpler way to do this for example if you modify
you code  iCombo.java to be abstract

/
* iCombo.java
/
public abstract class iCombo extends Composite implements
SourcesChangeEvents
{
private HorizontalPanel hPanel = new HorizontalPanel();
private ListBox ListA = new ListBox();
private ListBox ListB = new ListBox();
private ListBox ListC = new ListBox();
private ChangeListenerCollection listeners = new
ChangeListenerCollection();

public abstract void manageAllListeners( ListBox  listBox); // you
need to have this method that will manage your listener in this class
public iCombo () {
hPanel.add(ListA);
hPanel.add(ListB);
hPanel.add(ListC);

FillList();

ListA.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
  //   listeners.fireChange(ListA);
manageAllListeners(  ListA); // use this
}
});
ListB.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
  manageAllListeners(  ListB);
}
});
ListC.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
   manageAllListeners(  ListC);
}
});

initWidget(hPanel);
}

private void FillList() {
ListA.clear();
ListA.addItem("ListA1");
ListA.addItem("ListA2");
ListA.addItem("ListA3");
ListB.clear();
ListB.addItem("ListB1");
ListB.addItem("ListB2");
ListB.addItem("ListB3");
ListC.clear();
ListC.addItem("ListC1");
ListC.addItem("ListC2");
ListC.addItem("ListC3");
}

public void addChangeListener(ChangeListener listener) {
listeners.add(listener);
}

public void removeChangeListener(ChangeListener listener) {
listeners.remove(listener);
}

}


now in the ComboParent when you try to create an instance of iCombo
it will ask you to add unimplemanted method ..see the example

/
* ComboParent.java
/
public class ComboParent extends Composite {
private VerticalPanel vPanel = new VerticalPanel();
private iCombo MyCombo = new iCombo(){
public  void manageAllListeners( ListBox  listBox){

// here you can add what you want
}
};

private Button btn1 = new Button("OK");
private TextBox txt1 = new TextBox();

public ComboParent() {
vPanel.add(txt1);
vPanel.add(MyCombo);
vPanel.add(btn1);

initWidget(vPanel);
}

}

in the same way you can go through the other class.

hope that will help you .

On Sep 29, 4:27 pm, YoeZ <[EMAIL PROTECTED]> wrote:
> Thank you very much, thomas
> here's the final sample code and it really works... :)
>
> but the problem is, in the MainMenu, I don't know which listbox that
> send the listener.
> in the MainMenu, I provide three textboxes
> txtListA = catch the event from listA
> txtListB = catch the event from listB
> txtListC = catch the event from listC
> so, I have to know first, the name of the sender widget, (which is
> listA? listB? or listC?)
> then set the txtListA.setText(listA); and so on
>
> I have no idea, how to get the sender name.
> I have tried sender.getclass().getname() but the result is not what I
> want.
>
> please help me (again) ;)
>
> best regards
>
> /
> * iCombo.java
> /
> public class iCombo extends Composite implements SourcesChangeEvents
> {
>     private HorizontalPanel hPanel = new HorizontalPanel();
>     private ListBox ListA = new ListBox();
>     private ListBox ListB = new ListBox();
>     private ListBox ListC = new ListBox();
>     private ChangeListenerCollection listeners = new
> ChangeListenerCollection();
>
>     public iCombo () {
>         hPanel.add(ListA);
>         hPanel.add(ListB);
>         hPanel.add(ListC);
>
>         FillList();
>
>         ListA.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListA);
>             }
>         });
>         ListB.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListB);
>             }
>         });
>         ListC.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListC);
>             }
>         });
>
>         initWidget(hPanel);
>     }
>
>     private void FillList() {
>         ListA.clear();
>         ListA.addItem("ListA1");
>         ListA.addItem("ListA2");
>         ListA.addItem("ListA3");
>         ListB.clear();
>         ListB.addItem("ListB1");
>         ListB.addItem("ListB2");
>         ListB.addItem("ListB3");
>         ListC.clear();
>         ListC.addItem("ListC1");
>         ListC.addItem("ListC2");
>         

Re: Form submitted twice?

2008-09-29 Thread marcelstoer

On Sep 29, 11:54 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 28 sep, 21:26, marcelstoer <[EMAIL PROTECTED]> wrote:
>
> > I used the code provided as an example 
> > inhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
> > to build a form panel.
>
> > However, the form seems to get submitted twice as the
> > Window.alert("The text box must not be empty"); is executed twice. Any
> > ideas as for why this happens?
>
> Might be issue 
> 1585:http://code.google.com/p/google-web-toolkit/issues/detail?id=1585

It's issue 1585, indeed. And comment 10 most certainly helped:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1585#c10.

Thanks a bunch.

Marcel
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and servlet session

2008-09-29 Thread sim123

Thanks for reply, actually I don't know where exactly the problem is,
please bare with me.

First thing is : Compile/Browser option is not working when Filter is
enabled, this filter just checks for existing session using
request.getSession(false), if session exists request is valid other
wise I am throwing an error message saying "session is null".

In hosted mode everything works fine, no issues at all.

Another thing which I noticed is strange behavior of
request.getParameter method in case of RPC. RPC method are http POST
method and now I am passing sessionID with request payload i.e.
another parameter in my method

public String getData(String studentID, string sessionID);

I am trying to get this sessionID in my filter's dofilter method

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) ServletException {
if ( ! isLoginRequest(request) ) {
session = ((HttpServletRequest) request).getSession();
String sessionIDFromReq =
((HttpServletRequest)
request).getSession().getParamter("sessionID"); //this ID is null

if ( session.getID().equals( sessionIDFromReq) ) {
chain.doFilter(request, response);

} else {

throw new ServletException("session is null");
}
}
}

The only thing I know is for some reason I am not getting sessionID in
filter even thought session is created. Please help, I hope I made
things little more clear this time.
Thanks
On Sep 29, 6:14 am, walden <[EMAIL PROTECTED]> wrote:
> I'm not sure, but I think Tomcat should 
> treathttp://localhostandhttp:// as different origins requiring 
> separate sessions.
> If this is your only problem, then don't use the IP address to access
> your site.
>
> If it's not the only problem, thenpostsome meaningful diagnostics
> from your server log.  You should have done that in your firstpost.
>
> Walden
>
> On Sep 28, 1:08 pm, sim123 <[EMAIL PROTECTED]> wrote:
>
> > Someone please look into this issue, I really have no clue what is
> > going on.
>
> > On Sep 27, 3:38 pm, sim123 <[EMAIL PROTECTED]> wrote:
>
> > > I have a simple application built in GWT and java servlet
>
> > > 1. User login : user logs in using a asynchronous call to server, RPC
> > > service creates a session and return it to client, on OnSuccess of
> > > this login call I load data on to browser, there are few RPC calls and
> > > one call to downlaod pictures from another tomcat instance.
>
> > > 2. I have servlet filter implemented to check if the request is valid
> > > or not, based on session coming from Cookies this filter validates the
> > > request and pass it to appropriate RPC or non RPC Servlet.
>
> > > Now everything is working fine in hosted mode browser but when I do
> > > compile/browse I get authentication exception in filter, I don't know
> > > ehy is it so as I am getting the session ID back in onSuccess method
> > > of Login call and after that I am performing all other operaitons. I
> > > created a war file and deployed it on external tomcat, everything
> > > works fine if I type "http://localhost:8080/login/Login.html";, but if
> > > I type ip address of my machine instead of localhost I get same
> > > authentication exception saying session is null, is there something
> > > realated to redirecting to another tomcat's instance when loading
> > > images? If that is the case why it is not happening in hosted mode and
> > > in"localhsot" ?
>
> > > I would really appreciate if somebody could please help me with this
> > > issue.
>
> > > Thansk for all the help and support- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: tooltip box

2008-09-29 Thread Adler

BTW, is there any examples of these that I can make sure if these are
what I want?

What I have in mind is exactly like what appears in Google Calendar
when you click on a day.

cheers




On Sep 29, 1:33 pm, Piotr Jankowski <[EMAIL PROTECTED]> wrote:
> On Sep 28, 11:47 pm, Adler <[EMAIL PROTECTED]> wrote:
>
> > I'm creating a personal website for the very first time and I'm really
> > enjoying it. However, I was trying to create a tooltip for some parts,
> > that appears right at where the cursor is clicked on particular links
> > and stays on as long as another one is clicked or a close botton some
> > where on the top of the tooltip is pressed. I could manage to find
> > some sources that gives me almost the same thing, But I can't make it
> > not disappear after a certain time, and there is this other one that
> > does exactly what I need but doesn't show the arrowhead and appears
> > onthe side of the page!!!
>
> > (I'm not that familiar with the JS functions, so forgive me if I'm not
> > making sense)
>
> > Basically I need something exactly as "google calendar tooltip". Any
> > sort of help would be appreciated.
>
> Hi,
> I'm not sure if I got exactly what you mean but there's a widget in
> GWT called PopupPanel.
>
> > But I can't make it not disappear after a certain time
>
> In PopupPanel you can set in a constructor the "auto-hide" property
> which tells the panel whether to close automatically or not.
>
> For more info about PopupPanel 
> see:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> Or, you can create a custom class based on DialogBox. PopupPanel does
> not contain the "close button" and with DialogBox you could add it in
> your own.
> The DialogBox docs can be found 
> there:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> Be careful, the PopupPanel and the DialogBox are both not accessible
> with keyboard. It means that such elements may block those user who
> don't/can't use mice!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: 1.5 final compiler warning

2008-09-29 Thread ben

I'm using 1.5.2 and am getting the issue with a Hashmap, exact same
final error as Victor received.  But everything seems to work, not
sure I want to suppress the problem though.

Is this something that I have implemented incorrectly, or something
with the GWT compiler?

On Sep 25, 11:46 am, Victor <[EMAIL PROTECTED]> wrote:
> I've seen that many people solved their problems replacing the gwt-
> servlet.jar file with the new one, but I'm pretty sure I no more have
> the gwt-servlet-1.5RC1.jar file on my system.
>
> How could I solve the problem ?
>
> The exact message is :
>
> Field 'privatefinal
> com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSet
> keys'willnotbeserializedbecauseit isfinal
>
> Thank you,
>
> On 5 sep, 19:23, "chris.f.jones" <[EMAIL PROTECTED]> wrote:
>
> > Since this error sources from
> > com.google.gwt.i18n.client.impl.ConstantMap via
> > java.util.Map, shouldn't the
> > field:
> > privatefinalConstantMap.OrderedConstantSet
> > be declared as transient?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: tooltip box

2008-09-29 Thread Adler

Thanks, I'll look into them and will get back to you if any problem.



On Sep 29, 1:33 pm, Piotr Jankowski <[EMAIL PROTECTED]> wrote:
> On Sep 28, 11:47 pm, Adler <[EMAIL PROTECTED]> wrote:
>
> > I'm creating a personal website for the very first time and I'm really
> > enjoying it. However, I was trying to create a tooltip for some parts,
> > that appears right at where the cursor is clicked on particular links
> > and stays on as long as another one is clicked or a close botton some
> > where on the top of the tooltip is pressed. I could manage to find
> > some sources that gives me almost the same thing, But I can't make it
> > not disappear after a certain time, and there is this other one that
> > does exactly what I need but doesn't show the arrowhead and appears
> > onthe side of the page!!!
>
> > (I'm not that familiar with the JS functions, so forgive me if I'm not
> > making sense)
>
> > Basically I need something exactly as "google calendar tooltip". Any
> > sort of help would be appreciated.
>
> Hi,
> I'm not sure if I got exactly what you mean but there's a widget in
> GWT called PopupPanel.
>
> > But I can't make it not disappear after a certain time
>
> In PopupPanel you can set in a constructor the "auto-hide" property
> which tells the panel whether to close automatically or not.
>
> For more info about PopupPanel 
> see:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> Or, you can create a custom class based on DialogBox. PopupPanel does
> not contain the "close button" and with DialogBox you could add it in
> your own.
> The DialogBox docs can be found 
> there:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> Be careful, the PopupPanel and the DialogBox are both not accessible
> with keyboard. It means that such elements may block those user who
> don't/can't use mice!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Status for xliff support?

2008-09-29 Thread jbdhl

What is the status for xliff support in GWT? Both the issue tracker
and threads in this group mention it as an upcoming supported
technology but I have not been able to find a current status anywhere.
Anyone?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Remote exception cause is lost during serialization

2008-09-29 Thread Bakulkumar

We are using the following approach.

1 - On serverside, MyException is generated as we generate any other
exception

2 - On Frontend, get the message using myExcepiton.getExcMessage();

Let me know if it help.

+Bakul+



public class MyException extends Exception  implements IsSerializable
{

private static final long serialVersionUID = -3821801999548017773L;

private String excMessage;

public MyException () {
}

public MyException (String message) {
super(message);
excMessage = message;
}

public MyException (Throwable cause) {
super(cause);
}

public MyException (String message, Throwable cause) {
super(message, cause);
excMessage = message;
}

public String getExcMessage(){
return excMessage;
}

}

On Sep 29, 10:18 am, Andrey <[EMAIL PROTECTED]> wrote:
> Hello!
>
> When an exception is thrown on server while handling RPC call, I set
> its cause to informative exception (i.e. database exception) and I
> want to use this information on client.
>
> While on server I can see the cause and print it, but when exception
> gets to the client cause is set to null !
>
> Why isn't exception cause serialized along with exception message and
> stack trace?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



using OOPHM with a query string

2008-09-29 Thread Thad

I'm running GWT OOPHM on Linux with Eclipse and Firefox.  In my
application's HTML file, have a Javascript object declared:


var myObject = {
param0: null,
param1: null,
        param2: null
};


In the HTML file's  tag, I call a Javascript function to read
and parse window.location.href, assigning the results to myObject,
which I later retrieve within my my widget via JNSI.

This all works fine if I compile my application, build a WAR file, and
run it under Tomcat.  However, it will not work in hosted mode.  I can
launch my application, and modify the query string:

http://...QSTest.html?gwt.hosted=127.0.0.2:9997¶m0=foo¶m1=bar

However my JNSI code sees $wnd.myObject.param0, etc as null.

So, (1) How do I use a query string in OOPM? and (2) How can I set the
query string in Eclipse 3.4?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Srini Marreddy

Grundle,
I am not sure why the widgets are not visible in FlexTable. I
have used Flextables with widgets inside it. It worked perfectly for
me. Please post the complete Code for your example .I will take a look
at it.Also refer following example in gwt showcase sample

http://gwt.google.com/samples/Showcase/Showcase.html#CwFlexTable


-Srini

On Sep 29, 12:12 pm, Grundle <[EMAIL PROTECTED]> wrote:
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > Srini,
>
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
>
> > -Zach
>
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
>
> > > flexTable.setWidth("200px");
>
> > > -Srini
>
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
>
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
>
> > > > The data shows up as intended.  However if I do
>
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
>
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
>
> > > > i.e.
>
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
>
>
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread walden

Grundle,

Whenever things that should obviously be displaying are not, the first
thing I do is dig into the document's structure using a DOM inspector
to see if the elements are even appearing.

If the elements are not there, then there is a procedural problem with
your code.  Maybe you can single-step it in Hosted Mode to see why
your widget is not getting attached.

If the elements are there, then it is usually a styling problem, and
again you can use the DOM inspector to see what styles did actually
get applied, and then trace those back to their source -- a CSS sheet,
or perhaps an inline style that was set in code.

Finally, the code you posted is not the real code of your
application.  This is evident in the way you are using FlexTable as
though its methods were static methods.  If you post code other than a
literal copy/paste of your actual code, you are probably hiding the
best clues anyone could use to find your problem.

Walden

On Sep 29, 1:12 pm, Grundle <[EMAIL PROTECTED]> wrote:
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
>
>
>
> > Srini,
>
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
>
> > -Zach
>
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
>
> > > flexTable.setWidth("200px");
>
> > > -Srini
>
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
>
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
>
> > > > The data shows up as intended.  However if I do
>
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
>
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
>
> > > > i.e.
>
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Bakulkumar

Can you post code or sample of the code?

FlexTable table = new FlexTable();
table.setText(0,0,"hello");
table.setWidget(0,1, new Label("World");
table.setWidget(0,2, new TextBox());

perfectly works for me.

+Bakul Kumar+

On Sep 29, 1:12 pm, Grundle <[EMAIL PROTECTED]> wrote:
> After trying the suggestion to use pixels instead of percent in the
> flexTable.setWidth() method I have determined that the same error as
> before repeats.
>
> flexTable.setText(0, 0, "foo");
>
> appears easily, but any instance of
>
> flexTable.setWidget(0, 0, new Label("foobar));
>
> where anything is put into the Widget, will not appear.
>
> Any thoughts or advice?
>
> On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > Srini,
>
> > Thanks I will try that and let you know what happens.  This still does
> > not adequately explain to me why a Text portion will show up, but not
> > a widget, including a Label widget that contains text.  What is
> > different about setText and setWidget that a pixel width setting would
> > make a noticeable difference?
>
> > -Zach
>
> > On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > > of nothing is 0px depending on your layout)
>
> > > flexTable.setWidth("200px");
>
> > > -Srini
>
> > > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > > I am currently developing an application where GWT has been the
> > > > primary API.  So far things have gone fairly well until I began trying
> > > > to implement a data entry portion.  I am experience strange behavior
> > > > with FlexTable where if I use
>
> > > > FlexTable.setText(0, 0, "foo");
> > > > FlexTable.setText(0, 1, "bar");
>
> > > > The data shows up as intended.  However if I do
>
> > > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > > suddenly the components are not appearing on the screen.  I cannot
> > > > figure out why setText data appears, but setWidget does not want to
> > > > render.  I experienced the same behavior using Grid as well, so I am
> > > > at the point where I feel like I have missed something obvious.  I
> > > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > > This really makes no sense.  As for the other Widgets/Panels that are
> > > > being used see the following:
>
> > > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > > then being added to a DockPanel.
>
> > > > i.e.
>
> > > > VerticalPanel.add(FlexTable);
> > > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with struts

2008-09-29 Thread walden

Yes, and it usually makes sense to approach this in a two-tier
fashion:

1. Client Tier.  Depending on what roles your user is in, the screen
you paint for them should not even contain the links or buttons used
to invoke operations or services they are not entitled to.  In my
application, I push entitlement information out to the UI so these
decisions can be managed there during the rendering of a screen.  For
example, I have a Portfolio Browser which, if the user is in the
Trader role, supports a right-click context menu which supports trade
order entry.  For all other users, the context menu is never even
created.

2. Server Tier.  You can implement the same role-based authorizations
you currently have on the server.  Your single entry point action
class sounds a lot to me like the equivalent of a ServletFilter.  The
client side authorizations should mean that a request never fails on
the server due to unauthorized use, but it is safer to have more than
one checkpoint.

So the answer is Yes.

Walden



On Sep 29, 11:04 am, "Vandana Adusumilli" <[EMAIL PROTECTED]> wrote:
> Hi
> in our current project only with struts we do some specific security  checks
> in one class which extends ActionServlet class.so this is the single entry
> point  for all the calls . can we implement this type of  functionality in
> GWT without using struts? I am new to GWT.
>
>
>
> On Mon, Sep 29, 2008 at 8:31 AM, walden <[EMAIL PROTECTED]> wrote:
>
> > Please be careful with terminology.
>
> > When you say "GWT to call struts action", do you mean a remote
> > procedure call, or do you just mean a link to a new page that happens
> > to be built by a struts action?
>
> > A GWT page is like any other page in its ability to embed links to
> > other pages.
>
> > Could you explain more about how calling a struts action from a GWT
> > page gives security (and we're not talking "job security", I
> > assume ;-).
>
> > Walden
>
> > On Sep 28, 6:17 pm, sruj <[EMAIL PROTECTED]> wrote:
> > > Hi
> > > we have a project which uses struts 1.2 . and now started using
> > > GWT ..for security we want GWT to call struts action.is it possible?
> > > if so how?
>
> > > thanks in advance
> > > sruj- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with struts

2008-09-29 Thread walden



On Sep 29, 11:04 am, "Vandana Adusumilli" <[EMAIL PROTECTED]> wrote:
> Hi
> in our current project only with struts we do some specific security  checks
> in one class which extends ActionServlet class.so this is the single entry
> point  for all the calls . can we implement this type of  functionality in
> GWT without using struts? I am new to GWT.
>
>
>
> On Mon, Sep 29, 2008 at 8:31 AM, walden <[EMAIL PROTECTED]> wrote:
>
> > Please be careful with terminology.
>
> > When you say "GWT to call struts action", do you mean a remote
> > procedure call, or do you just mean a link to a new page that happens
> > to be built by a struts action?
>
> > A GWT page is like any other page in its ability to embed links to
> > other pages.
>
> > Could you explain more about how calling a struts action from a GWT
> > page gives security (and we're not talking "job security", I
> > assume ;-).
>
> > Walden
>
> > On Sep 28, 6:17 pm, sruj <[EMAIL PROTECTED]> wrote:
> > > Hi
> > > we have a project which uses struts 1.2 . and now started using
> > > GWT ..for security we want GWT to call struts action.is it possible?
> > > if so how?
>
> > > thanks in advance
> > > sruj- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.52 Compile error

2008-09-29 Thread ben

Did you fix this?  I'm getting the same error.  The checksum however
matches.

On Sep 11, 3:42 am, timmys <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to upgrade my GWT 1.4 project to 1.52. But I get this
> strange exception when invoking the compiler. I can compile the exact
> same code with 1.4 perfectly.
> Has anyone seen this before?
>
> Exception in thread "main" sun.misc.InvalidJarIndexException: Invalid
> index
> at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
> at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
> at sun.misc.URLClassPath.getResource(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at com.google.gwt.dev.javac.JdtCompiler
> $INameEnvironmentImpl.findType(JdtCompiler.java:140)
> at com.google.gwt.dev.javac.JdtCompiler
> $INameEnvironmentImpl.findType(JdtCompiler.java:125)
> at
> org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.j
> ava:122)
> at
> org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.j
> ava:178)
> at
> org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:
> 2391)
> at
> org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:
> 2129)
> at
> org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.internalResolveTyp
> e(ParameterizedSingleTypeReference.java:98)
> at
> org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference.resolveType(Parame
> terizedSingleTypeReference.java:222)
> at
> org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:
> 1
> 14)
> at
> org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:
> 1121)
> at
> org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperInterfaces(ClassScope.jav
> a:915)
> at
> org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:
> 961)
> at
> org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(Compil
> ationUnitScope.java:290)
> at
> org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnv
> ironment.java:218)
> at
> org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:
> 603)
> at
> org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:
> 357)
> at
> org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:371)
> at
> com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:277)
> at
> com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:193)
> at
> com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:
> 115)
> at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:
> 327)
> at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
> at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
> at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best practices

2008-09-29 Thread Carlos Rafael Ramirez
Hello Gregor,

Have you thought in put your answer in a BLOG? For me your message is an GWT
optimization article.

Thanks,
Regards,
Carlos

On Tue, Sep 30, 2008 at 12:04 PM, Thomas Broyer <[EMAIL PROTECTED]> wrote:

>
>
> On 25 sep, 10:44, Stefan <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Does anyone know any good resources for "Best practices" when writing
> > GWT apps? Questions I would like to have answered:
> >
> > * How to I write high-performing apps? I know that the compiler helps
> > out, but how do I write code that helps the compiler to minify/
> > optimize my app?
>
> Google for "high performance ajax" and the like. Application and code
> "organisation" and design, independently of being "pure" or GWT-
> generated JavaScript, highly impacts performance.
>
> The main rule: the fastest code is the one that doesn't run (or, as
> would say Julien Lecomte [1]: less is more: don't do anything
> unnecessary / don't do anything until it becomes absolutely necessary)
>
> [1]
> http://www.slideshare.net/julien.lecomte/high-performance-ajax-applications/
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: linkable resources, caching, xslt xhtml generation with embedded js

2008-09-29 Thread walden

Lawrence,

To paraphrase you, what you would like to do is switch to a client-
centric model of writing your client.  That's good.  GWT is good for
that.

The part that doesn't make sense to me is to keep the XML->HTML via
XSLT transformations.  That's not the way to build portable widgets in
GWT.  Why don't you try writing a simple client in GWT that gets Java
Objects from the server, and constructs Widgets to display information
and ineract with the user?  Calling a widget constructor automatically
invokes the right code for the browser where your application is
running, where doing an XSLT transform puts you back in charge of
managing N transforms for N browsers.

As a bonus, you get to design, write and debug your entire application
as if it were Java, including the user's interaction with it.  Who
wants to debug an xslt transform session?

Walden

On Sep 29, 9:47 am, Lawrence <[EMAIL PROTECTED]> wrote:
> Hi all!
>
> Been lurking for a while now and I like this vibrant community a lot,
> so, thank you for that :)
>
> I need to redesign our web app so that it can support IE 7, gecko,
> Opera, webkit (one day IE8).
> The old one was hand crafted to work only with IE6.
>
> The idea is to use gwt and get coding on business requirements rather
> than trying to work around all browsers .. but I have a few question :
>
> Currently we serve dynamic pages and we use ajax just to get
> notifications if something changed.
> We then recreate the page with the updated content and send it back to
> the browser.
> Part of this pages is generated via XSLT (on server)
> We have our XML data we transform it via xslt with our stylesheet
> (xhtml) and we return the new consturcted page.
> This styleshee converts our data to all sort of controls : checkboxes,
> date pickers, drop down, labels, buttons, etc.
> Every "data" page can be bookmarked.
>
> What I would like to do is recreate the web app via GWT, but instead
> of retrieving an entire page every time some data
> is requested I would prefer to only do an ajax request for the xml and
> then to the transformation locally on the client.
> I saw someone porting sarissa to GWT so this should be possible.
>
> The only problem is that we embedded quite a few js calls in the
> stylesheet, and those now will need to be handled by GWT rather than
> the old, IE6 only, js scripts.
> I know that gwt compress/obscure the output js to make it faster, so I
> wonder, how can I mix the two ? Is it possible ?
>
> Also, if I do everything via ajax/xml, does this mean people can no
> longer save link to pages, bookmark them ?
>
> Thanks
>
> Lawrence
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread Ananda Rao

Hi,

i have added the jar file in the class path and also the below code.









into the DatePickerDemo.gwt.xml...but getting error at the import
statement for the below import

import com.google.gwt.widgetideas.client.LazyPanel;
import com.google.gwt.widgetideas.client.event.ChangeEvent;
import com.google.gwt.widgetideas.client.event.ChangeHandler;
import com.google.gwt.widgetideas.client.event.EventHandler;
import com.google.gwt.widgetideas.client.event.HighlightEvent;
import com.google.gwt.widgetideas.client.event.HighlightHandler;
import com.google.gwt.widgetideas.client.event.KeyDownEvent;
import com.google.gwt.widgetideas.client.event.KeyDownHandler;
import com.google.gwt.widgetideas.client.event.RenderingEvent;
import com.google.gwt.widgetideas.client.event.RenderingHandler;
import com.google.gwt.widgetideas.datepicker.client.DateBox;


can any one tell me why is this?

On Mon, Sep 29, 2008 at 8:50 PM, Ananda Rao
<[EMAIL PROTECTED]> wrote:
> thanks olivier
>
> On Mon, Sep 29, 2008 at 8:20 PM, olivier nouguier
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>  When using a GWT java resource 2 step are need:
>>   * the class file must resolved (add jar to classpath) or you IDE will
>> complains with "unresolved classes".
>>   * the module "owning" that java resources must be inherited from your
>> application GWT module, or the GWT compiler will fail (even if you add the
>> jar to the classpath).
>>
>> Look at the sample in the project, but your application.gwt.xml your look
>> like something:
>> 
>>  
>>  
>>  
>>  
>> 
>>  > class="com.google.gwt.demos.datepicker.client.DatePickerDemo"/>
>>  
>> 
>>
>>
>>
>> On Mon, Sep 29, 2008 at 4:41 PM, Ananda Rao
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> thanks olivier  for replying.
>>>
>>> i was actually trying to use gwt-incubator.jar.
>>> i have downloaded the sample code from the below URL and trying to test
>>> that.
>>>
>>> http://code.google.com/p/google-web-toolkit-incubator/wiki/DatePicker
>>>
>>> but getting error.
>>> WidgetIdeas cannot be resolved.
>>>
>>> can you please tell me what i have to do here to get rid of this error.
>>>
>>>
>>> i have added this in tha classpath
>>>
>>> On Mon, Sep 29, 2008 at 8:03 PM, olivier nouguier
>>> <[EMAIL PROTECTED]> wrote:
>>> > Hi,
>>> >  If the jar contain the source (.java files) simply:
>>> > * add the jar to your classpath.
>>> > * inherit the new module in your "yourApplication.gwt.xml".
>>> >
>>> >
>>> > On Mon, Sep 29, 2008 at 3:44 PM, Ananda Rao
>>> > <[EMAIL PROTECTED]> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> i have downloaded the gwt-incubator,jar file .
>>> >> nut i dont know how to add this to my project. i need to use
>>> >> datepicker but not able to do so.
>>> >>
>>> >> can any one help me here
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
>>> > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
>>> > comestible"
>>> >  - proverbe indien Cri
>>> >
>>> > >
>>> >
>>>
>>>
>>
>>
>>
>> --
>> "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
>> dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
>> comestible"
>>  - proverbe indien Cri
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



confusion about gwt-tmp

2008-09-29 Thread Martin Trummer

when I start the gwt-compiler I can specify the -out parameter.
This output directory also contains following dirs:
* .gwt-tmp
* myModule
* myModule-aux

I could not find the purpose of the .gwt-tmp directory in the docs.
However, I think it's only needed by the gwt-compiler during the
compilation process, because all files in this directory also show up
in the myModule directory
(except for the files in compilations, but I think those relate to the
ALPHA.cach.html files in the myModule dir)

If the above is true, I'd like to specify a separate location for .gwt-
tmp much like the -gen switch spedifies a separate location for
the .generated directory.
Is this possible?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Grundle

After trying the suggestion to use pixels instead of percent in the
flexTable.setWidth() method I have determined that the same error as
before repeats.

flexTable.setText(0, 0, "foo");

appears easily, but any instance of

flexTable.setWidget(0, 0, new Label("foobar));

where anything is put into the Widget, will not appear.

Any thoughts or advice?

On Sep 29, 11:45 am, Grundle <[EMAIL PROTECTED]> wrote:
> Srini,
>
> Thanks I will try that and let you know what happens.  This still does
> not adequately explain to me why a Text portion will show up, but not
> a widget, including a Label widget that contains text.  What is
> different about setText and setWidget that a pixel width setting would
> make a noticeable difference?
>
> -Zach
>
> On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
>
> > Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> > of nothing is 0px depending on your layout)
>
> > flexTable.setWidth("200px");
>
> > -Srini
>
> > On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > > I am currently developing an application where GWT has been the
> > > primary API.  So far things have gone fairly well until I began trying
> > > to implement a data entry portion.  I am experience strange behavior
> > > with FlexTable where if I use
>
> > > FlexTable.setText(0, 0, "foo");
> > > FlexTable.setText(0, 1, "bar");
>
> > > The data shows up as intended.  However if I do
>
> > > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > > FlexTable.setWidget(0, 1, new TextBox());
>
> > > suddenly the components are not appearing on the screen.  I cannot
> > > figure out why setText data appears, but setWidget does not want to
> > > render.  I experienced the same behavior using Grid as well, so I am
> > > at the point where I feel like I have missed something obvious.  I
> > > feel like I have tried everything, such as TextBox.setVisible() ,
> > > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > > This really makes no sense.  As for the other Widgets/Panels that are
> > > being used see the following:
>
> > > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > > then being added to a DockPanel.
>
> > > i.e.
>
> > > VerticalPanel.add(FlexTable);
> > > DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Grundle

Srini,

Thanks I will try that and let you know what happens.  This still does
not adequately explain to me why a Text portion will show up, but not
a widget, including a Label widget that contains text.  What is
different about setText and setWidget that a pixel width setting would
make a noticeable difference?

-Zach

On Sep 29, 11:28 am, Srini Marreddy <[EMAIL PROTECTED]> wrote:
> Try setting FlexTable width in pixels instead of 100%.(Some times 100%
> of nothing is 0px depending on your layout)
>
> flexTable.setWidth("200px");
>
> -Srini
>
> On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
>
> > I am currently developing an application where GWT has been the
> > primary API.  So far things have gone fairly well until I began trying
> > to implement a data entry portion.  I am experience strange behavior
> > with FlexTable where if I use
>
> > FlexTable.setText(0, 0, "foo");
> > FlexTable.setText(0, 1, "bar");
>
> > The data shows up as intended.  However if I do
>
> > FlexTable.setWidget(0, 0, new Label("FooBar"));
> > FlexTable.setWidget(0, 1, new TextBox());
>
> > suddenly the components are not appearing on the screen.  I cannot
> > figure out why setText data appears, but setWidget does not want to
> > render.  I experienced the same behavior using Grid as well, so I am
> > at the point where I feel like I have missed something obvious.  I
> > feel like I have tried everything, such as TextBox.setVisible() ,
> > TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> > This really makes no sense.  As for the other Widgets/Panels that are
> > being used see the following:
>
> > Specifically I am adding the FlexTable to a VerticalPanel, which is
> > then being added to a DockPanel.
>
> > i.e.
>
> > VerticalPanel.add(FlexTable);
> > DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable odd behavior

2008-09-29 Thread Srini Marreddy

Try setting FlexTable width in pixels instead of 100%.(Some times 100%
of nothing is 0px depending on your layout)

flexTable.setWidth("200px");

-Srini


On Sep 29, 9:59 am, Grundle <[EMAIL PROTECTED]> wrote:
> I am currently developing an application where GWT has been the
> primary API.  So far things have gone fairly well until I began trying
> to implement a data entry portion.  I am experience strange behavior
> with FlexTable where if I use
>
> FlexTable.setText(0, 0, "foo");
> FlexTable.setText(0, 1, "bar");
>
> The data shows up as intended.  However if I do
>
> FlexTable.setWidget(0, 0, new Label("FooBar"));
> FlexTable.setWidget(0, 1, new TextBox());
>
> suddenly the components are not appearing on the screen.  I cannot
> figure out why setText data appears, but setWidget does not want to
> render.  I experienced the same behavior using Grid as well, so I am
> at the point where I feel like I have missed something obvious.  I
> feel like I have tried everything, such as TextBox.setVisible() ,
> TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").
>
> This really makes no sense.  As for the other Widgets/Panels that are
> being used see the following:
>
> Specifically I am adding the FlexTable to a VerticalPanel, which is
> then being added to a DockPanel.
>
> i.e.
>
> VerticalPanel.add(FlexTable);
> DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best practices

2008-09-29 Thread Thomas Broyer


On 25 sep, 10:44, Stefan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Does anyone know any good resources for "Best practices" when writing
> GWT apps? Questions I would like to have answered:
>
> * How to I write high-performing apps? I know that the compiler helps
> out, but how do I write code that helps the compiler to minify/
> optimize my app?

Google for "high performance ajax" and the like. Application and code
"organisation" and design, independently of being "pure" or GWT-
generated JavaScript, highly impacts performance.

The main rule: the fastest code is the one that doesn't run (or, as
would say Julien Lecomte [1]: less is more: don't do anything
unnecessary / don't do anything until it becomes absolutely necessary)

[1] http://www.slideshare.net/julien.lecomte/high-performance-ajax-applications/
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to access event from another widget

2008-09-29 Thread Thomas Broyer


On 29 sep, 15:27, YoeZ <[EMAIL PROTECTED]> wrote:
> Thank you very much, thomas
> here's the final sample code and it really works... :)
>
> but the problem is, in the MainMenu, I don't know which listbox that
> send the listener.

As I said, a Composite is meant to encapsulate (hide) the internals of
your widget.

> in the MainMenu, I provide three textboxes
> txtListA = catch the event from listA
> txtListB = catch the event from listB
> txtListC = catch the event from listC
> so, I have to know first, the name of the sender widget, (which is
> listA? listB? or listC?)
> then set the txtListA.setText(listA); and so on

Then either:
 - don't implement SourcesChangeEvents but have 3 add* and 3 remove*
methods (one pair for each list). Each pair of methods will "drive"
its own ClickListenerCollection (hint: instead of implementing
ClickListener to fireChange on the collection, use a
DelegatingClickListenerCollection which does the job for you; see
below my rewrite of your ComboParent)
 - use another kind of event where you can pass a "name" for the thing
that has changed (PropertyChangeEvent for example)
 - somehow "abuse" the sender of the events (i.e. you register an
event on a widget but when it fires an event and call back your
listener, it isn't itself the "sender").

> I have no idea, how to get the sender name.
> I have tried sender.getclass().getname() but the result is not what I
> want.

The argument to fireChange will be the "sender" passed to the
listeners. In the code I gave you, it was "this", i.e. the Composite
(see above, third choice, if you intend to change the value of this
argument).

> /
> * iCombo.java
> /
>         ListA.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListA);
>             }
>         });
>         ListB.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListB);
>             }
>         });
>         ListC.addChangeListener(new ChangeListener() {
>             public void onChange(Widget arg0) {
>                 listeners.fireChange(ListC);
>             }
>         });

OK so you chose to "abuse" the "sender"...
So how about setting a name to your lists (ListA.setName(...)) and
calling ((ListBox)sender).getName() in your listener? Kind of hackish
but "abusing" the sender is not better so...

> /
> * iComboParent.java
> /
> public class iComboParent extends Composite implements
> SourcesChangeEvents  {
>     private HorizontalPanel vPanel = new HorizontalPanel();
>     private iCombo MyCombo = new iCombo();
>     private Button btn1 = new Button("OK");

    private DelegatingChangeListenerCollection listeners = new
DelegatingChangeListenerCollection(this, MyCombo);

// Please note that you loose your "abuse the sender" approach using a
DelegatingChangeListenerCollection

>     public iComboParent() {
>         vPanel.add(MyCombo);
>         vPanel.add(btn1);
>
>         initWidget(vPanel);

And just get rid of the following, which is already done by the
DelegatingChangeListenerCollection in its constructor:

>         MyCombo.addChangeListener(new ChangeListener() {
>             public void onChange(Widget sender) {
>                 listeners.fireChange(sender);
>             }
>         });

> /
> * MainMenu.java
> /
>         cp.addChangeListener(new ChangeListener() {
>             public void onChange(Widget sender) {
>                 ListBox lb = (ListBox) sender;
>
> txtListA.setText(lb.getItemText(lb.getSelectedIndex()));
>             }
>         });
>
>         RootPanel.get().add(vPanel);
>     }

If I were you, I'd really either
 - create a new kind of listener communicating the changed "list name"
and selected value;
 - expose the ListBoxes with getters (bad looking but I don't really
understand your layout, so...)
 - use 3 pairs of add/removeChangeListener so by registering a
ChangeListener you know where to put the value; and expose the
selected value with a getter:
   cp.addListAChangeListener(new ChangeListener() {
  public void onChange(Widget sender) {
 txtlistA.setText(cp.getSelectedValueA());
  }
   });

Anyway, your arrangement looks weird (to me)...
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Info Windows

2008-09-29 Thread xavierunited

What??? I have not really posted in a week do your work and do not
worry about me.

On 9/29/08, Andrej <[EMAIL PROTECTED]> wrote:
>
> Xavier, you didn't post 1 useful post here.
> It is SPAM, for me new kind of SPAM, it seems that you are trying to
> win any maximum post count race...
>
>
> >
>


-- 
Xavier A. Mathews
Student/Developer/Web-Master
GG Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: linkable resources, caching, xslt xhtml generation with embedded js

2008-09-29 Thread Lawrence

Ok, I will answer to my self on this bit :

> The only problem is that we embedded quite a few js calls in the
> stylesheet, and those now will need to be handled by GWT rather than
> the old, IE6 only, js scripts.
> I know that gwt compress/obscure the output js to make it faster, so I
> wonder, how can I mix the two ? Is it possible ?

Yes you can, have a look here :
http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html

However, XSLT on GWT seems quite out of date : 
http://www.ebessette.com/d/software/XSLTForGWT

Anything newer ? Shall I just write my own jsni to Sarissa ?
Maybe by using something like http://code.google.com/p/gwt-exporter/
but they way around ?

Thanks for the answers :)

Lawrence
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Lothar and all,

Thank all of you very much for much needed stuffs and great support.
Atlast, I  implemented by writing a separate servlet in our web 
container(external) which accepts the request URL (contains all file 
information and comment text )and write the file inside the server.

Regards
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 5:16 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> The main issue is that jsp existed on external webserver accepts only 
>> file
>> path to save the comments content.
>
> I think you confuse PATH_INFO with file path. The path-info of a URL is
> everything in the URL after the actual resource, so given a JSP-page
> that is accessed
> via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt
> the PATH_INFO in that case would be /my/path/info/hello.txt (I write
> PATH_INFO that way because this is the variable being used when using
> the CGI-gateway.
>
> In servlets (i.e. in JSP-pages as well) you can access the path-info-
> value with getPathInfo() provided by the HttpServletRequest (that
> can be accessed with the variable request inside JSP-pages).
>
>> So I am force to create file having comments for each clicked item on the
>> browser.
>
> I still don't see a need for the creation of files but it is looking
> more like a special URL to be constructed. Again RequestBuilder would
> be the class of choice in that case. On the other hand, if your JSP-
> page expects a previous file-upload, you're screwed. In that case,
> before starting a Signed Applet Project, you should consider extending
> your JSP-page/servlet to accept the "file" as content of a POST-request.
>
>> Sorry to ask Once more about (2) as I am bit confused , does RPC 
>> mechanisnm
>> work on production environment also.   If yes ,Can I process as mention 
>> in
>
> RPC works on production systems as well. gwt-servlet.jar and your server-
> classes must be in the classpath of your web-application/server. As well,
> your web.xml must contain a servlet-entry for your servlet. If you want
> to use the PATH_INFO-functionality, you might need two entries, one
> with the URL-pattern /MyServletPattern and /MyServletPattern/*
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread Ananda Rao

thanks olivier

On Mon, Sep 29, 2008 at 8:20 PM, olivier nouguier
<[EMAIL PROTECTED]> wrote:
> Hi,
>  When using a GWT java resource 2 step are need:
>   * the class file must resolved (add jar to classpath) or you IDE will
> complains with "unresolved classes".
>   * the module "owning" that java resources must be inherited from your
> application GWT module, or the GWT compiler will fail (even if you add the
> jar to the classpath).
>
> Look at the sample in the project, but your application.gwt.xml your look
> like something:
> 
>  
>  
>  
>  
> 
>   class="com.google.gwt.demos.datepicker.client.DatePickerDemo"/>
>  
> 
>
>
>
> On Mon, Sep 29, 2008 at 4:41 PM, Ananda Rao
> <[EMAIL PROTECTED]> wrote:
>>
>> thanks olivier  for replying.
>>
>> i was actually trying to use gwt-incubator.jar.
>> i have downloaded the sample code from the below URL and trying to test
>> that.
>>
>> http://code.google.com/p/google-web-toolkit-incubator/wiki/DatePicker
>>
>> but getting error.
>> WidgetIdeas cannot be resolved.
>>
>> can you please tell me what i have to do here to get rid of this error.
>>
>>
>> i have added this in tha classpath
>>
>> On Mon, Sep 29, 2008 at 8:03 PM, olivier nouguier
>> <[EMAIL PROTECTED]> wrote:
>> > Hi,
>> >  If the jar contain the source (.java files) simply:
>> > * add the jar to your classpath.
>> > * inherit the new module in your "yourApplication.gwt.xml".
>> >
>> >
>> > On Mon, Sep 29, 2008 at 3:44 PM, Ananda Rao
>> > <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi,
>> >>
>> >> i have downloaded the gwt-incubator,jar file .
>> >> nut i dont know how to add this to my project. i need to use
>> >> datepicker but not able to do so.
>> >>
>> >> can any one help me here
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
>> > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
>> > comestible"
>> >  - proverbe indien Cri
>> >
>> > >
>> >
>>
>>
>
>
>
> --
> "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
> dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
> comestible"
>  - proverbe indien Cri
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT with struts

2008-09-29 Thread Vandana Adusumilli
Hi
in our current project only with struts we do some specific security  checks
in one class which extends ActionServlet class.so this is the single entry
point  for all the calls . can we implement this type of  functionality in
GWT without using struts? I am new to GWT.

On Mon, Sep 29, 2008 at 8:31 AM, walden <[EMAIL PROTECTED]> wrote:

>
> Please be careful with terminology.
>
> When you say "GWT to call struts action", do you mean a remote
> procedure call, or do you just mean a link to a new page that happens
> to be built by a struts action?
>
> A GWT page is like any other page in its ability to embed links to
> other pages.
>
> Could you explain more about how calling a struts action from a GWT
> page gives security (and we're not talking "job security", I
> assume ;-).
>
> Walden
>
>
> On Sep 28, 6:17 pm, sruj <[EMAIL PROTECTED]> wrote:
> > Hi
> > we have a project which uses struts 1.2 . and now started using
> > GWT ..for security we want GWT to call struts action.is it possible?
> > if so how?
> >
> > thanks in advance
> > sruj
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



FlexTable odd behavior

2008-09-29 Thread Grundle

I am currently developing an application where GWT has been the
primary API.  So far things have gone fairly well until I began trying
to implement a data entry portion.  I am experience strange behavior
with FlexTable where if I use

FlexTable.setText(0, 0, "foo");
FlexTable.setText(0, 1, "bar");

The data shows up as intended.  However if I do

FlexTable.setWidget(0, 0, new Label("FooBar"));
FlexTable.setWidget(0, 1, new TextBox());

suddenly the components are not appearing on the screen.  I cannot
figure out why setText data appears, but setWidget does not want to
render.  I experienced the same behavior using Grid as well, so I am
at the point where I feel like I have missed something obvious.  I
feel like I have tried everything, such as TextBox.setVisible() ,
TextBox.setVisibleSize("5"), FlexTable.setWidth("100%").

This really makes no sense.  As for the other Widgets/Panels that are
being used see the following:

Specifically I am adding the FlexTable to a VerticalPanel, which is
then being added to a DockPanel.

i.e.

VerticalPanel.add(FlexTable);
DockPanel.add(VerticalPanel, DockPanel.CENTER);
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread olivier nouguier
Hi,
 When using a GWT java resource 2 step are need:
  * the class file must resolved (add jar to classpath) or you IDE will
complains with "unresolved classes".
  * the module "owning" that java resources must be inherited from your
application GWT module, or the GWT compiler will fail (even if you add the
jar to the classpath).

Look at the sample in the project, but your application.gwt.xml your look
like something:

 
 
 
 **

 
 




On Mon, Sep 29, 2008 at 4:41 PM, Ananda Rao <
[EMAIL PROTECTED]> wrote:

>
> thanks olivier  for replying.
>
> i was actually trying to use gwt-incubator.jar.
> i have downloaded the sample code from the below URL and trying to test
> that.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/DatePicker
>
> but getting error.
> WidgetIdeas cannot be resolved.
>
> can you please tell me what i have to do here to get rid of this error.
>
>
> i have added this in tha classpath
>
> On Mon, Sep 29, 2008 at 8:03 PM, olivier nouguier
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >  If the jar contain the source (.java files) simply:
> > * add the jar to your classpath.
> > * inherit the new module in your "yourApplication.gwt.xml".
> >
> >
> > On Mon, Sep 29, 2008 at 3:44 PM, Ananda Rao
> > <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> i have downloaded the gwt-incubator,jar file .
> >> nut i dont know how to add this to my project. i need to use
> >> datepicker but not able to do so.
> >>
> >> can any one help me here
> >>
> >>
> >
> >
> >
> > --
> > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
> > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
> > comestible"
> >  - proverbe indien Cri
> >
> > >
> >
>
> >
>


-- 
"Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
comestible"
 - proverbe indien Cri

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Accessing gwt javascript from swing based web brower

2008-09-29 Thread Sumit Chandel
Hi Frank,
You should be able to make a call to GWT methods in JavaScript from within
the WebRenderer Swing browser, and that would be through something called a
JSNI bridge method call (JavaScript Native Interface).

The idea is to call your GWT method from within a JSNI method, and bind GWT
method to the $wnd variable (which represents the standard window object).

Instead of going into all the detail here, check it out in our docs :-) It
should help get you on your way:

See "Calling a Java method from handwritten JavaScript":
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript

Before trying that, though, is there any reason why you couldn't just pass
in the Maps data coordinates through the URL. Is it because the size of the
URL would surpass some browser URL size limits?

Hope that helps,
-Sumit Chandel

On Sat, Sep 27, 2008 at 7:05 PM, frankmontyne <[EMAIL PROTECTED]>wrote:

>
> Hi I'm currently creating an application that makes use of google
> maps. Using the GWT toolkit I created a application that shows a
> location on a map when a coordinate is passed. The application is
> hosted on glassfish. I also created a java swing applcation that
> contains a panel hosting the "Webrenderer Webbrowser (Swing edition)"
> swing component. Instead of having a few fields in the GWT app where
> people can fill in a coordinate and get an updated map I actually want
> to pass the coordinate to the GWT app from within the java
> application. The simple solution was to pass the data as parameters on
> the url but that becomes impossible once you want to pass a set of
> coordinates. Is there a way to get access to the javascript methods
> generated by GWT from within the webrenderer swing browser? That way I
> could implement a javascript function that would allow me to pass the
> parameters.
>
> Any suggestions, help is welcome.
>
> Thanks,
> Frank
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread Ananda Rao

thanks olivier  for replying.

i was actually trying to use gwt-incubator.jar.
i have downloaded the sample code from the below URL and trying to test that.

http://code.google.com/p/google-web-toolkit-incubator/wiki/DatePicker

but getting error.
WidgetIdeas cannot be resolved.

can you please tell me what i have to do here to get rid of this error.


i have added this in tha classpath

On Mon, Sep 29, 2008 at 8:03 PM, olivier nouguier
<[EMAIL PROTECTED]> wrote:
> Hi,
>  If the jar contain the source (.java files) simply:
> * add the jar to your classpath.
> * inherit the new module in your "yourApplication.gwt.xml".
>
>
> On Mon, Sep 29, 2008 at 3:44 PM, Ananda Rao
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> i have downloaded the gwt-incubator,jar file .
>> nut i dont know how to add this to my project. i need to use
>> datepicker but not able to do so.
>>
>> can any one help me here
>>
>>
>
>
>
> --
> "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
> dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
> comestible"
>  - proverbe indien Cri
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to add thrid party Jar file

2008-09-29 Thread olivier nouguier
Hi,
 If the jar contain the source (.java files) simply:
* add the jar to your classpath.
* inherit the new module in your "yourApplication.gwt.xml".


On Mon, Sep 29, 2008 at 3:44 PM, Ananda Rao <
[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> i have downloaded the gwt-incubator,jar file .
> nut i dont know how to add this to my project. i need to use
> datepicker but not able to do so.
>
> can any one help me here
>
> >
>


-- 
"Quand le dernier arbre sera abattu, la dernière rivière asséchée, le
dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas
comestible"
 - proverbe indien Cri

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Background color for DecoratedTabPanel

2008-09-29 Thread Ian Bambury
.gwt-DecoratedTab*Bar* .gwt-TabBarItem  {
  background:#FF0;
}

Ian

http://examples.roughian.com


2008/9/29 Shri <[EMAIL PROTECTED]>

>
> Hi,
> I am not able to change the background color of DecoratedTabPanel tab
> baritems. I tried to use background attribute in - .gwt-
> DecoratedTabPanel .gwt-TabBarItem but it doesn't work. Please help me
> on this issue.
>
> Thanks,
> Shridhar
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Remote exception cause is lost during serialization

2008-09-29 Thread Lothar Kimmeringer

Hi,

Andrey schrieb:
> Why isn't exception cause serialized along with exception message and
> stack trace?

Because most exceptions are not serializable by GWT.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Remote exception cause is lost during serialization

2008-09-29 Thread Andrey

Hello!

When an exception is thrown on server while handling RPC call, I set
its cause to informative exception (i.e. database exception) and I
want to use this information on client.

While on server I can see the cause and print it, but when exception
gets to the client cause is set to null !

Why isn't exception cause serialized along with exception message and
stack trace?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



linkable resources, caching, xslt xhtml generation with embedded js

2008-09-29 Thread Lawrence

Hi all!

Been lurking for a while now and I like this vibrant community a lot,
so, thank you for that :)

I need to redesign our web app so that it can support IE 7, gecko,
Opera, webkit (one day IE8).
The old one was hand crafted to work only with IE6.

The idea is to use gwt and get coding on business requirements rather
than trying to work around all browsers .. but I have a few question :

Currently we serve dynamic pages and we use ajax just to get
notifications if something changed.
We then recreate the page with the updated content and send it back to
the browser.
Part of this pages is generated via XSLT (on server)
We have our XML data we transform it via xslt with our stylesheet
(xhtml) and we return the new consturcted page.
This styleshee converts our data to all sort of controls : checkboxes,
date pickers, drop down, labels, buttons, etc.
Every "data" page can be bookmarked.

What I would like to do is recreate the web app via GWT, but instead
of retrieving an entire page every time some data
is requested I would prefer to only do an ajax request for the xml and
then to the transformation locally on the client.
I saw someone porting sarissa to GWT so this should be possible.

The only problem is that we embedded quite a few js calls in the
stylesheet, and those now will need to be handled by GWT rather than
the old, IE6 only, js scripts.
I know that gwt compress/obscure the output js to make it faster, so I
wonder, how can I mix the two ? Is it possible ?

Also, if I do everything via ajax/xml, does this mean people can no
longer save link to pages, bookmark them ?

Thanks

Lawrence


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: gwt-maps API - Custom Projection boolean error

2008-09-29 Thread Tim White

Thanks Eric!

On Sep 26, 9:49 am, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> I've found the problem and updated the issue. I've got a proposed solution
> out for review on the Google-Web-Toolkit-Contributors mailing list.
>
>
>
> On Fri, Sep 26, 2008 at 7:52 AM, Eric Ayers <[EMAIL PROTECTED]> wrote:
> > Tim,
> > I couldn't find anything obviously wrong in your projection implementation,
> > so I created an issue for this problem:
>
> >http://code.google.com/p/gwt-google-apis/issues/detail?id=180
>
> > Let me know if you have made any progress on the issue - I'll keep looking
> > at it today.
>
> > -Eric.
>
> > On Thu, Sep 25, 2008 at 6:45 PM, Eric Ayers <[EMAIL PROTECTED]> wrote:
>
> >> OK, I've copied your code into a project and I see the same problem.  The
> >> next step to debug this would be to set break points in each of the
> >> customized methods for NorthmoorMapProjection and step through in hosted
> >> mode.
>
> >> On Thu, Sep 25, 2008 at 12:47 AM, Tim White <[EMAIL PROTECTED]> wrote:
>
> >>> Hi -
>
> >>>  When defining a custom Projection using GWT 1.5.2 and gwt-maps-1.0
> >>> RC1, I can't seem to get around this:
>
> >>>  com.google.gwt.dev.shell.HostedModeException: Expected primitive type
> >>> boolean; actual value was undefined
> >>>        at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
> >>>        at
>
> >>> com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
> >>> 57)
> >>>        at
> >>> com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
> >>> 119)
> >>>        at
> >>> com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
> >>> 155)
> >>>        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.ole.win32.COM.VtblCall(Native Method)
> >>>        at
> >>> org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:
> >>> 64)
> >>>        at
> >>> org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
> >>> 493)
> >>>        at
> >>> org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:
> >>> 417)
> >>>        at
>
> >>> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:
> >>> 67)
> >>>        at
> >>> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:
> >>> 152)
> >>>        at
> >>> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> >>> 447)
> >>>        at
> >>> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
> >>> 248)
> >>>        at
>
> >>> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
> >>> 107)
> >>>        at
> >>> com.google.gwt.maps.client.impl.__MapImplImpl.checkResize(transient
> >>> source for com.google.gwt.maps.client.impl.__MapImplImpl)
> >>>        at
> >>> com.google.gwt.maps.client.MapWidget.checkResize(MapWidget.java:
> >>> 729)
> >>>        at
> >>> com.google.gwt.maps.client.MapWidget.onAttach(MapWidget.java:1507)
> >>>        at com.google.gwt.user.client.ui.Widget.setParent(Widget.java:231)
> >>>        at com.google.gwt.user.client.ui.Panel.adopt(Panel.java:119)
> >>>        at
> >>> com.google.gwt.user.client.ui.ComplexPanel.add(ComplexPanel.java:
> >>> 86)
> >>>        at
> >>> com.google.gwt.user.client.ui.AbsolutePanel.add(AbsolutePanel.java:
> >>> 80)
> >>>        at
>
> >>> com.cyface.northmoor.map.client.NorthmoorMap.onModuleLoad(NorthmoorMap.java:
> >>> 64)
> >>>        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:597)
> >>>        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
> >>>

Re: Newbie question - adding GWT to my existing application

2008-09-29 Thread Lothar Kimmeringer

Hi Surendra,

Surendra Viswanadham schrieb:

> Thanks for that. I'm going to give this a try and let you know what I
> have. To clarify though, whenever we use the  tag in the
> pkg1.gwt.xml, is there not a way to have this defined for a whole
> package as opposed to each singular class?

Sure you can:



specifies that the package $basePackage.data should be considered as
client-package as well.
So if your GWT.xml-file resides in com.example.mygwtproject,
the package com.example.mygwtproject.data is regarded to
contain client-classes as well.

I haven't tried it with "absolute" package-names, so I'm not sure
if you can specify org.example.someotherpackage as source-package.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to add thrid party Jar file

2008-09-29 Thread Ananda Rao

Hi,

i have downloaded the gwt-incubator,jar file .
nut i dont know how to add this to my project. i need to use
datepicker but not able to do so.

can any one help me here

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question - adding GWT to my existing application

2008-09-29 Thread Surendra Viswanadham
Hi Walden,Thanks for that. I'm going to give this a try and let you know
what I have. To clarify though, whenever we use the  tag in the
pkg1.gwt.xml, is there not a way to have this defined for a whole package as
opposed to each singular class? I would think that many large projects would
find this an annoyance if it had to be done for each class right? Or are
there are considerations I am not thinking about?

Suri

On Mon, Sep 29, 2008 at 8:47 AM, walden <[EMAIL PROTECTED]> wrote:

>
> Suri,
>
> If the current Java code is in the same project where you are adding
> GWT on the client, you don't need a jar.
>
> Your current Java code does have to be sanitized to meet the 'closed
> world' requirements of the GWT compiler.  Read the documentation on
> the GWT compiler and JRE emulation classes for details.
>
> Your current Java code will have to be findable by the GWT compiler,
> which means there must be a .gwt.xml file on the classpath when you
> run the GWT compiler (you'll need to create that), and it needs to
> indicate where the compile sources are.  There are basically two ways
> to approach this part:
>
> 1. keep your sources exactly where they are; place your Pkg1.gwt.xml
> file in the root folder of the smallest containing sub-tree for all
> the classes you need to include, and use the  tag as
> many times as necessary to indicate (and hopefully isolate) just the
> classes you want compiled by GWT.
>
> 2. do a little folder reorganization so that the classes you will
> share between server and client side are isolated cleanly; have a
> 'client' folder at the root of that sub-tree, and place your
> Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you
> don't need  tags.
>
> Try that, report any errors you get, and we'll sort it out from there.
>
> Walden
>
> On Sep 27, 3:30 pm, Suri <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > I'm a GWT newbie and I've just come fresh after reading up the basics
> > from the Google GWT tutorial. Here's my situation:
> >
> > I have an existing Java based web application (Struts based). Now I'm
> > trying to add a new module to it and figure I'd try to incorporate GWT
> > - mostly because I expect the new module to be a few very dynamic
> > pages communicating with the server often.
> >
> > Now my first question is, how do I reference my current Java code in
> > this GWT program. i.e if i have the following
> >
> > com.pkg1.Class1;
> > com.pkg1.pkg2.Class2;
> >
> > in my existing Java code,
> >
> > and in my GWT java class I import these 2 classes for implementation,
> > what are the exact steps I need to follow so that these are correctly
> > added to the GWT program and can compile. So far, I haven't seemed to
> > have found a definitive answer to this problem. I saw a few solutions
> > of people saying a jar needs to be included and it needs to have a
> > .gwt.xml file which gets inherited or something but didn't quite
> > understand what exactly they meant.Some others spoke about source code
> > having to be available for the program to compile in order to convert
> > the javascript. The reading ended up leaving me in a half baked
> > situation which still doesn't help my GWT program compile.
> >
> > I'd really appreciate some help and maybe a few fundamentals on what
> > needs to be happening.
> >
> > Thanks
> > Suri
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Background color for DecoratedTabPanel

2008-09-29 Thread walden

You might try 'background-color' instead of 'background'.

But if that doesn't work, then you might as well roll up your sleeves
and learn to debug the DOM.  Get one of the DOM inspector browser plug-
ins and learn how to use it.

Walden

On Sep 29, 12:42 am, Shri <[EMAIL PROTECTED]> wrote:
> Hi,
> I am not able to change the background color of DecoratedTabPanel tab
> baritems. I tried to use background attribute in - .gwt-
> DecoratedTabPanel .gwt-TabBarItem but it doesn't work. Please help me
> on this issue.
>
> Thanks,
> Shridhar
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best practices

2008-09-29 Thread gregor

Hi Stefan,

Maybe because there are so many different kinds af application you can
build with GWT that it's hard to say if there is any one "best
practice" -  perhaps there there are number of good blueprints
suitable for particular types of application. But for me there are a
few guiding principles I adhere to:

1) GWT, based on Java, is fully object oriented, so all OO principles
apply - they are well known.

2) Use the GWT event model for sending messages between widgets, do
not hold any direct internal references to peer widgets to call peer
methods directly. In the face of complexity this simplifies code and
makes it more robust. It also means that pieces can be easily swapped
in and out of the application and it makes testing and maintenance a
lot easier. This is the Observer pattern, it has stood the test of
time and it avoids tight coupling between components. In practice this
means that a parent widget typically  instantiates and lays out its
child widgets and then hooks up their event listeners etc for them,
but the children have no idea who their parent is or who their peers
are - they just broadcast events which other widgets might listen out
for.

3) The exception to this rule is where you have a group of widgets
that work very closely together for exactly one purpose - in OO
parlance are highly cohesive - so that to all intents and purposes
they have little or no relevance to anything outside that purpose. In
this case it can be not only acceptable but probably desirable to use
direct method calls between them. I'm not sure that there is an
accepted name for this pattern - I've seen things like "goal-oriented
windows" etc - and in GWT it is tempting to call it a Composite, but
although related, GWT's Composite isn't exactly the same thing, nor is
the GoF definition of it. Two examples of what I mean by this are a) a
form with a number of input fields, list boxes etc, where you might
want to do validation/auto-suggest work on the fields, and b) a
navigation structure, e.g. a Tree, where you also have a button bar
with a range of tool buttons driving functions off the tree's selected
item and might need to turn themselves on/off depending on the item
selected. It can be more efficient and basically easier to put
everything in one class and have the individual field/buttons etc call
each other directly via private access in this situation. You would
typically use a GWT Composite to implement this pattern.

4) However you need to be careful with this exception and use the
concept of "granularity" - a component should be neither too big nor
too small, but just "right". What "right" is is matter of judgment.
When I was learning C++ in college I was taught that the "right" size
of a function was usually between 5 and 12 meaningful lines of code.
My own rules of thumb on this are that I do not like GWT classes to
have more than about 100-150 LoC max. If they go over this and the
class qualifies as a "single purpose unit" then I tend to break it up
using private internal classes. If it looks like it's going over
about 500 LoC, then I break it up into separate public classes if I
can and go back to using the Observer pattern and the event system.
But this a judgement call, a matter of craft IMO rather than science
and situation vary widely.

5) Decide early on whether you are after an application that looks and
feels like a web page or like a desktop application. Outside of
aesthetic considerations, it is technically more difficult to get a
GWT UI to work perfectly completely contained within the browser's
window area, resizing itself perfectly etc and it will cost you some
to do so. The browsers think of everything as a document so their
natural tendency is to extend the height of the document, invoking
scrolling, and not to contain within the available visible client area
height. if you want a desktop style app, then it's probably a good
idea to do extra work up front on the overall layout mechanisms until
you get it working properly. If you are used to windows style GUI
programming, maybe Swing or SWT, or you are writing a business
application, it can be difficult to choose on this one. At the end of
the day customer perception is all, but I think that if your users
will be happy with a more "web style" layout then it's probably best
to go that way. I would recommend you trial some prototypes early on
to find out. Ask yourself whether Google tried to copy Outlook when
they made GMail.

6)  Plan your asynchronous RPC calls out in the large up front and
plan for them to change as you find out if your initial decisions
where good - in most non-trivial apps I think some changes in approach
will become necessary as real performance figures start coming in. RPC
is a trade off between keeping the number of calls to a minimum whilst
at the same time keeping the size the packets to a reasonable level,
and no two situations will be identical. Aim for a response time of
<1s except for situations where that is

Re: GWT with struts

2008-09-29 Thread walden

Please be careful with terminology.

When you say "GWT to call struts action", do you mean a remote
procedure call, or do you just mean a link to a new page that happens
to be built by a struts action?

A GWT page is like any other page in its ability to embed links to
other pages.

Could you explain more about how calling a struts action from a GWT
page gives security (and we're not talking "job security", I
assume ;-).

Walden


On Sep 28, 6:17 pm, sruj <[EMAIL PROTECTED]> wrote:
> Hi
> we have a project which uses struts 1.2 . and now started using
> GWT ..for security we want GWT to call struts action.is it possible?
> if so how?
>
> thanks in advance
> sruj
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to access event from another widget

2008-09-29 Thread YoeZ

Thank you very much, thomas
here's the final sample code and it really works... :)

but the problem is, in the MainMenu, I don't know which listbox that
send the listener.
in the MainMenu, I provide three textboxes
txtListA = catch the event from listA
txtListB = catch the event from listB
txtListC = catch the event from listC
so, I have to know first, the name of the sender widget, (which is
listA? listB? or listC?)
then set the txtListA.setText(listA); and so on

I have no idea, how to get the sender name.
I have tried sender.getclass().getname() but the result is not what I
want.

please help me (again) ;)

best regards



/
* iCombo.java
/
public class iCombo extends Composite implements SourcesChangeEvents
{
private HorizontalPanel hPanel = new HorizontalPanel();
private ListBox ListA = new ListBox();
private ListBox ListB = new ListBox();
private ListBox ListC = new ListBox();
private ChangeListenerCollection listeners = new
ChangeListenerCollection();

public iCombo () {
hPanel.add(ListA);
hPanel.add(ListB);
hPanel.add(ListC);

FillList();

ListA.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
listeners.fireChange(ListA);
}
});
ListB.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
listeners.fireChange(ListB);
}
});
ListC.addChangeListener(new ChangeListener() {
public void onChange(Widget arg0) {
listeners.fireChange(ListC);
}
});

initWidget(hPanel);
}

private void FillList() {
ListA.clear();
ListA.addItem("ListA1");
ListA.addItem("ListA2");
ListA.addItem("ListA3");
ListB.clear();
ListB.addItem("ListB1");
ListB.addItem("ListB2");
ListB.addItem("ListB3");
ListC.clear();
ListC.addItem("ListC1");
ListC.addItem("ListC2");
ListC.addItem("ListC3");
}

public void addChangeListener(ChangeListener listener) {
listeners.add(listener);
}

public void removeChangeListener(ChangeListener listener) {
listeners.remove(listener);
}
}

/
* iComboParent.java
/
public class iComboParent extends Composite implements
SourcesChangeEvents  {
private HorizontalPanel vPanel = new HorizontalPanel();
private iCombo MyCombo = new iCombo();
private Button btn1 = new Button("OK");
private ChangeListenerCollection listeners = new
ChangeListenerCollection();

public iComboParent() {
vPanel.add(MyCombo);
vPanel.add(btn1);

initWidget(vPanel);

MyCombo.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
listeners.fireChange(sender);
}
});

}

public void addChangeListener(ChangeListener listener) {
listeners.add(listener);
}

public void removeChangeListener(ChangeListener listener) {
listeners.remove(listener);
}
}

/
* MainMenu.java
/
public class MainMenu implements EntryPoint {
private VerticalPanel vPanel = new VerticalPanel();
private TextBox txtListA = new TextBox();
private TextBox txtListB = new TextBox();
private TextBox txtListC = new TextBox();
private ComboParent cp = new ComboParent ();

public void onModuleLoad() {
vPanel.add(txtListA);
vPanel.add(txtListB);
vPanel.add(txtListC);
vPanel.add(cp);

cp.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
ListBox lb = (ListBox) sender;
 
txtListA.setText(lb.getItemText(lb.getSelectedIndex()));
}
});

RootPanel.get().add(vPanel);
}
}
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and servlet session

2008-09-29 Thread walden

I'm not sure, but I think Tomcat should treat http://localhost and
http:// as different origins requiring separate sessions.
If this is your only problem, then don't use the IP address to access
your site.

If it's not the only problem, then post some meaningful diagnostics
from your server log.  You should have done that in your first post.

Walden

On Sep 28, 1:08 pm, sim123 <[EMAIL PROTECTED]> wrote:
> Someone please look into this issue, I really have no clue what is
> going on.
>
> On Sep 27, 3:38 pm, sim123 <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a simple application built in GWT and java servlet
>
> > 1. User login : user logs in using a asynchronous call to server, RPC
> > service creates a session and return it to client, on OnSuccess of
> > this login call I load data on to browser, there are few RPC calls and
> > one call to downlaod pictures from another tomcat instance.
>
> > 2. I have servlet filter implemented to check if the request is valid
> > or not, based on session coming from Cookies this filter validates the
> > request and pass it to appropriate RPC or non RPC Servlet.
>
> > Now everything is working fine in hosted mode browser but when I do
> > compile/browse I get authentication exception in filter, I don't know
> > ehy is it so as I am getting the session ID back in onSuccess method
> > of Login call and after that I am performing all other operaitons. I
> > created a war file and deployed it on external tomcat, everything
> > works fine if I type "http://localhost:8080/login/Login.html";, but if
> > I type ip address of my machine instead of localhost I get same
> > authentication exception saying session is null, is there something
> > realated to redirecting to another tomcat's instance when loading
> > images? If that is the case why it is not happening in hosted mode and
> > in"localhsot" ?
>
> > I would really appreciate if somebody could please help me with this
> > issue.
>
> > Thansk for all the help and support- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Info Windows

2008-09-29 Thread xavierunited

People post bug reports all the time ugh get real.

On 9/27/08, Eric Ayers <[EMAIL PROTECTED]> wrote:
> Since we are in release mode, If you are having a specific problem with the
> gwt-maps 1.0 RC1 release that hasn't been reported yet, I would like to hear
> about it ASAP.  Please let us know how to reproduce it if you think it is a
> bug.
>
> There are 2 problems with the InfoWindow class that I'm tracking right now:
>
> Issue 92 - missing InfoWiownd.reset() method
>   http://code.google.com/p/gwt-google-apis/issues/detail?id=92
>
> Issue 156 -   Exception in onInfoWindowclose when using an HTML widget for
> Maximized window content.
>   http://code.google.com/p/gwt-google-apis/issues/list?updated=156
>
> Note that these are all issues with the GWT wrappers, not the GInfoWindow
> class in the underlying API.   Those I pass along to the Maps team after I
> verify them.
>
>
> On Sat, Sep 27, 2008 at 3:31 AM, pamela <[EMAIL PROTECTED]> wrote:
>
>>
>> Xavier-
>>
>> Do not post to solicit bug reports. Bug reports happen naturally as
>> bugs happen. Especially do not post bug reports if you're not an
>> absolute expert on the topic. Keep in mind that some of us have the
>> power to disable you from posting in *all* groups.
>>
>> Re info window resizing - I usually put all my content in a div with
>> certain width/height, and pass that into the info window. If you need
>> to resize dynamically, you might look into the maxContent, reset, or
>> reposition functionality.
>>
>> - pamela
>>
>> On Sep 26, 9:16 am, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
>> > Ok i am not really sure how to help you with this for i am kinda new my
>> > self. But i can dirct you to a Guy named Ian he is like an expert. Also
>> > Check out the Google API group i work over there and they always have
>> > the
>> > answer! Hope This helped.If there is anything else you need feel
>> > free
>> to
>> > ask me!
>> >
>> > Xavier A. Mathews
>> > Student/Developer/Web-Master
>> > GG Client Based Tech Support
>> > Hazel Crest Illinois
>> > [EMAIL PROTECTED]
>> > "Fear of a name, only increases fear of the thing itself."
>> >
>> > On Fri, Sep 26, 2008 at 11:11 AM, Pavel Byles <[EMAIL PROTECTED]>
>> wrote:
>> > > Well I'm not having any error messages or memory leaks but just 1
>> annoying
>> > > unexpected issue/bug/feature...my infowindow doesn't resize as i'd
>> expect
>> > > when something other than the initial size goes in it.
>> >
>> > > I see other ppl get it done, but they might not be using GWT, so that
>> makes
>> > > me know it might be just a missing feature of the GWT Maps API that
>> allows
>> > > me to resize the infowindow to fit the content.
>> >
>> > > -Pavel Byles
>> >
>> > > On Fri, Sep 26, 2008 at 6:04 AM, <[EMAIL PROTECTED]> wrote:
>> >
>> > >> Yup!
>> >
>> > >> On 9/25/08, Pavel Byles <[EMAIL PROTECTED]> wrote:
>> > >> > Are you referring to the GWT implementation of the _Maps_
>> InfoWindow?
>> >
>> > >> > -Pavel Byles
>> >
>> > >> > On Wed, Sep 24, 2008 at 5:32 PM, Xavier Live Tech.S
>> > >> > <[EMAIL PROTECTED]>wrote:
>> >
>> > >> >> Hello All,
>> >
>> > >> >> So here is the thingi have been receiving and viewing
>> > >> >> allot
>> of
>> > >> >> post where members etc. are having problems with the info
>> > >> >> windows...like memory leaks..and things that are just not running
>> > >> >> right!
>> >
>> > >> >> So i was wondering if there is anyone who is having a problem with
>> > >> >> there info window can you please post it here (I don't mind if you
>> > >> >> post it else where) stating your problem with your info window and
>> the
>> > >> >> ERROR CODE that you receive when this problem happens.This i and
>> other
>> > >> >> can help you!
>> >
>> > >> >> Good Day And Thank You
>> >
>> > >> --
>> > >> Xavier A. Mathews
>> > >> Student/Developer/Web-Master
>> > >> GG Client Based Tech Support
>> > >> Hazel Crest Illinois
>> > >> [EMAIL PROTECTED]
>> > >> "Fear of a name, only increases fear of the thing itself."
>>
>> >
>>
>
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
> >
>


-- 
Xavier A. Mathews
Student/Developer/Web-Master
GG Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]
"Fear of a name, only increases fear of the thing itself."

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hmmm - new analytics (ga.js) integration?

2008-09-29 Thread sutarsa giri
Hi Pete,

In my experience, when work with com.google.gwt.dom.client.Element on JSNI,
it's simple if we consider that Element as javacript object directly(in
fact, Element is instance of JavaScriptObject). So we don't need to use JSNI
access method like
@com.google.gwt.dom.client.Element::setInnerHTML(Ljava/lang/
String;)'. We can call that method by element_instance.setInnerHTML ,
probably using elementInstance.innerHTML="and others"

I hope that will be usefull for U

Regards,
~Gede Sutarsa~

On Thu, Sep 25, 2008 at 8:51 PM, Pete <[EMAIL PROTECTED]> wrote:

>
> It seems like it should be possible to do something like this (see
> below) to integrate the new ga.js analytics api.  However, when i did
> it, all i got was trouble - very strange exceptions like
>
> java.lang.RuntimeException: Could not find a native method with the
> signature '@com.google.gwt.dom.client.Element::setInnerHTML(Ljava/lang/
> String;)'
>at
>
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:
> 57)
>
> or
>
> 203.1/com.google.gwt.user/com/google/gwt/core/client/GWT.java(216):
> Failed to create JSNI method with signature
> '@com.google.gwt.core.client.GWT::getVersion0()'
>
> Can anyone shed light on why this is happening?
>
> The error arose directly after calling new GoogleAnalytics(id) in my
> onModuleLoad() method.   Note, the constructor for the GoogleAnalytics
> object appears to succeed - but GWT is not happy after that call.
>
> Am I doing something stupid here?
>
> Thanks
>
> -pete
>
> import com.google.gwt.core.client.JavaScriptObject;
>
> public class GoogleAnalytics
> {
>JavaScriptObject tracker;
>
>public GoogleAnalytics(String key)
>{
>tracker = createTracker(key);
>}
>
>private static native JavaScriptObject createTracker(String key)
> /*-{
>if(!$wnd._gat)
>{
>var gaJsHost = (("https:" == $doc.location.protocol) ?
> "https://ssl."; : "http://www.";);
>var blob = $wnd.unescape("%3Cscript src='" + gaJsHost +
> "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E");
>$doc.write(blob);
>}
>return $wnd._gat._getTracker(key);
>}-*/;
>
>public void trackPageview()
>{
>trackPageview(null);
>}
>
>public native void trackPageview(String url) /*-{
>
> [EMAIL PROTECTED]
> ::tracker._trackPreview(url);
>}-*/;
>
>public void trackEvent(String category, String action)
>{
>trackEvent(category, action, null, null);
>}
>
>public native void trackEvent(String category, String action, String
> label, Integer value) /*-{
>
> [EMAIL PROTECTED]
> ::tracker._trackEvent(category,
> action, label, value);
>}-*/;
> }
>
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question - adding GWT to my existing application

2008-09-29 Thread walden

Suri,

If the current Java code is in the same project where you are adding
GWT on the client, you don't need a jar.

Your current Java code does have to be sanitized to meet the 'closed
world' requirements of the GWT compiler.  Read the documentation on
the GWT compiler and JRE emulation classes for details.

Your current Java code will have to be findable by the GWT compiler,
which means there must be a .gwt.xml file on the classpath when you
run the GWT compiler (you'll need to create that), and it needs to
indicate where the compile sources are.  There are basically two ways
to approach this part:

1. keep your sources exactly where they are; place your Pkg1.gwt.xml
file in the root folder of the smallest containing sub-tree for all
the classes you need to include, and use the  tag as
many times as necessary to indicate (and hopefully isolate) just the
classes you want compiled by GWT.

2. do a little folder reorganization so that the classes you will
share between server and client side are isolated cleanly; have a
'client' folder at the root of that sub-tree, and place your
Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you
don't need  tags.

Try that, report any errors you get, and we'll sort it out from there.

Walden

On Sep 27, 3:30 pm, Suri <[EMAIL PROTECTED]> wrote:
> Hi All,
> I'm a GWT newbie and I've just come fresh after reading up the basics
> from the Google GWT tutorial. Here's my situation:
>
> I have an existing Java based web application (Struts based). Now I'm
> trying to add a new module to it and figure I'd try to incorporate GWT
> - mostly because I expect the new module to be a few very dynamic
> pages communicating with the server often.
>
> Now my first question is, how do I reference my current Java code in
> this GWT program. i.e if i have the following
>
> com.pkg1.Class1;
> com.pkg1.pkg2.Class2;
>
> in my existing Java code,
>
> and in my GWT java class I import these 2 classes for implementation,
> what are the exact steps I need to follow so that these are correctly
> added to the GWT program and can compile. So far, I haven't seemed to
> have found a definitive answer to this problem. I saw a few solutions
> of people saying a jar needs to be included and it needs to have a
> .gwt.xml file which gets inherited or something but didn't quite
> understand what exactly they meant.Some others spoke about source code
> having to be available for the program to compile in order to convert
> the javascript. The reading ended up leaving me in a half baked
> situation which still doesn't help my GWT program compile.
>
> I'd really appreciate some help and maybe a few fundamentals on what
> needs to be happening.
>
> Thanks
> Suri
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Image Anchor widget.

2008-09-29 Thread Marcelo Emanoel

try this:



import com.google.gwt.dom.client.AnchorElement;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;


public class ImageLink extends Widget {

private Image img;
private String url;
private String target;

private DivElement element;
private AnchorElement aEl;

public ImageLink(Image img, String url){
initElements();
setImg(img);
setUrl(url);
}

private void initElements() {
element = Document.get().createDivElement();
aEl = Document.get().createAnchorElement();

element.appendChild(aEl);
setElement(element);

sinkEvents(Event.MOUSEEVENTS);
setTarget("_blank");
}

public void onBrowserEvent(Event event) {
if(event.getTypeInt() == Event.ONMOUSEOVER){
aEl.getStyle().setProperty("cursor", "hand");
}
super.onBrowserEvent(event);
}

public ImageLink(){
this(null, "");
}

/**
 * @return the img
 */
public Image getImg() {
return img;
}

/**
 * @param img the img to set
 */
public void setImg(Image img) {
this.img = img;
aEl.appendChild(img.getElement());
}

/**
 * @return the url
 */
public String getUrl() {
return url;
}

/**
 * @param url the url to set
 */
public void setUrl(String url) {
this.url = url;
aEl.setHref(url);
}


/**
 * @return the target
 */
public String getTarget() {
return target;
}


/**
 * @param target the target to set
 */
public void setTarget(String target) {
this.target = target;
aEl.setTarget(target);
}


}



then you use your ImageBundle and pass the image to this widget...
hope it helps you :)

On Sep 26, 6:17 pm, Jean-Lou Dupont <[EMAIL PROTECTED]> wrote:
> The work-around for anybody who cares:  add a 'click listener' to the
> Anchor widget and do the navigation "manually".
> Yet another reason why I don't like IE as much as the others...
>
> On Sep 26, 11:43 am, Jean-Lou Dupont <[EMAIL PROTECTED]> wrote:
>
> > How would I go in creating a cross-browser Image Anchor ( i.e.  > href="#somewhere"> ) using an image
> > bundle?
>
> > I am having some troubles with IE6: there is an extra tag called
> > "clipper" (e.g.  ) that seems to be
> > created with a style attribute that prevents the image from being
> > clickable i.e. navigating to the anchor's link when clicked.
>
> > 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error on projectCreator

2008-09-29 Thread Sumit Chandel

Hi Memphis,

What is the -bash error message you receive when trying to run the
projectCreator script?

Cheers,
-Sumit Chandel

On Fri, Sep 26, 2008 at 8:03 PM, Memphis <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I downloaded and unzip the gwt successfully and create the PATH
> successfully in my .profile, but when I do projectCreator -eclipse
> sample -out sample as stated in the instuctrions, I get a -bash
> error.  Any suggestion?
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Info Windows

2008-09-29 Thread Andrej

Xavier, you didn't post 1 useful post here.
It is SPAM, for me new kind of SPAM, it seems that you are trying to
win any maximum post count race...


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Lothar Kimmeringer

Manish Kumar schrieb:

> The main issue is that jsp existed on external webserver accepts only file 
> path to save the comments content.

I think you confuse PATH_INFO with file path. The path-info of a URL is
everything in the URL after the actual resource, so given a JSP-page
that is accessed
via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt
the PATH_INFO in that case would be /my/path/info/hello.txt (I write
PATH_INFO that way because this is the variable being used when using
the CGI-gateway.

In servlets (i.e. in JSP-pages as well) you can access the path-info-
value with getPathInfo() provided by the HttpServletRequest (that
can be accessed with the variable request inside JSP-pages).

> So I am force to create file having comments for each clicked item on the 
> browser.

I still don't see a need for the creation of files but it is looking
more like a special URL to be constructed. Again RequestBuilder would
be the class of choice in that case. On the other hand, if your JSP-
page expects a previous file-upload, you're screwed. In that case,
before starting a Signed Applet Project, you should consider extending
your JSP-page/servlet to accept the "file" as content of a POST-request.

> Sorry to ask Once more about (2) as I am bit confused , does RPC mechanisnm 
> work on production environment also.   If yes ,Can I process as mention in 

RPC works on production systems as well. gwt-servlet.jar and your server-
classes must be in the classpath of your web-application/server. As well,
your web.xml must contain a servlet-entry for your servlet. If you want
to use the PATH_INFO-functionality, you might need two entries, one
with the URL-pattern /MyServletPattern and /MyServletPattern/*


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: tooltip box

2008-09-29 Thread Piotr Jankowski

On Sep 28, 11:47 pm, Adler <[EMAIL PROTECTED]> wrote:
> I'm creating a personal website for the very first time and I'm really
> enjoying it. However, I was trying to create a tooltip for some parts,
> that appears right at where the cursor is clicked on particular links
> and stays on as long as another one is clicked or a close botton some
> where on the top of the tooltip is pressed. I could manage to find
> some sources that gives me almost the same thing, But I can't make it
> not disappear after a certain time, and there is this other one that
> does exactly what I need but doesn't show the arrowhead and appears
> onthe side of the page!!!
>
> (I'm not that familiar with the JS functions, so forgive me if I'm not
> making sense)
>
> Basically I need something exactly as "google calendar tooltip". Any
> sort of help would be appreciated.

Hi,
I'm not sure if I got exactly what you mean but there's a widget in
GWT called PopupPanel.

> But I can't make it not disappear after a certain time
In PopupPanel you can set in a constructor the "auto-hide" property
which tells the panel whether to close automatically or not.

For more info about PopupPanel see:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/PopupPanel.html

Or, you can create a custom class based on DialogBox. PopupPanel does
not contain the "close button" and with DialogBox you could add it in
your own.
The DialogBox docs can be found there:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/DialogBox.html

Be careful, the PopupPanel and the DialogBox are both not accessible
with keyboard. It means that such elements may block those user who
don't/can't use mice!
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem_with_download_of_GWT

2008-09-29 Thread Nathan Jeffery

Hi There,


i thought of the download manager as well...
tried using Sun's download manager local and web based but this didn't
work...

eventually managed to get it downloaded using a 3G connection...

thanks for your guys input...

regards

nathan

On Sep 25, 4:46 pm, Chad <[EMAIL PROTECTED]> wrote:
> I've had this problem in the past. One solution is to use a download
> manager (as opposed to the browser itself) to handle the download.
> There are several free ones available. Just google download manager
> and you'll find more than you ever wish you knew about. ;) You should
> be able to get the entire file that way.
>
> HTH,
> Chad
>
> On Sep 25, 5:18 am, Nathan Jeffery <[EMAIL PROTECTED]> wrote:
>
> > no error message the download just "finishes" and then when i check
> > the file it is not the correct size and it also doesn't open.
>
> > i have tried downloading a different version and experienced the same
> > problem.
>
> > regards
>
> > nathan jeffery
>
> >http://uranium.co.zahttp://uraniumstudio.co.zahttp://myecommerce.co.z...
>
> > Nathan Jeffery
> > Director
>
> > Uranium Studio CC
>
> > Registration Number: 2007/197787/23
>
> > Cellular:               +27 82 454 1019
> > Facsimile:      +27 82 829 9043
> > E-mail:                 [EMAIL PROTECTED]
> > Website:                http://www.uranium.co.za
>
> > Important Notice:
>
> > Important restrictions, qualifications and disclaimers ("the
> > Disclaimer") apply to this email. To read this click on the following
> > address or copy into your Internet 
> > browser:http://www.uranium.co.za/legal/disclaimer.html
>
> > The Disclaimer forms part of the content of this email in terms of
> > section 11 of the Electronic Communications and Transactions Act, 25
> > of 2002. If you are unable to access the Disclaimer, send a blank e-
> > mail to [EMAIL PROTECTED] and we will send you a copy of the
> > Disclaimer.
>
> > On Sep 24, 12:08 am, "Xavier Mathews" <[EMAIL PROTECTED]> wrote:
>
> > > Did you get an error message?
>
> > > Xavier A. Mathews
> > > Student/Developer/Web-Master
> > > Google Group Client Based Tech Support
> > > Hazel Crest Illinois
> > > [EMAIL PROTECTED]
> > > "Fear of a name, only increases fear of the thing itself."
>
> > > On Mon, Sep 22, 2008 at 6:00 AM, Nathan Jeffery <[EMAIL PROTECTED]>wrote:
>
> > > > Hi there,
>
> > > > i am having difficulty in downloading the app.
>
> > > > i have tried quite a few times and have even tried using different
> > > > browsers, but the download always seems to stop and about 4Mb...
>
> > > > any suggestions?
>
> > > > thanks.
>
> > > > nathan
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to access event from another widget

2008-09-29 Thread Thomas Broyer



On 28 sep, 20:34, YoeZ <[EMAIL PROTECTED]> wrote:
> Hi,
> How can I access event from another widget?
> Or I want to implement an event from another widget.
> let say I have a three class:
> iCombo.java = contain listbox
> ComboParent.java = contain iCombo class
> MainMenu.java = contain ComboParent
>
> in the MainMenu.java class, I want to implement the event when the
> listbox (in iCombo class) has changed.

iCombo has to fire events on listbox's change event; and ComboParent
has to fire events on iCombo's event; then MainMenu can register as a
listener to the ComboParent instance.

> /
> * iCombo.java
> /
> public class iCombo extends Composite implements ChangeListener {

The goal of a Composite is to mask the internal implementation
(encapsulation) and expose its own API. It doesn't matter to iCombo
users that it's made of three ListBoxes or a set or RadioButtons or
whatever other widget; what matters is that some events are fired in
response to changes (generally in response to user interaction).

(note: I wouldn't implement ChangeListener on iCombo, it's an
"implementation detail"; I would rather have a ChangeListener stored
in a private field: private ChangeListener listener = new
ChangeListener() { ... }; )

iCombo should implement SourcesChangeEvents:

private ChangeListenerCollection listeners = new
ChangeListenerCollection();

public void addChangeListener(ChangeListener listener) {
   listeners.add(listener);
}
public void removeChangeListener(ChangeListener listener) {
   listeners.remove(listener);
}

>     private HorizontalPanel hPanel = new HorizontalPanel();
>     private ListBox ListA = new ListBox();
>     private ListBox ListB = new ListBox();
>     private ListBox ListC = new ListBox();
>
>     public iCombo () {
>         hPanel.add(ListA);
>         hPanel.add(ListB);
>         hPanel.add(ListC);
>
>         ListA.addChangeListener(this);
>         ListB.addChangeListener(this);
>         ListC.addChangeListener(this);
>
>         initWidget(hPanel);
>     }
>     public void onChange(Widget sender) {
>         // I want to implement this method from another class? :(

   listeners.fireChange(this);

>     }
>
> }
>
> /
> * ComboParent.java
> /
> public class ComboParent extends Composite {

Same here.

> /
> * MainMenu.java
> /
> public class MainMenu implements EntryPoint {
>     private VerticalPanel vPanel = new VerticalPanel();
>     private ComboParent cp = new ComboParent ();
>
>     public void onModuleLoad() {
>         vPanel.add(cp);
>
>         RootPanel.get().add(cp);

cp.addChangeListener(new ChangeListener() {
public void onChange(Widget sender) {
// ComboParent fired a change event.
}
});

>     }
>
>     // How do I know when the ListBox has Changed From here..
>
> }
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Lothar,

Thank you for providing such great help.
The Actual requirements is to add the comments for each item appeared on the 
browser.
I have created  a richtextArea with the buttons for entering the comments 
for each clicked item shown on the browser.
Now, once click over the buttons, It should be submitted to web server( 
tomcat ) already running for the whole product to save in the  server 
filesystem.This is external webserver
not gwt tomcat web server.

The main issue is that jsp existed on external webserver accepts only file 
path to save the comments content.
So I am force to create file having comments for each clicked item on the 
browser.For avoiding the creating files on client, I had suggested no (1) 
mentioned below.
Is this right fit? .

Sorry to ask Once more about (2) as I am bit confused , does RPC mechanisnm 
work on production environment also.   If yes ,Can I process as mention in 
(2).

Please provide your views for the same.

Regards,
Manish


- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 3:00 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Manish Kumar schrieb:
>
>> Actually,I wanted to send the request parameters for file information to
>> Tomcat webserver( already implemented for whole application. ). But The 
>> main
>> problem is that
>> I have to use already existing jsp which takes only file path.So,
>
> If you have to call an existing servlet/JSP-page, you can use
> RequestBuilder where you can construct your own HTTP-requests
> and interpret the result as you like.
>
>> 1) Would this be good if I write a servlet on webserver which would write
>> the file and use sendredirect to jsp?
>
> Not really. The only exception I see here is if you have to
> perform WebService-requests or if you have to contact a
> different server than the one your GWT-application has been
> loaded from (by default this is restricted).
>
>> 2)  Can I make a call rpc call to my own servlet in gwt tomcat server 
>> which
>> will write a file and sendredirect to my jsp on application web server.?
>> But , As per my study , rpc call is only for debugging so, it 
>> wouldn't
>> valid for production server.is this correct.?
>
> No, RPC is the way of choice communicating with the server
> from a GWT-application.
>
>> 3) or, as one of u suggested , write a applet with extended signature and
>> use some magic of JSNI.( for this, can anybody provide some more 
>> detail. )
>
> What exactly do you need the local file-access? If it's for
> a file-upload, there is a HTML-tag for that, i.e. you can
> use that inside GWT as well (using the FileUpload-widget).
> So if it's a file-upload we're talking about, use that,
> otherwise you will have to go the Applet-way or try to think
> over your concept and find a solution that doesn't need a
> local file-system.
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Form submitted twice?

2008-09-29 Thread Thomas Broyer


On 28 sep, 21:26, marcelstoer <[EMAIL PROTECTED]> wrote:
> I used the code provided as an example 
> inhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
> to build a form panel.
>
> However, the form seems to get submitted twice as the
> Window.alert("The text box must not be empty"); is executed twice. Any
> ideas as for why this happens?

Might be issue 1585:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1585

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



My googlebot approach for GWT: UserBotRouter

2008-09-29 Thread John Fowler

Please advise concerning my approach for enabling googlebot to index
my GWT site: http://www.SudokuComplete.com/

First, I needed to create a static, flattened, html-only view of my
website.  To do this, I created a simple .Net program that uses the IE
WebBrowser control to navigate to my GWT site.  The program takes a
URL with a history token, let's the browser run through the GWT
javascript, and then saves a copy of the resulting DOM html to a file
with a name based on the history token.  This file is essentially an
html-only view of the site as-of the history token.  I use the program
to save static versions of each of the major history tokens on the
site.  These files are the ones I want googlebot to index.  And to
provide navigation for googlebot, I add links between all the files at
the end of each of them.

Next, I created my "UserBotRouter", a .Net HttpModule (analagous to a
J2EE Web Filter) that analizes the incoming requests to the website.
It checks the UserAgent header to see if the request is being made by
a bot or a standard browser.  If it is a bot, then it routes the
request to the appropriate static html page (created in step #1).  If,
however, a standard (non-bot) browser requests one of the static
pages, then my module sends an HTTP redirect to send the user's
browser to the corresponding GWT page including the respective history
token.  In this manner, I am able to route users to the GWT pages, and
bots to the static HTML pages.

Am I missing anything?  Does this sound like a workable approach?

Can GWT build something like this into their compiler?  That is, if
GWT compiles different versions for the different browsers, why not
create a set of standard "bot" pages.  In the module XML file the
developer could specify the tokens for which GWT should create html
pages.  GWT would use an approach similar to mine above to create
static html files for the tokens.  Then, in these static html files,
some javascript could redirect the browser to the corresponding GWT
url.  This javascript redirect would affect actual user's browsers,
whereas bots would continue to read the page as-is, following links to
the other static pages.

Please let me know what you think,

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Lothar Kimmeringer

Manish Kumar schrieb:

> Actually,I wanted to send the request parameters for file information to 
> Tomcat webserver( already implemented for whole application. ). But The main 
> problem is that
> I have to use already existing jsp which takes only file path.So,

If you have to call an existing servlet/JSP-page, you can use
RequestBuilder where you can construct your own HTTP-requests
and interpret the result as you like.

> 1) Would this be good if I write a servlet on webserver which would write 
> the file and use sendredirect to jsp?

Not really. The only exception I see here is if you have to
perform WebService-requests or if you have to contact a
different server than the one your GWT-application has been
loaded from (by default this is restricted).

> 2)  Can I make a call rpc call to my own servlet in gwt tomcat server which 
> will write a file and sendredirect to my jsp on application web server.?
> But , As per my study , rpc call is only for debugging so, it wouldn't 
> valid for production server.is this correct.?

No, RPC is the way of choice communicating with the server
from a GWT-application.

> 3) or, as one of u suggested , write a applet with extended signature and 
> use some magic of JSNI.( for this, can anybody provide some more detail. )

What exactly do you need the local file-access? If it's for
a file-upload, there is a HTML-tag for that, i.e. you can
use that inside GWT as well (using the FileUpload-widget).
So if it's a file-upload we're talking about, use that,
otherwise you will have to go the Applet-way or try to think
over your concept and find a solution that doesn't need a
local file-system.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Form submitted twice?

2008-09-29 Thread Lothar Kimmeringer

marcelstoer schrieb:

> However, the form seems to get submitted twice as the
> Window.alert("The text box must not be empty"); is executed twice. Any
> ideas as for why this happens?

Place a
GWT.log("submitted", new Exception());
next to the Window.alert and look into the log-window where the
second call comes from. This should help you to find the reason
why you call it twice.


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Manish Kumar

Hi Everybody,

Thank you all of providing much needed support.
Though I have implemented this by calling external java script using JSNI , 
I would like to change the way if it doesn't last long.
Actually,I wanted to send the request parameters for file information to 
Tomcat webserver( already implemented for whole application. ). But The main 
problem is that
I have to use already existing jsp which takes only file path.So,

1) Would this be good if I write a servlet on webserver which would write 
the file and use sendredirect to jsp?
2)  Can I make a call rpc call to my own servlet in gwt tomcat server which 
will write a file and sendredirect to my jsp on application web server.?
But , As per my study , rpc call is only for debugging so, it wouldn't 
valid for production server.is this correct.?
3) or, as one of u suggested , write a applet with extended signature and 
use some magic of JSNI.( for this, can anybody provide some more detail. )

please provide the suggestions and ideas if any others.

Regards
Manish

- Original Message - 
From: "Lothar Kimmeringer" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 29, 2008 12:57 PM
Subject: Re: * No source code is available for type java.io.BufferedWriter; 
did you forget to inherit a required module?*


>
> Hi Manish,
>
> I corrected your quoting to make it easier to read.
>
> Manish Kumar schrieb:
>> Arthur Kalmenson wrote:
>>> That link is for Java classes that can be used on the client side, not
>>> the server side. On the server side you can use any Java classes you
>>> want.
>>
>> This seems a bit confusive statement.As per my knowledge ,Packages 
>> mention
>> in JRE Emulation for GWT
>> on this location
>> (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation
>>  )are applied to Both server as well as client.
>
> The JRE Emulation is valid for the client-part. Because it's a subset
> of the Java Runtime Library, it's of course valid for the server-side
> as well. But the server-side isn't limited to that because it's
> running inside a Java Virtual Machine, e.g. a Tomcat-server etc.
>
>> And also,for the same functionalitiy, I came to knew that we can call  a
>> external java script function
>> (resposible for creating and writing files) inside a GWT Code (client 
>> side)
>> using JSNI .Is this a good solution?
>
> There is no Javascript-function that allows you to write to the
> local filesystem. There are only hacks taking advantages of bugs
> in browsers to achieve that but this kind of thing don't last
> very long and is nothing I would expect inside a widget-library.
>
>> Please correct if I am wrong at any point.
>
> The link was correct ;-)
>
>
> Regards, Lothar
>
> > 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Form submitted twice?

2008-09-29 Thread mon3y

Hi

hmmm...you should only see it once, as mentioned.
1) Are you sure you haven't added the listner twice?
2) Can you post you code up?
3) Are you sure you're not submitting twice?

mon3y.

On Sep 28, 9:26 pm, marcelstoer <[EMAIL PROTECTED]> wrote:
> I used the code provided as an example 
> inhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
> to build a form panel.
>
> However, the form seems to get submitted twice as the
> Window.alert("The text box must not be empty"); is executed twice. Any
> ideas as for why this happens?
>
> Regards,
> Marcel
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Adam T

Urgh, Sunday evening mistakes - it is of course a link to classes
available on client side; on server side you can use all of Java.
//A

On 29 Sep, 01:11, Arthur Kalmenson <[EMAIL PROTECTED]> wrote:
> That link is for Java classes that can be used on the client side, not
> the server side. On the server side you can use any Java classes you
> want.
>
> Regards,
> Arthur Kalmenson
>
> On Sep 28, 11:21 am, Adam T <[EMAIL PROTECTED]> wrote:
>
>
>
> > Too add to Lothar's comment, you can find which Java classes you can
> > use on server side by referring 
> > here:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> > BufferedWriter and FileWriter are not included for the reasons already
> > stated.
>
> > //A
>
> > On 27 Sep, 11:53, "Manish Kumar" <[EMAIL PROTECTED]> wrote:
>
> > > Hi everybody,
>
> > > Thanks all of you for providing continuos support to each other.
>
> > > I am trying to write a file on GWT Client ( inside the method
> > > onModuleLoad )using BufferedWriter and FileWriter.
>
> > > The problem is that It is compiled successfuly but on the run time it 
> > > gives
> > > :
>
> > > * No source code is available for type java.io.BufferedWriter; did you
> > > forget to inherit a required module?*
> > > * No source code is available for type java.io.FileWriter; did you forget 
> > > to
> > > inherit a required module?*
> > > * No source code is available for type java.io.IOException; did you forget
> > > to inherit a required module?*
>
> > > These seem a bit sily errors as I might not have included some required
> > > module or jar file,But troubling me a lot.
>
> > > I am using eclipse IDE and added all the jars to avoid any compilation
> > > error.
>
> > > And also is there any certian way to add module/lib/classpath for the 
> > > same.
>
> > > Usually I use *configure Build Path* and manual edit of  gwt.xml.
>
> > > Does this make any difference?
>
> > > Can anybody please help me out to simulate which is the required for the
> > > same?
>
> > > Thanking in advance.
>
> > > Regards
> > > Manish- Dölj citerad text -
>
> - Visa citerad text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: connect to mysql datbase

2008-09-29 Thread Lothar Kimmeringer

Hi avd,

avd schrieb:

> my problem is, How can i add a JDBC connector to my classpath to run
> the SQL queries in GWT? Tutorial and examples suggest me doing this
> through "/opt/classpath/mysql-connector-java-5.1.5/mysql-connector-
> java-5.1.5-bin.jar".
> but i'm not able to get the result of sql queries.Please suggest me
> good solution.

First of all, you can't connect to MySQL using JDBC inside the
GWT-client (there are about thousand threads about this in this
forum, so I'm not going into detail here), so you have to implement
a RemoteServiceServlet that is called by the GWT-client (I assume
that you use Java on the server-side).

Inside the servlet, you connect to the MySQL-database. There are
a couple of examples out there, here is one:
http://www.stardeveloper.com/articles/display.html?article=2003090401&page=1
After that you execute the SQL-statement and return the result
to the client. To be able to do that you have to create a resultset
that can be serializied (java.sql.Result is not part of the JRE
emulation of GWT), e.g. a String[][].


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*

2008-09-29 Thread Lothar Kimmeringer

Hi Manish,

I corrected your quoting to make it easier to read.

Manish Kumar schrieb:
> Arthur Kalmenson wrote:
>> That link is for Java classes that can be used on the client side, not
>> the server side. On the server side you can use any Java classes you
>> want.
>
> This seems a bit confusive statement.As per my knowledge ,Packages mention 
> in JRE Emulation for GWT
> on this location 
> (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation
>  
>  )are applied to Both server as well as client.

The JRE Emulation is valid for the client-part. Because it's a subset
of the Java Runtime Library, it's of course valid for the server-side
as well. But the server-side isn't limited to that because it's
running inside a Java Virtual Machine, e.g. a Tomcat-server etc.

> And also,for the same functionalitiy, I came to knew that we can call  a 
> external java script function
> (resposible for creating and writing files) inside a GWT Code (client side) 
> using JSNI .Is this a good solution?

There is no Javascript-function that allows you to write to the
local filesystem. There are only hacks taking advantages of bugs
in browsers to achieve that but this kind of thing don't last
very long and is nothing I would expect inside a widget-library.

> Please correct if I am wrong at any point.

The link was correct ;-)


Regards, Lothar

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---