Setting the max width for a panel

2009-06-16 Thread Rob Tanner

Hi,

I'm doing popup tooltips and I would like to be able to set a maximum
width on 300 pixels and jut let the text wrap, but if the tooltip is
shorter than 300 pixels, I want the popup to only be as large as the
text.  I add the text to a HorizintalPanel() and is there anyway I can
figure out how many pixels wide the text is before I set the panel
width/

Thanks,
Rob

--~--~-~--~~~---~--~~
You received 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 started with gwt 1.6 and Intellij 8

2009-06-16 Thread itgold

Hello Rakesh,
To run GWT  1.6 from IntelliJ 8 you need to modify your application
startup configuration.
Go to the Run\Edit Configuration\
Create a new GWT Configuration. On a Before launch panel uncheck Make
option and select Run Ant Target. Select "hosted" target.
And yes, you have to have ant build.xml file associated with your
project.
Enjoy :)

Best regards, Serge.

On May 16, 6:53 am, Rakesh  wrote:
> hi all,
>
> I'm trying to learn GWT (well Ext GWT top be precise) and have lots of
> issues using Intellij.
>
> Firstly, I purchased a book but the examples are based on Eclipse. I'm
> trying to translate for Intellij but running into issues the main one
> being that Intellij doesn't seem to want to create all the directories
> for you. There is a demo on the Jet brains site but its out of date as
> the GWT Studio plug in has been deprecated. The new 'facet' system
> doesn't create a sample app. I did find a menu item when I created a
> new gwt project that said 'Sample App' but it said i needed version
> 1.5 of GWT or later but I am using 1.6
>
> To top it all, I saw posts by the Jetbrains people to say 'proper'
> support will be available in Intellij 9!!!
>
> Bottom line, is it easier to just use Eclipse? Or is there some
> staright forward resource out there which will show me how to create a
> gwt app in Intellij 8?
>
> Frustrated!!!
>
> R

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



Re: Is it not possible to include a Serialized bean object as a variable in another Serialized Bean..??

2009-06-16 Thread Raul

Hi Issac

I am using Hibernate to deal with the persistent layer, that is why I
need to serialize both the beans.

I had tried changing the default constructor of both the classes to
Public but issue does not solved yet.

Raul



On Jun 16, 7:36 pm, Isaac Truett  wrote:
> Raul,
>
> The problem is that you aren't actually serializing
> com.data.employee.Department. Something is replacing your class with
> com.data.employee.Department_$$_javassist_0. You wouldn't happen to be
> using Hibernate, would you?
>
> - Isaac
>
> On Tue, Jun 16, 2009 at 7:10 AM, Raul wrote:
>
> > Hello all,
>
> > I have two beans as follows:
> > -
> > public class employee implements IsSerializable{
>
> >        int id;
> >        String name;
> >        Department department;
>
> >        public employee(){}
> >        public employee (int id, String name, Department dept){
> >                setId(id);
> >                setName(name);
> >                setDepartment(dept);
> >        }
>
> >        public void setId(int id){this.id=id;}
> >        public int getId(){return this.id;}
>
> >        public void setName(String name){this.name=name;}
> >        public String getName(){return this.name;}
>
> >        public void setDepartment(Department dept){this.department=dept;}
> >        public Department getDepartment(){return this.department;}
>
> > }
> > --
> > public class Department implements IsSerializable{
> >        int dept_id;
> >        String name;
>
> >        Department(){}
> >        public Department(int id, String name, String status){
> >                setDept_id(id);
> >                setName(name);
> >        }
>
> >        public void setDept_id(int dept_id){this.dept_id=dept_id;}
> >        public int getDept_id(){return this.dept_id;}
>
> >        public void setName(String name){this.name=name;}
> >        public String getName(){return this.name;}
>
> > }
>
> > And when I try to use a Grid to hold Employee records I am having
> > Error message like:
>
> > SEVERE: 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)
> > .
> > .
> > .
> > ..
> > Caused by: java.lang.reflect.InvocationTargetException
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >        at java.lang.reflect.Method.invoke(Unknown Source)
> >        at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
> > (ServerSerializationStreamWriter.java:678)
> >        ... 24 more
>
> > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> > 'com.data.employee.Department_$$_javassist_0' was not included in the
> > set of types which can be serialized by this SerializationPolicy or
> > its Class object could not be loaded. For security purposes, this type
> > will not be serialized.
> >        at
> > com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
> > (StandardSerializationPolicy.java:83)
> >        at
> > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
> > (ServerSerializationStreamWriter.java:591)
> >        at
> > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
> > (AbstractSerializationStreamWriter.java:129)
> >        at
> > com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize
> > (Collection_CustomFieldSerializerBase.java:43)
> >        at
> > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize
> > (ArrayList_CustomFieldSerializer.java:36)
> >        ... 29 more
>
> > What I am guessing as the reason for this error is - it may due to
> > using a Serialised object variable(Department) inside another
> > Serialized object bean (Employee).
>
> > I am not sure 
> > need help.
>
> > Kindly put some suggestions, how can I overcome this issue...!!
>
> > Also doesn't GWT allow a Serialized bean object variable in another
> > serialized Bean class..??
>
> > your kind suggestions will be highly appreciable..
>
> > Raul
--~--~-~--~~~---~--~~
You received this message because you are subsc

integrate GWT gui with spring framework

2009-06-16 Thread bhumij

I have developed java-spring application. its gui is developed using
javascript and 3rd party lib like YUI. Now I need to use GWT for GUI.
I want to use GWT for only GUI developing purpose. I have no idea how
i can integrate it into existing spring framework. View classes of
spring frame works are responsible to generate GUI with using YUI.
since GWT generates .js files itself. i am clueless in this
integration with spring framework.

--~--~-~--~~~---~--~~
You received 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 do they do that left panel thing??

2009-06-16 Thread kingdomain

On the GWT website, I can't figure out how they do the left panel that
opens and closes with the table of contents.  It doesn't behave like a
normal disclosure panel, unless there some special CSS going on there.

Can someone point me to the way?

Thanks,
John

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



Re: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-16 Thread hezjing
Hi Isaac
Hmmm ... you're right, the scrollTableLoading.gif is found
in gwt-incubator-march-02-2009.jar.
Then, do you have any idea why is it showing 404 warning while trying to
load scrollTableLoading.gif?


On Wed, Jun 17, 2009 at 4:30 AM, Isaac Truett  wrote:

>
> Are you sure you're looking in the right place? There are copies of
> scrollTableLoading.gif located in com/google/gwt/gen2/table/public and
> com/google/widgetideas/table/public
>
>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif
>
>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif
>
>
> On Tue, Jun 16, 2009 at 12:56 PM, hezjing wrote:
> > Hi
> > Apparently, the scrollTableLoading.gif is the image display next to the
> last
> > button while loading the data.
> > You will see this image if table is taking long time to load the data.
> > scrollTableLoading.gif does not comes with the GWT incubator
> distribution,
> > you need to manually create one.
> >
> >
> > On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:
> >>
> >> Hi
> >> While I'm testing the PagingScrollTable, the hosted mode console
> complaint
> >> the following warning:
> >> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
> >>
> >> May I know why is this warning?
> >> Should we create this scrollTableLoading.gif?
> >>
> >> --
> >>
> >> Hez
> >
> >
> >
> > --
> >
> > Hez
> >
> > >
> >
>
> >
>


-- 

Hez

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



Re: Community announcements on GWT blog

2009-06-16 Thread Carl Pritchett

Could they be influenced by the fact that SmartGWT is LGPL while
ExtGWT is GPL?
--~--~-~--~~~---~--~~
You received 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 capture shutdown event of system in javascript

2009-06-16 Thread Ian Bambury
As Arthur says, losing power won't give you a closing event. You also have
to decide what to do if the internet connection is lost for whatever reason
(how long is 'lost' as opposed to 'misplaced'? You may just have gone into a
train tunnel which doesn't have an internet connection (not all of them do
where I am)).
If it's important, then pinging the server at regular intervals might be
your best bet.

Ian

http://examples.roughian.com


2009/6/17 Arthur Kalmenson 

>
> This might be what you're looking for:
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Window.ClosingEvent.html
>
> I doubt this will fire if the machine powers off due to a power failure.
>
> --
> Arthur Kalmenson
>
>
>
> On Tue, Jun 16, 2009 at 8:07 AM, Taufeeq wrote:
> >
> > How to capture shutdown event of system in javascript? Our requirement
> > is like, if system shoutdown normally or due to power failure we need
> > to send session closing request to server.
> > Reply With Quote
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Generating UI with GWT or PHP

2009-06-16 Thread Ian Bambury
BTW, just for completeness

> If so, would the call the add(new Label(items from dom)) be redundant?


As you have probably worked out, the data for the dictionary is taken from a
JavaScript variable and not DOM elements (spans, divs etc) so no it's not
redundant. If all you want is "Hello OldUser" then you might as well just
output it from the PHP script as HTML, but if you need preferences like
setting the app to the last known condition, or being able to display an
admin menu (or not) then it lets you set up the GWT app rather than just
change the HTML.

It's not ideal, ideally the data would be completely invisible and just
appear in GWT, but I haven't worked out how to do that :-)

Ian

http://examples.roughian.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 capture shutdown event of system in javascript

2009-06-16 Thread Arthur Kalmenson

This might be what you're looking for:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Window.ClosingEvent.html

I doubt this will fire if the machine powers off due to a power failure.

--
Arthur Kalmenson



On Tue, Jun 16, 2009 at 8:07 AM, Taufeeq wrote:
>
> How to capture shutdown event of system in javascript? Our requirement
> is like, if system shoutdown normally or due to power failure we need
> to send session closing request to server.
> Reply With Quote
>
> >
>

--~--~-~--~~~---~--~~
You received 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 Started Guide" NullPointerException

2009-06-16 Thread JeremyJBarth

I installed Eclipse 3.4, went through the same steps, and got the
exact same stack trace.

On Jun 16, 6:56 pm, JeremyJBarth  wrote:
> I walked through the steps to the getting started guide on eclipse 3.3
> (Europa) in a new workspace.  I got the below when Debug -> Web
> Application.  Deploying to the app engine worked, and it runs fine
> from there.
>
> un 16, 2009 11:54:01 PM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: failed
> com.google.apphosting.utils.jetty.devappenginewebappcont...@615ef{/,F:
> \playbuoy_workspace0\ThePlaybuoy\war}
> javax.xml.parsers.FactoryConfigurationError: Provider
> com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl could not
> be instantiated: java.lang.NullPointerException
>         at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
>         at org.mortbay.xml.XmlParser.(XmlParser.java:69)
>         at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
> (WebXmlConfiguration.java:83)
>         at org.mortbay.jetty.webapp.WebXmlConfiguration.
> (WebXmlConfiguration.java:78)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
> (WebAppContext.java:838)
>         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> 417)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart
> (HandlerWrapper.java:117)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart
> (HandlerWrapper.java:117)
>         at org.mortbay.jetty.Server.doStart(Server.java:217)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at
> com.google.appengine.tools.development.JettyContainerService.startContainer
> (JettyContainerService.java:147)
>         at
> com.google.appengine.tools.development.AbstractContainerService.startup
> (AbstractContainerService.java:116)
>         at com.google.appengine.tools.development.DevAppServerImpl.start
> (DevAppServerImpl.java:211)
>         at com.google.appengine.tools.development.gwt.AppEngineLauncher.start
> (AppEngineLauncher.java:86)
>         at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
>         at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
>         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
>         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
> Jun 16, 2009 11:54:01 PM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
> Provider com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
> could not be instantiated: java.lang.NullPointerException:
> java.lang.NullPointerException
>         at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
>         at javax.xml.parsers.FactoryFinder.find(Unknown Source)
>         at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
>         at org.mortbay.xml.XmlParser.(XmlParser.java:69)
>         at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
> (WebXmlConfiguration.java:83)
>         at org.mortbay.jetty.webapp.WebXmlConfiguration.
> (WebXmlConfiguration.java:78)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>         at java.lang.reflect.Constructor.newInstance(Unknown Source)
>         at java.lang.Class.newInstance0(Unknown Source)
>         at java.lang.Class.newInstance(Unknown Source)
>         at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
> (WebAppContext.java:838)
>         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
> 417)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart
> (HandlerWrapper.java:117)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at org.mortbay.jetty.handler.HandlerWrapper.doStart
> (HandlerWrapper.java:117)
>         at org.mortbay.jetty.Server.doStart(Server.java:217)
>         at org.mortbay.component.AbstractLifeCycle.start
> (AbstractLifeCycle.java:40)
>         at
> com.google.appengine.tools.development.JettyContainerService.startContainer
> 

