Re: Recommendations for Captcha?

2009-01-09 Thread krishna

http://recaptcha.net/

Regards,
Krishna

On Jan 10, 2:03 am, DanielC  wrote:
> Hi guys,
>
> I'd like to integrate a captcha into my registration page, so I
> thought I'd ping the community to see what other people are using and
> what their recommendations are for a Java/Servlet implementation?
>
> I've tried JCaptcha. It's a good project and straightforward to use,
> but I've found the distortion factor to be too great (others have also
> voiced concerns about this). My feeling is that this will prove to be
> a limiting factor w.r.t. user experience (e.g. you have to refresh a
> handful of times before "someone like my mom" gets lucky and can
> correctly read the characters...).
>
> Also, I'm looking for open source or free project recommendations.
>
> Thanks,
> Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Multiple web pages how-to

2009-01-09 Thread A Friend Of Yours

getSelectedItem is protected method. You can't access it unless you
are extending MenuBar. So, it might not go that way. I guess you need
a separate Command for each of the MenuItem.

On Jan 10, 12:11 am, "Sahil Dave"  wrote:
> On Fri, Jan 9, 2009 at 11:31 PM, A Friend Of Yours 
> wrote:
>
>
>
> > In the case of MenuItem, I can use Command for the same purpose.
>
> > MenuItem item = new MenuItem("Click Me", new Command() {
> >    public void execute() {
> >        // Do the navigation here
> >        containerSimplePanel.setWidget(new SomeCompositeInheritedClass
> > ());
> >    }
> > thanx, i understood everything. now what i am trying to do is use a single
>
> Command() ref to resolve all menu item selections. but i am not able to
> access the getSelectedItem() of MenuBar class inside the inner class for
> command.
>
> is there a workaround for this.??
>
> *code:*
> Command cmd = new Command() {
>           public void execute() {
>               if(menu.getSelectedItem() == aboutUsItem)
>             decPanel.setWidget(new MenuData());
>           }
>
> };
>
> MenuItem aboutUsItem = menu.addItem("About Us", cmd);
>
> --
> Sahil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Who's Using GWT?

2009-01-09 Thread krishna


Hi All,

We developed a p2p micro-lending platform using GWT - http://www.rangde.org

We've also developed a theme generator for GWT - http://works.sen-sei.in/gtg

Things that we are looking forward to in GWT and related areas are

1. API for developing opensocial applications
2. Seamless integration with GAE
3. Any tool/feature that can help in SEO

Regards,
Krishna


On Dec 12 2008, 6:39 am, Sumit Chandel 
wrote:
> Hello everyone,
>
> We've recently updated the GWT homepage to include a page displaying a
> non-exhaustive list of applications that are built with GWT. We were
> also able to capture a few developers on video for those who happened
> to be around the Google Mountain View area and developed awesome
> applications using GWT. Check out more details on both of these at the
> link below:
>
> Who's Using GWT?:http://code.google.com/webtoolkit/app_gallery.html
>
> It's great that we were able to catch some of our local developers on
> video, but we know there are other great stories out there from other
> developers in the community. So, I thought it would be cool if I
> stickied this Groups thread for community members to share their
> experience with everyone.
>
> Feel free to post up your own GWT application(s), along with your most
> loved / requested features and any tips and tricks you've come across
> as you developed your applications that you'd like to share with the
> rest of the community. Looking forward to hearing from you.
>
> Cheers,
> -Sumit Chandel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: same-origin security restriction

2009-01-09 Thread Scooter

You assume that I need someone to put constraints on a development
tool that will protect me. I do not need the protection and promise
not to complain if I somehow release code that doesn't work in the web
browser versus what I need to test in debug mode.

It is also reasonable to make the default option to not allow the
behavior but give the developer the ability to configure this as an
option for testing purposes. .

We are talking about a development tool that is hard wired to
debugging "Java" code that will get converted to Javascript where the
innovation step is to allow the developer to be more productive prior
to deploying to javascript and running in a web browser.

Sun provides the applet viewer for exactly this reason to allow the
developer to write and debug applet code before adding the complexity
and overhead of security models that are designed to protect the end
user not the developer.

Please understand the difference between hosted mode as a debug/
productivity tool used by developers and a web browser used by end
users. I know you do I am just trying to make the point that all
developers understand the difference.

You actually create a situation where I will end up deploying
applications that have more bugs because of the complexity of our
production environment and size of data sets that makes it difficult
to reproduce on a development machine. This means code does not get
tested as well prior to moving into production which results in a
higher number of defects and longer development cycles.

It sounds like you have already decided that even though you have
numerous requests in this thread to relax the restriction it is not
going to happen. Should this discussion be moved over to the developer
group or has it already been discussed? Is the tighter security
restriction part of a google developed application tool or something
used from an external open source tool? Just curious what triggered
the change in a minor release of 1.5.2 to 1.5.3 and how hard it would
be to relax the restriction as a config option.

Thanks

Scooter

On Jan 9, 6:17 pm, Sumit Chandel  wrote:
> Hello sjn456,
>
> You're completely right. That's precisely why the previous behaviour was
> corrected. It's browser security policies that restrict making calls to
> other domains or ports. If we allowed these in hosted mode, we would be
> setting developers up for a break once they go to production. What's more, I
> believe the new corrected behaviour is the result of an update to the latest
> XHR spec on supported browsers, meaning that allowing calls to go through to
> other ports would mean drawing back to older XHRs.
>
> Cheers,
> -Sumit Chandel
>
> On Wed, Jan 7, 2009 at 8:20 AM, sjn...@gmail.com 
> wrote:
>
>
>
> > The light bulb finally lit for me. There's browser security rules in
> > place that only allow Ajax to communicate with the same server as the
> > main page. If GWT hosted mode allowed it then in the future when you
> > deployed to production your app wouldn't work. I'm going to change my
> > implementation to have the external data sources route through the
> > server, but may need to add load balancing because of the extra load
> > now on the server. Nothings ever to easy.
>
> > On Jan 6, 1:10 pm, Scooter  wrote:
> > > Please allow this to either be a configurable option or a prompt when
> > > accessing external URL. I test against a variety of complex data
> > > sources for our web server where duplicating on my development machine
> > > is almost impossible. It is also an issue when we get a bug report in
> > > production that I can point to the appropriate web server and debug
> > > the problem. I can't upgrade to the latest 1.5 and really want to
> > > avoid the proxy overhead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Focused training/consulting?

2009-01-09 Thread Steve Anthony

Hi,

My engineering team took the last month to use GWT to implement new
pages for our UI. We had a world of trouble around interactions with
Spring & Hibernate. It was bad enough that the main GWT advantage
(productivity increases from easier debugging) was not realized.

Likewise, we had some issues around compilation speed, 1-2 minutes to
compile a single module, for example. Think hundreds of modules, and
this isn't going to scale.

I'm looking to see if there are any recommendations for people who
could provide a _focused_ training session; a few days to help us
understand how to work the technology interactions so that we can
improve our productivity. We know the basics; but are having trouble
adapting the technology into our stack and making effective use of it.

Recommendations gratefully welcome.

Steve

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



Compiling multiple modules

2009-01-09 Thread jed

Hi all,
I've been developing an application with two different modules, one
for the application itself and another one for a generic
administration panel that I can reuse for other applications.

I create a jar file containing the class and the java files of the
administration panel in the same directory, plus the module
description and the html files.I inherit the module in my application
I add it to the classpath, then I launch the compilation.

Everything seems to work fine, I just see some warnings regarding the
administration panel because of the use of a HashMap (this should be
normal) and the html files are created in my webapp output directory.
My problem is that once the compilation's done, I can only see one
xxx.nocache.js file, the one for the administration panel is missing.

If I compile my administration panel separately, this js file is
generated and I can copy it manually on the application generated
directory but I was expecting that GWT would also create the
Javascript file also when I'm inheriting a module.

What am I doing wrong ? Any ideas ?

Thank you in advance



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



multiple selection list box setselectedIndex does not work

2009-01-09 Thread Smith

I have a multiple selection list box and when the page loads, I don't
want any item to be selected. I gave setselectedIndex(-1) and that
didn't work on IE. Is there any other way to do this?

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



Re: RPC Error while running on Glassfish

2009-01-09 Thread GWTFan

We are using GWT 1.5.3.

On Jan 9, 2:38 pm, GWTFan  wrote:
> I'm getting the following error while trying to run our application on
> Glassfish High Availability server Version 9.1.
>
> However the same application runs well on Glassfish Version 9.1
> Developer edition.
>
> Can anyone help?
>
> [#|2009-01-09T14:32:37.858-0800|SEVERE|sun-appserver9.1|
> javax.enterprise.system.container.web|
> _ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=570535ce-
> d13f-40a9-8ab3-6fec976c27e6;|WebModule[/Tims]Exception while
> dispatching incoming RPC call
> com.google.gwt.user.client.rpc.SerializationException:
> java.lang.reflect.InvocationTargetException
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
> (ServerSerializationStreamWriter.java:696)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl
> (ServerSerializationStreamWriter.java:659)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
> (ServerSerializationStreamWriter.java:593)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
> (AbstractSerializationStreamWriter.java:129)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
> $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue
> (ServerSerializationStreamWriter.java:530)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
> 573)
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
> (RPC.java:441)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:529)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:164)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 738)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 831)
>         at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown
> Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.catalina.security.SecurityUtil$1.run
> (SecurityUtil.java:276)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAsPrivileged(Subject.java:
> 517)
>         at org.apache.catalina.security.SecurityUtil.execute
> (SecurityUtil.java:309)
>         at org.apache.catalina.security.SecurityUtil.doAsPrivilege
> (SecurityUtil.java:192)
>         at
> org.apache.catalina.core.ApplicationFilterChain.servletService
> (ApplicationFilterChain.java:404)
>         at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:290)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:271)
>         at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:202)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:632)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:577)
>         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
> 94)
>         at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:206)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:632)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:577)
>         at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:571)
>         at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:1080)
>         at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:150)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:632)
>         at org.apache.catalina.core.StandardPipeline.doInvoke
> (StandardPipeline.java:577)
>         at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:571)
>         at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:1080)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service
> (CoyoteAdapter.java:272)
>         at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
> (DefaultProcessorTask.java:637)
>         at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
> (DefaultProcessorTask.java:568)
>         at
> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
> (DefaultProcessorTask.java:813)
>         at
> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
> (De

RPC Error while running on Glassfish

2009-01-09 Thread GWTFan

I'm getting the following error while trying to run our application on
Glassfish High Availability server Version 9.1.

However the same application runs well on Glassfish Version 9.1
Developer edition.

Can anyone help?



[#|2009-01-09T14:32:37.858-0800|SEVERE|sun-appserver9.1|
javax.enterprise.system.container.web|
_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=570535ce-
d13f-40a9-8ab3-6fec976c27e6;|WebModule[/Tims]Exception while
dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException:
java.lang.reflect.InvocationTargetException
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
(ServerSerializationStreamWriter.java:696)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl
(ServerSerializationStreamWriter.java:659)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
(ServerSerializationStreamWriter.java:593)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue
(ServerSerializationStreamWriter.java:530)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
573)
at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
(RPC.java:441)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:529)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
831)
at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run
(SecurityUtil.java:276)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:
517)
at org.apache.catalina.security.SecurityUtil.execute
(SecurityUtil.java:309)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege
(SecurityUtil.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.servletService
(ApplicationFilterChain.java:404)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:290)
at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
94)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke
(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:272)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
(DefaultProcessorTask.java:637)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
(DefaultProcessorTask.java:568)
at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process
(DefaultProcessorTask.java:813)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask
(DefaultReadTask.java:341)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
(DefaultReadTask.java:263)
at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask
(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.griz

Re: same-origin security restriction

2009-01-09 Thread Sumit Chandel
Hello sjn456,

You're completely right. That's precisely why the previous behaviour was
corrected. It's browser security policies that restrict making calls to
other domains or ports. If we allowed these in hosted mode, we would be
setting developers up for a break once they go to production. What's more, I
believe the new corrected behaviour is the result of an update to the latest
XHR spec on supported browsers, meaning that allowing calls to go through to
other ports would mean drawing back to older XHRs.

Cheers,
-Sumit Chandel

On Wed, Jan 7, 2009 at 8:20 AM, sjn...@gmail.com wrote:

>
> The light bulb finally lit for me. There's browser security rules in
> place that only allow Ajax to communicate with the same server as the
> main page. If GWT hosted mode allowed it then in the future when you
> deployed to production your app wouldn't work. I'm going to change my
> implementation to have the external data sources route through the
> server, but may need to add load balancing because of the extra load
> now on the server. Nothings ever to easy.
>
> On Jan 6, 1:10 pm, Scooter  wrote:
> > Please allow this to either be a configurable option or a prompt when
> > accessing external URL. I test against a variety of complex data
> > sources for our web server where duplicating on my development machine
> > is almost impossible. It is also an issue when we get a bug report in
> > production that I can point to the appropriate web server and debug
> > the problem. I can't upgrade to the latest 1.5 and really want to
> > avoid the proxy overhead.
> >
>

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



Re: GWT vs. Adobe Flex for UI development when J2EE/Spring is used for middle tier/server programming

2009-01-09 Thread j2ee_nyc

> Flex is a bit of an anomally, it's not Javascript really, but it's not
> Java based either.  When it comes down to what the choice is it's
> simple:  is it valuable to your development process to have a second
> language stack in your solution?  If your server side is Java, your
> client side is either Javascript or Flex (is it still called
> Actionscript, it's been a while).  Or you write your server in Java
> AND your client in Java, and allow your compiler to optimize the
> client code to it's application container...that's what GWT does.
> Plain and simple.

I think the main issue with any framework that "generates" JavaScript
is that it remains a JavaScript solution behind the scenes. Therefore,
it retains the limitations of JavaScript and some issue with browser
compatibility. Seems that Flex tries to accomplish something similar
to Java Applets by providing a solution that works from within a
plugin (Flash). Logically, that seems to give Flex a much more power
UI that can potentially perform and work better than any JavaScript
solution. So, that would be my question: are Flex developers so
excited because the "hype" of cute UI, or because they believe that
Flex is a better long term solution than any JavaScript based
solution, be that GWT, Dojo, JQuery, etc.?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Recommendations for Captcha?

2009-01-09 Thread DanielC

Hi guys,

I'd like to integrate a captcha into my registration page, so I
thought I'd ping the community to see what other people are using and
what their recommendations are for a Java/Servlet implementation?

I've tried JCaptcha. It's a good project and straightforward to use,
but I've found the distortion factor to be too great (others have also
voiced concerns about this). My feeling is that this will prove to be
a limiting factor w.r.t. user experience (e.g. you have to refresh a
handful of times before "someone like my mom" gets lucky and can
correctly read the characters...).

Also, I'm looking for open source or free project recommendations.

Thanks,
Daniel

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



Re: getting java.sql.Connection error

2009-01-09 Thread Pham Tran Quoc Viet
Thanks for taking the time to explain it so carefully. You are a good
person.Thanks again, Lothar.

Viet Pham


On Fri, Jan 9, 2009 at 12:28 AM, Lothar Kimmeringer wrote:

>
> Pham Tran Quoc Viet schrieb:
>
> > By the way, I could not find RemoteServiceException in GWT doc. So, I
> > assume it's your custom exception, right?
>
> That's correct. But it's nothing very secret happening there so I
> can post it here without being sent to the south-east-end of Cuba ;-)
>
> --snip
> /**
>  * Exception that will be thrown if there was an error while performing
>  * remote functions on the server
>  * @author "Lothar Kimmeringer" 
>  >
>  *
>  */
> public class RemoteServiceException extends SerializableException {
>private String stackTrace;
>private String message;
>
>private static final long serialVersionUID = 2L;
>
>/**
> * Creates a new instance of RemoteServiceException
> */
>public RemoteServiceException() {
>super();
>}
>
>/**
> * Creates a new instance of RemoteServiceException
> * @param message The message indicating the reason for the exception
> * @param cause The cause leading to the exception
> */
>public RemoteServiceException(String message, String cause) {
>super(message);
>this.message = message;
>stackTrace = cause;
>}
>
>/**
> * Creates a new instance of RemoteServiceException
> * @param message The message indicating the reason for the exception
> */
>public RemoteServiceException(String message) {
>super(message);
>this.message = message;
>}
>
>/**
> * Returns the stacktrace of the cause
> * @return The cause
> */
>public String getCauseStackTrace() {
>return stackTrace;
>}
>
>/**
> * Returns the message of the exception
> */
>public String getMessage(){
>return message;
>}
> }
> --snip
>
> You can get the stacktrace as string doing the following:
>
> StringWriter sw = new StringWriter();
> throwable.printStackTrace(new PrintWriter(sw));
> String stacktrace = sw.toString();
>
> You have to do it outside the above exception, because the exception above
> must be in a client-package, i.e. you are restricted to the GWT Java
> ruling out PrintWriter at least.
>
>
> Regards, Lothar
>
> >
>

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



