How to configure Hibernate

2010-04-09 Thread naga vinod kumar
Hi,

I am getting error WARNING: Could not instantiate listener
org.springframework.web.context.request.RequestContextListener
Can u please suggest any tutorials ,I am unable to configure jetty container

Regards,
vinod

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



Re: different behavior on chrome and firefox

2010-04-09 Thread kozura
PopupPanel documentation has a lovely example:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/PopupPanel.html

For positioning it, instead of the roundabout positionAndShow that
they use, can probably just do:

popup.setPopupPosition(textbox.getAbsoluteLeft() + 10,
textbox.getAbsoluteTop() + textBox.getOffsetHeight());
popup.show();


On Apr 9, 11:08 pm, Vik  wrote:
> Hie
>
> Yes i m using onBlur.
>
> Right I have same opinion that window alert is too bad.
> What I want actually is just marking the component in red and showing a
> message somewhere near the component. How can i use a popup below a textbox?
> I mean i guess popup comes also like a window only ?
> Is there any available example to follow as it will take me good time to do
> it all.
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.blogspot.com
>
> On Sat, Apr 10, 2010 at 12:25 AM, kozura  wrote:
> > What event are you using for activating your validation?  onBlur?
>
> > As for the second question, you have the full power of Java OO
> > programming available.  So either extend TextBox, or make a Composite
> > widget containing a textbox, that encapsulates what you want, maybe
> > ValidatingTextBox.  Give it a mechanism for generically validating,
> > maybe a callback class or whatever, and based on the result add your
> > coloring/popups/etc.  Then instantiate it for each field, with each
> > particular validating callback.  BTW I'd avoid alert as it locks your
> > browser, requires an extra user click, and isn't very pleasant; maybe
> > use a Popup below the textbox instead.
>
> > On Apr 9, 12:05 pm, Vik  wrote:
> > > Hie
>
> > > Please have a look at:
> >http://1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp
>
> > > Click
> > on
> > > the first name field. and then tab out without entering anything.
> > > In firefox the field background becomes red but it does not happen in
> > > chrome.
>
> > > Any reasons why the difference in behavior? and how to fix it?
>
> > > One more thing right now i am showing the error message as a window
> > alert.
> > > Is there a generic way to mark the component in red and show a error near
> > to
> > > it?
> > > Programmatically doing it will be a lot of effort for all the ui
> > components.
>
> > > Thankx and Regards
>
> > > Vik
> > > Founderwww.sakshum.comwww.sakshum.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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Compound properties

2010-04-09 Thread Paul Robinson
What you're missing is the gwt.xml construction that lets you make
properties depend on other properties.

Create a new property like this:


Then get GWT to calculate your log_level property from the new prod/dev
switch:

  



  


and do something similar to set up the stack trace emulation from the
compile mode too.

Then you just need to switch the compile mode, and the other things
switch automatically from that.

Enjoy :)

Paul

b.thakker wrote:
> Hello
>
> We have several modules with 168 permutations each due to 6 browsers,
> 7 languages, 2 log-level modes (fatal and off) and 2 stack-trace-
> emulation modes (6*7*2*2 = 168). The entire app takes almost 5 hours
> to compile.
>
> This makes me ask whether its possible to have compound properties in
> GWT?
>
> For example, I need stack-trace emulation only when log_level is set
> to true. This will help me reduce the number of permutations to half.
>
> Instead of the log_level/stack-trace-emulation combinations of
> FATAL/TRUE, FATAL/FALSE, OFF/TRUE, OFF/FALSE
>
> I get FATAL/TRUE, OFF/FALSE.
>
> Please let me know if that did not make sense or if I'm missing
> something.
>
> I will highly appreciate any insight.
>
> Thank You.
>
>   

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



Re: GWTFeedReader broken ?

2010-04-09 Thread Henchan
My final update on this topic. Just discovered an alternative which
compiles and runs without problem.
I'll use that in my project instead of GWT-Feed-Reader.
http://www.ibm.com/developerworks/xml/library/x-gwtatomr/index.html


On Apr 10, 11:34 am, Henchan  wrote:
> Spoke too soon. Actually, the 1.4 branch has exactly the same problems
> as Trunk.
> I am not familiar with ant, so my problem might lie in the way I am
> bringing the project in to Eclipse. However, I suspect it is just
> because it's a very old code base which no longer works against a
> contemporary SDK.
>
> Has anybody else recently compiled this project successfully ?
>
> On Apr 10, 6:13 am, Henchan  wrote:
>
>
>
> > Thanks for your advice. No doubt gwt-feed-reader is old code. I'd
> > happily switch to another implementation if especially if it supports
> > more recent updates to the Feed API. The only alternative I've found
> > depends on extjs, which I am not using elsewhere in my project.
>
> > Anyway as you indicated... 1.4 resolves the errors. Cheers!
>
> > On Apr 10, 4:47 am, g p  wrote:
>
> > > Hmm ... from its how to build:
> > > "
>
> > >    1. Check out the Google Web Toolkit as described in Making GWT
> > > Better
> > >       - Checking out the GWT 1.4 release branch is recommended instead of
> > >       trunk"
>
> > > Maybe this is why you get the errors?
> > > It looks to me this is an old and not updated to latest GWT code ...
>
> > > Cheers!
>
> > > On 9 April 2010 09:21, Henchan  wrote:
>
> > > > I downloaded GWTFeedReader from
> > > >http://gwt-feed-reader.googlecode.com/svn/trunk
> > > > into Eclipse (via SVN) for the first time. The GWT 2.0.3 SDK is
> > > > installed and other projects are compiling fine.
> > > > Eclipse highlights  a small number of errors in the GWTFeedReader
> > > > source.
> > > > The first: "StyleInjector cannot be resolved". There was no class
> > > > called StyleInjector in the svn repository. Though I could find the
> > > > source through the web interface
>
> > > >http://code.google.com/p/gwt-feed-reader/source/browse/trunk/src/com/...
>
> > > > Installing just this class did not resolve the problems, however.
> > > > Suspecting that the svn package's integrity is compromised, I am
> > > > reluctant pursue these errors piecemeal.
> > > > Or maybe I am just doing something wrong ?
>
> > > > - henchan
>
> > > > --
> > > > 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: different behavior on chrome and firefox

2010-04-09 Thread Vik
Hie

Yes i m using onBlur.

Right I have same opinion that window alert is too bad.
What I want actually is just marking the component in red and showing a
message somewhere near the component. How can i use a popup below a textbox?
I mean i guess popup comes also like a window only ?
Is there any available example to follow as it will take me good time to do
it all.




Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sat, Apr 10, 2010 at 12:25 AM, kozura  wrote:

> What event are you using for activating your validation?  onBlur?
>
> As for the second question, you have the full power of Java OO
> programming available.  So either extend TextBox, or make a Composite
> widget containing a textbox, that encapsulates what you want, maybe
> ValidatingTextBox.  Give it a mechanism for generically validating,
> maybe a callback class or whatever, and based on the result add your
> coloring/popups/etc.  Then instantiate it for each field, with each
> particular validating callback.  BTW I'd avoid alert as it locks your
> browser, requires an extra user click, and isn't very pleasant; maybe
> use a Popup below the textbox instead.
>
> On Apr 9, 12:05 pm, Vik  wrote:
> > Hie
> >
> > Please have a look at:
> http://1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp
> >
> > Click
> on
> > the first name field. and then tab out without entering anything.
> > In firefox the field background becomes red but it does not happen in
> > chrome.
> >
> > Any reasons why the difference in behavior? and how to fix it?
> >
> > One more thing right now i am showing the error message as a window
> alert.
> > Is there a generic way to mark the component in red and show a error near
> to
> > it?
> > Programmatically doing it will be a lot of effort for all the ui
> components.
> >
> > Thankx and Regards
> >
> > Vik
> > Founderwww.sakshum.comwww.sakshum.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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWTFeedReader broken ?

2010-04-09 Thread Henchan
Spoke too soon. Actually, the 1.4 branch has exactly the same problems
as Trunk.
I am not familiar with ant, so my problem might lie in the way I am
bringing the project in to Eclipse. However, I suspect it is just
because it's a very old code base which no longer works against a
contemporary SDK.

Has anybody else recently compiled this project successfully ?