"Getting Started Guide" NullPointerException

2009-06-16 Thread JeremyJBarth

I walked through the steps to the getting started guide on eclipse 3.3
(Europa) in a new workspace.  I got the below when Debug -> Web
Application.  Deploying to the app engine worked, and it runs fine
from there.

un 16, 2009 11:54:01 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: failed
com.google.apphosting.utils.jetty.devappenginewebappcont...@615ef{/,F:
\playbuoy_workspace0\ThePlaybuoy\war}
javax.xml.parsers.FactoryConfigurationError: Provider
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl could not
be instantiated: java.lang.NullPointerException
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.(XmlParser.java:69)
at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
(WebXmlConfiguration.java:83)
at org.mortbay.jetty.webapp.WebXmlConfiguration.
(WebXmlConfiguration.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
(WebAppContext.java:838)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
417)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.appengine.tools.development.JettyContainerService.startContainer
(JettyContainerService.java:147)
at
com.google.appengine.tools.development.AbstractContainerService.startup
(AbstractContainerService.java:116)
at com.google.appengine.tools.development.DevAppServerImpl.start
(DevAppServerImpl.java:211)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start
(AppEngineLauncher.java:86)
at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
Jun 16, 2009 11:54:01 PM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
Provider com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
could not be instantiated: java.lang.NullPointerException:
java.lang.NullPointerException
at javax.xml.parsers.FactoryFinder.newInstance(Unknown Source)
at javax.xml.parsers.FactoryFinder.find(Unknown Source)
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.mortbay.xml.XmlParser.(XmlParser.java:69)
at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
(WebXmlConfiguration.java:83)
at org.mortbay.jetty.webapp.WebXmlConfiguration.
(WebXmlConfiguration.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
(WebAppContext.java:838)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
417)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.appengine.tools.development.JettyContainerService.startContainer
(JettyContainerService.java:147)
at
com.google.appengine.tools.development.AbstractContainerService.startup
(AbstractContainerService.java:116)
at com.google.appengine.tools.development.DevAppServerImpl.start
(DevAppServerImpl.java:211)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.st

Re: Generating UI with GWT or PHP

2009-06-16 Thread Ian Bambury
You have to output the data for the Dictionary from the PHP script via a
JavaScript script. In a simple PHP script which creates your index file, put
in something like:
echo "var user = {\"fname\":
\"Firstname\", \"lname\": \"Lastname\"};'";

and then in the onModuleLoad, show the data with:
Window.alert(Dictionary.getDictionary("user").get("fname" +
" " + Dictionary.getDictionary("user").get("lname"));

I haven't tested that, but you get the idea.

The disadvantage is that the data is visible in the index page (or findable
in a cached js file if you are using a js file like I do for a dynamic menu
structure and have a line like:

echo "";

Just don't pass any sensitive data this way, just pass 'welcome' data and
preferences and any setup parameters. The user should know it though, and
anyone using that computer will be logged in automatically anyway, but you
don't really want to leave it lying around in browser cache files or worry
any user who knows how to view | source in the browser.

If you can't get the above code to work, let me know and I'll send you
something I've actually tried :-)

Ian

http://examples.roughian.com

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

2009-06-16 Thread Arthur Kalmenson

You can find all the information you're looking for on the Google Code
project: http://code.google.com/p/google-web-toolkit/

Check out the wiki tab for design documents.

--
Arthur Kalmenson



On Mon, Jun 15, 2009 at 2:23 AM, Neeraj Lal wrote:
> Hi,
>
> Could somebody please give me links/pointers to GWT's Java-JavaScript
> compiler?
>
> I'm interested in understanding the Architecture, Front End and BackEnd of
> the GWT's Java-to-JavaScript compiler?
> How is the language translation done? What does the translation engine work?
>
> Thanks
> Neeraj
>
> >
>

--~--~-~--~~~---~--~~
You received 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: gmail fall back to plain html run on server side

2009-06-16 Thread Arthur Kalmenson

That's a difficult question and ties in with Search Engine
Optimization. One of the best suggestions I've heard is to use your
main panel's toString() to get the HTML and create a static page from
that. I was thinking abou this issue and I'm not sure if it's possible
or not, but I could see creating a linker or generator to create this
on each compile.

--
Arthur Kalmenson



On Mon, Jun 15, 2009 at 12:53 AM, asianCoolz wrote:
>
> when using browser that do not support javascript, gmail will able to
> run in plain html on server side. how to do similar with existing gwt
> app ?
> >
>

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



Re: Unable to find 'MyService.gwt.xml' on your classpath

2009-06-16 Thread Arthur Kalmenson

It means that the GWT module file can't be found in the class path,
make sure it's included. Are you using Eclipse, Ant or Maven?

--
Arthur Kalmenson



On Sat, Jun 13, 2009 at 4:41 PM, a wrote:
>
> Hi,
>
> When I run my gwt application, I always get the following error
> message.
> "[ERROR] Unable to find 'MyService.gwt.xml' on your classpath; could
> be a
> typo, or maybe you forgot to include a classpath entry for source?"
>
> Can someone tell me the reason please?
>
> Thanks
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



Stack Panel Background +Image

2009-06-16 Thread Sean

I am working on making a StackPanel green, but not a flat green.
Pretty much teh exact same way it gradients up per item in the default
stack panel in blue, but in a green hue.

Since I want the gradient, I've made a .png of the exact look I want.
However, when I assign it to the background:

 background: url(images/stackBackground.png);

It looks ok for some of the StackPanel items but not the others. And
if I click on one, depending on the size of the item under that
specific Panel it could get all messed up. The default seems to grow
and shrink, no overlay, always looks perfect.

How can I achieve that look? I've tried every type of repeat I know.

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



Selecting Items in a Tree using Firefox

2009-06-16 Thread K B

Hello,

We are using gwt to display a Tree, when the the Tree is viewed in IE,
and we select an item from the tree, the item is highlighted in blue;
however, when the Tree is viewed in FireFox 3.0.10 and an item is
selected from the tree, the item doesn't get highlighted.  I was
wondering if this is a problem that anyone has heard of before and if
so how can it be fixed for Firefox or if there is now workaround.

Any help would be 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
-~--~~~~--~~--~--~---



Re: GWT Place Service

2009-06-16 Thread Thomas Broyer



On 16 juin, 21:42, Kevin Q  wrote:
>
> However, one part Ray didn't elaborate too much but I think is very
> important is the PlaceService (a higher level abstraction layer on top
> of the History mechanism). The ability to throw PlaceChanged events on
> the EventBus and let the interested parties to deal with the place
> change is a very flexible and elegant system. That being said,
> however, I'm a bit unsure about the implementation and Ray was also
> kind of shy on detail of it during the talk. I'm wondering if anyone
> has done something similar and can share a pointer or two.

I'm unsure Ray talked about "PlaceChanged events"; my understanding is
that the PlaceService:
 - listens to History ValueChangeEvent's and map them to "business-
level" events (from #contact/ to ShowContact()
for instance)
 - listens to business-level events and map them to History changes
(History.newItem(, false))

...and Ray actually talks about different "place objects", each
responsible for a part of the "history-token <-> event" process.

I've been thinking about this kind of event bus approach since day 1
of our project (a bit more than a year ago) but we didn't have time to
put it in place. This "place" service is probably something I would
have come to too; at least the addition of the History::newItem
(String,boolean) overload was something that rung in my head as making
such a thing (call newItem once the "screen" is showing, not as an
"event" in order to show it; which is what we're doing now) easier.
--~--~-~--~~~---~--~~
You received 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.rpc files without compilation?

2009-06-16 Thread otismo

I overrode

protected SerializationPolicy doGetSerializationPolicy(...)

in RemoteServiceServlet and implemented my own lenient
SerializationPolicy.  If there's a better way, please let me 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
-~--~~~~--~~--~--~---



Re: Read an XML File

2009-06-16 Thread Jeff Chimene

On 06/16/2009 01:10 PM, nehloucha wrote:
> sxb.build(new File(uri));
>
When given a URI, File() only works with the file:// URI See the Sun 
Java docs for more info

In addition, it's not likely that SAX will work successfully with GWT; 
which is to say that will not successfully translate to Javascript.

--~--~-~--~~~---~--~~
You received 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: getInteger problem when trying to run hosted mode.

2009-06-16 Thread Joel Paulsson

Thanks for the help, i think i follow. I'll have to look into why
Integer.parseInt didn't return the value i thought it would return
then.

On 16 Juni, 07:34, "Dean S. Jones"  wrote:
> Integer.getInteger("name") gets an integer from System properties.
>
> it is ( roughly ) equal to:
>
> Integer.parseInt(System.getProperty("name"));
>
> So, in the GAE, what is the definition if System.getProperty() ??? You
> have no method or means of setting them, you don't know the properties
> of the Runtime Environment
>
> Thus, it is useless to ask... and the method is not provided.
>
> On Jun 15, 5:00 pm, Joel Paulsson  wrote:
>
> > Hi!
>
> > I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
> > when i run the program to hosted mode i get this error in the
> > AppEngine Server:
>
> > [ERROR] Line 53: The method getInteger(String) is undefined for the
> > type Integer
>
> > If i comment that line it works great, but using getInteger is pretty
> > vital for me in this application so i need it to work. Can anyone help
> > me understand why i get this error when i don't have any compilation
> > errors and maybe find a soloution?
>
> > /Joel
>
>
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Request for best practices when working with complex objects

2009-06-16 Thread Aaron

Hi Everyone,

I'm new to GWT and I'm very excited to start using it in a large
enterprise application I'm working on. I have inherited an existing
domain model that is available to me in a jar. I can build that jar
with the source code included as well.

Ideally, I'd love to be able to work with my domain objects when
writing my GWT client code. I have discovered it is not as simple as I
had hoped.

I went ahead and created a GWT module for my classes and inherited
that module into my GWT project.

When building my GWT project, I received GWT compiler errors about not
having source code available for a dependent library we use
(com.vividsolutions.jts)... I can get the source if needed, so no big
deal.

Then I got errors related to javax.xml.bind annotations used in our
classes: 'The import javax.xml.bind cannot be resolved' and
'XmlAccessorType cannot be resolved to a type'. I'm having more
trouble figuring out what the solution to that problem is.

Any suggestions on the specific issues I just mentioned would be
greatly appreciated, but I'm also interested in getting your feedback
on, at a high level, what is the best approach when integrating more
complex classes into a GWT project? Is it possible and worth it to
track down the source code for every dependency your project has? Are
annotations in your classes a problem in GWT or is there a way to deal
with that? Is it better to write some 'simple' versions of my domain
classes for use with GWT and then write code to convert back and forth
between the two? Or, is a Json or XML service the simplest?

Thanks for any comments you have. GWT is an exciting project and I
know it will be well worth my time figure this out.

Aaron

--~--~-~--~~~---~--~~
You received 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: OAuth function works in JS, but not in JSNI

2009-06-16 Thread Thomas Broyer



On 16 juin, 18:13, Matt Raible  wrote:
> I'm trying to convert the makeSignedRequest function on the following
> page into a JSNI method.
>
> http://paul.donnelly.org/2008/10/31/2-legged-oauth-javascript-functio...
>
> If I put the raw JS in my HTML page and call it with
> $wnd.makeSignedRequest(), everything works fine. However, if I move it
> into a JSNI method (and use $wnd.OAuth), the parameters:
> [["oauth_version","1.0"],["oauth_consumer_key",ck]] gets written as:
>
> 0=oauth_version%3D1.0&1=oauth_consumer_key%3Dmy_key
>
> instead of:
>
> oauth_version=1.0&oauth_consumer_key=my_key
>
> Does anyone know how I might go about fixing this?

Probably there's a check for the parameters to be an array (or not),
which doesn't work cross-window (the GWT code runs in an IFrame, which
is another browsing-context/window). The array is detected as being an
object, using array indices as keys for key/value pairs, instead of
just using array items' value.

See http://blog.360.yahoo.com/blog-TBPekxc1dLNy5DOloPfzVvFIVOWMB0li?p=916
(which com.google.gwt.json unfortunately doesn't use, FWIW)
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

2009-06-16 Thread Marley

I am getting a: Exception while dispatching incoming RPC call
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0, as soon as i
try to call something on the server.  It is before any of my server
side code executes

what is odd, is this only happens on my Ubuntu box...i can run it on
my Windows box just fine.

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



Re: GWT 1.6 - Expand Tree?

2009-06-16 Thread jay

Use TreeItem.setState( true ) on the nodes you want open.

jay

On Jun 16, 7:43 am, omsrobert  wrote:
> How do I expand all the nodes in a 1.6 Tree?  I do not see an expand()
> method.  setSelected()?
--~--~-~--~~~---~--~~
You received 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.rpc files without compilation?

2009-06-16 Thread otismo

How can I get server code to handle rpc requests without having to
perform gwt compilation on the server code?  The standard gwt RPC
mechanism isn't happy when it doesn't have an rpc white list for a
serializable class.

Can I generate my own gwt.rpc white list?  Is there a way to override
the SerializationPolicy?

I have 2 separate client gwt modules that make rpc calls to server
code.  Each client module is simply a different version of a client
UI, one for a browser extension and one for a plain web page.  Each of
the 2 client modules inherits a parent module that contains common
code.  Both clients talk to the same server webapp.  The client
modules should be deployable independent of the running server code.

The server code handles rpc requests and needs to send gwt
serializable objects to the client.  My problem is that the server
code can't handle rpc requests without gwt compilation because the
gwt.rpc serialization lists don't get generated and the server spits
out an IncompatibleRemoteServiceException.

I also made sure all the gwt serializable classes implement
IsSerializable, but I ran into problems with passing standard Java
collections that aren't IsSerializable.

Also I tried creating a dummy entry point and doing gwt compilation on
the server code, but the gwt.rpc files do not get generated.  How does
the gwt compiler generate the gwt.rpc files?  My server code structure
contains all the necessary Serializable client classes.  Does gwt
compilation actually traverse my code and see which classes are used
in rpc calls?  Any pointers to documentation about gwt compilation
would be appreciated.  I found the basic stuff but nothing on the
gwt.rpc file generation.

Thanks,
Peter
--~--~-~--~~~---~--~~
You received 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-maps-1.0.4.jar and gwt-user-1.5.3

2009-06-16 Thread everlongh

I noticed a dependancy between the new gwt-maps and gwt-1.5.3.

I am having some issues with my maps application using the new
jars...original code works fine with gwt-maps-1.0.2 and gwt-1.5.3...

Here one exception I get with no code changes:



link.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
// remoteService.remoteMethod("Hi Server", callback);
final Widget sender = (Widget) event.getSource();
if (sender instanceof Hyperlink) {

final Hyperlink link = ((Hyperlink) sender);

System.out.println("Polling link ="
+ link.getTargetHistoryToken());

link.setText("Polling...");

final String key = link.getTargetHistoryToken();
// int index = html.indexOf("?");
// final String key = html.substring(index);

// link.setHTML("Polling site...");

Timer t = new Timer() {
public void run() {

// Window.alert("Site "+key+" ATG's could not 
be reached.");
// Window.alert("Site ATG's could not be 
reached.");
TankInventoryVO[] tivos = 
inventoryVOMap.get(key);

for (int x = 0; x < tivos.length; x++) {
TankInventoryVO tivo = tivos[x];

DateTimeFormat formatter;
formatter = DateTimeFormat

.getFormat(".MM.ddHH:mm:ss");

Date date = new 
Date(System.currentTimeMillis());

String dt = formatter.format(date);
tivo.setInventoryDateTime(dt);
// 
tivo.setInventoryDateTime("2009-03-04 12:15:00");

double volume = 
tivo.getInventoryVolume();
volume = volume - Random.nextInt(100);


tivo.setInventoryVolume(Float.parseFloat(Double
.toString(volume)));
tivo.setVolumeUom("gal");
String divId = key + "-TankInventory-" 
+ x;
System.out.println("Updating panel for "
+ divId);

RootPanel.get(divId).getElement().setInnerHTML(

getTankInventoryForMapTree(tivo));
}

link.setHTML("Poll Now");

}
};
t.schedule(5000);

}


}
});