servlets called on startup?

2009-01-09 Thread mwaschkowski

Hi,

I have two filters defined that are getting called on startup because
two servlets that I have defined are being called, and its not clear
to me why. Does GWT load and make calls to servlets during startup?
Doesn't seem like it should, but maybe I'm missing something...

Thanks,

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



horizontal scroll bar for ScrollTable

2009-01-09 Thread kay

How to get the horizontal scroll bar to appear for ScrollTable?

I implemented tables using ScrollTable from GWT Incubator, the table
is being used by multiple panels.  In one scenario, the table is wide,
I used ScrollTable.ResizePolicy.FLOW for it, so text doesn't overlap
when the space is small.

If I press -> or <- button on keybroad, the table does scroll left or
right, how can I get the scrollbar to appear?I have this set,
ScrollTable.ScrollPolicy.BOTH.

One guess is I need to set scroll in CSS? Shouldn't there be some
default styling for it? when there are many rows, the vertical scroll
bar does appear.

Thanks so much for any help.

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



Re: Pbm with PushButton and Images

2009-01-09 Thread Sumit Chandel
Hi Mogoye,

Try explicitly setting the size of the PushButton to that of the image. ,For
example, if your image is 64 x 64, call pushButton.setSize("64px", "64px");
and it should be sized appropriately. I tested this out in hosted mode on
Windows XP / GWT 1.5.3 / IE6 by placing a PushButton in a HorizontalPanel,
VerticalPanel, FlowPanel and Grid within a DockPanel.

Hope that helps,
-Sumit Chandel

On Wed, Jan 7, 2009 at 1:51 AM, Mogoye  wrote:

>
> In fact this problem appears when I run the code in hosted mode.
> I've just notice that the same code once compiled and deployed on a
> tomcat works fine.
>
> Is there a known bug with hosted mode ?
>
>
>
>
>
>
> On 6 jan, 18:13, Mogoye  wrote:
> > Hello all,
> >
> > I want to use PushButton with an image to define the look of the
> > button.
> > So my idea was to use the following code :
> >
> > Image img = _imgBundle.getImage("my_image.gif");
> > PushButton button = new PushButton(img);
> > panel.add(button);
> >
> > I don't understand why but in some buttons, the image is well
> > displayed, but sometimes
> > image is adjusted to bigger or smaller size and the result is not
> > really nice.
> >
> > My 1th question is :
> > Does any one know why the image is some time adjusted and how can I do
> > to be sure my image
> > will be displayed without any change.
> >
> > I've an other question on the same topic :
> > If the button is inserted in a Grid, the button is adjusted to fit the
> > cell causing to have a large button with a small image inside and a
> > lot of blank space.
> > How can I do to be sure that button's size will be the size of the
> > image ?
> >
> > Thanks for reading.
> >
>

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



Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young

Yes, i did define in tomcat/webaps/ROOT/WEB-INF/web.xml


LoginService
com.sun.dmt.admin.server.login.LoginServiceImpl




LoginService
/com.sun.dmt.admin.DMTAdmin/login


and i copied the  build/.../classes/ directory to tomcat/webaps/ROOT/
WEB-INF/classes but I still get this error!!

[INFO] StandardContext[]Marking servlet LoginService as unavailable
[WARN] StandardWrapperValve[LoginService]: Allocate exception for
servlet LoginService
javax.servlet.ServletException: Error instantiating servlet class
com.sun.dmt.admin.server.login.LoginServiceImpl
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:996)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:687)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:619)

Anyone has any idea?
Thanks

On Jan 9, 1:11 pm, "Kevin Tarn"  wrote:
> Did you define your servlet in web.xml that is located in your NetBeans
> project directory's web\WEB-INF?
>
> Ex.
>     
>         Login
>         xxx.xxx.server.LoginServiceImpl
>     
>     
>         Login
>         /xxx.xxx.xxx/LoginService
>     
>
> If you deploy your project by WAR file, you just need to copy WAR to your
> tomcat. You don't need to write mapping in tomcat's conf.
>
> Kevin
>
> On Sat, Jan 10, 2009 at 12:47 AM, joe young  wrote:
>
> > where is the classpath of the hosted browser?
>
> > there is no classes in /tomcat directory, do i need to copy the
> > classes to /tomcat//webapps/ROOT/WEB-INF/classes/  ??
>
> > On Jan 9, 11:36 am, "olivier FRESSE"  wrote:
> > > is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of
> > the
> > > hosted browser ?
> > > If you use the Tomcat instance of the hosted browser, that should be
> > enough.
>
> > > 2009/1/9 joe young 
>
> > > > I'm having trouble calling RPC in shell hosted mode.
>
> > > > Currently I have a simple login page that use rpc to validate the user/
> > > > password.  And when I tried running with shell hosted mode, it always
> > > > give me an onFailure() Error "ERROR"
> > > >  final AsyncCallback callback = new AsyncCallback() {
> > > >            public void onSuccess(Object result) {
> > > >                // take the result coming from the server
> > > >                boolean ok = Boolean.valueOf(result.toString
> > > > ()).booleanValue();
> > > >                if (ok) {
> > > >                    MessageBox.alert("Success", "Successfully logged
> > > > in!");
> > > >                } else {
> > > >                    MessageBox.alert("Invalid", "Your User/Password
> > > > combination is incorrect.");
> > > >                }
> > > >            }
> > > >            public void onFailure(Throwable caught) {
> > > >                MessageBox.alert("Error", "ERROR:");
> > > >            }
> > > >        };
>
> > > > From the error log, i got the following 3 errors.
> > > > ---
> > > > [INFO] StandardContext[]Marking servlet LoginService as

Unable to open web app in hosted mode

2009-01-09 Thread Sahil Dave
Hi..

i am getting the following errors in console while trying to open web app in
hosted mode

Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb4c4f891]
#2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb4feb494]
#3 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e4722e]
#4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25ed7]
#5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26188]
#6
/home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
[0xb0e2648f]
#7 [0xb5c9868e]
#8 [0xb5c90e9d]
#9 [0xb5c90e9d]
#10 [0xb5c8e207]
#11 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
#12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
#13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
#14
/home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
[0x625f38b]
#15
/home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb7ca996d]
#16 [0xb5c9868e]
#17 [0xb5c90d37]
#18 [0xb5c8e207]
#19 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb4c4f96e]
#2 /usr/lib/libX11.so.6 [0xb4fea619]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb4fe0666]
#4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25189]
#5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e253d5]
#6 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26239]
#7
/home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
[0xb0e2648f]
#8 [0xb5c9868e]
#9 [0xb5c90e9d]
#10 [0xb5c90e9d]
#11 [0xb5c8e207]
#12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
#13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
#14 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
#15
/home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
[0x625f38b]
#16
/home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
[0xb7ca996d]
#17 [0xb5c9868e]
#18 [0xb5c90d37]
#19 [0xb5c8e207]


Does anyone know how to resolve this.

-- 
Sahil

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



Re: Multiple web pages how-to

2009-01-09 Thread Sahil Dave
On Fri, Jan 9, 2009 at 11:31 PM, A Friend Of Yours wrote:

>
> In the case of MenuItem, I can use Command for the same purpose.
>
> MenuItem item = new MenuItem("Click Me", new Command() {
>public void execute() {
>// Do the navigation here
>containerSimplePanel.setWidget(new SomeCompositeInheritedClass
> ());
>}


> thanx, i understood everything. now what i am trying to do is use a single
Command() ref to resolve all menu item selections. but i am not able to
access the getSelectedItem() of MenuBar class inside the inner class for
command.

is there a workaround for this.??

*code:*
Command cmd = new Command() {
  public void execute() {
  if(menu.getSelectedItem() == aboutUsItem)
decPanel.setWidget(new MenuData());
  }
};

MenuItem aboutUsItem = menu.addItem("About Us", cmd);



-- 
Sahil

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



Re: ThreadLocal support

2009-01-09 Thread Ian Petersen

On Fri, Jan 9, 2009 at 10:17 AM, Lothar Kimmeringer  wrote:
> cobracbh schrieb:
>> Is any possible that GWT's Java2JavaScript could compile ThreadLocal
>> in future ?
>
> To what? Inside the browser, there is only one Thread running.

That doesn't necessarily mean ThreadLocal doesn't make
sense--ThreadLocal basically degenerates into a static reference in
the case of a single-threaded app.  Perhaps, for the sake of code
reusability, ThreadLocal should eventually be included.  There would
have to be a good argument for it, though, and none was provided.

Anyone arguing for adding ThreadLocal would probably have to overcome
the fact that adding ThreadLocal might confuse developers into
thinking that threading is supported in GWT.  Threading will not be
supported in GWT for a long time to come simply because the majors
browsers won't support threaded Javascript for a long time to come.
The GWT developers have an aversion to confusing GWT users and rightly
so, I think.

Ian

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



Re: Hosted Mode Configuration Question

2009-01-09 Thread Sumit Chandel
Hello everyone,

Just a note that you would probably want to use hosted mode with the
-noserver option before bulking up the server-side on the embedded Tomcat
server. A few reasons to do this:

1) The embedded Tomcat server is somewhat custom built, meaning you can't
expect everything that would work in your plain vanilla Tomcat server to
also work in the embedded Tomcat server. The server is really there as a
means for quickly getting into hosted mode rather than to provide an actual
development application server.

2) The embedded Tomcat server is going to be replaced by an embedded Jetty
server in GWT 1.6 for performance reasons.

You can check out how to use hosted mode with the -noserver option on the
FAQ doc linked below.

Using hosted mode with the -noserver option:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer

Hope that helps,
-Sumit Chandel

On Tue, Jan 6, 2009 at 5:18 PM, Joe Cole wrote:

>
> Just remember that each time you upgrade gwt, or checkout your project
> from source control gwt will overwrite your web.xml.
> We get around this by logging a statement on initialisation that shows
> in the gwt console - if that doesn't appear we know somethings gone
> wrong and check the web.xml.
>
> On Jan 7, 2:07 pm, "sjn...@gmail.com"  wrote:
> > To answer my own question, existing web.xml files work fine with
> > hosted mode. I was able to setup log4j, jdom, my singleton and other
> > third party server side configuration by just copying the config into
> > the generated GWT web.xml in ./tomcat/webapss/ROOT/WEB-INF/web.xml and
> > I created a subdirectory called lib and put my third party server side
> > JARS in there and the hosted mode tomcat found them fine.
> >
> > On Jan 6, 6:20 pm, "sjn...@gmail.com"  wrote:
> >
> > > I want to port a small tomcat application to use GWT hosted mode, but
> > > I want to know if I can port the following setting to the *.gwt.xml
> > > file from the web.xml file? See below.
> >
> > > 
> > > 
> > >
> com.toyota.agentstatus.server.controller.FlatFileReaderFactory
> > > 
> > > 
> >
> > > 
> > > csv.start.hour
> > > 05
> > > java.lang.Integer
> > > 
> >
> > > The first setting is a class that gets loaded on the server at start
> > > up as a singleton. As its name suggest it caches the data read from a
> > > CSV file. The environment entry tells the singleton to load the cache
> > > run at 5:00 AM daily.
> >
> > > I didn't see in the docs how to add this to my gwt.xml file. Is there
> > > away to add these settings?
> >
> > > Thanks
> > > Scott
> >
>

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



Re: Using Window Alert inside of Asynch GWTTestCase

2009-01-09 Thread qqch...@gmail.com

I tried the strategy below and it seemed to work for me.

On Jan 7, 4:15 pm, "qqch...@gmail.com"  wrote:
> My thought is just to find some other modal popup and use that instead
> of Window.alert.
>
> Anyone else with thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: A simple RPC problem. Did anyone encounter a problem like this?

2009-01-09 Thread Sumit Chandel
Hi Patrick,

If the problem is indeed deployment configuration, I would recommend
checking out the doc linked below and comparing your configuration to the
ones prescribed.

Example Deployment with Tomcat:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideRPCDeployment

Some extra information that would help would be if you could use an HTTP
traffic analyzer to check the request and response headers (if you are
receiving a response at all).

Hope that helps,
-Sumit Chandel

On Tue, Jan 6, 2009 at 4:30 PM, steve.myatt.2...@googlemail.com <
steve.my...@tesco.net> wrote:

>
> Hi Patrick
>
> I think I have same underlying problem - I don't think my servlet is
> being deployed properly. I suspect a config problem (web.xml and/or
> app.gwt.xml) OR deployment directories - /com/mycompany/app vs. /
> com.mycompany.app/ - for .class files.
>
> This thread is the nearest I've got to a solution, if it's config:
>
> http://www.manning-sandbox.com/thread.jspa?threadID=22204&tstart=0
>
> but it's a bit old.
>
> I bumped into this with very early experimentation with RPC.
>
> There are various howto's around on this topic, none of which have
> resolved this for me. google "gwt +rpc +deploy +tomcat"
>
> I put getModuleBaseURL to a text field and find (as per kebernet's
> explanation):
>
>  // external, tomcat:
>  //
> http://localhost:8080/music/MusicService
>  // hosted, eclipse:
>  //
> http://localhost:/net.dnsdojo.slm.music.Music/MusicService
>
> I double checked the XML files, no joy. Experimented changing a few
> url/paths to see what breaks (hosted, external). No solution so far.
>
> It's late here, got early start 2moz, gotta go - more later.
>
> Oh - BTW:
> Google Web Toolkit 1.5.3
> Apache Tomcat/6.0.18
> ???
> Cheers
>
>
> On Jan 2, 5:56 am, Patrick  wrote:
> > Hi all,
> > I have a GWT application which
> > - works fine in hosted mode,
> > - works fine in Firefox after being deployed in Tomcat6. but,
> > - does not work in IE6! no (right or wrong) response from remote
> > service.
> >
> > Environment: GWT1.53/GWT Designer 5.1/ Eclipse 3.4/Tomcat6.0
> >
> > The application is to reverse a string, and even when use IE6, the
> > service does do the work, eg. receives "123" from html page and covert
> > it into "321" (the ***Impl really does this work, there is a
> > System.out.println statement in ***Impl.java) and then return. It is
> > supposed that onSuccess or onFailure would be invoked, but there is no
> > output from the Window.alert(msg) statements in onSuccess and
> > onFailure method.
> >
> > Thanks!
> >
> > Patrick
>
> >
>

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



Re: ThreadLocal support

2009-01-09 Thread Lothar Kimmeringer

cobracbh schrieb:

> Is any possible that GWT's Java2JavaScript could compile ThreadLocal
> in future ?

To what? Inside the browser, there is only one Thread running.


Regards, Lothar

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



Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread Kevin Tarn
Did you define your servlet in web.xml that is located in your NetBeans
project directory's web\WEB-INF?

Ex.

Login
xxx.xxx.server.LoginServiceImpl


Login
/xxx.xxx.xxx/LoginService


If you deploy your project by WAR file, you just need to copy WAR to your
tomcat. You don't need to write mapping in tomcat's conf.

Kevin

On Sat, Jan 10, 2009 at 12:47 AM, joe young  wrote:

>
> where is the classpath of the hosted browser?
>
> there is no classes in /tomcat directory, do i need to copy the
> classes to /tomcat//webapps/ROOT/WEB-INF/classes/  ??
>
>
>
> On Jan 9, 11:36 am, "olivier FRESSE"  wrote:
> > is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of
> the
> > hosted browser ?
> > If you use the Tomcat instance of the hosted browser, that should be
> enough.
> >
> > 2009/1/9 joe young 
> >
> >
> >
> > > I'm having trouble calling RPC in shell hosted mode.
> >
> > > Currently I have a simple login page that use rpc to validate the user/
> > > password.  And when I tried running with shell hosted mode, it always
> > > give me an onFailure() Error "ERROR"
> > >  final AsyncCallback callback = new AsyncCallback() {
> > >public void onSuccess(Object result) {
> > >// take the result coming from the server
> > >boolean ok = Boolean.valueOf(result.toString
> > > ()).booleanValue();
> > >if (ok) {
> > >MessageBox.alert("Success", "Successfully logged
> > > in!");
> > >} else {
> > >MessageBox.alert("Invalid", "Your User/Password
> > > combination is incorrect.");
> > >}
> > >}
> > >public void onFailure(Throwable caught) {
> > >MessageBox.alert("Error", "ERROR:");
> > >}
> > >};
> >
> > > From the error log, i got the following 3 errors.
> > > ---
> > > [INFO] StandardContext[]Marking servlet LoginService as unavailable
> > > ---
> > > [WARN] StandardContext[]Error loading WebappClassLoader
> > >  delegate: false
> > >  repositories:
> > > --> Parent Classloader:
> > > sun.misc.launcher$appclassloa...@1372a1a
> > >  com.sun.dmt.admin.server.login.LoginServiceImpl
> > > java.lang.ClassNotFoundException:
> > > com.sun.dmt.admin.server.login.LoginServiceImpl
> > >at org.apache.catalina.loader.WebappClassLoader.loadClass
> > > (WebappClassLoader.java:1340)
> > >at org.apache.catalina.loader.WebappClassLoader.loadClass
> > > (WebappClassLoader.java:1189)
> > >at org.apache.catalina.core.StandardWrapper.loadServlet
> > > (StandardWrapper.java:964)
> > >at org.apache.catalina.core.StandardWrapper.allocate
> > > (StandardWrapper.java:687)
> > >at org.apache.catalina.core.StandardWrapperValve.invoke
> > > (StandardWrapperValve.java:144)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardContextValve.invokeInternal
> > > (StandardContextValve.java:198)
> > >at org.apache.catalina.core.StandardContextValve.invoke
> > > (StandardContextValve.java:152)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardHostValve.invoke
> > > (StandardHostValve.java:137)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.valves.ErrorReportValve.invoke
> > > (ErrorReportValve.java:118)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:102)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at org.apache.catalina.core.StandardEngineValve.invoke
> > > (StandardEngineValve.java:109)
> > >at org.apache.catalina.core.StandardValveContext.invokeNext
> > > (StandardValveContext.java:104)
> > >at org.apache.catalina.core.StandardPipeline.invoke
> > > (StandardPipeline.java:520)
> > >at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > > 929)
> > >at
> > > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> > > 160)
> > >at org.apache.coyote.http11.Http11Processor.process
> > > (Http11Processor.java:799)
> > >at org.apache.coyote.http11.Http11Protocol
> > > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> > >at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> > > (PoolTcpEndpoint.java:577)
> > >at org.apache.tomcat.

Re: java.io.Serializable

2009-01-09 Thread Isaac Truett

Are you deploying the gwt.rpc files from compilation? You should see
an error about this before the SerializationException.


On Fri, Jan 9, 2009 at 7:17 AM, tomekp  wrote:
>
> hi,
> According to GWT documentation (http://code.google.com/support/bin/
> answer.py?hl=en&answer=78126), it should be possible to use
> java.io.Serializable instead of IsSerializable interface.
> But for me even the simpliest classes cannot be serialized when I
> switch from IsSerializable to Serializable.
> I checked that the automatically generated "whitelist" contains right
> entries. I checked the hosted and web mode.
> I always get the following exception:
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
> assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
> not have a custom field serializer.  For security purposes, this type
> will not be deserialized.
>at
> com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
> (LegacySerializationPolicy.java:123)
>at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
> (ServerSerializationStreamReader.java:490)
>at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
> (AbstractSerializationStreamReader.java:61)
>at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
> $ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
>at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
> (ServerSerializationStreamReader.java:372)
>at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
>... 35 more
>
> For some reason always the LegacySerializationPolicy class is used.
> I'm using GWT 1.5.
> Any ideas what can be wrong? Has anyone succeeded to use Serializable
> interface?
>
> Greetings
>  Tomek
>
> >
>

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



Re: Multiple web pages how-to

2009-01-09 Thread A Friend Of Yours

Well, first let me tell yo that I am new to GWT myself. So, I might
not be right all the time. (But I have done and tested already what I
said earlier)

Now
--that means i require just a single EntryPoint class..! I am trying
to
--create my web app's main menu using a MenuBar, and a major area
below it
--will display the contents of each MenuItem.

Ok, you can do this by putting a MenuBar and SimplePanel in a
VerticalPanel and then adding VerticalPanel to RootPanel.

--Can i use multiple RootPanel's in my web app..? i read somewhere
that this
--is discouraged.