On Apr 10, 6:13 am, Henchan  wrote:
> Thanks for your advice. No doubt gwt-feed-reader is old code. I'd
> happily switch to another implementation if especially if it supports
> more recent updates to the Feed API. The only alternative I've found
> depends on extjs, which I am not using elsewhere in my project.
>
> Anyway as you indicated... 1.4 resolves the errors. Cheers!
>
> On Apr 10, 4:47 am, g p  wrote:
>
>
>
> > Hmm ... from its how to build:
> > "
>
> >    1. Check out the Google Web Toolkit as described in Making GWT
> > Better
> >       - Checking out the GWT 1.4 release branch is recommended instead of
> >       trunk"
>
> > Maybe this is why you get the errors?
> > It looks to me this is an old and not updated to latest GWT code ...
>
> > Cheers!
>
> > On 9 April 2010 09:21, Henchan  wrote:
>
> > > I downloaded GWTFeedReader from
> > >http://gwt-feed-reader.googlecode.com/svn/trunk
> > > into Eclipse (via SVN) for the first time. The GWT 2.0.3 SDK is
> > > installed and other projects are compiling fine.
> > > Eclipse highlights  a small number of errors in the GWTFeedReader
> > > source.
> > > The first: "StyleInjector cannot be resolved". There was no class
> > > called StyleInjector in the svn repository. Though I could find the
> > > source through the web interface
>
> > >http://code.google.com/p/gwt-feed-reader/source/browse/trunk/src/com/...
>
> > > Installing just this class did not resolve the problems, however.
> > > Suspecting that the svn package's integrity is compromised, I am
> > > reluctant pursue these errors piecemeal.
> > > Or maybe I am just doing something wrong ?
>
> > > - henchan
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



GDBE - Build a custom Google Docs Editor

2010-04-09 Thread Bobby
GDBE is an open source project providing a basic text editor for
Google Docs:
http://code.google.com/p/gdbe/

You can check out the live version here:
http://gdocs-base-editor.appspot.com/

It's built with GWT and the AppEngine, just upload to your AppEngine
account and you'll have a working editor.

We can use GDBE to build customized document editors, for example:
http://docs.latexlab.org

If you're interested, check out the source and make it your own. :)

Enjoy

Bobby

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



Output of two entrypoints overlapping

2010-04-09 Thread Blessed Geek
I have an entrypoint module Main.

I have another entrypoint module User

User inherits non-entrypoint module UserPersistence.

At some time, I inadvertently had module UserPersistence inherit Main.
That is, User module effectively inherits Main.

The result was, when module User is displayed, it was overlaid by the
output of Main. It took sometime to search for it and finally the
problem of module overlap was solved when I removed the inheritance of
Main in UserPersistence's gwt.xml.

Therefore, is it safe to say that you can create a mashed display of
entrypoints by having a module inherit those various entrypoint. That
inheriting an entrypoint would result in that entrypoint module's
content overlaying the current entrypoint's outuput?

Is it safe to say that this is a feature I could exploit rather than a
bug? Is there any documentation on this feature or is it a feature I
have to either discover incidentally or by logical deduction.

What are the precautions that I need to take when making use of such
method of module overlay?

I had always thought that "inherits" was akin to "import" - no runtime
effect if not used. But it now seems "inherits" is more like
inclusion.

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



output of two entrypoints overlapping

2010-04-09 Thread Blessed Geek
I have an entrypoint module Main.

I have another entrypoint module User

User inherits non-entrypoint module UserPersistence.

At some time, I inadvertently had module Persistence inherit Main.
That is, User module effectively inherits Main.

The result was, when module User is displayed, it was overlaid by the
output of Main. It took sometime to search for it and finally the
problem of module overlap was solved when I removed the inheritance of
Main in User's gwt.xml.

Therefore, is it safe to say that you can create a mashed display of
entrypoints by having a module inherit those various entrypoint. That
inheriting an entrypoint would result in that entrypoint module's
content overlaying the current entrypoint's outuput?

Is it safe to say that this is a feature I could exploit rather than a
bug? Is there any documentation on this feature or is it a feature I
have to either discover incidentally or by logical deduction.

What are the precautions that I need to take when making use of such
method of module overlay?

I had always thought that "inherits" was akin to "import" - no runtime
effect if not used. But it now seems "inherits" is more like
inclusion.

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



Re: Eclipse JavaEE tools + GWT Development mode

2010-04-09 Thread ekr
Hi Keith,

I played and played with Eclipse build path order etc. to see if I
could get the GWT plugin to use the JDK parser, not the one from the
J2EE app server OC4J. No Luck. Not sure what is driving this.

I looked at the source code In the dev subproject
com.google.gwt.dev.util.xml.ReflectiveParser.java
and found that it sets the feature 
http://apache.org/xml/features/nonvalidating/load-external-dtd
to false.

>From http://xerces.apache.org/xerces-j/features.html

http://apache.org/xml/features/nonvalidating/load-external-dtd
True:   Load the external DTD.
False:  Ignore the external DTD completely.
Default:true
Note:   This feature is always on when validation is on.

Not sure what the JAXP spec says but the code here is assuming (I
think) a Apache (xerses) parser which in this case
may not be a good assumption. Perhaps the ReflectiveParser should
catch this exception explicitly
"org.xml.sax.SAXNotRecognizedException" and log it or something. Not
sure if the Oracle impl should ignore features that it doesn't
understand but we have no control over that. Anyway, hopefully this
can be fixed and until then ...

Workaround for GWT compile for OC4J
Advanced->VM arguments
-
Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl

Thanks for the pointers - gave me some motivation to dig deeper,
Eric

On Apr 8, 2:11 pm, Keith Platfoot  wrote:
> Hi Eric,
>
> Hm, I'm not really sure about that error.  Is it possible to use another
> parser rather than the Oracle Parser?  Also, are there DTD references in
> your module file?  The error mentions a 
> missinghttp://apache.org/xml/features/nonvalidating/load-external-dtdfeature,
> which might only be an problem if you actually have references to external
> DTD's in your XML.  Just a guess.
>
> Keith
>
>
>
>
>
> On Mon, Apr 5, 2010 at 10:22 PM, ekr  wrote:
> > Hi Keith,
>
> > I'm very encouraged - I was able to get my existing project updated
> > using Google -> Web Application properties and the Web Toolkit
> > properties. I'm using GWT 2.0.3 and Google Plugin for Eclipse 3.5 -
> > 1.3.2.v201003242055.  I have a manual build (Ant) working with a
> > Dynamic Web Project with a WebContent directory.
>
> > Now the GWT Compile Project recognizes the project but when I try to
> > run it I have a problem. I'm using OC4J 10.1.3.5.0 which includes the
> > Oracle Parser which doesn't like the feature. Any Ideas?
>
> > Thanks, Eric
>
> > [ERROR] Failure while parsing XML
> > org.xml.sax.SAXNotRecognizedException:
> >http://apache.org/xml/features/nonvalidating/load-external-dtd
> >        at
> > oracle.xml.jaxp.JXSAXParserFactory.setFeature(JXSAXParserFactory.java:
> > 128)
> >        at com.google.gwt.dev.util.xml.ReflectiveParser
> > $Impl.parse(ReflectiveParser.java:320)
> >        at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
> > $100(ReflectiveParser.java:48)
> >        at
> > com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
> > 398)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
> > 257)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
> > 169)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
> > 283)
> >        at
>
> > com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.ja­va:
> > 141)
> >        at com.google.gwt.dev.Compiler.run(Compiler.java:184)
> >        at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
> >        at
> > com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> > 87)
> >        at
>
> > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu­nner.java:
> > 81)
> >        at com.google.gwt.dev.Compiler.main(Compiler.java:159)
> > [ERROR] Unexpected error while processing XML
> > com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> > entries)
> >        at com.google.gwt.dev.util.xml.ReflectiveParser
> > $Impl.parse(ReflectiveParser.java:351)
> >        at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access
> > $100(ReflectiveParser.java:48)
> >        at
> > com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
> > 398)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
> > 257)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
> > 169)
> >        at
> > com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule(ModuleDefLoader.java:
> > 283)
> >        at
>
> > com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(ModuleDefLoader.ja­va:
> > 141)
> >        at com.google.gwt.dev.Compiler.run(Compiler.java:184)
> >        at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
> >        at
> > com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> > 87)
> >        at
>
> > com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu

Re: Irony: GWT Showcase demo does not work with Chrome

2010-04-09 Thread neshaug
Same for me 5.0.372.0 Ubuntu 9.10, and workes fine with developer
tools.

On Apr 9, 3:27 pm, Michael  wrote:
> I see the same with latest 5.0.371.0 on OSX.
>
> But after opening the Developer Tools, the showcase is working - it
> even remembered all the clicks I made before!
>
> Michael
>
> On Apr 7, 9:33 pm, Unconquered  wrote:
>
>
>
> > With the latest Chrome, running on Mac OS X, the Google Web Toolkit
> > "Showcase of Features" at
>
> >  http://gwt.google.com/samples/Showcase/Showcase.html
>
> > does not work properly. Widgets is expanded but the other main items
> > below (e.g. Lists and Menus) will not expand when clicked. The page
> > works in Safari.

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



Re: GWTFeedReader broken ?

2010-04-09 Thread Henchan
Thanks for your advice. No doubt gwt-feed-reader is old code. I'd
happily switch to another implementation if especially if it supports
more recent updates to the Feed API. The only alternative I've found
depends on extjs, which I am not using elsewhere in my project.