--~--~-~--~~~---~--~~
You received 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: gwt1.6 sample dynamic table

2009-06-16 Thread Dalla

Check the gwt incubator, there´s a scrolltable example here.
Don´t be fooled by the name, it includes sorting too!

ScrollTable demo here:
http://collectionofdemos.appspot.com/demo/index.html

Source here:
http://code.google.com/p/google-web-toolkit-incubator/source/browse/#svn/releases/1.5/src-demo/com/google/gwt/gen2/demo/scrolltable

On 16 Juni, 09:54, asianCoolz  wrote:
> any sample on "sorting" for dynamic table. the original sample doesn't
> come with sorting
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



[GoogleIO] GWT Place Service

2009-06-16 Thread Kevin Q

I've been watching the talk by Ray Ryan from Google IO (Google Web
Toolkit Architecture: Best Practices For Architecting Your GWT App)
over and over again, and it's a very enlightening talk, especially the
part about EventBus and the use of  - kudos to the team.

However, one part Ray didn't elaborate too much but I think is very
important is the PlaceService (a higher level abstraction layer on top
of the History mechanism). The ability to throw PlaceChanged events on
the EventBus and let the interested parties to deal with the place
change is a very flexible and elegant system. That being said,
however, I'm a bit unsure about the implementation and Ray was also
kind of shy on detail of it during the talk. I'm wondering if anyone
has done something similar and can share a pointer or two.

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: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-16 Thread Isaac Truett

Are you sure you're looking in the right place? There are copies of
scrollTableLoading.gif located in com/google/gwt/gen2/table/public and
com/google/widgetideas/table/public

http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif

http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif


On Tue, Jun 16, 2009 at 12:56 PM, hezjing wrote:
> Hi
> Apparently, the scrollTableLoading.gif is the image display next to the last
> button while loading the data.
> You will see this image if table is taking long time to load the data.
> scrollTableLoading.gif does not comes with the GWT incubator distribution,
> you need to manually create one.
>
>
> On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:
>>
>> Hi
>> While I'm testing the PagingScrollTable, the hosted mode console complaint
>> the following warning:
>> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
>>
>> May I know why is this warning?
>> Should we create this scrollTableLoading.gif?
>>
>> --
>>
>> Hez
>
>
>
> --
>
> Hez
>
> >
>

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



Re: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Benibur

thank's !
that was difficult to find !

Ben

On 16 juin, 22:13, Kwhit  wrote:
> In Eclipse you can modify the port on the Run or Debug configurations
> menu - took me a while to stumble on that one.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Read an XML File

2009-06-16 Thread nehloucha

Hi
I have write a program on java how let me to read an XML file. the
address of my file is "http://localhost:8080/webdav/user.xml";. this is
my program:
import java.io.File;
import java.net.URI;
import java.net.URL;
import java.util.List;
import java.util.Vector;

import org.jdom.Element;
import org.jdom.input.SAXBuilder;

public class TestXML {

public org.jdom.Document document;
public Element racine;
public  Vector h;
String nom, cin;
   String path="http://localhost:8080/webdav/user.xml";;
public static void main(String[] args) {
try {
TestXML test = new TestXML();
 URL url=new URL(test.path);
 URI uri=url.toURI();
// On crée une instance de SAXBuilder
SAXBuilder sxb = new SAXBuilder();


// On crée un nouveau document JDOM avec en argument le 
fichier
// XML
// Le parsing est terminé
test.document = sxb.build(new File(uri));

// On initialise un nouvel élément racine avec 
l'élément racine du
// document.
test.racine = test.document.getRootElement();

//  System.out.println(test.racine);
test.h= new Vector();
//on recupere l'element results
Element results = 
(Element)test.racine.getChildren().get(1);
//System.out.println(results);
Element result = (Element)results.getChildren().get(0);
//on a recupere les binding
List listparam = result.getChildren();

for (Element e : listparam)
{
// On affiche le nom de l'element courant
//System.out.println(e);
for(Element el : (List)e.getChildren())
{

if(el.getName().equals("literal"))
{


System.out.println(el.getText());

}//fin if

}//fin for

}//fin for

} catch (Exception e) {
e.printStackTrace();
}
}

}
but when i run it i get this error :
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.(File.java:383)
at xml.TestXML.main(TestXML.java:37)
when i look to to the error i understund that it focus in this line of
code: test.document = sxb.build(new File(uri));
Please help me.
thanks for 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: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Kwhit

In Eclipse you can modify the port on the Run or Debug configurations
menu - took me a while to stumble on that one.
--~--~-~--~~~---~--~~
You received 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: Different button layout

2009-06-16 Thread Dariusz