Don't know if it is really discouraged but you can do so. Design your
html page as you like and give id attribute for those elements that
you want to access as rootpanels. Now in code you can say

RootPanel elementRootPanel = RootPanel.get("idOfTheElement");

to get your hands on it.

--ok, i got wat you are saying over here. Why should these classes
extend
--Composite?

Well GWT has it's own class hierarchy and to make things work and to
enable GWT use your custom "Composite" component, you need to extend
it from Composite. You might extend it from Widget or Some Panel, but
Composite is recommended I guess.

--Can you use separate methods in the class to return the data.

I couldn't understand the question

--What is this last line doing?

The last line is in fact adding what ever you layedout to DOM.

--how do i add clickListener to MenuItems, i think i can only specify
--commands to perform.

Try looking into javadocs of GWT.

In the case of MenuItem, I can use Command for the same purpose.

MenuItem item = new MenuItem("Click Me", new Command() {
public void execute() {
// Do the navigation here
containerSimplePanel.setWidget(new SomeCompositeInheritedClass
());
}
});

Hope it helps

Omer Akhter


On Jan 9, 1:59 pm, "Sahil Dave"  wrote:
> On Fri, Jan 9, 2009 at 1:52 PM, A Friend Of Yours 
> wrote:
>
>
>
>
>
> > The same problem I was having a few days ago...
>
> > Well gwt abstracts web applications not as a multiple interlinked
> > pages but as widgets and panels like a desktop GUI framework. You can
> > add widgets to panels, switch panels in frames etc...
>
> > What I did in my case is somewhat like this
>
> > 1. Create a class that implements EntryPoint(which you might already
> > have). Layout everything as you like and put a SimplePanel in the area
> > where you want the contents to change.
>
> > Like this
> > -
> > |Logo                   Application Title                 etc |
> > -
> > | Navigation Button1 |                                          |
> > | Navigation Button2 |          SimplePanel              |
> > | Navigation Button3 |                                          |
> > | 
> > |                                          |
> > -
> >> that means i require just a single EntryPoint class..! I am trying to
>
> create my web app's main menu using a MenuBar, and a major area below it
> will display the contents of each MenuItem.
> Can i use multiple RootPanel's in my web app..? i read somewhere that this
> is discouraged.
>
>
>
> > 2. Create on class for each content that you want to put in
> > SimplePanel. It should extend Composite. Also, it must initialize and
> > layout everything in one Grid or Panel or Table in the constructor.
> > The last line in constructor should be like this
>
> > initWidget(thePanelThatContainsEveryThing);
> >> ok, i got wat you are saying over here. Why should these classes extend
>
> Composite? Can you use separate methods in the class to return the data.
> What is this last line doing?
>
>
>
> > 3. On add a clickListener to each navigation button and in that
> > function:
>
> > contentSimplePanel.setWidget(new contentClass1());
>
> >> how do i add clickListener to MenuItems, i think i can only specify
>
> commands to perform.
>
> --
> Sahil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Suggestions for creating a menu

2009-01-09 Thread Sahil Dave
On Fri, Jan 9, 2009 at 9:12 PM, olivier FRESSE wrote:

> menu.addItem(...) returns the created MenuItem instance, ie the one added
> in the menu.
>
> MenuItem aboutUsItem = menu.addItem("About Us", cmd);
>
> and then
>  if(menu.getSelectedItem() == aboutUsItem)
> should work.
>

>> i am not able to use the method  menu.getSelectedItem() inside the inner
class 'Command'.
i have declared a ref to the menubar in the constructor, & adding items to
it in the onModuleLoad(). Is there something wrong..?

thanx and regards

-- 
Sahil

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



Re: Unknown Entity for Vo

2009-01-09 Thread todd.sei...@gmail.com

This sounds like a Hibernate issue. Is DetailsVo in you class path?

On Jan 9, 5:10 am, abhiram  wrote:
> Hi all,
>
>    When i try to save some data, i keep getting the
> "BaseEmrException : Unknown entity : com.abc. .. .DetailsVo." I
> make use of the saveOrUpdate(Vo) function to save the data into the
> database. I ensured that the emr.hbm.xml file is proper. Can anyone
> please let me know why this error keeps coming and what is the
> possible solution for this? Thanks
>
> Abhiram
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How is the width of a HTMLtable column or cell gotten without referring to an object contained therein?

2009-01-09 Thread todd.sei...@gmail.com

Joe Cole's explanation works. JavaDocs are invaluable (http://google-
web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/
ui/HTMLTable.html)


Try DOM.getElementPropertyInt(htmlTable.getCellFormatter().getElement
(cellIndex, rowIndex), "offsetWidth");

On Jan 9, 12:12 pm, sssmack  wrote:
> 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



java.io.Serializable

2009-01-09 Thread tomekp

hi,
According to GWT documentation (http://code.google.com/support/bin/
answer.py?hl=en&answer=78126), it should be possible to use
java.io.Serializable instead of IsSerializable interface.
But for me even the simpliest classes cannot be serialized when I
switch from IsSerializable to Serializable.
I checked that the automatically generated "whitelist" contains right
entries. I checked the hosted and web mode.
I always get the following exception:

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
not have a custom field serializer.  For security purposes, this type
will not be deserialized.
at
com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
(LegacySerializationPolicy.java:123)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
(ServerSerializationStreamReader.java:490)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:61)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
$ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
(ServerSerializationStreamReader.java:372)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
... 35 more

For some reason always the LegacySerializationPolicy class is used.
I'm using GWT 1.5.
Any ideas what can be wrong? Has anyone succeeded to use Serializable
interface?

Greetings
  Tomek

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



Unknown Entity for Vo

2009-01-09 Thread abhiram

Hi all,

   When i try to save some data, i keep getting the
"BaseEmrException : Unknown entity : com.abc. .. .DetailsVo." I
make use of the saveOrUpdate(Vo) function to save the data into the
database. I ensured that the emr.hbm.xml file is proper. Can anyone
please let me know why this error keeps coming and what is the
possible solution for this? Thanks

Abhiram

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



ThreadLocal support

2009-01-09 Thread cobracbh

Hi,

Is any possible that GWT's Java2JavaScript could compile ThreadLocal
in future ?

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



How is the width of a HTMLtable column or cell gotten without referring to an object contained therein?

2009-01-09 Thread sssmack

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



Re: Error's , PLEASE HELP ME :)

2009-01-09 Thread King

hello guys,

at first i thank you all for the big feedback!

I solved the problem :) I have asked friend who helped me

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



Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young

where is the classpath of the hosted browser?

there is no classes in /tomcat directory, do i need to copy the
classes to /tomcat//webapps/ROOT/WEB-INF/classes/  ??



On Jan 9, 11:36 am, "olivier FRESSE"  wrote:
> is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of the
> hosted browser ?
> If you use the Tomcat instance of the hosted browser, that should be enough.
>
> 2009/1/9 joe young 
>
>
>
> > I'm having trouble calling RPC in shell hosted mode.
>
> > Currently I have a simple login page that use rpc to validate the user/
> > password.  And when I tried running with shell hosted mode, it always
> > give me an onFailure() Error "ERROR"
> >  final AsyncCallback callback = new AsyncCallback() {
> >            public void onSuccess(Object result) {
> >                // take the result coming from the server
> >                boolean ok = Boolean.valueOf(result.toString
> > ()).booleanValue();
> >                if (ok) {
> >                    MessageBox.alert("Success", "Successfully logged
> > in!");
> >                } else {
> >                    MessageBox.alert("Invalid", "Your User/Password
> > combination is incorrect.");
> >                }
> >            }
> >            public void onFailure(Throwable caught) {
> >                MessageBox.alert("Error", "ERROR:");
> >            }
> >        };
>
> > From the error log, i got the following 3 errors.
> > ---
> > [INFO] StandardContext[]Marking servlet LoginService as unavailable
> > ---
> > [WARN] StandardContext[]Error loading WebappClassLoader
> >  delegate: false
> >  repositories:
> > --> Parent Classloader:
> > sun.misc.launcher$appclassloa...@1372a1a
> >  com.sun.dmt.admin.server.login.LoginServiceImpl
> > java.lang.ClassNotFoundException:
> > com.sun.dmt.admin.server.login.LoginServiceImpl
> >        at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1340)
> >        at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1189)
> >        at org.apache.catalina.core.StandardWrapper.loadServlet
> > (StandardWrapper.java:964)
> >        at org.apache.catalina.core.StandardWrapper.allocate
> > (StandardWrapper.java:687)
> >        at org.apache.catalina.core.StandardWrapperValve.invoke
> > (StandardWrapperValve.java:144)
> >        at org.apache.catalina.core.StandardValveContext.invokeNext
> > (StandardValveContext.java:104)
> >        at org.apache.catalina.core.StandardPipeline.invoke
> > (StandardPipeline.java:520)
> >        at org.apache.catalina.core.StandardContextValve.invokeInternal
> > (StandardContextValve.java:198)
> >        at org.apache.catalina.core.StandardContextValve.invoke
> > (StandardContextValve.java:152)
> >        at org.apache.catalina.core.StandardValveContext.invokeNext
> > (StandardValveContext.java:104)
> >        at org.apache.catalina.core.StandardPipeline.invoke
> > (StandardPipeline.java:520)
> >        at org.apache.catalina.core.StandardHostValve.invoke
> > (StandardHostValve.java:137)
> >        at org.apache.catalina.core.StandardValveContext.invokeNext
> > (StandardValveContext.java:104)
> >        at org.apache.catalina.valves.ErrorReportValve.invoke
> > (ErrorReportValve.java:118)
> >        at org.apache.catalina.core.StandardValveContext.invokeNext
> > (StandardValveContext.java:102)
> >        at org.apache.catalina.core.StandardPipeline.invoke
> > (StandardPipeline.java:520)
> >        at org.apache.catalina.core.StandardEngineValve.invoke
> > (StandardEngineValve.java:109)
> >        at org.apache.catalina.core.StandardValveContext.invokeNext
> > (StandardValveContext.java:104)
> >        at org.apache.catalina.core.StandardPipeline.invoke
> > (StandardPipeline.java:520)
> >        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > 929)
> >        at
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> > 160)
> >        at org.apache.coyote.http11.Http11Processor.process
> > (Http11Processor.java:799)
> >        at org.apache.coyote.http11.Http11Protocol
> > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >        at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> > (PoolTcpEndpoint.java:577)
> >        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> > (ThreadPool.java:683)
> >        at java.lang.Thread.run(Thread.java:619)
> > ---
> > [WARN] StandardWrapperValve[LoginService]: Allocate exception for
> > servlet LoginService
> > javax.servlet.ServletException: Wrapper cannot find servlet class
> > com.sun.dmt.admin.server.login.LoginServiceImpl or a class it depends
> > on
> >        at org.apache.catalina.core.StandardWrapper.loadServlet
> > (StandardWrapper.java:974)
> >        at org.apache.catalina.core.StandardWrapper.allocate
> > (StandardWrapper.java:687)
> >        at org.

Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread olivier FRESSE
is com.sun.dmt.admin.server.login.LoginServiceImpl in the classpath of the
hosted browser ?
If you use the Tomcat instance of the hosted browser, that should be enough.


2009/1/9 joe young 

>
> I'm having trouble calling RPC in shell hosted mode.
>
> Currently I have a simple login page that use rpc to validate the user/
> password.  And when I tried running with shell hosted mode, it always
> give me an onFailure() Error "ERROR"
>  final AsyncCallback callback = new AsyncCallback() {
>public void onSuccess(Object result) {
>// take the result coming from the server
>boolean ok = Boolean.valueOf(result.toString
> ()).booleanValue();
>if (ok) {
>MessageBox.alert("Success", "Successfully logged
> in!");
>} else {
>MessageBox.alert("Invalid", "Your User/Password
> combination is incorrect.");
>}
>}
>public void onFailure(Throwable caught) {
>MessageBox.alert("Error", "ERROR:");
>}
>};
>
> From the error log, i got the following 3 errors.
> ---
> [INFO] StandardContext[]Marking servlet LoginService as unavailable
> ---
> [WARN] StandardContext[]Error loading WebappClassLoader
>  delegate: false
>  repositories:
> --> Parent Classloader:
> sun.misc.launcher$appclassloa...@1372a1a
>  com.sun.dmt.admin.server.login.LoginServiceImpl
> java.lang.ClassNotFoundException:
> com.sun.dmt.admin.server.login.LoginServiceImpl
>at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1340)
>at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1189)
>at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:964)
>at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:687)
>at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:144)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:198)
>at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:152)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:137)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:118)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:102)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> 929)
>at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> 160)
>at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:799)
>at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> (PoolTcpEndpoint.java:577)
>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:683)
>at java.lang.Thread.run(Thread.java:619)
> ---
> [WARN] StandardWrapperValve[LoginService]: Allocate exception for
> servlet LoginService
> javax.servlet.ServletException: Wrapper cannot find servlet class
> com.sun.dmt.admin.server.login.LoginServiceImpl or a class it depends
> on
>at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:974)
>at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:687)
>at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:144)
>at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:198)
>at org.apache.catalina.c