Anyway as you indicated... 1.4 resolves the errors. Cheers!




On Apr 10, 4:47 am, g p  wrote:
> Hmm ... from its how to build:
> "
>
>    1. Check out the Google Web Toolkit as described in Making GWT
> Better
>       - Checking out the GWT 1.4 release branch is recommended instead of
>       trunk"
>
> Maybe this is why you get the errors?
> It looks to me this is an old and not updated to latest GWT code ...
>
> Cheers!
>
> On 9 April 2010 09:21, Henchan  wrote:
>
>
>
> > I downloaded GWTFeedReader from
> >http://gwt-feed-reader.googlecode.com/svn/trunk
> > into Eclipse (via SVN) for the first time. The GWT 2.0.3 SDK is
> > installed and other projects are compiling fine.
> > Eclipse highlights  a small number of errors in the GWTFeedReader
> > source.
> > The first: "StyleInjector cannot be resolved". There was no class
> > called StyleInjector in the svn repository. Though I could find the
> > source through the web interface
>
> >http://code.google.com/p/gwt-feed-reader/source/browse/trunk/src/com/...
>
> > Installing just this class did not resolve the problems, however.
> > Suspecting that the svn package's integrity is compromised, I am
> > reluctant pursue these errors piecemeal.
> > Or maybe I am just doing something wrong ?
>
> > - henchan
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Creating images with sources outside of the webapp context.

2010-04-09 Thread Erick Audet
You can try to create a symbolic link (ln -s) or a windows shortcut of your
images located outside the web context. Create these links inside your web
context. Your photoPath must be relative to you web context.

Ex.:
(out of the web context): /home/myhome/images/toto.jpg
(in the web context): {context root}/images/toto.jpg (ln -s or windows
shortcut)

- Erick

On Fri, Apr 9, 2010 at 4:00 PM, Vince  wrote:

> Hello,
>
> I'm trying to create an image with a source on the server located by
> an absolute path, e.g.
>
> ...
> Element imgElement = DOM.createImg();
> imgElement.setAttribute("src", photoPath);
> Image photo = Image.wrap(imgElement);
> vp.add(photo);
> ...
>
> where in, vp is a VerticalPanel widget and photoPath is the absolute
> location of the image from the server's local folders, e.g. c:/folder1/
> folder2/filename.jpg. NOTE : The images do exist.
>
> It doesn't seem to do the trick as I am getting that funky colorful
> browser icon on it's expected place on page.
>
> Is there a correct way of doing this? Would appreciate any leads I
> could follow...
>
> Thanks,
> Vince
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Erick Audet M.Sc.
site: www.jarics.com
email: eau...@jarics.com
Skype:erick.audet
LinkedIn: http://www.linkedin.com/in/erickaudet
tel.: 418.682.9712

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



Compound properties

2010-04-09 Thread b.thakker
Hello

We have several modules with 168 permutations each due to 6 browsers,
7 languages, 2 log-level modes (fatal and off) and 2 stack-trace-
emulation modes (6*7*2*2 = 168). The entire app takes almost 5 hours
to compile.

This makes me ask whether its possible to have compound properties in
GWT?

For example, I need stack-trace emulation only when log_level is set
to true. This will help me reduce the number of permutations to half.

Instead of the log_level/stack-trace-emulation combinations of
FATAL/TRUE, FATAL/FALSE, OFF/TRUE, OFF/FALSE

I get FATAL/TRUE, OFF/FALSE.

Please let me know if that did not make sense or if I'm missing
something.

I will highly appreciate any insight.

Thank You.

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



Creating images with sources outside of the webapp context.

2010-04-09 Thread Vince
Hello,

I'm trying to create an image with a source on the server located by
an absolute path, e.g.

...
Element imgElement = DOM.createImg();
imgElement.setAttribute("src", photoPath);
Image photo = Image.wrap(imgElement);
vp.add(photo);
...

where in, vp is a VerticalPanel widget and photoPath is the absolute
location of the image from the server's local folders, e.g. c:/folder1/
folder2/filename.jpg. NOTE : The images do exist.

It doesn't seem to do the trick as I am getting that funky colorful
browser icon on it's expected place on page.

Is there a correct way of doing this? Would appreciate any leads I
could follow...

Thanks,
Vince

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



Re: GWTFeedReader broken ?

2010-04-09 Thread g p
Hmm ... from its how to build:
"

   1. Check out the Google Web Toolkit as described in Making GWT
Better
  - Checking out the GWT 1.4 release branch is recommended instead of
  trunk"


Maybe this is why you get the errors?
It looks to me this is an old and not updated to latest GWT code ...

Cheers!

On 9 April 2010 09:21, Henchan  wrote:

> I downloaded GWTFeedReader from
> http://gwt-feed-reader.googlecode.com/svn/trunk
> into Eclipse (via SVN) for the first time. The GWT 2.0.3 SDK is
> installed and other projects are compiling fine.
> Eclipse highlights  a small number of errors in the GWTFeedReader
> source.
> The first: "StyleInjector cannot be resolved". There was no class
> called StyleInjector in the svn repository. Though I could find the
> source through the web interface
>
> http://code.google.com/p/gwt-feed-reader/source/browse/trunk/src/com/google/gwt/sample/feedreader/client/StyleInjector.java?r=36
>
> Installing just this class did not resolve the problems, however.
> Suspecting that the svn package's integrity is compromised, I am
> reluctant pursue these errors piecemeal.
> Or maybe I am just doing something wrong ?
>
> - henchan
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Extra HTML in response from

2010-04-09 Thread kozura
Dunno what the problem is, probably would just make sure the code
ignores any extra junk vs worry too much.  But as an aside I'd highly
recommend the gwt-upload package for this sort of thing, esp. images
that can be sizable.  It takes care of all this, including getting you
back a unique id, and gives the user a nice downloading progress bar,
with minimal code needed.

http://code.google.com/p/gwtupload/

On Apr 9, 12:22 pm, Mark Butcher  wrote:
> Hi all,
>
> I'm having some issues with the FileUpload stuff. As far as I can see I'm
> doing everything correctly and it works in everything except Chrome (in my
> testing so far). What I want to achieve is to allow user's to upload an
> image to our servlet - the servlet stores the image and returns an ID which
> is then used in the GWT code to refer to that image from there on. This
> basically works but on chrome I get the image ID and then some html (an
> empty div tag). Here some code...
>
> We set up the form:
>
> final FormPanel form = new FormPanel();
> String putUrl = UrlConstants.createPutImageUrl();
> form.setAction(putUrl);
> form.setEncoding(FormPanel.ENCODING_MULTIPART);
> form.setMethod(FormPanel.METHOD_POST);
>
> VerticalPanel panel = new VerticalPanel();
> form.setWidget(panel);
>
> FileUpload upload = new FileUpload();
> upload.setName("uploadFormElement");
> panel.add(upload);
>
> // Add a 'submit' button.
> StyledButton submit = new StyledButton(constants.submitButton(), null,
> "idod-button");
> submit.addClickHandler(new ClickHandler(){
> public void onClick(ClickEvent event) {
> form.submit();}
> });
>
> panel.add(submit);
> popup.setClickHandler(new ClickHandler(){
> public void onClick(ClickEvent event) {
> popup.hide();}
> });
>
> // Add an event handler to the form.
> form.addSubmitCompleteHandler(new SubmitCompleteHandler() {
> @Override
> public void onSubmitComplete(SubmitCompleteEvent event) {
> String results = event.getResults();
> // here, on, chrome we get results == "89"
> // where 89 is the id as expected and the result is unexpected
> // we're trying to use the id as a number so we end up with a number format
> exception
>
> }
> });
>
> The relevant code from the servlet is:
>
> protected void doPost(HttpServletRequest req, HttpServletResponse resp)
> throws ServletException, IOException {
> try {
>    // snip :)
> resp.setContentType("text/html");
> ServletOutputStream outputStream = resp.getOutputStream();
> outputStream.print(Long.toString(id));} catch (Exception e) {
>
> responseError(resp, e.getLocalizedMessage());
>
> }
> }
>
> I've tried closing the outputStream and calling resp.flushBuffer() to try to
> make sure that nothing extra is written to the stream but it makes no
> difference, and, in fact, I'm pretty sure that the servlet is returning the
> correct information and that it is getting messed up in the browser somehow
> (epecially as it appears to be browser specific). I've very inelegantly
> worked around the issue by splitting the number of the front with a regex -
> this works but I'd like to know why it is necessary and if there is
> something nicer I can do to make things work.
>
> Any ideas very much welcome.
>
> cheers,
>
> -mark

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



Re: different behavior on chrome and firefox

2010-04-09 Thread kozura
What event are you using for activating your validation?  onBlur?