This is weird... :(

This:
 .gwt-Button {
width: 300px;
}

works fine, but not if I want to change the font-size??



On Jun 16, 9:41 pm, Dariusz  wrote:
> I did setup a style.css file, where I'm trying to change the size of
> the button like this:
>
> .gwt-Button {
> border:1px outset #CC;
> cursor: pointer;
> font-size:10px;
> margin:0pt;
> padding:3px 5px;
> text-decoration:none;
>
> }
>
> Unfortunately, no effect on the result...it's still bigger than in FF.
>
> On Jun 16, 8:57 pm, Dariusz Borowski  wrote:
>
> > Does anyone know, why I'm having a different layout in IE than in FF?
>
> > Please, check out my attached screenshots.
>
> >  ie.jpg
> > 4KViewDownload
>
> >  ff.jpg
> > 3KViewDownload
--~--~-~--~~~---~--~~
You received 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: Different button layout

2009-06-16 Thread Dariusz

I did setup a style.css file, where I'm trying to change the size of
the button like this:

.gwt-Button {
border:1px outset #CC;
cursor: pointer;
font-size:10px;
margin:0pt;
padding:3px 5px;
text-decoration:none;
}

Unfortunately, no effect on the result...it's still bigger than in FF.



On Jun 16, 8:57 pm, Dariusz Borowski  wrote:
> Does anyone know, why I'm having a different layout in IE than in FF?
>
> Please, check out my attached screenshots.
>
>  ie.jpg
> 4KViewDownload
>
>  ff.jpg
> 3KViewDownload
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6.4: Exception in DriverManager.getConnection

2009-06-16 Thread Khoa

Another soul is saved -- thank you

On Jun 7, 8:34 am, aydogdu  wrote:
> god bless you
>
> On Apr 13, 2:46 pm, martin  wrote:
>
> > Ok, I solved the problem  ;-)
>
> > Go to the project's properties and uncheck "Use Google App Engine".
> > Additionally, as vitali mentioned, the mysql-connector jar has to be
> > in the war/WEB-INF/lib directory.
> > Cheers,
>
> > Martin.
>
> > On Apr 12, 3:16 pm, IvanRdz  wrote:
>
> > > I have the same problem and I am sure it´s due to Jetty and security
> > > settings as you have mentioned. Are you using google plugin?
>
> > > On Apr 11, 7:59 pm, martin  wrote:
>
> > > > Ok, I am still stuck :-(
> > > > Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5
> > > > for me, but something seems to have changed with GWT 1.6.4.
> > > > Maybe it is due to Jetty and security settings, since I get a
> > > > "java.security.AccessControlException"... All I did was to add the "/
> > > > usr/share/java/mysql-connector-java-5.1.6.jar" to the referenced
> > > > libraries.
>
> > > > Please help me out!
> > > > Thanks,
> > > > Martin.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Different button layout

2009-06-16 Thread Dariusz Borowski
Does anyone know, why I'm having a different layout in IE than in FF?

Please, check out my attached screenshots.

--~--~-~--~~~---~--~~
You received 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: Browser (IE) hangs when launched a GWT application in a child window

2009-06-16 Thread John Lonergan

Hi - how did you manage to track and abort outstanding RPC's from the
client?

Thanks JL



On Jun 5, 9:02 pm, gpike  wrote:
> Hi Maddy,
>
>   We had the same issue. What we found was if the window was closed
> while an rpc request was outstanding a port was blocked so subsequent
> calls would fail. To fix it we had to track and abort any rpc requests
> in a IWindowCloseListener.
>
> Gordonhttp://devbright.com
>
> On Jun 5, 12:52 pm, Maddy  wrote:
>
>
>
> > Hi,
>
> > My GWT application gets launched in a child browser from another
> > parent brwoser. When the user closes the browser, while the GWT
> > application is running and when he launches back the application
> > again, IE hangs and it is just a blank screen..
>
> > This is not happening all the time and it happens occasionally.
> > Application works fine in Firefox.
>
> > Could anybody help me with this, as this is becoming a serious issue.- Hide 
> > quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 modify the default port (8080) of hosted mode ?

2009-06-16 Thread Alex Rudnick

That'll work!

Also, if you're using the Google Plugin for Eclipse, here's how to
change the port in Eclipse:

http://code.google.com/eclipse/docs/running_and_debugging.html

On Tue, Jun 16, 2009 at 1:33 PM, Peter Ondruška wrote:
>
> Use the -port parameter to set non-default.
>
> 2009/6/16, Benibur :
>>
>> There is a port conflict on my server since GWT hosted mode and
>> another web application use the same port (8080)
>> The point is widely discussed over the internet, but the solution is
>> always : modify the port of the other application.
>> The pb is that in my case I can not change the port of the other
>> application.
>>
>> => is there any chance i can modify the port of GWT hosted mode ?
>>
>> thank you !
>>
>> Benjamin

-- 
Alex Rudnick
swe, gwt, atl

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



Memory leak in onWindowClosed with RPC call

2009-06-16 Thread Damon Lundin

GWT does a great job of letting us avoid the memory leak pitfalls that
often occur in poor browser, but I think I may have found a case that
GWT does not handle and I'm not sure why.

We have an application where we mark a particular page as visited by a
user when they open the page and when they leave the page.  To do the
mark when they leave the page, we have added an onWindowClosed
listener that gets called and which makes an RPC call to the server.
I have discovered that this RPC call is causing a cross-page memory
leak.  That is if you simply repeatedly hit refresh in the browser
(calling onWindowClosed each time) we are leaking 5 megabytes of
memory on each click.  If I comment out the RPC call, the leak goes
away.

The method looks like this:

public void onWindowClosed() {
UserPreferencesServiceAsync serviceAsync =
(UserPreferencesServiceAsync)GWT.create(UserPreferencesService.class);
((ServiceDefTarget)serviceAsync).setServiceEntryPoint("/scr/
UserPreferencesService");
UserPreferencesService.App.getInstance().markProcessViewed(new
AsyncCallbackAdapter());

super.onWindowClosed();
}

The GWT.create itself is not the culprit since I can leave that bit in
and just remove the RPC call and there is no leak.  I'm guessing some
part of GWT or the browser has to hold on memory in order to handle
the response from the server which could return after the page is
gone.  I will point out that we don't care about the response from the
server.

Does anyone have any ideas as to what would cause this or how to fix
it?  I haven't tried it yet, but I'm going to try using a
RequestBuilder and just executing an old-fashioned Servlet call
instead of an RPC call.
--~--~-~--~~~---~--~~
You received 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: MVC question

2009-06-16 Thread Dalla

Thanks alot for all your answers :-)

Will have a good read here when I have the time to check all the links
etc.

I actually watched Ray Ryans presentation from Google IO 2009,
and the MVP pattern looks very similar to the MVC pattern that Struts
2 claims to implement:
A controller between the model and view, and no direct connection
between the model and view.
Name the controller a presenter instead and you get MVP ;-)

On 16 Juni, 14:04, Ed  wrote:
> Owww btw:
> My self I use all kind of MVC/MVP patterns and mixtures of it.
> It's not so important what the exact name is, as long as you know very
> well what you are doing. What I mean is that: with the articles on
> internet, like the ones from M. Fowler you have a nice luggage that
> helps you to be creative and compose your own version of any pattern.
>
> Don't forget that the patters are just a good starting point and that
> it can be hard (as in my situation) to fit them as a glove, so don't
> try to force them in your code, but just use your luggage and a piece
> of your brains ;)...
>
> Note: MVC and MVP are terms that are hard to use as nobody really
> knows exactly what they mean these days as everybody have give their
> own explanation to it..
> Nowedays they present groups of possible patterns (their accents)
> which you can find in Martin Fowler articles.
> For example: the original idea's of MVC doesn't define anything about
> the Observer pattern that can be used to inform others, but still
> people often use it... But it's not always the best solution like
> Andigo mentions...
>
> -- Ed
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Use SuggestBox suggestions in another widget

2009-06-16 Thread Josh

Hi,

I have been trying to think of a good way to add a specific feature to
my application to search through a list of data, but can't figure
anything out.  Here is what I would like:

The interface would be a suggest box, and a vertical panel, or grid of
some sort with data.

Initially all of the options are shown, as links, in the vertical
panel/grid.  When the user starts to type in the SuggestBox, not only
does the normal SuggestBox functioanlity occur, but also the panel/
grid of all data updates as well to only have entries that match the
users input.

Is this possible?

Thanks,
Josh

--~--~-~--~~~---~--~~
You received 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: 3rd parties and GWT-RPC?

2009-06-16 Thread Sumit Chandel
Hi markww,
In order to reuse the GWT RPC services you've already defined directly,
you'll have to create your own serializers in the Objective-C world that can
match the signature RPC expects on incoming payloads. You'll also need to
continue to match this signature if it changes across releases. In other
words, this is a possible approach, but one you should steer away from
unless you enjoy pain.

Another possibility is to create gateway services to your RPC servlets on
your server-side that you can call from your Objective-C application. This
approach isn't as bad since you can expose whatever you need in the gateway
service that the mobile version of your application requires, and have the
gateway reuse the GWT serialization mechanisms to talk to your GWT RPC
service.

Finally, another approach would be to create another pair of services that
could support the calls you need to make from the Objective-C mobile
application. On the plus side, if you work with JSON-encoded data on the
client, you should be able to reuse the data transfer objects you're using
in your GWT RPC services, however this would only be true in GWT 2.0 (where
JavaScriptObject overlays will be allowed to implement a single interface).

Hope that helps,
-Sumit Chandel

On Fri, Jun 12, 2009 at 6:20 PM, markww  wrote:

>
> Hi,
>
> I'm wondering what options we have when we want a 3rd party to talk to
> our server. For example, I'm using GWT RPC as-is. So my clients
> (browsers) talk to the server perfectly, works great.
>
> Now I'd like to make an iPhone app (an actual objective-c compiled
> app) that also uses my web service. Normally if I were using PHP, I'd
> just call the PHP scripts via a url in the objective-c application.
> This does not seem possible when using GWT-RPC. Is there any way to do
> it? I know I can just let the user use mobile safari to access my web
> app, but would prefer a thick client.
>
> Thanks for any suggestions
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Generating UI with GWT or PHP

2009-06-16 Thread Mark

Ian, I took a look at the Dictionary class, but I don't understand.
Where is the dictionary getting the "user" and "name" elements from?
Is a PHP script supposed to generate them, then in GWT I can just link
up to the items I need in the entry point method? If so, would the
call the add(new Label(items from dom)) be redundant?

Thanks


On Jun 14, 7:17 pm, Ian Bambury  wrote:
> A simpler solution with no Ajax call would be:
>
> public class MyProject implements EntryPoint
> {
>     public void onModuleLoad()
>     {
>          RootPanel.get().add(new
> Label(Dictionary.getDictionary("user").get("name")));
>     }}
>
> Ian
>
> http://examples.roughian.com
>
> 2009/6/14 markww 
>
>
>
>
>
> > Hi,
>
> > This is a general question about GWT and user interfaces. In my
> > (limited) use with PHP, the server was responsible for generation of
> > most of the 'UI'. Each script would emit some html which the client
> > browsers download and render.
>
> > If we wanted to write a project only using GWT for the presentation,
> > this model changes. As I understand it, now the server will spend less
> > time generating text via PHP scripts, because it would just be handing
> > out the same static .js files - the .js files are the compiled .js
> > app. Once it gets to the client browser, the javascript handles
> > building out the entire UI (via all the Widget classes).
>
> > If this is true, I wonder if anyone can comment on how it affects
> > performance (this is a very general question I know). In a PHP-driven
> > site, maybe for a logged-in user section I would have done something
> > like this:
>
> >   echo "
> >              Some text
> >              Welcome back, " . $username . " 
> >           ";
>
> > now with GWT, I would have set up a bunch of widget classes, then done
> > a separate AJAX call and pull down a JSON representation of the user
> > to populate my widget:
>
> >    public class MyProject implements EntryPoint
> >    {
> >        public void onModuleLoad()
> >        {
> >            VerticalPanel p1 = new VerticalPanel();
> >            final Label label = new Label("Loading...");
> >            p1.add(label);
> >            RootPanel.get().add(p1);
>
> >            asyncAjaxCall("http://mysite.com/getUserInfo.php";) {
> >                public void onSuccess(Response response) {
> >                    label.setText(JSONParse.parse(response));
> >                }
> >            }
> >        }
> >    }
>
> > I'm not sure which approach is better for the web application I want
> > to write. Preferably I'd like to stick totally with GWT for client-
> > side, and use PHP via AJAX to get data from my database to populate
> > the UI. But I'm not sure if all the widgets I want to create to make
> > an appealing user interface will overburden users' browsers, and
> > therefore am better off just using PHP to generate the pages for me.
>
> > Thanks for any 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: Export GWT table into CSV, XLS, XML and PDF

2009-06-16 Thread Thad

I'm using OpenCSV (http://opencsv.sourceforge.net/) for creating CSV
files, but there's nothing magic that ties it to my GWT tables.  The
CSV conversion is done on in a servlet using the same data that was
used to draw the client-side table, and then sent to the browser.

I'm using iText (http://www.lowagie.com/iText/) for creating PDFs.
Again, this is happening on the server, not in the client.

On Jun 16, 10:42 am, Kady  wrote:
> Is there an option to export the data from GWT tables to popular
> formats like csv, xls, xml, pdf etc? If not, how can one build this
> option?
>
> 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: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Peter Ondruška

Use the -port parameter to set non-default.

2009/6/16, Benibur :
>
> There is a port conflict on my server since GWT hosted mode and
> another web application use the same port (8080)
> The point is widely discussed over the internet, but the solution is
> always : modify the port of the other application.
> The pb is that in my case I can not change the port of the other
> application.
>
> => is there any chance i can modify the port of GWT hosted mode ?
>
> thank you !
>
> Benjamin
>
> >
>

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



Re: Minor error in GWT toolkit documentation

2009-06-16 Thread Alex Rudnick

Thanks for the heads-up :)

Should be fixed forthwith.