Re: Widget and SPAN element?

2009-01-09 Thread todd.sei...@gmail.com

Use can extend the Label class and call super(Document.get
().createSpanElement()) in you constructor.

On Jan 9, 9:00 am, "Ian Bambury"  wrote:
> 1. Not sure but I don't think so
> 2. Get the span and shove it in an HTML widget
>
> 3. Get the content of the span and shove it in an HTML widget. Add a click
> listener to the HTML widget. Clear the content of the span. Stick the HTML
> widget in the span.
>
> You might also find it useful to subclass Label, set the style name to
> something else, and hard code display:inline for its element.
>
> Ian
>
> http://examples.roughian.com
>
> 2009/1/9 Fred Janon 
>
> > Hi,
>
> >    1. Is there a Widget corresponding to a SPAN element?
> >    2. Is there a way to create a widget from an existing SPAN element in
> >    an HTML page?
> >    3. How can I add a click listener to a SPAN element?
>
> > Thanks
>
> > Fred
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young

I'm having trouble calling RPC in shell hosted mode.

Currently I have a simple login page that use rpc to validate the user/
password.  And when I tried running with shell hosted mode, it always
give me an onFailure() Error "ERROR"
 final AsyncCallback callback = new AsyncCallback() {
public void onSuccess(Object result) {
// take the result coming from the server
boolean ok = Boolean.valueOf(result.toString
()).booleanValue();
if (ok) {
MessageBox.alert("Success", "Successfully logged
in!");
} else {
MessageBox.alert("Invalid", "Your User/Password
combination is incorrect.");
}
}
public void onFailure(Throwable caught) {
MessageBox.alert("Error", "ERROR:");
}
};

>From the error log, i got the following 3 errors.
---
[INFO] StandardContext[]Marking servlet LoginService as unavailable
---
[WARN] StandardContext[]Error loading WebappClassLoader
  delegate: false
  repositories:
--> Parent Classloader:
sun.misc.launcher$appclassloa...@1372a1a
 com.sun.dmt.admin.server.login.LoginServiceImpl
java.lang.ClassNotFoundException:
com.sun.dmt.admin.server.login.LoginServiceImpl
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:964)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:687)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:619)
---
[WARN] StandardWrapperValve[LoginService]: Allocate exception for
servlet LoginService
javax.servlet.ServletException: Wrapper cannot find servlet class
com.sun.dmt.admin.server.login.LoginServiceImpl or a class it depends
on
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:974)
at org.apache.catalina.core.StandardWrapper.allocate
(StandardWrapper.java:687)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:144)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at o

Re: History and Tab panels

2009-01-09 Thread todd.sei...@gmail.com

First remember that #0 and #3 are not pages. Check out
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/History.html#fireCurrentHistoryState()
to see how you can invoke the current history when your app reloads

History for a full UI is rather complex. Consider mapping commands to
history with very specific naming. For example you could use a token
such as "MyTopLevelTab:1" and a command which selects the tab for you.

new Command() {
  public void execute() {
tpanel.selectTab(1);
  }
}

And use some other token for the child TabPanel like "MyTopLevelTab:
1:MyOtherTabPanel:3"

new Command() {
  public void execute() {
tpanel.selectTab(1);
((TabPanel) tpanel.getWidget(1)).selectTab(3);
  }
}

These are just some quick examples. You will need to create an
implementation that make sense in your application.

On Jan 9, 9:59 am, jake H  wrote:
> Hello ,
> i spent some hours checking how History could be beneficial and how it
> can be implemented.
> I have some questions though on how it can be set up to work properly.
>
> At first i have a 2 level - Tab panel , Every initial node has
> children. By using the following code from Ian's site.
>
> ...
> ...
> ...
>
>         tpanel.addTabListener(this);
>           subpanel.addTabListener(this);
>    RootPanel.get().add(vp1);
>    RootPanel.get().add(vp2);
>    History.addHistoryListener(this);
>
>    }
>
>     String oldToken = null;
>     public void onHistoryChanged(String historyToken)
>     {
>         // If they are the same, no need to do anything
>         if (oldToken != null && historyToken.equals(oldToken)) return;
>
>         // Save the token for the next time round
>         oldToken = historyToken;
>
>         // Get the tab index
>         int index = 0;
>         try
>         {
>             index = Integer.parseInt(historyToken);
>         }
>         catch (Exception e)
>         {
>         }
>
>         // Do a bit of checking
>         if (index < 0 || index >= tpanel.getTabBar().getTabCount())
> index = 0;
>         tpanel.selectTab(index);
>     }
>
>      public boolean onBeforeTabSelected(SourcesTabEvents sender, int
> tabIndex)
>     {
>         return true;
>     }
>     public void onTabSelected(SourcesTabEvents sender, int tabIndex)
>     {
>         History.newItem("" + tabIndex);
>     }
>
> It worked fine only for tpanel. How i can modify this code to work
> fine for the rest subpanels as well??
> Secondly , when i m in the #3 page and i hit refresh , it redirects me
> in the first page, #0 . Why is this happening?
>
> Ty.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cannot find resource in the public path

2009-01-09 Thread satya

Instructions from 
http://www.gwt-ext.com/wiki/index.php?title=Tutorial:Introduction_to_GWT-Ext_2.0
should help.

Satya

On Jan 9, 1:32 am, Dev  wrote:
> Hi,
>
> I am new to GWT-Ext
> When doing the sample program and runing the shell.
>
> Getting error message as Cannot find resource in the public path of
> html.
>
> Can any one please help to resolve the same.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Suggestions for creating a menu

2009-01-09 Thread olivier FRESSE
menu.addItem(...) returns the created MenuItem instance, ie the one added in
the menu.

MenuItem aboutUsItem = menu.addItem("About Us", cmd);

and then
 if(menu.getSelectedItem() == aboutUsItem)
should work.




2009/1/9 Sahil Dave 

>
>
> On Fri, Jan 9, 2009 at 8:00 PM, olivier FRESSE 
> wrote:
>
>> Maybe a menu bar ?
>> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
>> :-)
>>
>>
> > yes, i am using the menu bar. i want to create a single command reference
> and resolve all menu selections in it. for this i am trying to use the
> menubar's getSelectedItem() method. but what shud i check the returned item
> against...??
>
> *code:*
>
> MenuBar menu = new MenuBar();
> menu.addItem("About Us", cmd);
>
> Command cmd = new Command() {
>   public void execute() {
>   if(menu.getSelectedItem() == ?)
>   decPanel.setWidget(new MenuData());
>   }
>  };
>
>
> --
> Sahil
>
> MCA(SE)
> USIT
> GGSIPU, Kashmere Gate
> Delhi
>
>
> >
>

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



Re: Tutorial for web application using GWT,Spring,hibernate

2009-01-09 Thread noon

Hi,

Gilead (formely known as hibernate4gwt) provides a GWT-Spring-
Hibernate sample application and tutorial on its usage.
see http://gilead.sourceforge.net for more details.

Regards
Bruno

On 9 jan, 11:31, Martin  wrote:
> maybe you want to go with toplink, which IMHO much better, more agile
> and a lot faster than hibernate ...
>
> check outhttp://toools.org... check the wiki for some doc ...
>
> cheers
>
> On Jan 7, 6:14 am, "pallavi gole"  wrote:
>
> > Hi,
>
> > I am new to GWT.
>
> > I want develop web application using GWT,Spring,Hibernate.
>
> > I want  tutorial which describe step by step how to develop web application
> >   using  GWT,Spring,Hibernate.
>
> > from where I will get this Tutorial .
>
> > Thanks ,
> > Asmita
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: KeyboardListener help

2009-01-09 Thread Alfred S

Can anyone please help me with this?

Thanks,
~Alfred

On Jan 8, 3:10 pm, Alfred S  wrote:
> This might seem like a silly question, but I've been unable to find an
> answer...
>
> Where do I attach a KeyboardListener that would affect either:
> -A DialogBox [pop up a dialog box, press a button, trigger an event
> anywhere in the pop up]
> -The RootPanel [I press F2 and it mimics a clicking a button]
>
> I know you can attach KeyboardListeners to buttons, but they only
> trigger if the button is selected.  How do I get around this?  Please
> help!
>
> Thanks,
> ~Alfred
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running code on server at startup

2009-01-09 Thread Brad Larson

Thanks jhulford!

A servlet context listener seems to be the perfect solution.  Is there
a GWT-approved way to register one with the hosted-mode Tomcat
server?  I searched the forums a bit, but only found a few hacks:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/23373cff5f674dd0/744c2efd5b28cf34?lnk=gst&q=listener-class#744c2efd5b28cf34

Thanks!
-Brad


On Jan 9, 8:29 am, jhulford  wrote:
> You can use a servlet context listener to initialize your application
> too.
>
> On Jan 8, 12:20 pm, Brad Larson  wrote:
>
> > Hello friends,
>
> > What is the best way to run code on my server when my servlet is
> > loaded?  I'd like to do some database initialization work which the
> > servlet is expecting.  I could use a static variable in the servlet to
> > see if it is being ran for the first time, and do the init there, but
> > that seems like a hack to me.
>
> > I have googled around and found a couple references to
> > ServletContextAttributeListener, but that seems like just as big of a
> > hack.  Is there a GWT-approved method for doing anything like this?
>
> > Thanks!
> > -Brad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem building GWT with JPA annotations using Ant

2009-01-09 Thread noon

Hi,

You have got a Java compiler error, so I think you should include
hibernate-annotations.jar in ant comipler classpath (hibernate4gwt
just provide annotation emulation for GWT).

Regards
Bruno

On 7 jan, 18:26, tophtfc  wrote:
> Hi,
>
> My application builds and works fine in hosted mode, but I am having
> trouble getting my application to compile using Ant. Im using GWT with
> hibernate4gwt and JPA annotations, so my gwt xml inherits the
> following:
>
> 
> 
> 
> 
> 
>
> In my domain classes I have many JPA annotations e.g:
>
> import javax.persistence.Entity;
> import javax.persistence.Id;
> import javax.persistence.Table;
>
> import net.sf.hibernate4gwt.pojo.java5.LazyPojo;
>
> //I am using GXT also, these are to do with that
> import com.extjs.gxt.ui.client.data.BeanModelMarker;
> import com.extjs.gxt.ui.client.data.BeanModelMarker.BEAN;
>
> @Entity
> @Table(name="Contact")
> public class Contact extends LazyPojo {
> ...
>
> }
>
> In my build.xml i have included the following in my class path:
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> When i try to build, the gwt compiler complains that it cannot find
> the JPA annotations classes:
>
> [echo]
> [echo] GWT Compiling : com.
> [echo]
> [java] Processing types in compilation unit: file:/C://
> domain/Contact.java
> [java] Found type 'Contact'
> [java] Resolving annotation '@Entity'
> [java] [ERROR]
> [java] java.lang.ClassNotFoundException: javax.persistence.Entity
>
> So I am thinking its a class path error, but I am not sure what I need
> to add in to make it build properly.
>
> Can anyone help? Thanks
> Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



History and Tab panels

2009-01-09 Thread jake H

Hello ,
i spent some hours checking how History could be beneficial and how it
can be implemented.
I have some questions though on how it can be set up to work properly.

At first i have a 2 level - Tab panel , Every initial node has
children. By using the following code from Ian's site.

...
...
...

tpanel.addTabListener(this);
  subpanel.addTabListener(this);
   RootPanel.get().add(vp1);
   RootPanel.get().add(vp2);
   History.addHistoryListener(this);

   }

String oldToken = null;
public void onHistoryChanged(String historyToken)
{
// If they are the same, no need to do anything
if (oldToken != null && historyToken.equals(oldToken)) return;

// Save the token for the next time round
oldToken = historyToken;

// Get the tab index
int index = 0;
try
{
index = Integer.parseInt(historyToken);
}
catch (Exception e)
{
}

// Do a bit of checking
if (index < 0 || index >= tpanel.getTabBar().getTabCount())
index = 0;
tpanel.selectTab(index);
}

 public boolean onBeforeTabSelected(SourcesTabEvents sender, int
tabIndex)
{
return true;
}
public void onTabSelected(SourcesTabEvents sender, int tabIndex)
{
History.newItem("" + tabIndex);
}