As for the second question, you have the full power of Java OO
programming available.  So either extend TextBox, or make a Composite
widget containing a textbox, that encapsulates what you want, maybe
ValidatingTextBox.  Give it a mechanism for generically validating,
maybe a callback class or whatever, and based on the result add your
coloring/popups/etc.  Then instantiate it for each field, with each
particular validating callback.  BTW I'd avoid alert as it locks your
browser, requires an extra user click, and isn't very pleasant; maybe
use a Popup below the textbox instead.

On Apr 9, 12:05 pm, Vik  wrote:
> Hie
>
> Please have a look 
> at:http://1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp
>
> Click on
> the first name field. and then tab out without entering anything.
> In firefox the field background becomes red but it does not happen in
> chrome.
>
> Any reasons why the difference in behavior? and how to fix it?
>
> One more thing right now i am showing the error message as a window alert.
> Is there a generic way to mark the component in red and show a error near to
> it?
> Programmatically doing it will be a lot of effort for all the ui components.
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: can not read or write to a file on the server side

2010-04-09 Thread kozura
See third reply, GAE doesn't support writing new files..use the data
store instead:

http://code.google.com/appengine/kb/java.html#writefile

On Apr 9, 12:01 pm, andrew19881123  wrote:
> ih... i have a problem again in writing in a file.. i'm sorry but i'm
> a newbie in GWT
>
> [...]
> import java.io.FileWriter;
> [...]
> private void postFile(String fileXml) {
>                 try {
>                         ServletContext sc = 
> this.getServletConfig().getServletContext();
>                         BufferedWriter out = new BufferedWriter(new
> FileWriter(sc.getRealPath("/blabla.xml")));
>                 } catch (Exception e) {
>                         e.getStackTrace();
>                 }
>         }
>
> i have the following error: in FileWriter: java.io.FileWriter is not
> supported by GAE's JRE.    Why?
> i need to complete this method for writing in the file a String
> fileXml.. how can i do?

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



Extra HTML in response from

2010-04-09 Thread Mark Butcher
Hi all,

I'm having some issues with the FileUpload stuff. As far as I can see I'm
doing everything correctly and it works in everything except Chrome (in my
testing so far). What I want to achieve is to allow user's to upload an
image to our servlet - the servlet stores the image and returns an ID which
is then used in the GWT code to refer to that image from there on. This
basically works but on chrome I get the image ID and then some html (an
empty div tag). Here some code...

We set up the form:

final FormPanel form = new FormPanel();
String putUrl = UrlConstants.createPutImageUrl();
form.setAction(putUrl);
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);

VerticalPanel panel = new VerticalPanel();
form.setWidget(panel);

FileUpload upload = new FileUpload();
upload.setName("uploadFormElement");
panel.add(upload);

// Add a 'submit' button.
StyledButton submit = new StyledButton(constants.submitButton(), null,
"idod-button");
submit.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
form.submit();
}
});
panel.add(submit);
popup.setClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
popup.hide();
}
});
// Add an event handler to the form.
form.addSubmitCompleteHandler(new SubmitCompleteHandler() {
@Override
public void onSubmitComplete(SubmitCompleteEvent event) {
String results = event.getResults();
// here, on, chrome we get results == "89"
// where 89 is the id as expected and the result is unexpected
// we're trying to use the id as a number so we end up with a number format
exception
}
});


The relevant code from the servlet is:

protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
try {
   // snip :)
resp.setContentType("text/html");
ServletOutputStream outputStream = resp.getOutputStream();
outputStream.print(Long.toString(id));
} catch (Exception e) {
responseError(resp, e.getLocalizedMessage());
}
}

I've tried closing the outputStream and calling resp.flushBuffer() to try to
make sure that nothing extra is written to the stream but it makes no
difference, and, in fact, I'm pretty sure that the servlet is returning the
correct information and that it is getting messed up in the browser somehow
(epecially as it appears to be browser specific). I've very inelegantly
worked around the issue by splitting the number of the front with a regex -
this works but I'd like to know why it is necessary and if there is
something nicer I can do to make things work.

Any ideas very much welcome.

cheers,

-mark

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



different behavior on chrome and firefox

2010-04-09 Thread Vik
Hie

Please have a look at:
http://1.latest.sakshumweb20.appspot.com/ui/page/DonorRegister.jsp

Click on
the first name field. and then tab out without entering anything.
In firefox the field background becomes red but it does not happen in
chrome.

Any reasons why the difference in behavior? and how to fix it?

One more thing right now i am showing the error message as a window alert.
Is there a generic way to mark the component in red and show a error near to
it?
Programmatically doing it will be a lot of effort for all the ui components.

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: can not read or write to a file on the server side

2010-04-09 Thread andrew19881123
ih... i have a problem again in writing in a file.. i'm sorry but i'm
a newbie in GWT

[...]
import java.io.FileWriter;
[...]
private void postFile(String fileXml) {
try {
ServletContext sc = 
this.getServletConfig().getServletContext();
BufferedWriter out = new BufferedWriter(new
FileWriter(sc.getRealPath("/blabla.xml")));
} catch (Exception e) {
e.getStackTrace();
}
}

i have the following error: in FileWriter: java.io.FileWriter is not
supported by GAE's JRE.Why?
i need to complete this method for writing in the file a String
fileXml.. how can i do?

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



Re: Stockwatcher - JSON PHP variant

2010-04-09 Thread Marcello Nuccio
Hi Bill,
I am using a similar setup and it works for me. I have described my
procedure in a previous post (I hope to get a working link...):
http://groups.google.com/group/google-web-toolkit/tree/browse_frm/thread/a60c42b29bbce71f/5b083ddda237e2e0?rnum=1#doc_d5da39ec906f4353

The only difference is I am on Linux (Ubuntu 9.10), but I do not think
it should make any difference.

I am using PHP Data Objects (PDO) with MySQL driver to access DB.

I post my PHP script here as an example. This simply return a custom
json file with data from a SQL query. I retrieve it via Restlet-GWT
client.

   true
));

echo '{"columns":', json_encode($columns), ',"rows":[';
foreach($dbh->query('SELECT * FROM Plants') as $row) {
  $plant = array();
  foreach ($columns as $column) {
$plant[] = $row[$column];
  }
  echo json_encode($plant), ',';
}
echo ']}';
  } catch (PDOException $e) {
header("HTTP/1.1 500 DB connection error");
exit;
  }
  $dbh = null;
  ?>


On 9 Apr, 10:26, BillGordon  wrote:
> Hi Sri,
>
> Thanks for the suggestion - Google App Engine isn't installed, though.
>
> Bill
>
> On Apr 8, 4:16 pm, Sripathi Krishnan 
> wrote:
>
> > Check your eclipse settings - Google App Engine may be enabled. GAE doesn't
> > allow you to use databases (or open network connections).
>
> > --Sri
>
> > On 8 April 2010 02:39, BillGordon  wrote:
>
> > > I followed the tutorial to create the JSON PHP variant of the
> > > Stockwatcher application. I quickly discovered that this won't work in
> > > Hosted mode unless web.xml is modified what was to me a non-obvious
> > > way. This information is missing from the tutorial and could be
> > > usefully added to prevent others from having to re-invent the wheel.
>
> > > With an unmodified web.xml, the built-in Jetty simply returns the text
> > > of a requested .php file, rather than executing the .php file and
> > > returning the output. (My Google searches showed that others had
> > > encountered this problem, but no-one has bothered posting a solution
> > > far as I could see.)
>
> > > The solution is to modify web.xml along the lines of
>
> > >  
> > >  
> > >   PHP
> > >   org.mortbay.servlet.CGI
> > >   
> > >        commandPrefix
> > >        "H:\Program Files\PHP\php-cgi.exe"
> > >   
> > >   
> > >  
>
> > >  
> > >   PHP
> > >   *.php
> > >   
> > >  
>
> > > but pointing to your particular PHP installation, of course.
>
> > > This works as expected. However, I became ambitious, and extended the
> > > project to use a .php script that uses MySQL. This unfortunately fails
> > > - PHP is unable to open a socket to the MySQL server. The same script
> > > works perfectly when called from the command line, or loaded through
> > > IIS. It appears that the environment in which Jetty runs the script
> > > restricts PHP's ability to use the TCP/IP stack. Now, does anyone have
> > > a solution for this?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Checkstyle/PMD/FindBugs for GWT 2.0.3 projects

2010-04-09 Thread Eric
Has anyone configured any of the extant auditing tools for a GWT 2.0.3
project? For example, most tools declare the use of non-private non-
static instance variables to be errors, but @UiField instance
variables may not be private. Most tools mark declarations of concrete
collections as bad, but one should not use Map or List in GWT-
serializable code.

I would appreciate hearing from any of you who have configured
Checkstyle, PMD, Findbugs, or even static ApectJ @DeclareWarning
aspects for auditing GWT projects.