On Mon, Jun 15, 2009 at 1:25 PM, arcy wrote:
>
> In http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html
> there is an explanation of the basic RPC mechanisms, which I
> appreciate.  At one point, however, it says that an application's
> service implementation will extend "RemoteServletServelet"; I'm pretty
> sure it means "RemoteServiceServlet".
>
> This is no big deal, but if someone could correct it, it might save a
> few hours of heartburn for some newbie struggling through all the
> classes and interfaces one has to get familiar with to do this sort of
> thing.
>
> The docs are great!  If there a link to use for sending such
> correction suggestions, I'd happily use it instead of the forums...
>
> arcy

-- 
Alex Rudnick
swe, gwt, atl

--~--~-~--~~~---~--~~
You received 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 architecture MVP/EventBus (mentioned at Google I/O)

2009-06-16 Thread Sumit Chandel
Hi Benju,
The use of the HasClickHandlers interface (and other Handler interfaces) is
actually just a piece of event-driven architecture that  GWT subscribes to
in the 1.6 event handler architecture. Basically, anything that implements
the HasClickHandlers interface must provide an implementation for the
methods that manage ClickHandlers added to it.

You can apply this principle more generally to your own components. For
example, a component that sends EmergencyEvacEvents or wraps a widget that
does so might also implement a HasEmergencyEvacHandlers. Whenever the
EmergencyEvacEvent occurs, components implementing HasEmergencyEvacHandlers
will be responsible for notifying each of the handlers to handle the
emergency event.

The following article also explains the same concept through a more complete
example (though the article is outdated as it pertains to GWT 1.4).

"Developing Web 2.0 Apps with the Google Web Toolkit" (see section Wiring
Event Listeners):
http://www.linux-mag.com/id/5444

Regarding resources that explain how the MVP pattern relates to GWT, I think
the following article on testing methodologies using GWT will help.

"Testing Methodologies Using Google Web Toolkit":
http://code.google.com/webtoolkit/articles/testing_methodologies_using_gwt.html

Although the article focuses on testing methodologies, the MVP pattern is
explained in code as it helps make it easy to isolate components that we
want to test and mock out any other components that it might interact with.

Hope that helps,
-Sumit Chandel

On Fri, Jun 12, 2009 at 10:19 AM, Benju  wrote:

>
> Thanks for the reply I have some further thoughts...
>
> Looking at the source code for the event handling in GWT 1.6 it seems
> the fundamental difference is as follows...
>
> Old way with listeners
>
> "I am adding this event listener to this component, when the listener
> is triggered I know the source must be this component as it is the
> only one added to the listener list"
>
> New way with listeners
>
> "I am adding this handler to this component, when something happens to
> the component firing and event I will receive a notification, the
> event itself will contain enough information such as the source or
> custom properties which let me determine how to do something."
>
> The more I think about the architecture outlined by the tech talk the
> smarter it seems. For example by using this event driven application
> you can swap out the UI much easier.  Instead of having a button run
> an RPC which on result runs code that that one component you have a
> button trigger an RPC request which fires back to a central event
> handler which then notifies all interested parties regardless of which
> component initiated the request.  When swapping out the UI for
> browsers to an iPhone specific  version it would be much much easier
> to just have the exact same handlers and events but swap out the
> components which render things to the display.
>
> In my readings last night I discovered another term for what is
> outlined in the "EventBus" idea was coined by Martin Fowler as "Event
> Collaboration" http://martinfowler.com/eaaDev/EventCollaboration.html.
>
> In the video at 27:3# Ray Ryan shows some MVP code which seems to tie
> in with this it uses methods like "HasClickHandlers" to define the
> interface for the UI.  Does anybody know if this is typical of MVP or
> a flavour cooked up by Google?  I am having a hard time finding
> quality resources describing MVP in the sort of context appropriate to
> GWT.
>
>
>
> On Jun 12, 7:39 am, Thomas Broyer  wrote:
> > On 11 juin, 21:34, Benju  wrote:
> >
> > > I did not attend Google I/O but as soon as the video "Google I/O 2009
> > > - Best Practices for Architecting GWT App" (http://www.youtube.com/
> > > watch?v=PDuhR18-EdM) was posted I reviewed it and was a bit confused
> > > by the idea of an EventBus.
> >
> > For my part, I was pleased to see it as a best practice, as that's
> > what I'm thinking about for nearly a year (would require a huuge
> > refactoring of our app, so it's still "just an idea floating in the
> > air")
> > (I didn't watch the video, just looked at the slides)
> >
> > > From what I can tell the idea is that UI widgets requiring data from
> > > the server are able to fire off requests for some form of data like
> > > "void getTransactionsForAccount(Account acct)" then at some unknown
> > > later time (ms to seconds ussually) when a response comes in from the
> > > RPC call the eventbus is what actually directly recives the data and
> > > then it is dispatched
> >
> > Well, not necessarily, though yes, that's what they said at Google I/
> > O. One of the reasons is that there are probably more than a single
> > place where you use that same data in your app (in GMail it could be
> > the list of mails, the unread count for the "box" and/or label(s), and
> > the conversation view of course). That way, all places are informed,
> > wherever the initial request came from.
> >
> >

Re: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-16 Thread hezjing
Hi

Apparently, the scrollTableLoading.gif is the image display next to the last
button while loading the data.You will see this image if table is taking
long time to load the data.

scrollTableLoading.gif does not comes with the GWT incubator distribution,
you need to manually create one.


On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:

> Hi
> While I'm testing the PagingScrollTable, the hosted mode console complaint
> the following warning:
>
> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
>
>
> May I know why is this warning?
> Should we create this scrollTableLoading.gif?
>
>
> --
>
> Hez
>



-- 

Hez

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



Re: Common GWT Modules In JAR File Problems.

2009-06-16 Thread gazarcher

Thanks for the reply.  Answers to your questions are:

1) Yes, my Common module is inherited in each of the *.gwt.xml files
in the other modules.

2) Yes, I included the Java source for the client-side in my Common
JAR file (see "NOTE" half-way down my original post).

3) Yes, the CSS, HTML and images (in an "images" folder) are in the
Commons module "public" folder and included in the JAR.

4) Yes, the Commons.gwt.xml file is included in the JAR.

Basically, the layout of the Common JAR file looks like:

META-INF/MANIFEST.MF
MyPackage.common.GWTModuleD/client/GWTModuleDEntryPoint.class
MyPackage.common.GWTModuleD/client/GWTModuleDEntryPoint.java
MyPackage.common.GWTModuleD/client -- *.class and *.java files for
models, UI widgets and RPC in their own subfolders
MyPackage.common.GWTModuleD/public -- *.css, *.html files
MyPackage.common.GWTModuleD/public/images -- *.png and *.gif files
MyPackage.common.GWTModuleD/server -- *.class and *.java files (yes, I
know the *.java files are not necessary here)
MyPackage.common.GWTModuleD/GWTModuleD.gwt.xml

MyPackage.common.gwt/client/AbstractCommonEntryPoint.class
MyPackage.common.gwt/client/AbstractCommonEntryPoint.java
MyPackage.common.gwt/client -- *.class and *.java files for models, UI
widgets and RPC in their own subfolders
MyPackage.common.gwt/public -- *.css, *.html files
MyPackage.common.gwt/public/images -- *.png and *.gif files
MyPackage.common.gwt/server -- *.class and *.java files (yes, I know
the *.java files are not necessary here)
MyPackage.common.gwt/Common.gwt.xml

The Common.gwt.xml file basically looks like:
















The module *.gwt.xml files in my Web app all pretty much basically
look like:













MyPackage.common.GWTModuleD.client.GWTModuleDEntryPoint and
MyPackage.MyApp.GWTModuleA.gwt.client.GWTModuleAEntryPoint, etc., all
extend MyPackage.common.gwt.client.AbstractCommonEntryPoint which
includes common functionality that I wanted to inherit in other entry
point classes.  Yes, I know that each entry point onModuleLoad() is
called for every class in the inheritance chain, and this is currently
not a problem.

I hope this helps and I deeply appreciate the "extra eyes" looking
over the basic structures here (sorry I can't be more explicit with
the package and module names).  I also appreciate any ideas, hints,
tips and/or suggestions!  Thanks!

- Garry Archer



--~--~-~--~~~---~--~~
You received 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 modify the default port (8080) of hosted mode ?

2009-06-16 Thread Benibur

There is a port conflict on my server since GWT hosted mode and
another web application use the same port (8080)
The point is widely discussed over the internet, but the solution is
always : modify the port of the other application.
The pb is that in my case I can not change the port of the other
application.

=> is there any chance i can modify the port of GWT hosted mode ?

thank you !

Benjamin

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



Re: Introducing GWTUML, a GWT UML Drawer.

2009-06-16 Thread dka...@gmail.com

Sweet. Not that you'd want to do MDD with it. With it's "save as url"
feature, this strikes me as a really good solution for development
Wiki's in place of exported UML diagrams as images.

DJK

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



OAuth function works in JS, but not in JSNI

2009-06-16 Thread Matt Raible

I'm trying to convert the makeSignedRequest function on the following
page into a JSNI method.

http://paul.donnelly.org/2008/10/31/2-legged-oauth-javascript-function-for-yql/

If I put the raw JS in my HTML page and call it with
$wnd.makeSignedRequest(), everything works fine. However, if I move it
into a JSNI method (and use $wnd.OAuth), the parameters:
[["oauth_version","1.0"],["oauth_consumer_key",ck]] gets written as:

0=oauth_version%3D1.0&1=oauth_consumer_key%3Dmy_key

instead of:

oauth_version=1.0&oauth_consumer_key=my_key

Does anyone know how I might go about fixing this?

Thanks,

Matt

P.S. For more context, I found the JSNI version on the following
blog:

http://www.sergimansilla.com/blog/?p=75
--~--~-~--~~~---~--~~
You received 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 implement GWT java interfaces in javascript [JSNI]

2009-06-16 Thread Thomas Broyer


On 16 juin, 17:08, samsus  wrote:
> Hi All,
>
> Im trying to use jsni to implement a interface (a callback) and use it
> as an argument in a function. here is what i have:
>
> -
>
>  package com.mypackage;
>
>  public interface MyCallback {
>
>       public void onResponseReceived(String text);
>
>  }
>
>  
>
>  package com.mypackage;
>
>  public class MyClass {
>          public static String send(String text,MyCallback callback) {
>                  callback.onResponseReceived(text);
>                  return "";
>          }
>
>          private native void publish() /*-{
>              $wnd.send = @com.mypackage.MyClass::send(Ljava/lang/

It won't work; you should introduce a level of indirection:

public static String send(String text, JavaScriptObject callback) {
callTheCallback(callback, text);
return "";
}

private static native void callTheCallback(JavaScriptObject callback,
String text) /*-{
callback(text);
}-*/;


...unless you provide some constructor for MyCallback that you can
pass "plain old JS functions" to be used by onResponseReceived
(onResponseReceived being implemented as a native method similar to
callTheCallback above).

> String;com/mypackage/MyCallback;);
>          }-*/;
>  }
>
> 
>
> im stuck, because "com/mypackage/MyCallback" is not considered a valid
> type,

Lcom/mypackage/MyCallback; would; you forgot the "L".


--~--~-~--~~~---~--~~
You received 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: Large Data Set problems

2009-06-16 Thread Joe Larson

Well, looks like paging it is.  Thanks everyone.

Oh, and Hi Tom!

-Joe

--~--~-~--~~~---~--~~
You received 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: Images won't load from full pathname in FireFox

2009-06-16 Thread Steven

Thanks, I'll proceed in the Servlet direction.

On Jun 15, 7:46 pm, "Dean S. Jones"  wrote:
> You can't use a file:: URI to load an image ( that would attempt to
> load it from the machine the browser is on ), you can in theory load
> an image from bytes via RPC ( tho it's not worth the highly incredible
> ugliness of hackery to do that )
>
> You can sorta write images to the filesystem and serve them, if you
> can somehow map the folder into your document root, but writing to
> your WebRoot in a J2EE container is a very bad idea.
>
> So, your pretty much left with a Servlet.
>
> On Jun 15, 5:57 pm, Steven  wrote:
>
> > BTW, after an image query I'm getting the image's URI and was planning
> > to load the image file directly into the brower. Alternatively I can
> > load it into a servlet and use GWT RCP to move it into the browser.
> > The image files are 100K and up. Would using the servlet like this be
> > generally advisable over loading directly into the browser?
--~--~-~--~~~---~--~~
You received 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 implement GWT java interfaces in javascript [JSNI]