It worked fine only for tpanel. How i can modify this code to work
fine for the rest subpanels as well??
Secondly , when i m in the #3 page and i hit refresh , it redirects me
in the first page, #0 . Why is this happening?

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



Re: Suggestions for creating a menu

2009-01-09 Thread Sahil Dave
On Fri, Jan 9, 2009 at 8:00 PM, olivier FRESSE wrote:

> Maybe a menu bar ?
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
> :-)
>
>
> yes, i am using the menu bar. i want to create a single command reference
and resolve all menu selections in it. for this i am trying to use the
menubar's getSelectedItem() method. but what shud i check the returned item
against...??

*code:*

MenuBar menu = new MenuBar();
menu.addItem("About Us", cmd);

Command cmd = new Command() {
  public void execute() {
  if(menu.getSelectedItem() == ?)
  decPanel.setWidget(new MenuData());
  }
 };


-- 
Sahil

MCA(SE)
USIT
GGSIPU, Kashmere Gate
Delhi

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



Re: Suggestions for creating a menu

2009-01-09 Thread olivier FRESSE
Maybe a menu bar ?
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html
:-)


2009/1/9 Sahil Dave 

> hi..
>
> if i want to create a main menu for my web application, what all widgets
> can i use to achieve this..?
>
> thanx and regards
>
> --
> Sahil
>
> >
>

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



Re: Running code on server at startup

2009-01-09 Thread jhulford

You can use a servlet context listener to initialize your application
too.

On Jan 8, 12:20 pm, Brad Larson  wrote:
> Hello friends,
>
> What is the best way to run code on my server when my servlet is
> loaded?  I'd like to do some database initialization work which the
> servlet is expecting.  I could use a static variable in the servlet to
> see if it is being ran for the first time, and do the init there, but
> that seems like a hack to me.
>
> I have googled around and found a couple references to
> ServletContextAttributeListener, but that seems like just as big of a
> hack.  Is there a GWT-approved method for doing anything like this?
>
> Thanks!
> -Brad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Widget and SPAN element?

2009-01-09 Thread Ian Bambury
1. Not sure but I don't think so
2. Get the span and shove it in an HTML widget

3. Get the content of the span and shove it in an HTML widget. Add a click
listener to the HTML widget. Clear the content of the span. Stick the HTML
widget in the span.

You might also find it useful to subclass Label, set the style name to
something else, and hard code display:inline for its element.

Ian

http://examples.roughian.com


2009/1/9 Fred Janon 

> Hi,
>
>1. Is there a Widget corresponding to a SPAN element?
>2. Is there a way to create a widget from an existing SPAN element in
>an HTML page?
>3. How can I add a click listener to a SPAN element?
>
> Thanks
>
> Fred
>
>
> >
>

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



Widget and SPAN element?

2009-01-09 Thread Fred Janon
Hi,

   1. Is there a Widget corresponding to a SPAN element?
   2. Is there a way to create a widget from an existing SPAN element in an
   HTML page?
   3. How can I add a click listener to a SPAN element?

Thanks

Fred

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



GWT app looking and behaving like Google Reader?

2009-01-09 Thread Kango_V

I'd like to know how I can go about creating the look and feel of an
app with GWT that looks and behaves like Google Reader.

Has anyone done an article about what widgets/components were/can be
used to get the layout etc.

I've played with GWT, but not sure how to go about this.  Any help
appreciated.

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



Suggestions for creating a menu

2009-01-09 Thread Sahil Dave
hi..

if i want to create a main menu for my web application, what all widgets can
i use to achieve this..?

thanx and regards

-- 
Sahil

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



Re: GWT vs. Adobe Flex for UI development when J2EE/Spring is used for middle tier/server programming

2009-01-09 Thread mikedshaf...@gmail.com

Based upon your search criteria, it would seem that learning Flex is
more marketable and therefore would be a better choice.

However, if you are interested in creating solutions that are easier
to code, easier to maintain and easier to integrate (when coming from
a Java background), GWT is a better choice.

That's not intended to sound illogical, that's the nature of the
market today.  Flex has a lot of buzz, always has.  It's perceived as
one of the sexy, highly styled UI web toolkits...and in the hands of
an expert, you can create nice looking web UI's.  But it is just a
tool and in the hands of an amateur, equally amateurish results will
follow.

GWT "suffers" from two key points (IMHO).  One, it's targeted at the
Java developer.  People like you.  Boring, non-innovative Java
developers who only know how to do servers and only get excited about
connection pools and OR Maps (tongue in cheek here...)  "Java"
developers don't know how to create UI's and so a tool that allows the
Java developer to create web UI's can't be good.  The second point is
related to the first.  The hard core Javascript guys have been
downtrodden and second-class citizens for years.  Now with AJAX and
the mature libraries that are out there, they've got some time in the
spotlight.  They're a scrappy bunch, that really know their stuff, and
GWT threatens that existence.  "Surely GWT's compiler can't write
Javascript as tight as mine"that's the mentality.  I speak from
direct experience...I've written 100's of thousands of lines of
Javascript.  But if you're exposed to (or go back to your roots) a
mature development environment, where real object oriented development
patterns are primary, good design is key, but great maintainability,
debuggability and team synergy due to language homogony is paramount,
GWT because it's foundation is Java, is a killer.

Flex is a bit of an anomally, it's not Javascript really, but it's not
Java based either.  When it comes down to what the choice is it's
simple:  is it valuable to your development process to have a second
language stack in your solution?  If your server side is Java, your
client side is either Javascript or Flex (is it still called
Actionscript, it's been a while).  Or you write your server in Java
AND your client in Java, and allow your compiler to optimize the
client code to it's application container...that's what GWT does.
Plain and simple.

So if your criteria is job marketability and what you should learn,
both are the wrong choice.  Look for AJAX in the job descriptions,
there will be zillions.  They will require you to have deep domain
knowledge of Javascript, along with CSS and HTML, plus a solid
understand of JSON and the whole response/request methodology that
XMLHTTP uses.  You should also plan on getting very familiar with a
number of the big libraries, like JQuery, YUI, Prototype,
Scriptaculous, Rico, etc...  You'll also need to know all the various
ways that IE 6, IE 7 & IE 8 are different than Firefox 2, 3 and Safari
are different and how you code for all of these various browsers.

My opinions, not even worth .02 USD, but there you have it.

Later,

Shaffer

On Jan 8, 2:56 pm, j2ee_nyc  wrote:
> Hi,
>
> I am a J2EE developer. I am looking to learn and apply the AJAX
> technology at work and gain a skill that will help me in my career
> going forward.
>
> I am trying to understand the level of maturity of the GWT framework
> for the entrprise development and how it compares with Adobe Flex
> framework if one wants to build production-ready enterise web
> applications while utilizing J2EE technologies (Spring/Hibenate/JSP/
> JSF) for the middle-tier/server side.
>
> On one hand, I see a lot of posts here where many developers praise
> GWT as a great UI technology. On the other hand, when I do a search on
> Dice.com for GWT jobs in New York, NY for the past 30 days, I see only
> 14 jobs that mention GWT and way over a hundred jobs that mention
> Adobe Flex.
>
> It's a very rough test, but can we assume that Flex is more marketable
> and more in demand on the job market as a UI/AJAX tehcnology? What do
> you think is the outlook for GWT vs Flex for the rest of 2009?
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Remember username and password

2009-01-09 Thread Martin Trummer

what I do is: have a hidden html-form in my html page:








in my entry-point I simply read those values and set them into my gwt-
text and gwt-password fields.
if the html values are empty, my gwt-fields will also be empty (this
is always the case when the user enters the site for the first time).
when the user then clicks my login-button:
 * I copy the values from my gwt-fields back to the html-fields in the
hidden form
 * then I call click on the hidden form's submit button (which will
NOT submit the form, see onsubmit())
   this triggers the browsers passwordmanager
 * then I proceed with my own login-routine on the server

NOTES:
 * I am not sure, that this will work in all browsers password
managers - I think some browsers require the form to really be
submitted
   anyway: it works well in firefox 3
 * 
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=LoginSecurityFAQ
 * to trigger the form submit:
/**
 * will trigger the submit action of the dummy login form for
password managers
 * the form will not be submitted, because the onSubmit function will
always return false.
 * note: calling form.submit() instead of calling button.click() will
not call the onSubmit
 *   function but submit the form immediately.
 */
public static native void submitHiddenLoginForm() /*-{
$doc.getElementById('hiddenLoginFormSubmitButton').click();
}-*/;


On Jan 8, 12:28 pm, Ice13ill  wrote:
> I'm trying to remember the username and password in a gwt login
> applicaion.
> I found this:
> 1. adding a textbox and passwordbox in the html file
>
> 
> 
>
> (i read that if i add those in the html file, the browser will
> automatically remember the values).
>
> 2. DOM.getElementById for each of them
>
>                 m_tbUsername = TextBox.wrap(DOM.getElementById("1"));
>                 m_tbUsername.addKeyboardListener(this);
>
>                 m_tbPassword = PasswordTextBox.wrap(DOM.getElementById("2"));
>                 m_tbPassword.addKeyboardListener(this);
> I also added a Login button with a ClickListener
>
> Problem:
> neither of those above (textbox, passwordbox, button) will respond to
> key or click actions
>
> So...
> public void onClick(Widget sender) {
>                 Window.alert("b");}
>
> does nothing
>
> What's the problem ?
> Can somebody tell me another method in gwt for remembering username
> and password ? (a link or tip )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: TabPanel listeners

2009-01-09 Thread jake H

sry for the late answer , but thank you
i ll try it and i ll let u know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



HTML-Textarea

2009-01-09 Thread dadom...@googlemail.com

Hi...

i want to build a Read-Only Textarea, with HTML interpretation,
somethink like a middle way between a HTMLPanel and a Textarea. In
fact i want to have the textbox behaviours: Scrollbars, CSS-Style (can
use the textbox-class of couse) and the the "special" text marking
with Strg+a (in a textbox he select all text in the textbox, on a html
panel the whole site)

Somebody an Idea?

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



Problem with apache tomcat

2009-01-09 Thread jamer

Hi group!
I developed an application in GWT and when deployed in tomcat (Mac OS)
I get the following breakdown.

applicationDispatcher.allocateException=Except for booking space for
servlet


The same application to the deployment of Windows and Apache Tomcat is
fine for me.
Why might that be?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to add points in chart by clicking on different areas of it?

2009-01-09 Thread saurabh hirani

Hi all,

Thanks for developing a great product like GChart which integrates so
easily with GWT and works like charm. I had a query - I want to draw a
chart where I can click on any point along the x-y axis to determine
the point cordinates in model units. Once I get that, I can do an
addPoint() to add the point to the curve.

I tried doing that in GChart but I did not find any methods through
which I can handle a mouse click event to get the x-y cordinates in
model units. I can get the cordinates by implementing an EventListener
for the chart but those cordinates are of the browser window and in
different units. So it does not help. How can we accomplish this in
GChart?

Also, as GChart is a subclass of widget, I can use widget's methods on
it. But as Curve, Point are classes enclosed within GChart, I cannot
use widget methods on it. Am I right in saying this?

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



Re: How to make scrollable flex table with header row fixed

2009-01-09 Thread alex.d

Just use two tables - one for the header and another one in a
scrollpanel for the data. Both in the verticalPanel.

On 9 Jan., 12:23, Manish Gupta  wrote:
> Anybody implemented scrollable Flex table. Please send your inputs
> what will be the strategy to develop such a component
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help Urgent

2009-01-09 Thread alex.d

Use Ant to build a jar-file where your whole project is saved. Look in
this group for more infos about Ant(or maven but Ant is kind of easier
for small projects).

On 9 Jan., 09:39, Calix  wrote:
> Hi Guys,
>
> I am working on a gwt project, I want to add servlets to the same
> project, how to do that. I mean gwt source files are in src/client and
> the when we compile the class files are in bin folder, but for
> servlets the the class files has to go in the WEB-INF/classes/
> servlets. I dont know how to do that and also I am working with derby
> database, there are some issues with the library files.
>
> Can u anyone explain me the procedure how to go from here?
>
> Thanks
> Bunny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to enable enter key for a button