Respectfully,
Eric Jablow

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



Two way linking?

2010-04-09 Thread flyingb...@gmail.com
I am wondering if there is any way to do this.

I have a object that contains multiple values that the gui will show
multiple textboxes.

I would like to create a link between the textbox and values.

So if i edit the object value, the textbox will change and if I change
the textbox the object will change.

Is there a good way to do this?


also other textbox might be linked to same value so if I change the
value of the object both textbox change and if I change the textbox
value of either object the object value will change along with the
other textbox.

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



Re: Compiled JS more readable?

2010-04-09 Thread aditya ch
-style option for DevMode has been removed in the latest release. It's
there only for Compiler class which would compile our Java source to
JS. You can make use of that while compiling for seeing the JS code in
detailed mode.

On Apr 9, 1:54 pm, Henrique Viecili  wrote:
> Are you talking about GWT 2.0 or previous versions? Last time I tried
> to use the -style property in GWT 2.0 I got an error message in
> compilation time telling me this:
>
> Unknown argument: -style
> Google Web Toolkit 2.0.0
> DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-
> string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
> level] [-gen dir] [-codeServerPort port-number | "auto"] [-server
> servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
> workDir dir] module[s]
>
> And I've done a little search in the forums and it seems this property
> was removed from GWT 2.0... unfortunately.
>
> att.
> Henrique Viecili
>
> On Apr 7, 3:21 pm, mariyan nenchev  wrote:
>
> > If you are using Google eclipse plugin when you go to Run Configuration and
> > create new Web Application configuration on the second "GWT" tab there are
> > settings for compilation type. If you are using gwt-maven plugin just add
> > -Dgwt.style=DETAILED (or something like that, see the plugin documentation
> > for sure).
>
>

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



Re: How to download a JSON object from my GWT server?

2010-04-09 Thread lineman78
I would suggest using jersey services with a custom services context
resolver.  Put the following file in the same package as your jersey
services and replace **SerializableObject** with all of your root
elements.  Then check out the getting started guide on
jersey.dev.java.net

@Provider
public abstract class ServicesContextResolver implements
ContextResolver
{
private JAXBContext jsonContext;
private static final Class[] types =
{**SerializableObject**.class};

public ServicesContextResolver()
{
try
{
jsonContext = new
JSONJAXBContext(JSONConfiguration.natural().build(), types);
}
catch (JAXBException e)
{
e.printStackTrace();
}
}

@Override
public JAXBContext getContext(Class objectType)
{
return jsonContext();
}
}

On Apr 9, 8:23 am, Sripathi Krishnan 
wrote:
> You need to set the HTTP header
> *addHeader("Content-Disposition","attachment; filename=some-file-name.json"*
> );
>
> --Sri
>
> On 8 April 2010 23:36, Sherry  wrote:
>
> > Hi,
> > I would like to have my application return a JSON object for
> > download.
>
> > I'm trying to simulate the behavior that happens when I access the
> > page: "http://search.twitter.com/trends/current.json?exclude=hashtags";
> > in which the Chrome browser automatically downloads a file
> > current.json . I've tried to print the JSON string into the output or
> > through a JSP but it doesn't work (I need to return this JSON file
> > into an XMLHttpRequest object).
>
> > I've copied the current.json file I downloaded from the twitter link
> > above into my WAR folder, but when I access it through Chrome it just
> > opens its contents in the browser, and I would like to be able to
> > download it, as in the twitter link.
> > Can anyone direct me how to force this download to happen?
> > Thank you
> > Sherry.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Question about GWT module file

2010-04-09 Thread kozura
As of GWT2, yes, code splitting:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html

Works great, less startup..

On Apr 9, 10:26 am, Ehsan  wrote:
> Hi, I've a big GWT module which comprised of many java classes (& of
> course it's impossible to break it down into several modules).
> My GWT application consists of some forms, but the users usually work
> only with a few of them, anyway they should be abale to open any form
> as they need.
> Now my problem its that gwt generates a big js file that will load
> each time, but most of its content may never use!
> Is there any way to break the big js module file into several smaller
> files(for example, one file for each class) & gwt load them
> automatically as needed ?

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



Question about GWT module file

2010-04-09 Thread Ehsan
Hi, I've a big GWT module which comprised of many java classes (& of
course it's impossible to break it down into several modules).
My GWT application consists of some forms, but the users usually work
only with a few of them, anyway they should be abale to open any form
as they need.
Now my problem its that gwt generates a big js file that will load
each time, but most of its content may never use!
Is there any way to break the big js module file into several smaller
files(for example, one file for each class) & gwt load them
automatically as needed ?

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



Re: Google's new "Making AJAX Crawable Spec" - Question/Problem re: Sitemaps

2010-04-09 Thread Krishna
Hi Katharina,

Thanks for the update. When you say "please me sure to make a change
to your
Sitemap", do you mean minor changes such as adding / removing a URL
will suffice or should the last modified date for every URL in the
sitemap be updated?

Thanks,

Krishna

On Apr 9, 12:32 am, Katharina Probst  wrote:
> Hi again,
>
> we found a problem in the way some of the #! in Sitemaps were processed.
> This problem has now been fixed.  Please note that we don't reparse Sitemaps
> unless they have changed,  so please me sure to make a change to your
> Sitemap to force it to get reparsed.
>
> Thanks,
> kathrin
>
>
>
> On Wed, Apr 7, 2010 at 8:57 AM, Katharina Probst  wrote:
> > Hi,
>
> > we're looking into this, I'll update this thread once I know more.
>
> > Thanks,
> > kathrin
>
> > On Wed, Apr 7, 2010 at 12:00 AM, Sripathi Krishnan <
> > sripathikrish...@gmail.com> wrote:
>
> >> When someone hits your site with a url containing _escaped_fragment_ , do
> >> you -
>
> >>    - Redirect to a HTML page
> >>    OR
> >>    - Forward to a HTML page
>
> >> You should be forwarding to the html version, and not redirecting.
>
> >> Open a http sniffer (firebug would do) and see if the server responds to a
> >> _escaped_fragment_ request with a 301 or 302 status. If it does, then 
> >> that's
> >> your problem. Make sure that the html is returned directly in response to
> >> the _escaped_fragment_ request.
>
> >> --Sri
>
> >> On 4 April 2010 23:56, masterbeat  wrote:
>
> >>> Various blogs say this is the place to post questions regarding
> >>> Google's new AJAX specs...
>
> >>> We have successfully (almost) implemented the steps detailed in the
> >>> new guide "Making AJAX Applications Crawlable" at
> >>>http://code.google.com/web/ajaxcrawling/docs/specification.html
>
> >>> Google has started indexing our pages and is following links with the
> >>> #! and calling our HTML snapshot successfully with _escaped_fragment.
>
> >>> Our question is regarding the newly submitted sitemaps.   In following
> >>> the sitemap question in the FAQ, it says that sitemaps should be
> >>> submitted with URL's like this:
>
> >>> Your Sitemap should include the version you prefer to have displayed
> >>> in search results, so it should 
> >>> behttp://example.com/ajax.html#!foo=123
>
> >>> (as opposed to using _escaped_fragment in the sitemap).
>
> >>> We have done this and submitted sitemaps which have been accepted into
> >>> webmaster tools.  After a couple of days, webmaster tools is reporting
> >>> errors/warnings that say:
>
> >>> URLs not followed
> >>> When we tested a sample of URLs from your Sitemap, we found that some
> >>> URLs redirect to other locations. We recommend that your Sitemap
> >>> contain URLs that point to the final destination (the redirect target)
> >>> instead of redirecting to another URL.
>
> >>> And the example shown as the error is "http://www.yoursite.com/"; -
> >>> however this URL does not exist anywhere in our sitemap - our sitemap
> >>> is full of correct URL's (similar to what are already showing up in
> >>> the index as being crawled) - that look like this:
>
> >>>http://www.yoursite.com/#!artist/madonna
> >>>http://www.yoursite.com/#1release/milesaway
>
> >>> and so on.
>
> >>> These are valid and unique URL's that adhere to the standard in the
> >>> guide above, they can be followed, and they generate the correct AJAX
> >>> display when called with #! and the correct html snapshot when called
> >>> with _escaped_fragment.
>
> >>> So why does webmaster tools think these URL's have errors or are
> >>> redirecting?  They DO redirect only to the html snapshot, of
> >>> course...  and following the URL's in the sitemap with Google's fetch
> >>> as googlebot (replacing the #! with _escaped_fragment) says the pages
> >>> are fine.
>
> >>> So what do we need to do with the sitemap?  Is the issue that there
> >>> isn't a page in the sitemap?
>
> >>> Example:
> >>>http://www.yoursite.com/default.html#!artist/madonna
> >>> should be the same as
> >>>http://www.yoursite.com/#!artist/madonna
>
> >>> we just don't like to put the default.html in all our URL's, as this
> >>> is a dynamic site, all the pages of course exist on the same page.
>
> >>> Any advice on the above would be appreciated.
>
> >>> 1 - does google's sitemap verifier not yet understand that google is
> >>> supposed to be checking for #! and following them (allowing redirect)
> >>> instead of dropping everything after the # (which seems like is
> >>> happening) or...
> >>> 2 - does the sitemap verifier want to see the actual page
> >>> (default.html) in the URL before the dynamic values (#! and so on.)
>
> >>> Thank you,
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Google Web Toolkit" group.
> >>> To post to this gr

Re: How to put same widget under multiple tabs in TabLayoutPanel?

2010-04-09 Thread euzuro
I think the way to do what you want to do is to use a separate
TabBar[1] and DeckPanel[2]

I haven't done it myself, but I know that the TabLayoutPanel (and
TabPanel) are both composed
of these two objects. The TabBar is the actual set of tabs, and the
DeckPanel is the set of
widgets that get switched. Basically, I think what you'll have to do
is just rewire them together,
shouldn't be too tough.