2009-06-16 Thread samsus

Hi All,

Im trying to use jsni to implement a interface (a callback) and use it
as an argument in a function. here is what i have:

-

 package com.mypackage;

 public interface MyCallback {

  public void onResponseReceived(String text);

 }

 

 package com.mypackage;

 public class MyClass {
 public static String send(String text,MyCallback callback) {
 callback.onResponseReceived(text);
 return "";
 }

 private native void publish() /*-{
 $wnd.send = @com.mypackage.MyClass::send(Ljava/lang/
String;com/mypackage/MyCallback;);
 }-*/;

 }



im stuck, because "com/mypackage/MyCallback" is not considered a valid
type, also , im not sure how i can implement in javascript the
MyCallback interface/class.

Any ideas?
--~--~-~--~~~---~--~~
You received 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 1.6 - Expand Tree?

2009-06-16 Thread omsrobert

How do I expand all the nodes in a 1.6 Tree?  I do not see an expand()
method.  setSelected()?

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



Export GWT table into CSV, XLS, XML and PDF

2009-06-16 Thread Kady

Is there an option to export the data from GWT tables to popular
formats like csv, xls, xml, pdf etc? If not, how can one build this
option?

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: Is it not possible to include a Serialized bean object as a variable in another Serialized Bean..??

2009-06-16 Thread Isaac Truett

Raul,

The problem is that you aren't actually serializing
com.data.employee.Department. Something is replacing your class with
com.data.employee.Department_$$_javassist_0. You wouldn't happen to be
using Hibernate, would you?

- Isaac


On Tue, Jun 16, 2009 at 7:10 AM, Raul wrote:
>
> Hello all,
>
> I have two beans as follows:
> -
> public class employee implements IsSerializable{
>
>        int id;
>        String name;
>        Department department;
>
>        public employee(){}
>        public employee (int id, String name, Department dept){
>                setId(id);
>                setName(name);
>                setDepartment(dept);
>        }
>
>        public void setId(int id){this.id=id;}
>        public int getId(){return this.id;}
>
>        public void setName(String name){this.name=name;}
>        public String getName(){return this.name;}
>
>        public void setDepartment(Department dept){this.department=dept;}
>        public Department getDepartment(){return this.department;}
>
> }
> --
> public class Department implements IsSerializable{
>        int dept_id;
>        String name;
>
>        Department(){}
>        public Department(int id, String name, String status){
>                setDept_id(id);
>                setName(name);
>        }
>
>        public void setDept_id(int dept_id){this.dept_id=dept_id;}
>        public int getDept_id(){return this.dept_id;}
>
>        public void setName(String name){this.name=name;}
>        public String getName(){return this.name;}
>
> }
>
>
> And when I try to use a Grid to hold Employee records I am having
> Error message like:
>
> SEVERE: 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)
> .
> .
> .
> ..
> Caused by: java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
> (ServerSerializationStreamWriter.java:678)
>        ... 24 more
>
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.data.employee.Department_$$_javassist_0' was not included in the
> set of types which can be serialized by this SerializationPolicy or
> its Class object could not be loaded. For security purposes, this type
> will not be serialized.
>        at
> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
> (StandardSerializationPolicy.java:83)
>        at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
> (ServerSerializationStreamWriter.java:591)
>        at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
> (AbstractSerializationStreamWriter.java:129)
>        at
> com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize
> (Collection_CustomFieldSerializerBase.java:43)
>        at
> com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize
> (ArrayList_CustomFieldSerializer.java:36)
>        ... 29 more
>
>
>
> What I am guessing as the reason for this error is - it may due to
> using a Serialised object variable(Department) inside another
> Serialized object bean (Employee).
>
> I am not sure 
> need help.
>
>
> Kindly put some suggestions, how can I overcome this issue...!!
>
>
> Also doesn't GWT allow a Serialized bean object variable in another
> serialized Bean class..??
>
>
> your kind suggestions will be highly appreciable..
>
> Raul
>
>
>
>
> >
>

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



populate a treePanel

2009-06-16 Thread macistina

Hi all,
I'm using a treePanel ext. I'd like to load the object by a json
object.
I defined the treeLoader and its dataUrl. The dataUrl is a file .js.
This files contains a string json.
I don't know if it need a web server (the file is js) or after I
defined the data url it's mandatory a function for manage the returned
data.
Follow the code and the json data. When I'll load the data I want
attach to every menu items the onClick Event.
Please Help me!!!
Thanks in advance!

this.tree = new Tree.TreePanel({
region: 'west',
title:'Alis Wiever',
width: 200,
lines: false,
singleExpand: true,
collapsible:true,
expandable :true,
rootVisible:true,
loader: new Ext.tree.TreeLoader({
dataUrl:'get-nodes.js'
}),
root: new Ext.tree.AsyncTreeNode({
singleClickExpand:true,
text: 'Funtions',
id:'0',
trackMouseOver:true,
allowChildren :true,
useArrows : true,
expandable :false

}),



});


JSON DATA
{"children":
[
{"text":"Inserisci nuovo
sample","id":"menu_sample_insert","leaf":true,"cls":"folder"},
{"text":"Cerca
sample","id":"menu_sample_search","leaf":true,"cls":"folder"}
]
}

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



Track System Shutdown event

2009-06-16 Thread shailaja

Hi,

Is there any way to track system shutdown event through GWT? Please
let me know if it is possible through GWT/javascript.

Regards,
Shailaja

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



Re: Is there a way to disable Jetty INFO-level log messages to Hosted Mode Shell?

2009-06-16 Thread Thoka

I would really like to know how to do this as well, the Jetty info-
logs are totally worthless.

On 8 Maj, 18:12, Mark  Renouf  wrote:
> I have to use -logLevel INFO because I want to continue seeing my
> debuglogmessages from GWT.log. I also want to continue seeing
> warnings or errors fromJetty(like non 2xx repsonse codes, etc).
>
> Is there any way to accomplish this, or should I file an issue? (I
> didn't see this request reported yet).

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



tabPanel Items.

2009-06-16 Thread macistina

Hi all,
I need your help.
I'm using ext, but it's the first time.
I have a tabPanel which contain 2 tabs defined in tabPanel's
properties.
this.initialsTab = new Ext.TabPanel({
 resizeTabs :true,
 activeTab : 0,
height:500,
items : [{
id:'myHomeTab',
title : 'MyHome'
 },
 {
title: 'Alis',
id:'alisTab',
items: this.alisPanel
 }]
});
Now I would like attach an event to the tab 'alisTab' (the second tab
defined).
How can I do it from an external  javascript function?  I mean, I'm
not beable to refer the tab.
initialsTab.items = Object , but I need 'alisTab' object. I would like
a code similar to the follow:
(alisTab).on('click'.);
Thanks in advance.

Please help me!
Sorry for my bad English

--~--~-~--~~~---~--~~
You received 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: Common GWT Modules In JAR File Problems.

2009-06-16 Thread ClusterCougar

Some things I'm not clear on from your post:

1) Did you inherit the commons module in each of your *.gwt.xml files?
2) When you did the jar packaging, did you include the java source for
the client-side?
3) Are your public resources (i.e. CSS) located in a ".../moduleName/
public/" folder? Were they included in the jar?
4) Was your commons.gwt.xml file included in the jar?