2009-01-09 Thread jake H

Hello , i tried to do something similar.

Its not possible to set two listeners for the box right?
Because i add right afterwards the Clicklistener the Keyboard Listener
and it didnt work.

I have to use a more abstract listener , event listener , and put
inside both onClick and onKeyPress?



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



Re: Help needed for Scrollable Table with Header fixed

2009-01-09 Thread ajay jetti
check out the incubator project , it might give u an idea of how to go about
wrting something like scrollable table

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



How to make scrollable flex table with header row fixed

2009-01-09 Thread Manish Gupta

Anybody implemented scrollable Flex table. Please send your inputs
what will be the strategy to develop such a component
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to integrate Hibernate and GWT

2009-01-09 Thread Martin

if you want to take a look at a toplink JPA based solution, check out
http://toools.org

cheers

On Dec 3 2008, 11:13 am, Dessorry 
wrote:
> Hi,
> I'm trying to build my first GWT application; i would read data from a
> database and display it on a simple gwt page.
> I create in Eclipse my Web Dynamic Project.
> I put my POJO class in mypackage.server and the class with entrypoint
> in mypackage.client.
> I create a new GWT Remote Service with Eclipse.
> Now where must i put the hibernate code to access database?
> p.s.in mypackage.server there are hibernate.cfg.xml and pojo.hbm.xml
>
> thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending Hibernate JPA persistent entities to the client

2009-01-09 Thread Martin

we are doing it successful with toplink JPA ... check out http://toools.org

cheers

On Dec 18 2008, 12:31 am, Smith  wrote:
> All,
>
> With GWT 1.5, is it possible to send the persistent hibernate entities
> directly to the client, without creating  separate client side
> objects? I know it's not a good pattern, but just curious if that
> would work.
>
> I have read this didn't work with GWT 1.4 since annotations were not
> supported, but since GWT 1.5 supports annotations, this should be
> possible, right?
>
> Thanks,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Help needed for Scrollable Table with Header fixed

2009-01-09 Thread Manish Gupta

Hi,
Did anybody implemented Scrollable table with header fixed. we are
already having one GWT table developed for our application but now we
need to enhance this table in order to have scrolling functionality
with fixed header.

quick reply will be highly appreciated. Any example code will really
help us.

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



Re: JDBC postrges under gwt

2009-01-09 Thread venkatesan E
Hi Martin,

  It looks cool , I will try and create some test apps by using those
tools,
  It will be help for me in my projects,

  Thanks, for your incredible information.

Thanks,
-Venky.


On Fri, Jan 9, 2009 at 3:57 PM, Martin  wrote:

>
> check out http://toools.org ... we have a howto there in the wiki to
> connect to postgres ...
>
> cheers
>
> On Jan 8, 9:04 pm, Aka ray  wrote:
> > Hello everybody.
> > Im new in using gwt.
> >
> > Almost everything is working but when I compile my project to run it
> > on an external Browser, I get a ClassnotFoundException when I try to
> > connect to the database ( jdbc: postgres)
> >
> > It works perfectly in hosted mode.
> >
> > Where do I have to copy / link the file in order that the gwt shell
> > finds the class ?
> >
> > Thanks in advance
> >   R.Klapfer
> >
>

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



Re: validation framework

2009-01-09 Thread Martin

we have some validation on the client side within our toools
project ... it is a so called business object panel where you can put
in attributes and rules ... check out http://toools.org

On Jan 6, 2:52 pm, manish  wrote:
> Is there any framework which can validate the user inputs at the
> client side as well as server side?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Tutorial for web application using GWT,Spring,hibernate

2009-01-09 Thread Martin

maybe you want to go with toplink, which IMHO much better, more agile
and a lot faster than hibernate ...

check out http://toools.org ... check the wiki for some doc ...

cheers

On Jan 7, 6:14 am, "pallavi gole"  wrote:
> Hi,
>
> I am new to GWT.
>
> I want develop web application using GWT,Spring,Hibernate.
>
> I want  tutorial which describe step by step how to develop web application
>   using  GWT,Spring,Hibernate.
>
> from where I will get this Tutorial .
>
> Thanks ,
> Asmita
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem building GWT with JPA annotations using Ant

2009-01-09 Thread Martin

check out http://toools.org ... we are using JPA there with
netbeans ... which is basically ant ...

cheers

On Jan 7, 6:26 pm, tophtfc  wrote:
> Hi,
>
> My application builds and works fine in hosted mode, but I am having
> trouble getting my application to compile using Ant. Im using GWT with
> hibernate4gwt and JPA annotations, so my gwt xml inherits the
> following:
>
> 
> 
> 
> 
> 
>
> In my domain classes I have many JPA annotations e.g:
>
> import javax.persistence.Entity;
> import javax.persistence.Id;
> import javax.persistence.Table;
>
> import net.sf.hibernate4gwt.pojo.java5.LazyPojo;
>
> //I am using GXT also, these are to do with that
> import com.extjs.gxt.ui.client.data.BeanModelMarker;
> import com.extjs.gxt.ui.client.data.BeanModelMarker.BEAN;
>
> @Entity
> @Table(name="Contact")
> public class Contact extends LazyPojo {
> ...
>
> }
>
> In my build.xml i have included the following in my class path:
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> When i try to build, the gwt compiler complains that it cannot find
> the JPA annotations classes:
>
> [echo]
> [echo] GWT Compiling : com.
> [echo]
> [java] Processing types in compilation unit: file:/C://
> domain/Contact.java
> [java] Found type 'Contact'
> [java] Resolving annotation '@Entity'
> [java] [ERROR]
> [java] java.lang.ClassNotFoundException: javax.persistence.Entity
>
> So I am thinking its a class path error, but I am not sure what I need
> to add in to make it build properly.
>
> Can anyone help? Thanks
> Chris
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JDBC postrges under gwt

2009-01-09 Thread Martin

check out http://toools.org ... we have a howto there in the wiki to
connect to postgres ...

cheers

On Jan 8, 9:04 pm, Aka ray  wrote:
> Hello everybody.
> Im new in using gwt.
>
> Almost everything is working but when I compile my project to run it
> on an external Browser, I get a ClassnotFoundException when I try to
> connect to the database ( jdbc: postgres)
>
> It works perfectly in hosted mode.
>
> Where do I have to copy / link the file in order that the gwt shell
> finds the class ?
>
> Thanks in advance
>   R.Klapfer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Get file from server with GWT-RPC

2009-01-09 Thread Daniele

Another problem.
When user click on album component, application make a GWT-RPC call to
a servlet wich return a list of image content on abum directory.
List is a String array.
But, when I upload a new image, it's not shown.
Only when i click on reload button on GWT browser, new image are shown.

[CODE]

public void onClick(Widget sender) {
WebPhotoGalleryPhotoViewer viewer = new 
WebPhotoGalleryPhotoViewer();
viewer.loadPhotoFromAlbum(album);
}

[...]

public void loadPhotoFromAlbum(String albumName){
cat = albumName;
Window.alert("Load photo from album call");
final LoadPhotoFromAlbumAsync load =
(LoadPhotoFromAlbumAsync)GWT.create(LoadPhotoFromAlbum.class);
ServiceDefTarget endPoint = (ServiceDefTarget)load;
endPoint.setServiceEntryPoint(GWT.getModuleBaseURL()+"load");

AsyncCallback callback = new AsyncCallback()
{
public void onSuccess(Object result)
{
photo = (String[])result;

if(photo.length == 0)
im.setUrl("wpgimg/noPhoto.png");
else
im.setUrl("wpgimg/album/"+ cat + "/" + 
photo[totalImageToDisplay]);

im.setPixelSize(600,400);

photoCount.setText("Photo " + 
totalImageToDisplay + " of " + photo.length);
}
public void onFailure(Throwable caught)
{
Window.alert("Error in async request: " + 
caught.fillInStackTrace());
}
};

load.getImageName(cat, callback);

mainWindow.setText(cat);
mainWindow.show();
}
[/CODE]

Servlet's code is

public class LoadPhotoFromAlbumImpl extends RemoteServiceServlet
implements LoadPhotoFromAlbum{

/**
 *
 */
private static final long serialVersionUID = 403L;

public String[] getImageName(String category) {


File photo = new 
File("src/com/webphotogallery/public/wpgimg/album/"
+ category);

String[] photoList = photo.list();

return photoList;
}

}

I think problem is not in Upload servlet but i post is code if necessary.

Daniele.



2009/1/8, Daniele :
> I think to use GWT's version of tomcat because application it's not
> implemented for business world, but only for my thesis.
> However link it's good to bookmarks! :)
>
> 2009/1/7 Nick :
>>
>> Gregor wrote "if you want to create a directory somewhere else on the
>> host machine
>> disk (i.e. not part of the Tomcat set up) to store the images you need
>> to do more work. "
>>
>> You can add your external directory to tomcat's path.  So basically D:
>> \images could be pathed to localhost:8080/YourApp/images
>> Then you can access them very easily using GWT by creating an Image
>> object and calling setURL("images/mycat.jpg");
>> Look at this to set up your path:
>> http://whatwouldnickdo.com/wordpress/157/tomcat-images-directory/
>>
>>
>> On Jan 6, 12:06 pm, gregor  wrote:
>>> I think the public part is assumed. If yourimagesare located in
>>> public/category then they should be accessible via the URL:
>>>
>>> String imageURL = GWT.getModuleBaseURL() + "category/" + fileName;
>>>
>>> if you want to create adirectorysomewhere else on the host machine
>>> disk (i.e. not part of theTomcatset up) to store theimagesyou need
>>> to do more work. You could use an ordinary HttpServlet (not a GWT RPC
>>> servet) to do it, something like:
>>>
>>>// assume you have passed "category" and "imageFileName" as
>>> parameters to the servlet.
>>>// in HttpServlet.doGet(..)
>>>FileInputStream in = new FileInputStream(new File(UPLOAD_DIRECTORY/
>>> + category/ + ImageFileName))
>>>response.setContentType("image/jpeg"); // or gif,png etc
>>>OutputStream out = response.getOutputStream();
>>> try {
>>> byte[] buffer = new byte[1024];
>>> int len;
>>> while ((len = in.read(buf)) > 0) {
>>> out.write(buffer, 0, len);
>>> }
>>> in.close();
>>> out.close();
>>>  } catch (IOException e) {
>>> // do something
>>>  }
>>>
>>> The effect of that it to make the browser believe it's just getting an
>>> image from a URL. You can't use GWT RPC because it won't deal with
>>> binary data (e.g. an image file). Look up "HttpServlet image download"
>>> on Google for examples.
>>>
>>> On Jan 6, 4:00 pm, Daniele  wrote:
>>>
>>> > I put categor

Re: JDBC postrges under gwt

2009-01-09 Thread venkatesan E
Hi Klapfer,
  Make sure that your jbdc postgres driver jar file is added to
the referred libraries when you use eclipse as an IDE during the development
phase and once you build your project war file for deploying in the browser,
check that jar file is included in the lib directory within war file

For example,
if you use jakarta tomcat as an web server,
chek for the directory $CATALINA_HOME/Webapps//WEB-INF/lib
directory contains your jdbc driver jar file.

or

if there is a problem exists in the external browser (any browser related
problems), then just make that external browser as your default browser so
that GWT will execute your project code in that browser during the hosted
mode.

or

Are you using the JDBC driver code in the client side?
because its not allowed  and i suggest you not to use it because your client
is not aware of these external database related class files.
if its the case, i prefer you to use hibernate & springs for database
connectivity.

Thanks,
-Venky.


On Fri, Jan 9, 2009 at 1:34 AM, Aka ray  wrote:

>
> Hello everybody.
> Im new in using gwt.
>
> Almost everything is working but when I compile my project to run it
> on an external Browser, I get a ClassnotFoundException when I try to
> connect to the database ( jdbc: postgres)
>
> It works perfectly in hosted mode.
>
> Where do I have to copy / link the file in order that the gwt shell
> finds the class ?
>
> Thanks in advance
>  R.Klapfer
>
> >
>

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



Re: JDBC postrges under gwt

2009-01-09 Thread eggsy84

Hi there,

Can you post your error for the class not found?

Eggsy

On Jan 8, 8:04 pm, Aka ray  wrote:
> Hello everybody.
> Im new in using gwt.
>
> Almost everything is working but when I compile my project to run it
> on an external Browser, I get a ClassnotFoundException when I try to
> connect to the database ( jdbc: postgres)
>
> It works perfectly in hosted mode.
>
> Where do I have to copy / link the file in order that the gwt shell
> finds the class ?
>
> Thanks in advance
>   R.Klapfer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Displaying a dynamic SSL site seal