[1] 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TabBar.html
[2] 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DeckPanel.html

On Apr 8, 11:49 pm, enjoylife  wrote:
> I have a TabLayoutPanel with 3 tabs, each tab contain a table.  I need
> to place a control panel above and  below  tables.  All 3 tables will
> share same control panel. (panel is for selecting all rows in a table)
>
> I am having problem getting this to work.
>
> Here is code for tablayoutpanel with one tab.  Anyone kow how I can
> have same control appear in 3 different tabs under a table?
>
>                  ui:field='tabPanel'>
>                   
>                     
>                     
>                       
>                          styleName='{style.table}'/>
>                       
>                     
>                   
>
> control panel
>
>           
>             
>             
>           
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: custom serialization

2010-04-09 Thread Thomas Broyer


On Apr 9, 3:28 pm, mmoossen  wrote:
> dear all!
>
> i am using a legacy class with gwt.
> first i got it working on the client using super-source :)
> but then serialization was not working so i had to write a
> CustomFieldSerializer which is actually also working :)
>
> i have now only one question: is there any way to have the serializer
> class in a different package than the class to serialize? may be with
> an annotation or an additional interface in the class?

No. GWT just takes your class's full name and appends
_CustomFieldSerializer to it.

> (it has to be something like that, if i see where the serializers for
> Integer and co. are located... but i could not figure it out...)

Everything in the java.* package is special-cased and prepended
"com.google.gwt.user.client.rpc.core." (in addition to the
_CustomFieldSerializer suffix).

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



Re: clean compile gives "the parameter is incorrect"

2010-04-09 Thread John V Denley
Tahnks guys, I have added to the existing issue (4395). Feel free to
let me know if you need anything else.
J

On Apr 7, 2:43 pm, Miguel Méndez  wrote:
> FWIW, there is already an issue filed against the GWT Compile action in GPE.
>  CreateProcess Error On GWT Compile With Long Classpath 
> -http://code.google.com/p/google-web-toolkit/issues/detail?id=4395.  It uses
> the same process launching infrastructure that the enhancer uses.  Feel free
> to add to it or create a new bug and link to 4395.  The problem, as we
> understand it, is that there are cases where the command line generated by
> GPE for enhancement and GWT compiles can exceed the platform limitations on
> Windows.
>
> On Tue, Apr 6, 2010 at 9:46 PM, Isaac Truett  wrote:
> > John,
>
> > I'm glad to hear you've got it working! Thanks for the details on your
> > workaround. There's one more thing that would be helpful, if you don't mind.
> > Could you open an issue to track this? If you could, please include a link
> > to this thread in the issue description and then post the issue number here
> > so that anyone else following the thread can find the issue and star it if
> > they so desire. You can use the GWT tracker since GPE doesn't have a
> > separate one that I know of.
>
> >http://code.google.com/p/google-web-toolkit/issues/entry
>
> > Thanks,
> > Isaac
>
> > On Tue, Apr 6, 2010 at 5:37 PM, John V Denley 
> > wrote:
>
> >> OK, so in desparation, I went the whole hog and moved my SDK to "C:
> >> \appengine-java-sdk-1.3.2" and w, its suddenly compiled
> >> successfully
>
> >> So there you have it folks, anyone reading this and seemingly only
> >> ever finding someone saying "your classpath might be too long" may
> >> find it helpful to simply relocate your appengine sdk to the root of
> >> your c:\ drive and see if that helps!
>
> >> Also worth pointing out of course that this is technically an
> >> appengine issue rather than a GWT issue, so thanks to everyone on this
> >> GWT forum for helping me fix this, I will now go and add this solution
> >> to my question on the GAE for java forum!
>
> >> Thanks all,
> >> J
> >> PS I never did figure out how to run anything off the command line,
> >> but im not going to bother now, until I find a need to think about
> >> doing that later!!
>
> >> PPS a summary for anyone reading this later who doesnt want to read
> >> all the thread:
>
> >> To find out the classpath used:
> >> In Eclipse select Debug view by going to "Window|Open
> >> Perspective|Debug" and then select the debug window by going to
> >> "Window|Show View|Debug" then right click the last item in the list
> >> shown and select "properties"
>
> >> I found that my appengine SDK path was being references about 21 times
> >> as:
> >> C:\Program Files\eclipse\plugins
> >> \com.google.appengine.eclipse.sdkbundle.
> >> 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2
>
> >> so I copied it to "C:\appengine-java-sdk-1.3.2"
>
> >> And then linked to it by doing the following:
>
> >> In Eclipse select the Java view by going to "Window|Open Perspective|
> >> Java" and then select the project properties by going to "Project|
> >> Properties" then select "Google|App Engine" and click on "Configure
> >> SDK's" then click "Add" on the right hand side and select the path you
> >> just created eg "C:\appengine-java-sdk-1.3.2" and add a "Display Name"
> >> eg "Short App Engine SDK". Click OK as needed to close all the
> >> windows, and everything should start working again!!!
>
> >> On Apr 6, 9:05 pm, John V Denley  wrote:
> >> > Just as an FYI, using Kathrins suggestion
>
> >> > (How to For Dummies: Select Debug view by going to "Window|Open
> >> > Perspective|Debug" and then select the debug window by going to
> >> > "Window|Show View|Debug" then right click the last item in the list
> >> > shown  and select "properties")
>
> >> > The result I was getting from there (which looks like a very long
> >> > list) is shown below (It seems pretty long because it includes a lot
> >> > of "C:\Program Files\eclipse\plugins
> >> > \com.google.appengine.eclipse.sdkbundle.
> >> > 1.3.2_1.3.2.v201003241245\appengine-java-sdk-1.3.2\lib" references. I
> >> > have now changed this path and reimported it so that its now "C:
> >> > \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
> >> > 1.3.2\appengine-java-sdk-1.3.2\" (which is 20 characters shorter) This
> >> > equates to at least 420 characters less in the whole classpath(!!)
> >> > which should suggest that its not the length of the classpath that is
> >> > the problem.
>
> >> > I will now try to figure out how to run the enhancer from the command
> >> > line, but if anyone has any other ideas in the mean time, please do
> >> > let me know!
>
> >> >  "C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx512m "-javaagent:C:
> >> > \Program Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.
> >> > 1.3.2_1.3.2.v201003241245\

Re: How to download a JSON object from my GWT server?

2010-04-09 Thread Sripathi Krishnan
You need to set the HTTP header
*addHeader("Content-Disposition","attachment; filename=some-file-name.json"*
);


--Sri



On 8 April 2010 23:36, Sherry  wrote:

> Hi,
> I would like to have my application return a JSON object for
> download.
>
> I'm trying to simulate the behavior that happens when I access the
> page: "http://search.twitter.com/trends/current.json?exclude=hashtags";
> in which the Chrome browser automatically downloads a file
> current.json . I've tried to print the JSON string into the output or
> through a JSP but it doesn't work (I need to return this JSON file
> into an XMLHttpRequest object).
>
> I've copied the current.json file I downloaded from the twitter link
> above into my WAR folder, but when I access it through Chrome it just
> opens its contents in the browser, and I would like to be able to
> download it, as in the twitter link.
> Can anyone direct me how to force this download to happen?
> Thank you
> Sherry.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: debugger does not work... SDK 1.6.0.19

2010-04-09 Thread Rajeev Dayal
Hey Oleg,

Are you using Eclipse and the Google Plugin for Eclipse? If so, how are you
launching your application?


Rajeev




On Thu, Apr 8, 2010 at 5:13 PM, Oleg Demidenko  wrote:

> Hi all.
> I am new to GWT. Was studying the Get Startted tutorial.
> Debugger doesn't work, though it seems that I have always followed the
> instructions.
> I am launching with jre from SDK 1.6.0.19
>
> What can be the reason?
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: button click event not firing

2010-04-09 Thread kozura
The events don't get hooked up if you use something like setInnerHTML
to add them, you have to use the GWT add methods.  So you should be
using something like body.add(hPanel).

On Apr 9, 7:24 am, lee  wrote:
> hi all,
>
> i'm using uibinder to display a button in the sample mail application
> that comes along with gwt.
> like
>
> 
>       
>          wordWrap='true'/>
>       
> 
>
> from my java code i'm inserting the button as below.
>
> HorizontalPanel hPanel = new HorizontalPanel();
> hPanel.setSpacing(10);
>
> final TextBox textBox = new TextBox();
> textBox.setText("text box");
>
> hPanel.add(textBox);
> Button normalButton = new Button("normal",
> new ClickHandler() {
> public void onClick(ClickEvent event) {
> Window.alert("got the call");
>
> }
> });
>
> normalButton.ensureDebugId("cwBasicButton-normal");
> hPanel.add(normalButton);
>
> body.setInnerHTML(item.body.toString());
>
> is there something wrong in what i'm doing ?
> the button gets displayed but the event is not firing.!!
>
> please suggest.

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



Re: A question!

2010-04-09 Thread Joel Webber
[+gwt group]

Konark,

I actually don't see an attached screenshot (perhaps you forgot the
attachment -- I do that all the time). I would normally recommend just
looking at the Showcase source (it's part of the GWT distribution, and you
can find it online here:
http://code.google.com/p/google-web-toolkit/source/browse/#svn/trunk/samples/showcase).
If you have questions about specifics, please feel free to ask them here on
the group, and I may be able to help as well.

Cheers,
joel.

On Wed, Apr 7, 2010 at 2:40 PM, Konark Shah  wrote:

> Hello Sir,
>
> I am a student of Pacific Lutheran University ,Tacoma ,WA. I am currently
> working on my final year (Computer Sci) project which is a website, being
> development with GWT.
>
> My team and I are stuck at one part in the project which might be a piece
> of cake for skilled developers like you. All we are trying to do is figure
> out how to create a bar similar to the one in your GWT Showcase application.
> It will make more sense if you check the  screenshot attached with this
> email.
>
> It will be a huge favor on us if you can give us some idea how to create a
> link-bar like that. We are aware that there is Tab bar and tab-panel widget
> available however, they are not matching our GUI design.
>
> We look forward for your email.
>
> Konark Shah
> Student
> Pacific Lutheran University, Tacoma WA
>

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



custom serialization

2010-04-09 Thread mmoossen
dear all!

i am using a legacy class with gwt.
first i got it working on the client using super-source :)
but then serialization was not working so i had to write a
CustomFieldSerializer which is actually also working :)

i have now only one question: is there any way to have the serializer
class in a different package than the class to serialize? may be with
an annotation or an additional interface in the class?
(it has to be something like that, if i see where the serializers for
Integer and co. are located... but i could not figure it out...)

thanks
Michael

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



JS problem on Firefox

2010-04-09 Thread Šobis
Hi,

I have a problem with JS in one of my GWT projects.

I have a JS in my HTML file. In this JS I have a register function,
which I call later in project.

Problem is, that sometimes in FF when I call register function I get
function is undefined message. I NEVER get this message in Chrome,
only in FF.

Any idea what could be reason for that? Main problem is, that this
doesn't happen every time, sometimes it is ok. It looks like JS, which
is executev in HTML file breaks. Why can this happen? Can I reexecute
this JS?

Tnx for any help.

Matej

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



Re: Irony: GWT Showcase demo does not work with Chrome

2010-04-09 Thread Michael
I see the same with latest 5.0.371.0 on OSX.

But after opening the Developer Tools, the showcase is working - it
even remembered all the clicks I made before!

Michael

On Apr 7, 9:33 pm, Unconquered  wrote:
> With the latest Chrome, running on Mac OS X, the Google Web Toolkit
> "Showcase of Features" at
>
>  http://gwt.google.com/samples/Showcase/Showcase.html
>
> does not work properly. Widgets is expanded but the other main items
> below (e.g. Lists and Menus) will not expand when clicked. The page
> works in Safari.

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



button click event not firing

2010-04-09 Thread lee
hi all,

i'm using uibinder to display a button in the sample mail application
that comes along with gwt.
like


  

  


from my java code i'm inserting the button as below.



HorizontalPanel hPanel = new HorizontalPanel();
hPanel.setSpacing(10);

final TextBox textBox = new TextBox();
textBox.setText("text box");

hPanel.add(textBox);
Button normalButton = new Button("normal",
new ClickHandler() {
public void onClick(ClickEvent event) {
Window.alert("got the call");
}
});

normalButton.ensureDebugId("cwBasicButton-normal");
hPanel.add(normalButton);

body.setInnerHTML(item.body.toString());


is there something wrong in what i'm doing ?
the button gets displayed but the event is not firing.!!

please suggest.

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



Re: Working with serial ports

2010-04-09 Thread rudolf michael
you can make a java applet, or swf component to have access on client side
ports then i guess applets/swf can easily communicate with javascript which
you will write using GWT.



On Fri, Apr 9, 2010 at 6:14 AM, theBULLL  wrote:

> Hello,
>
> I am trying to accomplish the following...
>
> I want one client, running on a PC,  to send messages to a server,
> running on Google's server, and then have the server relay the
> messages to another PC.  Ultimately, I would like to ship the messages
> out the serial port of the second PC.  If I understand correctly, this
> cannot happen with JavaScript because of obvious security problems.  I
> was wondering if anybody had any suggestions on how I can either work
> with GWT or write another java app to run on the second PC to retrieve
> the messages from the browser running the JavaScript.
>
> I realize they may be confusing an hard to read so please let me know
> if further information is required.
>
> Thanks,
> theBULLL
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Working with serial ports

2010-04-09 Thread theBULLL
Hello,

I am trying to accomplish the following...

I want one client, running on a PC,  to send messages to a server,
running on Google's server, and then have the server relay the
messages to another PC.  Ultimately, I would like to ship the messages
out the serial port of the second PC.  If I understand correctly, this
cannot happen with JavaScript because of obvious security problems.  I
was wondering if anybody had any suggestions on how I can either work
with GWT or write another java app to run on the second PC to retrieve
the messages from the browser running the JavaScript.

I realize they may be confusing an hard to read so please let me know
if further information is required.

Thanks,
theBULLL

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



Serial Port Access

2010-04-09 Thread Johnyo
We would like to develop an application that can be used to remotely
control a small vehicle using GWT. In order to do this, we need a way
for our program running on a google server (using GWT) to access a
serial / usb port on a client computer to send radio commands to the
vehicle.

Is this possible? Is it possible to access a serial/usb port on a
client computer from a GWT project running on a google server, and
then send/receive that information? And if so, can you point me in the
direction of a solution?

Thank you for any response.

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



Create flyout menu from standard Listbox dropdown menu

2010-04-09 Thread Wasshead
Does anyone know how to create flyouts from a standard Listbox menu?
If I can be pointed to a sample I would trully appreciate it,

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



Resizing DockLayoutPanel child.

2010-04-09 Thread dueckes
Hi all,

I have a DockLayoutPanel with two children, one occupying the West
Direction and the other Center.

When a user clicks a button my intention is to resize the child in the
West direction and have that stretch or shrink the size of the child
at the Center direction accordingly.

Playing with the API I have been able to achieve two things:
1) Resize the _entire_ DockLayoutPanel via a callback passed to the
animate method.  I don't seem to be able to manipulate child
dimensions here.
2) Using a similar approach, resize the child in the West Direction
_without_ effecting the dimensions of the child at the Center
Direction - i.e. the DockLayoutPanel containers for the children are
uneffected.

I have considered subclassing DockLayoutPanel and exposing a method to
manipulate child widget LayoutData directly - but this approach
doesn't play well with UiBinder.

Can anyone recommend any way of achieving this?  Note I'm also
experiencing a similar problem with SplitLayoutPanel.

Regards,

Matthew

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



GWTFeedReader broken ?

2010-04-09 Thread Henchan
I downloaded GWTFeedReader from http://gwt-feed-reader.googlecode.com/svn/trunk
into Eclipse (via SVN) for the first time. The GWT 2.0.3 SDK is
installed and other projects are compiling fine.
Eclipse highlights  a small number of errors in the GWTFeedReader
source.
The first: "StyleInjector cannot be resolved". There was no class
called StyleInjector in the svn repository. Though I could find the
source through the web interface
http://code.google.com/p/gwt-feed-reader/source/browse/trunk/src/com/google/gwt/sample/feedreader/client/StyleInjector.java?r=36