On Jun 15, 3:29 pm, gazarcher  wrote:
> Hello All,
>
> I had a largish Web app with several GWT modules in different
> packages.  These modules shared common code which I put into a
> separate module, also in it's own package.  As simple as I can
> describe it, it looked a bit like this:
>
> // Modules specific to the app:
>
> MyPackage.MyApp.GWTModuleA
> MyPackage.MyApp.GWTModuleB
> MyPackage.MyApp.GWTModuleC
>
> // A common module that could be used in other apps:
>
> MyPackage.common.GWTModuleD
>
> // Common module containing code and resources used by any GWT module:
>
> MyPackage.common.gwt.Common
>
> Each of these modules contained their own module XML file (of course),
> CSS file, HTML file and images.  Each module, even the Common one, had
> it's own entry point.  Each module defined at least one servlet --
> which were all also configured in the app's web.xml file.
>
> The Common module included an entry for .
>
> All of the modules, A through D, inherited the Common module.  For
> example, GWTModuleA could use styles defined in Common's common.css
> file, as well as inheriting widget classes.
>
> When I complied everything (using IntelliJ IDEA), the output from
> compiling normal Java source into class files and compiling GWT Java
> source into JavaScript all were put into one folder where a WAR file
> was also built.  The relevant folders in the output were:
>
> // Normal class files into the usual places:
>
> WEB-INF/classes/MyPackage.MyApp.SubPackageA/*.class
> WEB-INF/classes/MyPackage.MyApp.SubPackageB/*.class
> etc.
>
> // GWT JavaScript and resource files:
>
> MyPackage.MyApp.GWTModuleA/*.js
> MyPackage.MyApp.GWTModuleA/*.rpc
> MyPackage.MyApp.GWTModuleA/*.png
> MyPackage.MyApp.GWTModuleA/images/ -- From the Common module
> MyPackage.MyApp.GWTModuleA/common.css -- From the Common module
> MyPackage.MyApp.GWTModuleA/GWTModuleA.css
> MyPackage.MyApp.GWTModuleA/GWTModuleA.html
>
> (and similarly for modules B, C and D *and* Common)
>
> This all went together very nicely and worked and SO FAR SO GOOD!
>
> Then I proceeded to break it :-)
>
> I wanted to put my Common module into it's own JAR file so that my Web
> app and other Web apps we are developing could use it.  Here's what I
> did (amongst several things that didn't work, and trying to cut the
> long story short...):
>
> 1) I created a new "Common" Intellij IDEA project and moved my common
> modules, MyPackage.common.GWTModuleD and MyPackage.common.gwt.Common,
> from my Web app project into it.
>
> 2) In the "Common" project, I compiled everything.  The normal Java
> class files went into their respective folders, i.e.:
>
> // Regular Java classes:
>
> MyPackage/common/SubPackageA/*.class
> MyPackage/common/SubPackageB/*.class
>
> // GWT modules, their classes and resources, i.e., CSS, HTML, etc. and
> the module XML file:
>
> MyPackage.common.GWTModuleD/*
> MyPackage.common.gwt.Common/*
>
> and GWT's JavaScript output, all went into a separate folder (let's
> say I don't need this for now).
>
> NOTE: During the compilation of the GWT class files, I was *also*
> careful to copy their Java source files into the same folders (a
> requirement when building JAR files for shared GWT modules).
>
> 3) I created a JAR file from the classes, sources and resource files
> in step #2.
>
> 4) I imported this new JAR file into my original Web app project, now
> sans all the common code I moved into the new "Common" project.
>
> 5) I successfully compiled my Web app project and deployed the
> resulting WAR file as before.
>
> The Web app appeared to work, *except* in my GWT modules, that used
> common code before, were all missing the styling and images from my
> Common module.  Also, the GWTModuleD common module was not there at
> all.
>
> So, what did I do wrong? What am I missing?  Here are my assumptions,
> of which some are presumably totally incorrect:
>
> a) When I compiled my Web app project with my Common GWT JAR file, GWT
> found the class files in the JAR and so any widgets I built in the Web
> app were inheriting the functionality of the common widget code.  This
> did appear to happen without problem.
>
> b) When GWT was compiling my Web app GWT modules, it was using the
> source files to create the JavaScript files under their
> MyPackage.MyApp.GWTModule[ABC] folders, copying any resource files
> from their original location in the project.  This also appeared to
> occur without a problem.
>
> c) When GWT was compiling my Web app GWT modules in the project I
> thought it should have seen they were inheriting my
> MyPackage.common.gwt.Common module in the imported JA

How do I do to disable Jetty info-logs?

2009-06-16 Thread Thoka

Hi,

We've upgraded GWT to 1.6 and are now running Jetty instead of Tomcat.
The logs of jetty is good, IF something goes wrong, but I really don't
want an INFO-log each time a request (e.g. image) is requested. This
could be solved by changing the log-level to WARNINGS, but I still
want my GWT logs to be printed as INFO.

How do I do to disable only the Jetty-specific logs and that I still
get the GWT info logs?

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: Introducing GWTUML, a GWT UML Drawer.

2009-06-16 Thread ClusterCougar

Very cool. might want to make an expandable panel as a "toolbox". That
seems to be a pretty standard analogy in diagramming tools. Do you
have a roadmap/design for server-side? are you thinking you'll do a
persistence framework or filesystem storage (i.e. xml)?

On Jun 15, 3:43 am, walterc  wrote:
> very nice!
>
> On Jun 15, 4:54 pm, "mounier.flor...@gmail.com"
>
>
>
>  wrote:
> > Hello everyone !
>
> > I would like to introduce to you the open source project I've been
> > working on these past 6 months : GWTUML.
>
> > This is an UML drawer that uses of course gwt and aims to be a light
> > and fast one. For now all the code is client side but nothing but time
> > prevents it to become client-server.
>
> > To use it : right-click opens a contextual menu with all sorts of
> > commands here, [h] brings hotkeys list and double click edits items.
>
> > Any comments, suggestions and critics would be really appreciated.
> > (Sequence diagram is in a very early statge !)
>
> > Demo on Google app engine 
> > :http://1.latest.gwtuml.appspot.com/GWTUMLDrawer.html
>
> > Google code site :http://code.google.com/p/gwtuml/
>
> > Greetings.
> > Florian

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



Simple questions on module loading

2009-06-16 Thread bgoetzmann

Hello,

Using NetBeans 6.5 and its GWT4NB plugin, I created a very simple web
application with a GWT module. The plugin generates a welcomeGWT.htm
page that loads the GWT module.
I noted that:

1. In the head tag, there is a meta tag: 

Is it mandatory?

2. In the body tag, I found: 

What if there are many inclusions of this script? Does the .js file
contains some test to handle this use case?
These questions are very important for me, because I made experiments
in a portlet environment (JBoss Portal), in which I can't avoid -for
the moment- multiple inclusions of the script tag, in case of the use
of multiple instances of the same portlet.

Thank you!

Bertrand.

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



Getting com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException while calling RPC method

2009-06-16 Thread ramraj

Hi,

I am using gwt2.0,i have some RPC service classes,previously i have
used 1.6 at that all rpc functionlaities are working fine after
changed to 2.0 i am un able to call the RPC methods,while calling the
method i am getting the exception like

2009-06-16 14:52:36.641:/:WARN:  An IncompatibleRemoteServiceException
was thrown while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Parameter 0 of is of an unknown type
'com.vimukti.defbiz.client.TaskNoteDetails/4032166626'
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
491)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:367)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:185)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:689)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
391)
at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
457)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:765)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:627)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:329)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:475)
Caused by: java.lang.ClassNotFoundException:
com.vimukti.defbiz.client.TaskNoteDetails/4032166626
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName
(RPC.java:657)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:274)
... 20 more


Please reply

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



How to capture shutdown event of system in javascript

2009-06-16 Thread Taufeeq

How to capture shutdown event of system in javascript? Our requirement
is like, if system shoutdown normally or due to power failure we need
to send session closing request to server.
Reply With Quote

--~--~-~--~~~---~--~~
You received 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: Change GWT locale dynamically

2009-06-16 Thread Raymond Domingo

Hi Bhavik,

FYI
I have used your script sparely, but successfully for some time now,
thank you for sharing.

I recently discovered it broke my recenlty added history support. That
is when I extended your script to support history tokens. Now it also
supports history tokens.

var currLocation = $wnd.location.toString();
 var noHistoryCurrLocArray =
currLocation.split("#");
 var noHistoryCurrLoc =
noHistoryCurrLocArray[0];
 var historyToken = noHistoryCurrLocArray
[1];
 var locArray=noHistoryCurrLoc.split("?");
 var newHref = locArray[0]+"?
locale="+newLocale;

 // alert('currLocation'+currLocation);
 // alert
('noHistoryCurrLocArray'+noHistoryCurrLocArray);
 // alert
('noHistoryCurrLoc'+noHistoryCurrLoc);
 // alert('historyToken'+historyToken);
 // alert('locArray'+locArray);
 // alert('newHref'+newHref);

 $wnd.location.href=newHref
+'#'+historyToken;


On 14 mei, 14:13, Bhavik  wrote:
> Hello Friends,
>
> I too recently had the same problem as yours. My requirement was a
> user can change the language on his wish from the ComboBox.
>
> So the solution I did with is I used JSNI (JavaScript Native
> Interface). - Javascript to be written into Java file.
>
> I put a combox. and on its "onSelect()" method in Listener Method of
> ComboBox, I get the value like "en_US" or "fr_FR" like this
>
> Then I created an innerclass and created a JSNI method named
> changeLocale like :
>
> class Locale
> {
>                 private native void changeLocale(String newLocale)/*-{
>
>                 //alert("Language changed to : "+newLocale);
>
>                 var currLocation = $wnd.location.toString();
>                 //alert("currLocation : "+currLocation);
>
>                 var noHistoryCurrLocArray = currLocation.split("#");
>                 //alert("noHistoryCurrLocArray: "+noHistoryCurrLocArray);
>
>                 var noHistoryCurrLoc = noHistoryCurrLocArray[0];
>                 //alert("noHistoryCurrLoc : "+noHistoryCurrLoc);
>
>                 var locArray = noHistoryCurrLoc.split("?");
>                 //alert("locArray : "+locArray);
>                 $wnd.location.href = locArray[0]+"?locale="+newLocale;  //$wnd
>                 }-*/;
>         }
>
> Now in onSelect() method of Combobox create an instance of Locale and
> then call the changeLocale() native method.
>
> Good Luck. This will work as I did 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: Is it not possible to include a Serialized bean object as a variable in another Serialized Bean..??

2009-06-16 Thread Jim

Change Department(){}  to public Department(){}

Jim
http://www.gwtorm.com - GWT ORM
http://code.google.com/p/dreamsource-orm/

On Jun 16, 7:10 am, Raul  wrote:
> Hello all,
>
> I have two beans as follows:
> -
> public class employee implements IsSerializable{
>
>         int id;
>         String name;
>         Department department;
>
>         public employee(){}
>         public employee (int id, String name, Department dept){
>                 setId(id);
>                 setName(name);
>                 setDepartment(dept);
>         }
>
>         public void setId(int id){this.id=id;}
>         public int getId(){return this.id;}
>
>         public void setName(String name){this.name=name;}
>         public String getName(){return this.name;}
>
>         public void setDepartment(Department dept){this.department=dept;}
>         public Department getDepartment(){return this.department;}
>
> }
>
> --
> public class Department implements IsSerializable{
>         int dept_id;
>         String name;
>
>         Department(){}
>         public Department(int id, String name, String status){
>                 setDept_id(id);
>                 setName(name);
>         }
>
>         public void setDept_id(int dept_id){this.dept_id=dept_id;}
>         public int getDept_id(){return this.dept_id;}
>
>         public void setName(String name){this.name=name;}
>         public String getName(){return this.name;}
>
> }
>
> And when I try to use a Grid to hold Employee records I am having
> Error message like:
>
> SEVERE: 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.seriali­zeWithCustomSerializer
> (ServerSerializationStreamWriter.java:696)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali­zeImpl
> (ServerSerializationStreamWriter.java:659)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali­ze
> (ServerSerializationStreamWriter.java:593)
> .
> .
> .
> ..
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali­zeWithCustomSerializer
> (ServerSerializationStreamWriter.java:678)
>         ... 24 more
>
> Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.data.employee.Department_$$_javassist_0' was not included in the
> set of types which can be serialized by this SerializationPolicy or
> its Class object could not be loaded. For security purposes, this type
> will not be serialized.
>         at
> com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSer­ialize
> (StandardSerializationPolicy.java:83)
>         at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali­ze
> (ServerSerializationStreamWriter.java:591)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write­Object
> (AbstractSerializationStreamWriter.java:129)
>         at
> com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSeriali­zerBase.serialize
> (Collection_CustomFieldSerializerBase.java:43)
>         at
> com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializ­er.serialize
> (ArrayList_CustomFieldSerializer.java:36)
>         ... 29 more
>
> What I am guessing as the reason for this error is - it may due to
> using a Serialised object variable(Department) inside another
> Serialized object bean (Employee).
>
> I am not sure 
> need help.
>
> Kindly put some suggestions, how can I overcome this issue...!!
>
> Also doesn't GWT allow a Serialized bean object variable in another
> serialized Bean class..??
>
> your kind suggestions will be highly appreciable..
>
> Raul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: is there a way to getText of all fields in an application?

2009-06-16 Thread zujee

Thanks Jim for ur valuable info. I will try that. BTW  how can i find
the counts of child widgets that are embedded in the
container?


On Jun 16, 5:14 pm, Jim  wrote:
> You may try the following:
>
> 1. find the container such as Panel for all text fields.
> 2. find the counts of child widgets that are embedded in the
> container.
> 3.   StringBuilder sb = new StringBuilder();
>       for (int i=0; i          Widget widget = container.getWidget(i);
>          if (widget instanceof TextBox) {
>               TextBox tb = (TextBox)widget;
>              sb.append(tb.getText());
>          }
>      }
>
> Jimhttp://www.gwtorm.com- GWT ORMhttp://code.google.com/p/dreamsource-orm/
>
> On Jun 16, 1:50 am, zujee  wrote:
>
>
>
> > Hi all,
> > I want to getText of all fields in a page and want to setText with
> > another. Please help me how can I do that, rather than manually
> > getting the text. Exampl code might help me more.
>
> > thanks in advance
> > zuje- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Thinking about learning GWT

2009-06-16 Thread wouter

I have a real life application with GWT - GXT client, PHP server
scripts, a MySQL database and JSON objects for data exchange. The host
is a standard web host. Works all right but there are some
considerations :
- (in my case) security is weak as I don't use SSL
- you have to realize you're writing java but the result is javascript
which has implications for eg memory management
- be aware that data exchange is asynchronous

I looked into google app engine but decided to keep my architecture.
Mainly because I have some doubts about the direct datastore access
possibilities in app engine. I often need to execute non - standard
queries on the database. But I might be missing something of course ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: is there a way to getText of all fields in an application?

2009-06-16 Thread Jim

You may try the following:

1. find the container such as Panel for all text fields.
2. find the counts of child widgets that are embedded in the
container.
3.   StringBuilder sb = new StringBuilder();
  for (int i=0; ihttp://www.gwtorm.com - GWT ORM
http://code.google.com/p/dreamsource-orm/


On Jun 16, 1:50 am, zujee  wrote:
> Hi all,
> I want to getText of all fields in a page and want to setText with
> another. Please help me how can I do that, rather than manually
> getting the text. Exampl code might help me more.
>
> thanks in advance
> zuje
--~--~-~--~~~---~--~~
You received 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: MVC question

2009-06-16 Thread Ed

Owww btw:
My self I use all kind of MVC/MVP patterns and mixtures of it.
It's not so important what the exact name is, as long as you know very
well what you are doing. What I mean is that: with the articles on
internet, like the ones from M. Fowler you have a nice luggage that
helps you to be creative and compose your own version of any pattern.

Don't forget that the patters are just a good starting point and that
it can be hard (as in my situation) to fit them as a glove, so don't
try to force them in your code, but just use your luggage and a piece
of your brains ;)...