2009-01-09 Thread bryanb

Hi Cameron,

Using a Frame is a good idea - thanks.

It turns out that both using my code and a Frame causes the same
error. It only occurs in hosted mode. If I compile the project from
the command line, and run outside of hosted mode, it works (except
that a Frame as you suggest works better than HTML). It must be
something weird with the injected Javascript from the site seal that
the hosted mode runtime cannot handle.

Thanks,

Bryan

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



Re: Multiple web pages how-to

2009-01-09 Thread Sahil Dave
On Fri, Jan 9, 2009 at 1:52 PM, A Friend Of Yours wrote:

>
> The same problem I was having a few days ago...
>
> Well gwt abstracts web applications not as a multiple interlinked
> pages but as widgets and panels like a desktop GUI framework. You can
> add widgets to panels, switch panels in frames etc...
>
> What I did in my case is somewhat like this
>
> 1. Create a class that implements EntryPoint(which you might already
> have). Layout everything as you like and put a SimplePanel in the area
> where you want the contents to change.
>
> Like this
> -
> |Logo   Application Title etc |
> -
> | Navigation Button1 |  |
> | Navigation Button2 |  SimplePanel  |
> | Navigation Button3 |  |
> | 
> |  |
> -


>> that means i require just a single EntryPoint class..! I am trying to
create my web app's main menu using a MenuBar, and a major area below it
will display the contents of each MenuItem.
Can i use multiple RootPanel's in my web app..? i read somewhere that this
is discouraged.


>
>
> 2. Create on class for each content that you want to put in
> SimplePanel. It should extend Composite. Also, it must initialize and
> layout everything in one Grid or Panel or Table in the constructor.
> The last line in constructor should be like this
>
> initWidget(thePanelThatContainsEveryThing);


>> ok, i got wat you are saying over here. Why should these classes extend
Composite? Can you use separate methods in the class to return the data.
What is this last line doing?


>
>
> 3. On add a clickListener to each navigation button and in that
> function:
>
> contentSimplePanel.setWidget(new contentClass1());
>

>> how do i add clickListener to MenuItems, i think i can only specify
commands to perform.



-- 
Sahil

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



Re: Unable to run GWT + Flash on 64bit Linux

2009-01-09 Thread olivier FRESSE
The hosted comes with its ownMozilla distrib.
In your GWT folder, you have a mozilla-1.7.12/ folder.
and a "plugins" subfolder

I just did a :~/dev/gwt-linux-1.5.3/mozilla-1.7.12$ cp
/usr/lib/firefox/plugins/libflashplayer.so plugins/
and flash works.
However, I'm in a 32 bits version of Ubuntu.

regards.

PS :  in GWT home, the mozilla-hosted-browser.conf files makes me think that
it can reuse an existing mozilla installation.
Didn't try so far...


2009/1/8 googelybear 

>
> update: I copied the 32bit version of the libflashplayer.so to
> ~/.mozilla/plugins but it still no luck :-(
>
> Would it work if I was able to somehow install a 32bit version of
> firefox? Does the hosted mode browser use firefox?
> >
>

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



Help Urgent

2009-01-09 Thread Calix

Hi Guys,

I am working on a gwt project, I want to add servlets to the same
project, how to do that. I mean gwt source files are in src/client and
the when we compile the class files are in bin folder, but for
servlets the the class files has to go in the WEB-INF/classes/
servlets. I dont know how to do that and also I am working with derby
database, there are some issues with the library files.

Can u anyone explain me the procedure how to go from here?

Thanks
Bunny

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



Re: GWT Remember username and password

2009-01-09 Thread Lothar Kimmeringer

Ahmet Meric schrieb:
> you should use cookies.

How do Cookies and the autocomplete-functionality of a browser
work together? The OP was not talking about the "remember
my login"-feature some sites offer but the autocomplete-feature
of many browsers that prefill the fields with entries that have
been done in the past (e.g. search-terms being entered into
the search-field of Google).


Regards, Lothar

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



Re: getting java.sql.Connection error

2009-01-09 Thread Lothar Kimmeringer

Pham Tran Quoc Viet schrieb:

> By the way, I could not find RemoteServiceException in GWT doc. So, I
> assume it's your custom exception, right?

That's correct. But it's nothing very secret happening there so I
can post it here without being sent to the south-east-end of Cuba ;-)

--snip
/**
 * Exception that will be thrown if there was an error while performing
 * remote functions on the server
 * @author "Lothar Kimmeringer" 
 *
 */
public class RemoteServiceException extends SerializableException {
private String stackTrace;
private String message;

private static final long serialVersionUID = 2L;

/**
 * Creates a new instance of RemoteServiceException
 */
public RemoteServiceException() {
super();
}

/**
 * Creates a new instance of RemoteServiceException
 * @param message The message indicating the reason for the exception
 * @param cause The cause leading to the exception
 */
public RemoteServiceException(String message, String cause) {
super(message);
this.message = message;
stackTrace = cause;
}

/**
 * Creates a new instance of RemoteServiceException
 * @param message The message indicating the reason for the exception
 */
public RemoteServiceException(String message) {
super(message);
this.message = message;
}

/**
 * Returns the stacktrace of the cause
 * @return The cause
 */
public String getCauseStackTrace() {
return stackTrace;
}

/**
 * Returns the message of the exception
 */
public String getMessage(){
return message;
}
}
--snip

You can get the stacktrace as string doing the following:

StringWriter sw = new StringWriter();
throwable.printStackTrace(new PrintWriter(sw));
String stacktrace = sw.toString();

You have to do it outside the above exception, because the exception above
must be in a client-package, i.e. you are restricted to the GWT Java
ruling out PrintWriter at least.


Regards, Lothar

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 Remember username and password

2009-01-09 Thread Ahmet Meric

you should use cookies.

On 8 Ocak, 19:48, "todd.sei...@gmail.com" 
wrote:
> I had tried something similar only I was trying to move my textboxes
> into a popup after the GWT app loaded. Not recalling the exact error
> message, I can tell you that it was a problem with GWT not having
> created the elements itself.
>
> Add a form to your HTML and wrap it. The addFormHandler will work.
>
> fp = FormPanel.wrap(DOM.getElementById("loginHolder"), true);
> fp.addFormHandler(new FormHandler() { ..
>
> On Jan 8, 6:28 am, Ice13ill  wrote:
>
> > I'm trying to remember the username and password in a gwt login
> > applicaion.
> > I found this:
> > 1. adding a textbox and passwordbox in the html file
>
> > 
> > 
>
> > (i read that if i add those in the html file, the browser will
> > automatically remember the values).
>
> > 2. DOM.getElementById for each of them
>
> >                 m_tbUsername = TextBox.wrap(DOM.getElementById("1"));
> >                 m_tbUsername.addKeyboardListener(this);
>
> >                 m_tbPassword = 
> > PasswordTextBox.wrap(DOM.getElementById("2"));
> >                 m_tbPassword.addKeyboardListener(this);
> > I also added a Login button with a ClickListener
>
> > Problem:
> > neither of those above (textbox, passwordbox, button) will respond to
> > key or click actions
>
> > So...
> > public void onClick(Widget sender) {
> >                 Window.alert("b");}
>
> > does nothing
>
> > What's the problem ?
> > Can somebody tell me another method in gwt for remembering username
> > and password ? (a link or tip )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Multiple web pages how-to

2009-01-09 Thread A Friend Of Yours

The same problem I was having a few days ago...

Well gwt abstracts web applications not as a multiple interlinked
pages but as widgets and panels like a desktop GUI framework. You can
add widgets to panels, switch panels in frames etc...

What I did in my case is somewhat like this

1. Create a class that implements EntryPoint(which you might already
have). Layout everything as you like and put a SimplePanel in the area
where you want the contents to change.

Like this
-
|Logo   Application Title etc |
-
| Navigation Button1 |  |
| Navigation Button2 |  SimplePanel  |
| Navigation Button3 |  |
| 
|  |
-

2. Create on class for each content that you want to put in
SimplePanel. It should extend Composite. Also, it must initialize and
layout everything in one Grid or Panel or Table in the constructor.
The last line in constructor should be like this

initWidget(thePanelThatContainsEveryThing);

3. On add a clickListener to each navigation button and in that
function:

contentSimplePanel.setWidget(new contentClass1());

This worked for me...

Hope it helps

Omer Akhter

On Jan 9, 10:18 am, "Sahil Dave"  wrote:
> Hi all,
>
> i am new to GWT. I have gone thru the gwt's online tutorial and have
> understood how everything works. But 1 thing that i am not able to
> understand is, if i have multiple interlinked pages in my web application
> then, do i need to create multiple classes and do all those classes need to
> implement the EntryPoint interface.
> I am using Eclipse & the basic project contains just a single class & its
> associated .gwt.xml file
>
> can someone explain this.??
>
> --
> Sahil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to get the String value from project html file to entry point class

2009-01-09 Thread olivier FRESSE
You're almost done :-)

You can't use
 @com.mantra.draw2d.Home.client:: checkLogin()()
in you handwritten javascript.

this notation can only be used from JSNI methods.

but as you did in your class, you can exposes these methods :

  private static native void checkLogin(Home x)/*-{


 $wnd.checkLogin = function(){

 x...@com.mantra.draw2d.home.
>
> client.Home::UserLogin()();
>  };


In you HTML, do :

function cheLogin(){
alert("GWT Call");
   checkLogin()
>
>
>alert("GWT Call");
> }


This should work.

O.




2009/1/9 rajesh_ch 

>
> Thanks for reply.
>
> My Entry point class :
>
> package com.mantra.draw2d.Home.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Cookies;
> import com.google.gwt.user.client.Element;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.ClickListener;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
> public class Home implements EntryPoint {
>
>public void onModuleLoad() {
>
>   checkLogin(this);
>
>}
>
>public void UserLogin(){
>Window.alert("User Login");
>}
>
>
>private static native void checkLogin(Home x)/*-{
>
>
>  $wnd.checkLogin = function(){
>
>  x...@com.mantra.draw2d.home.client.home::UserLogin()();
>  };
>}-*/;
> }
>
>
>
> And My Html file is:
>
> 
> 
> 
> Insert title here
> 
>
> function cheLogin(){
> alert("GWT Call");
>@com.mantra.draw2d.Home.client:: checkLogin()()
>alert("GWT Call");
> }
>
>
>
> 
> 
>
> 
>
> 
> 
>
>
>
>
> My goal is call gwt menthod from javascript application.
>
> I written this classes,but i am unable to call UserLogin method from
> java script application.
>
> Is there any problem in my code?
>
>
>
> Please help me to fix this issue.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Jan 9, 9:47 am, "olivier FRESSE"  wrote:
> > Yes you can :
> >
>
>
>
> > http://code.google.com/intl/fr/docreader/#p=google-web-toolkit-doc-1-...
> >
> > 2009/1/9 rajesh_ch 
> >
> >
> >
> > > Hai,Thanks for quick reply.
> >
> > > i am trying to call one of the GWT method from outside application.
> >
> > > Like , i have to check whether user logged in or not.
> >
> > > i written a method to check whether user logged in or not,but i need
> > > to call this method from outside my gwt application.
> >
> > > is it possible to call gwt method outside application? i want to call
> > > my gwt method from javascript.
> >
> > > Thank u
> >
> > > On Jan 8, 6:49 pm, "olivier FRESSE"  wrote:
> > > > This is not very clear.
> > > > Are you trying to manage user authentication in a GWT application ?
> > > > If yes, what kind of authentication do you want to manage. Simple web
> > > based
> > > > one, using ACEGI,?
> >
> > > > 2009/1/8 rajesh_ch 
> >
> > > > > Hai All,
> >
> > > > > I have one requirement like, i need to get the string data from
> > > > > project html file to entry point class.
> >
> > > > > like say i project html file is Home.html .From this html file i
> need
> > > > > to pass string value to entry point
> > > > > class.
> >
> > > > > In entry point , i need to get that value and check whether user
> > > > > logged in or not.
> >
> > > > > If user logged in i need to call different java class with this
> > > > > parameter.
> >
> > > > > if user not logged in , i have to show login form then i need to
> call
> > > > > different java class with this parameter.
> >
> > > > > Please help me to work on this.
> >
> > > > > Thank u
> >
> > > > > Best Regards
> > > > > Rajesh
> >
>

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