Installing just this class did not resolve the problems, however.
Suspecting that the svn package's integrity is compromised, I am
reluctant pursue these errors piecemeal.
Or maybe I am just doing something wrong ?

- henchan

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



debugger does not work... SDK 1.6.0.19

2010-04-09 Thread Oleg Demidenko
Hi all.
I am new to GWT. Was studying the Get Startted tutorial.
Debugger doesn't work, though it seems that I have always followed the
instructions.
I am launching with jre from SDK 1.6.0.19

What can be the reason?

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



How to download a JSON object from my GWT server?

2010-04-09 Thread Sherry
Hi,
I would like to have my application return a JSON object for
download.

I'm trying to simulate the behavior that happens when I access the
page: "http://search.twitter.com/trends/current.json?exclude=hashtags";
in which the Chrome browser automatically downloads a file
current.json . I've tried to print the JSON string into the output or
through a JSP but it doesn't work (I need to return this JSON file
into an XMLHttpRequest object).

I've copied the current.json file I downloaded from the twitter link
above into my WAR folder, but when I access it through Chrome it just
opens its contents in the browser, and I would like to be able to
download it, as in the twitter link.
Can anyone direct me how to force this download to happen?
Thank you
Sherry.

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



GWT calendar

2010-04-09 Thread Naveen
Hi

I need to implement calendar functionality to an already existing non
GWT project. I would like to know if it is possible to integrate the
GWT calendar to my non GWT project. I am aware that we need to convert
the java code into java script, so my question is can i run this as an
separate GWT project and then implement that java script in my
project.. Plz let me know if this will work also any other info will
be of great help..

Thanks

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



Vertical Block Selection

2010-04-09 Thread Ram Mohan Yaratapally
Hi

We have a requirement to select block of text verticall. Does any body
have any idea on which control/widget can be used for this
requirement. If not available with toolkit already is it possible to
develop one, any ideas on how to solve this. To be more clear, the
feature similar to the Word with ALT+Select or Textpad block
selection.

Thanks in advance.

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



Re: Ant Build.xml

2010-04-09 Thread nava nee krish
Hi,

make sure that the error you got because of classpath issues. If so then add
classpath entries in your build.xml.
In eclipse the classes are available regardless of build.xml classpath
entry. But outside eclipse you need explicitly specify the classpath
location.
If you could attach the error trace, then we can help.

Regards
Nav

On Wed, Apr 7, 2010 at 3:21 PM, satya narayana wrote:

> Hi All,
>
>
>   I created a sample GWT Prokject in my eclipse and i run the applcation in
> developing mode it is working. Now i want to run it in Tomcat server in
> deploying mode for which i need build.xml . I googled it and i found the
> file and when i try with compile.gwt there are 56 errors , but when i do the
> same using Project -RightClick and Goole-Compile GWT it is not showing any
> errors.
>
>
> Now i want a .war so that i can deploy it in server . Please help me in
> this regard.
>
>
> Thank you
> Satya
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Irony: GWT Showcase demo does not work with Chrome

2010-04-09 Thread Abdullah Shaikh
It works for me too on Chrome 5.0.342.9 on Ubuntu 9.10

- Abdullah

On Thu, Apr 8, 2010 at 8:03 AM, Unconquered wrote:

> With the latest Chrome, running on Mac OS X, the Google Web Toolkit
> "Showcase of Features" at
>
>  http://gwt.google.com/samples/Showcase/Showcase.html
>
> does not work properly. Widgets is expanded but the other main items
> below (e.g. Lists and Menus) will not expand when clicked. The page
> works in Safari.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Irony: GWT Showcase demo does not work with Chrome

2010-04-09 Thread Shawn Brown
> With the latest Chrome, running on Mac OS X, the Google Web Toolkit
> "Showcase of Features" at
>
>  http://gwt.google.com/samples/Showcase/Showcase.html
>

It's fine on

chrome 5.0.371.0 dev
OSX 10.6.3

Shawn

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



Re: Compiled JS more readable?

2010-04-09 Thread Henrique Viecili
Are you talking about GWT 2.0 or previous versions? Last time I tried
to use the -style property in GWT 2.0 I got an error message in
compilation time telling me this:

Unknown argument: -style
Google Web Toolkit 2.0.0
DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-
string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
level] [-gen dir] [-codeServerPort port-number | "auto"] [-server
servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
workDir dir] module[s]

And I've done a little search in the forums and it seems this property
was removed from GWT 2.0... unfortunately.

att.
Henrique Viecili

On Apr 7, 3:21 pm, mariyan nenchev  wrote:
> If you are using Google eclipse plugin when you go to Run Configuration and
> create new Web Application configuration on the second "GWT" tab there are
> settings for compilation type. If you are using gwt-maven plugin just add
> -Dgwt.style=DETAILED (or something like that, see the plugin documentation
> for sure).

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



Re: ***Exciting Java Opportunity in Hampshire***

2010-04-09 Thread Prashant Gupta
I'll do.

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



Re: Stockwatcher - JSON PHP variant

2010-04-09 Thread BillGordon
Hi Sri,

Thanks for the suggestion - Google App Engine isn't installed, though.

Bill

On Apr 8, 4:16 pm, Sripathi Krishnan 
wrote:
> Check your eclipse settings - Google App Engine may be enabled. GAE doesn't
> allow you to use databases (or open network connections).
>
> --Sri
>
> On 8 April 2010 02:39, BillGordon  wrote:
>
> > I followed the tutorial to create the JSON PHP variant of the
> > Stockwatcher application. I quickly discovered that this won't work in
> > Hosted mode unless web.xml is modified what was to me a non-obvious
> > way. This information is missing from the tutorial and could be
> > usefully added to prevent others from having to re-invent the wheel.
>
> > With an unmodified web.xml, the built-in Jetty simply returns the text
> > of a requested .php file, rather than executing the .php file and
> > returning the output. (My Google searches showed that others had
> > encountered this problem, but no-one has bothered posting a solution
> > far as I could see.)
>
> > The solution is to modify web.xml along the lines of
>
> >  
> >  
> >   PHP
> >   org.mortbay.servlet.CGI
> >   
> >        commandPrefix
> >        "H:\Program Files\PHP\php-cgi.exe"
> >   
> >   
> >  
>
> >  
> >   PHP
> >   *.php
> >   
> >  
>
> > but pointing to your particular PHP installation, of course.
>
> > This works as expected. However, I became ambitious, and extended the
> > project to use a .php script that uses MySQL. This unfortunately fails
> > - PHP is unable to open a socket to the MySQL server. The same script
> > works perfectly when called from the command line, or loaded through
> > IIS. It appears that the environment in which Jetty runs the script
> > restricts PHP's ability to use the TCP/IP stack. Now, does anyone have
> > a solution for this?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Upgrade 1.7 to 2.0.3 : Wrong URL RPC in generated web.xml

2010-04-09 Thread Aff
It seems that it's not my upgrade to 2.0.3 which generate the problem
but my passage from com.totsp.gwt to org.codehaus.mojo.

I think my configuration of gwt-maven-plugin is wrong.

Does anybody have an example of this type of configuration please?

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



Re: GWT and JAAS

2010-04-09 Thread olivier nouguier
@eaudet
For sure, but to do this you'll need a JAASRealm (or something like that)
and to secure the hosted page or the whole site.
If you want to perform authentication and security  at a service level
(GWT-RPC) spring integration will ease the process at least at my POV ;)



On Thu, Apr 8, 2010 at 8:05 PM, eaudet  wrote:

> Why use Spring? You can use JAAS standard calls directly in the
> RemoteServiceServlet. So when you application server is configured
> correctly, you only need to call this line of code :
> GWT.getThreadLocalRequest.isUserInRole("{role defined in your
> web.xml}");
> This is the standard way of knowing the role of your JAAS logged in
> user.
>
>
> On 8 avr, 10:22, olivier nouguier  wrote:
> > Hi,
> > AFAIK JAAS doesn't expose anything through http so you'll need some
> > container configuration.
> > You should take a look at spring security, it exposes security service
> (even
> > jaashttp://
> static.springsource.org/spring-security/site/docs/3.0.x/refere...
> > ).
> > Then you should easy found some technics to marshall/unmarshall  security
> > "payload" to/from GWT-RPC
> > HIH
> >
> >
> >
> >
> >
> > On Thu, Apr 8, 2010 at 11:21 AM, luigi  wrote:
> > > Hi , I have been surfing through the net about JAAS and GWT.
> > > All I see is the question. no body cannot give the right answer.
> > > If somebody know about this JAAS and GWT for Authentication and
> > > Authorization staff,
> > > I will be glad to hear your solution and sample code.
> > > I desperately need all of your help.
> > > Thank you for any reply.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > "Computers are useless. They can only give you answers."
> > - Pablo Picasso -
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
"Computers are useless. They can only give you answers."
- Pablo Picasso -

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