Note: MVC and MVP are terms that are hard to use as nobody really
knows exactly what they mean these days as everybody have give their
own explanation to it..
Nowedays they present groups of possible patterns (their accents)
which you can find in Martin Fowler articles.
For example: the original idea's of MVC doesn't define anything about
the Observer pattern that can be used to inform others, but still
people often use it... But it's not always the best solution like
Andigo mentions...

-- Ed
--~--~-~--~~~---~--~~
You received 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: MVC question

2009-06-16 Thread Ed

Just my 50 cents,

Martin fowler (as always) gives a nice overview of the different
techniques as MVC, MVP and all their accents, and they background.
Start here:
http://www.martinfowler.com/eaaDev/OrganizingPresentations.html

There you also find arguments for what to use and when to use it.

According to martin fowler, GWT follows the Autonomous View pattern.

It helped me a lot.
Cheers,
Ed
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Is it not possible to include a Serialized bean object as a variable in another Serialized Bean..??

2009-06-16 Thread Raul

Hello all,

I have two beans as follows:
-
public class employee implements IsSerializable{

int id;
String name;
Department department;

public employee(){}
public employee (int id, String name, Department dept){
setId(id);
setName(name);
setDepartment(dept);
}

public void setId(int id){this.id=id;}
public int getId(){return this.id;}

public void setName(String name){this.name=name;}
public String getName(){return this.name;}

public void setDepartment(Department dept){this.department=dept;}
public Department getDepartment(){return this.department;}

}
--
public class Department implements IsSerializable{
int dept_id;
String name;

Department(){}
public Department(int id, String name, String status){
setDept_id(id);
setName(name);
}

public void setDept_id(int dept_id){this.dept_id=dept_id;}
public int getDept_id(){return this.dept_id;}

public void setName(String name){this.name=name;}
public String getName(){return this.name;}

}


And when I try to use a Grid to hold Employee records I am having
Error message like:

SEVERE: 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)
.
.
.
..
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
(ServerSerializationStreamWriter.java:678)
... 24 more


Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
'com.data.employee.Department_$$_javassist_0' was not included in the
set of types which can be serialized by this SerializationPolicy or
its Class object could not be loaded. For security purposes, this type
will not be serialized.
at
com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
(StandardSerializationPolicy.java:83)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
(ServerSerializationStreamWriter.java:591)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
(AbstractSerializationStreamWriter.java:129)
at
com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize
(Collection_CustomFieldSerializerBase.java:43)
at
com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize
(ArrayList_CustomFieldSerializer.java:36)
... 29 more



What I am guessing as the reason for this error is - it may due to
using a Serialised object variable(Department) inside another
Serialized object bean (Employee).

I am not sure 
need help.


Kindly put some suggestions, how can I overcome this issue...!!


Also doesn't GWT allow a Serialized bean object variable in another
serialized Bean class..??


your kind suggestions will be highly appreciable..

Raul




--~--~-~--~~~---~--~~
You received 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: Compiled version of 2.0

2009-06-16 Thread maku

you don't need a c/c++ compiler to build the trunk.

you have to check out the trunk and the tools and start the ant build.
that's all

regards
martin

On Jun 16, 7:49 am, Ramas  wrote:
> Hello,
>
> I'd like to try 2.0, to help and fill the bugs, however, I'm on Win
> machine, without C/C++ compiler (for required tools) and cannot build
> the trunk myself. Could trunk be auto-build each day and put in some
> repository, too ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



reading from files other than english contains unwanted squares

2009-06-16 Thread zujee

Hi All,
I have some files which contains english, french and japanese.
When I try to read file from server and try to poup in client side ,
it seems some unwanted squres in between of each line.

I read the file in serverside like
private String readFile(String fileName)
{
try
{
String contents = new String("".getBytes("UTF-8"), "UTF-8");

FileInputStream fstream = new FileInputStream(fileName);
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new
InputStreamReader(in));
String strLine = new String("".getBytes("UTF-8"),
"UTF-8");

// Read File Line By Line
while ((strLine = br.readLine()) != null)
{
contents += strLine + '\n';
}
// Close the input stream
in.close();
return contents;
}
catch (Exception e)
{// Catch exception if any
e.printStackTrace();
return null;
}


}


In client side i tried to popup the message through asynchrmous call.

What might be the issue
Please help
thanks
zuje
--~--~-~--~~~---~--~~
You received 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: MVC question

2009-06-16 Thread Francois Wauquier

Ian Bambury said
Having said that, getting data you may not need just so you can
display it
if required is not (generally) a good idea in an Ajax app. Although
sometimes it might be :-)

Adligo said
I think it would be fine to have your Composite(I think u called this
a flex table) implement HasSelectionHandlers and show a dialog with
the details, as this is all with in the scope of your Component.

MVC give advice to place all behavior in Controller.
I think it is ok to use 'intelligent' views EXCEPT IF:
- this behavior needs new datas, in this case it must pass by model.
- this behavior will have to be reused in an another view, which will
give code duplication, in this case it must use a controller.

Another simple definition of mvc could be : have a clear separation of
concerns to avoid code duplication.

Maybe this framework could help you.
http://code.google.com/p/gwt-mvc/

François Wauquier (gwt-mvc member)

--~--~-~--~~~---~--~~
You received 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: Thinking about learning GWT

2009-06-16 Thread Kwhit

But I would seriously look at using Google app spot. Deploying is easy
and unless you've got a very successful application on your hands,
it's probably for free.

On Jun 16, 7:03 am, tedpottel  wrote:
> Hi,
> I'm thinking about using GWT.  Quastion,
> will GWT run ok on my current web hosting service?  Since it does not
> support jsp, I'm assuming GWT will work, except for doing rpc?
> - Ted
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can I add a MouseOutHandler to a FlexTable cell?

2009-06-16 Thread Ravi

How to find out the row number on which mouseEvent has occured(in
Kelo's example)???

On Jun 13, 2:19 am, Kelo  wrote:
> Hi Eduardo,
>
>      Here's your solution:
>
> public class BocaJrsTable extends FlexTable implements
> HasMouseOutHandlers {
>
>         private HandlerManager manager = new HandlerManager(this);
>
>         public BocaJrsTable(){
>                 super();
>                 addDomHandler(new MouseOutHandler() {
>                         @Override
>                         public void onMouseOut(MouseOutEvent event) {
>                                 fireEvent(event);
>                         }
>                 }, MouseOutEvent.getType());
>
>         }
>
>         @Override
>         public HandlerRegistration addMouseOutHandler(MouseOutHandler
> handler) {
>                 return manager.addHandler(MouseOutEvent.getType(), handler);
>         }
>
>         @Override
>         public void fireEvent(GwtEvent event) {
>                 manager.fireEvent(event);
>         }
>
> }
>
> Good luck !
>
> On Jun 12, 5:40 pm, Eduardo Nunes  wrote:
>
> > I already tried it, but it didn't work. I found a solution, but a very ugly 
> > one:
>
> >     private class FlexTableTd extends UIObject implements 
> > HasMouseOutHandlers,
> >             HasMouseOverHandlers, EventListener {
>
> >         public FlexTableTd(Element element) {
> >             this.setElement(element);
> >             DOM.setEventListener(this.getElement(), this);
> >         }
>
> >         public HandlerRegistration addMouseOutHandler(MouseOutHandler 
> > handler) {
> >             this.sinkEvents(Event.ONMOUSEOUT);
> >             return
> > ensureHandlers().addHandler(MouseOutEvent.getType(), handler);
> >         }
>
> >         public HandlerRegistration
> > addMouseOverHandler(MouseOverHandler handler) {
> >             this.sinkEvents(Event.ONMOUSEOVER);
> >             return
> > ensureHandlers().addHandler(MouseOverEvent.getType(), handler);
> >         }
>
> >         public void fireEvent(GwtEvent event) {
> >             ensureHandlers().fireEvent(event);
> >         }
>
> >         public void onBrowserEvent(Event event) {
> >             switch (DOM.eventGetType(event)) {
> >                 case Event.ONMOUSEOVER:
> >                 case Event.ONMOUSEOUT:
> >                     Element related = event.getRelatedTarget();
> >                     if (related != null && 
> > getElement().isOrHasChild(related)) {
> >                         return;
> >                     }
> >                     break;
> >             }
> >             DomEvent.fireNativeEvent(event, this, this.getElement());
> >         }
> >         private HandlerManager handlerManager;
>
> >         HandlerManager ensureHandlers() {
> >             return handlerManager == null ? handlerManager = new
> > HandlerManager(this)
> >                     : handlerManager;
> >         }
> >     }
>
> > On Fri, Jun 12, 2009 at 4:46 PM, matthew jones wrote:
>
> > > Try this instead.
>
> > > addMouseOverHandler(MouseOverHandler handler) {
> > >            return addDomHandler(handler, MouseOverEvent.getType());
> > >        }
>
> > > On Jun 12, 12:52 pm, Eduardo Nunes  wrote:
> > >> Well, the subject says everything, I would like to know how can I add
> > >> a MouseOutHandler to a FlexTable cell. I tried a lot of things but
> > >> none of them with success. I tried a wrap class:
>
> > >>     private class FlexTableTd extends Widget implements 
> > >> HasMouseOutHandlers,
> > >>             HasMouseOverHandlers {
>
> > >>         public FlexTableTd(Element element) {
> > >>             setElement(element);
> > >>         }
>
> > >>         public HandlerRegistration addMouseOutHandler(MouseOutHandler 
> > >> handler) {
> > >>             return addHandler(handler, MouseOutEvent.getType());
> > >>         }
>
> > >>         public HandlerRegistration
> > >> addMouseOverHandler(MouseOverHandler handler) {
> > >>             return addHandler(handler, MouseOverEvent.getType());
> > >>         }
> > >>     }
>
> > >> and I tried
>
> > >> FlexTableTd td = new 
> > >> FlexTableTd(table.getFlexCellFormatter().getElement(0, 0));
> > >> td.addMouseOverHandler(...);
>
> > >> but it doesn't work.
>
> > >> --
> > >> Eduardo S. Nuneshttp://e-nunes.com.br
>
> > --
> > Eduardo S. Nuneshttp://e-nunes.com.br
--~--~-~--~~~---~--~~
You received 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: Thinking about learning GWT

2009-06-16 Thread Paul Robinson

Yes it will. If you have no server communication, then you're just
serving up regular files as far as the hosting is concerned. If you need
server communication, rpc isn't the only option. For example, most
hosting services support php. Search the archives for help on php and
gwt and RequestBuilder.

tedpottel wrote:
> Hi,
> I'm thinking about using GWT.  Quastion,
> will GWT run ok on my current web hosting service?  Since it does not
> support jsp, I'm assuming GWT will work, except for doing rpc?
> - Ted
>
> >
>
>   

--~--~-~--~~~---~--~~
You received 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: Thinking about learning GWT

2009-06-16 Thread Shawn Brown

I bet it will.

I deployed a GWT app to appengine before it had java support and it
worked fine there.  No rpc though like you say ...

Shawn

On Tue, Jun 16, 2009 at 2:03 PM, tedpottel wrote:
>
> Hi,
> I'm thinking about using GWT.  Quastion,
> will GWT run ok on my current web hosting service?  Since it does not
> support jsp, I'm assuming GWT will work, except for doing rpc?
> - Ted
>
> >
>

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



gwt1.6 sample dynamic table

2009-06-16 Thread asianCoolz

any sample on "sorting" for dynamic table. the original sample doesn't
come with sorting
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Can't find the main class

2009-06-16 Thread newToThis

This is the error I'm getting: http://clowkun.com/storage/na/

I have the newest version of Eclipse, just installed the latest GWT
plugin and SDK. I have also installed the latest Java SDK. Just
started up the StockWatcher basic tutorial and even tried the
Guestbook one and they both give me this message. There are no .class
files in the Package Explorer. How can I fix 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
-~--~~~~--~~--~--~---