Re: Error in RPC how to work around

2009-12-31 Thread Anoop John
Hi
Make Sure your servlet mapping in web.xml is like this

 
  greetServlet
  /GetDbData/GetDBdata
 

If you are using Eclipse you are not required to create the
servlets.It will automatically create all things. Here i see u have
changed the Relative Path to "GetDBdata".
 Defaultly it may be "greet".  The same modification should apply to
.

And make sure the servlet class specified is correct.
Eg:

 
  greetServlet
  urpackage.GetDBdata
 


On Jan 1, 4:20 am, Sripathi Krishnan 
wrote:
>    1. Override the following method in GetDbDataImpl.java, and log the
>    exception.
>    protected void doUnexpectedFailure(Throwable e)
>    This should tell you what failed on the server.
>    2. Double check that you haven't enabled Google App Engine, its a setting
>    in eclipse. GAE doesn't allow you to work with databases.
>
> --Sri
>
> 2009/12/31 Abhay Singh 
>
>
>
> > Hi All,
>
> > I am new to GWT, i have been trying to make db connection so that my i
> > can refresh client with latest data.
> > I have gone through basics of this, but unable to make it working..
> > Here is code i am useing
> > # Server Side 
> >    GetDbDataImpl.java
> > public class GetDbDataImpl extends RemoteServiceServlet implements
> > GetDbDataService {
>
> >        public String[] getLocations() {
> >                String[] location = null;
> >                int ix = 0;
>
> >                String query = "select ge_cntry from mst_geo where ge_zone
> > ='AFRICA';";
> >                System.out.println("Query="+query);
> >                try {
> >                    Connection conn = DBUtils.getConn();
> >                    Statement select = (Statement) conn.createStatement();
> >                    ResultSet result = (ResultSet)
> > select.executeQuery(query);
> >                    while (result.next()) {
> >                        System.out.println("Result="+result.getString(1));
> >                        location[ix++] = result.getString(1);
> >                    }
> >                    select.close();
> >                    result.close();
> >                    conn.close();
> >                } catch(SQLException e) {
> >                        System.err.println("Mysql Statement Error: " +
> > query);
> >                        e.printStackTrace();
> >                }
> >                return location;
> >        }
> > }
>
> > ## Client Side code #
> > GetDbDataService.java
> > @RemoteServiceRelativePath("GetDBdata")
> > public interface GetDbDataService extends RemoteService {
>
> >        String[] getLocations();
> > }
>
> > GetDbDataServiceAsync.java
> > public interface GetDbDataServiceAsync {
> >        void getLocations(AsyncCallback callback);
> > }
>
> > // Call of fuction that will get data from db and reload my list box
>
> > private void getLocationslist(final ListBox multiBox) {
> >        GetDbDataServiceAsync getDBdatasvc = GWT.create
> > (GetDbDataService.class);
> >        AsyncCallback callback = new AsyncCallback() {
>
> >                public void onFailure(Throwable caught) {
> >                        System.out.println("Call Failed");
> >                        multiBox.addItem("Call Failed");
> >                }
>
> >                public void onSuccess(String[] listdata) {
> >                        System.out.println("Call Successed");
> >                        for(int iz=0; iz >                                multiBox.addItem(listdata[iz]);
> >                        }
> >                }
> >        };
> > getDBdatasvc.getLocations(callback);
> > }
>
> > Error :- The function callback goes to "onFailure" function which
> > means RPC is failed, but i don't know why...
>
> > Please help me in this, have i done some thing wrong here?
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: "gwt-servlet.jar" being deleted at each Eclipse startup after upgrading to gwt 2.0

2009-12-31 Thread Jeff Schnitzer
I have this exact same problem... it's quite annoying.

It also sometimes happens with GAE jars.  Every time I restart Eclipse
I have to go through my projects and revert any deleted jars.

Jeff

On Wed, Dec 30, 2009 at 5:53 PM, itwip.81  wrote:
> Dear Sir/Madam,
>
> I have encountered a problem after upgrading from GWT 1.7 to 2.0. I
> did uninstall all of the previous GWT SDKs, AppEngine and plugin
> before I install the new 2.0 plugin. I am using Subversion/subclipse
> for version control in our eclipse project. However, the "gwt-
> servlet.jar" has been marked as being deleted (according to subversion
> - red cross) every time I start up eclipse since I upgrade to gwt 2.0.
> So, now i will need to revert the deletion every time I reopen the
> project before commiting anything. Have anyone experience this before?
> Does anyone know the soultion to solve this annoying problem.
>
> PS: It seems like GWT 2.0 plugin is trying to replace the 2.0 gwt-
> servlet.jar with any existing gwt-servlet.jar in our project folder
> after the upgrade. But it is wrong to repeat this process everytime i
> reopen the project.
>
> Best regards,
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: New layouts not playing nicely with Maps

2009-12-31 Thread Jeff Schnitzer
Sorry about forgetting this thread... but I solved the problem for
Maps v3 in a slightly different way.  BTW, I created a (very crude at
the moment) project for a Maps v3 GWT wrapper here:

http://code.google.com/p/gwt-maps3/

My solution was to forceLayout() recursively on all the parent panels like this:

http://code.google.com/p/gwt-maps3/source/browse/trunk/src/com/googlecode/maps3/client/MapWidget.java

The maps v3 wrapper is really sparse but it loads in the blink of an
eye and works tolerably on mobile browsers.

Jeff

On Thu, Dec 31, 2009 at 5:04 PM, Dave  wrote:
> I solved the problem by using info gained from this site
> http://googlegeodevelopers.blogspot.com/2009/01/google-maps-api-library-for-gwt.html.
> This is a great help. On this page, to the left of the Google Maplet:
> Click on "Source Code". Then click on the "Full Source" hyperlink.
> Then Click on "CLA Designer". There are various files will be found
> here. The important file to view is "MapsBlogDec08.java".
>
> Jones
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: New layouts not playing nicely with Maps

2009-12-31 Thread Dave
I solved the problem by using info gained from this site
http://googlegeodevelopers.blogspot.com/2009/01/google-maps-api-library-for-gwt.html.
This is a great help. On this page, to the left of the Google Maplet:
Click on "Source Code". Then click on the "Full Source" hyperlink.
Then Click on "CLA Designer". There are various files will be found
here. The important file to view is "MapsBlogDec08.java".

Jones

--

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




Re: MVP Article... Source Code?

2009-12-31 Thread Daniel Simons
I would be interested to know, for those that have studied the Hupa Project,
and now the Contacts Project, what do you think is the more appropriate way
of handling the Back/Forward browser button actions.  Both methods seem to
have there own flaws, for instance, as a project gets larger, the method in
the Contacts Project of AppController handling value changes could quickly
grow to an unmanageable level.  On the other hand, the design used in the
Hupa Project where each presenter has an onPlaceRequest(PlaceRequest
request) method, limits the History token creation to the Presenter.bind()
method.

Thanks,
Daniel S

On Thu, Dec 31, 2009 at 4:28 PM, Sripathi Krishnan <
sripathi.krish...@gmail.com> wrote:

> Chris,
> It would be great if you could put up something that deals with UiBinder *in
> context of* MVP. Specifically, whats the recommended way to use the
> @UiHandler tag?
>
> --Sri
>
> 2009/12/31 Chris Ramsdale 
>
> While I see that someone has already found it, I just wanted to let
>> everyone know that it's officially there.
>>
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>
>> We're looking to put together parts 2 and 3 shortly. So far I have UI
>> Binder and Code Splitting integration as topics of interest. Let us know
>> what else would be of help.
>>
>> - Chris
>>
>> On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:
>>
>>> I really like this article:
>>>
>>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>>
>>> However, it's almost useless without the entire source package. Are
>>> there any plans to post the source code?
>>>
>>> Thanks,
>>>
>>> JP
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Google 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.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: Error in RPC how to work around

2009-12-31 Thread Sripathi Krishnan
   1. Override the following method in GetDbDataImpl.java, and log the
   exception.
   protected void doUnexpectedFailure(Throwable e)
   This should tell you what failed on the server.
   2. Double check that you haven't enabled Google App Engine, its a setting
   in eclipse. GAE doesn't allow you to work with databases.


--Sri


2009/12/31 Abhay Singh 

> Hi All,
>
> I am new to GWT, i have been trying to make db connection so that my i
> can refresh client with latest data.
> I have gone through basics of this, but unable to make it working..
> Here is code i am useing
> # Server Side 
>GetDbDataImpl.java
> public class GetDbDataImpl extends RemoteServiceServlet implements
> GetDbDataService {
>
>public String[] getLocations() {
>String[] location = null;
>int ix = 0;
>
>String query = "select ge_cntry from mst_geo where ge_zone
> ='AFRICA';";
>System.out.println("Query="+query);
>try {
>Connection conn = DBUtils.getConn();
>Statement select = (Statement) conn.createStatement();
>ResultSet result = (ResultSet)
> select.executeQuery(query);
>while (result.next()) {
>System.out.println("Result="+result.getString(1));
>location[ix++] = result.getString(1);
>}
>select.close();
>result.close();
>conn.close();
>} catch(SQLException e) {
>System.err.println("Mysql Statement Error: " +
> query);
>e.printStackTrace();
>}
>return location;
>}
> }
>
> ## Client Side code #
> GetDbDataService.java
> @RemoteServiceRelativePath("GetDBdata")
> public interface GetDbDataService extends RemoteService {
>
>String[] getLocations();
> }
>
> GetDbDataServiceAsync.java
> public interface GetDbDataServiceAsync {
>void getLocations(AsyncCallback callback);
> }
>
> // Call of fuction that will get data from db and reload my list box
>
> private void getLocationslist(final ListBox multiBox) {
>GetDbDataServiceAsync getDBdatasvc = GWT.create
> (GetDbDataService.class);
>AsyncCallback callback = new AsyncCallback() {
>
>public void onFailure(Throwable caught) {
>System.out.println("Call Failed");
>multiBox.addItem("Call Failed");
>}
>
>public void onSuccess(String[] listdata) {
>System.out.println("Call Successed");
>for(int iz=0; izmultiBox.addItem(listdata[iz]);
>}
>}
>};
> getDBdatasvc.getLocations(callback);
> }
>
> Error :- The function callback goes to "onFailure" function which
> means RPC is failed, but i don't know why...
>
> Please help me in this, have i done some thing wrong here?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Error in JDBC call

2009-12-31 Thread Sripathi Krishnan
You have probably enabled Google App Engine for your project. Disable it
(its a setting in eclipse), and things should run fine.

You could also be missing the mysql driver jar files in your classpath, but
I assume you have taken care of that.

--Sri


2009/12/31 Abhay Singh 

> Hi
>
> I am trying to connect Mysql database but getting this error(DB part
> is in server side code, which get invoked through RPC)
>
> The server is running at http://localhost:8080/
> Call Failed
> Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: Nested in javax.servlet.ServletException: init:
> java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
>at java.lang.Class.getDeclaredConstructors0(Native Method)
>at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>at java.lang.Class.getConstructor0(Class.java:2671)
>at java.lang.Class.newInstance0(Class.java:321)
>at java.lang.Class.newInstance(Class.java:303)
>at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>at org.mortbay.jetty.Server.handle(Server.java:313)
>at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: /sample/greet
> java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
>at java.lang.Class.getDeclaredConstructors0(Native Method)
>at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>at java.lang.Class.getConstructor0(Class.java:2671)
>at java.lang.Class.newInstance0(Class.java:321)
>at java.lang.Class.newInstance(Class.java:303)
>at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
>at org.mortbay.jetty.servlet.ServletHolder.getServlet
> (ServletHolder.java:339)
>at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 463)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>at org.mortbay.jetty.webapp.WebAppContext.handle(WebApp

Re: JSON-P request for REST Services

2009-12-31 Thread Ric66
I have a GWT client communicating with a Sesame rdf store on a remote
server (using a REST protocol), so I need to bypass the same-origin
policy.

It works sending GET requests (size limited) with JSONP to a server
script that formats and redirects the requests to the Sesame server,
get the response and returns it to the client JSONed and enclosed in a
callback function.

I have tried restlet but I get a SOP exception:
org.restlet.gwt.resource.ResourceException: The URL http://... is
invalid or violates the same-origin security restriction
at org.restlet.gwt.resource.ClientResource.get(ClientResource.java:
351)

Thanks for any solution.

Ric

On Dec 29, 7:24 pm, Pablo Martin Gore  wrote:
>  we have been implementing our server layer with restlet(REST
> implementation).
> restlet has one implementation to use with GWT and is so easy , and  you can
> tell what method you want to use.http://www.restlet.org/
>
> 2009/12/29 jpnet 
>
>
>
> > You can't. JSONP is a hack to allow cross-domain requests. AFAIK, it
> > will only work for GET requests.
>
> > -JP
>
> > On Dec 28, 7:11 am, Fabio  wrote:
> > >http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> > > This how-to is great but... what about POST-PUT-DELETE Restful
> > > requests?
> > > How can I change http method for 

Error in JDBC call

2009-12-31 Thread Abhay Singh
Hi

I am trying to connect Mysql database but getting this error(DB part
is in server side code, which get invoked through RPC)

The server is running at http://localhost:8080/
Call Failed
Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Nested in javax.servlet.ServletException: init:
java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Dec 31, 2009 7:07:16 AM com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: /sample/greet
java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
at org.mortbay.jetty.servlet.ServletHolder.getServlet
(ServletHolder.java:339)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
463)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:13

how to write a module

2009-12-31 Thread sudhi
Hi all,
   I am new to gwt. can anyone tell me how to write a module.as far i
know, i packaged the jar with following contents

com
  >test
   Module.gwt.xml
 >client
   Class1.java
   Class2.java
EntryClass.java
   in my other project i have imported this module and inherited the
module.in my project i have used Class1 and Class2.but while
running,it will not recognise Class1 and Class2.Module.gwt.xml
contains only entrypoint class.
do i need to add anything in .gwt.xml, so that other classes also
load.please explain with example

--

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




Learning GWT

2009-12-31 Thread André Mayer
Hello people,

I started learning GWT today, I'm a few time following the GWT's
getting started, but I'm having some doubts about how it works...

http://code.google.com/intl/pt-BR/webtoolkit/doc/1.6/tutorial/create.html

The example that comes with the project, works fine, but when I try to
create my own html page and my own class implementing EntryPoint it
doesnt work!! It's not clear to me how to link my html page with my
class...

I would appreciate suggestions and answers...

Att.
André Mayer

--

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




Error in RPC how to work around

2009-12-31 Thread Abhay Singh
Hi All,

I am new to GWT, i have been trying to make db connection so that my i
can refresh client with latest data.
I have gone through basics of this, but unable to make it working..
Here is code i am useing
# Server Side 
GetDbDataImpl.java
public class GetDbDataImpl extends RemoteServiceServlet implements
GetDbDataService {

public String[] getLocations() {
String[] location = null;
int ix = 0;

String query = "select ge_cntry from mst_geo where ge_zone
='AFRICA';";
System.out.println("Query="+query);
try {
Connection conn = DBUtils.getConn();
Statement select = (Statement) conn.createStatement();
ResultSet result = (ResultSet) select.executeQuery(query);
while (result.next()) {
System.out.println("Result="+result.getString(1));
location[ix++] = result.getString(1);
}
select.close();
result.close();
conn.close();
} catch(SQLException e) {
System.err.println("Mysql Statement Error: " + query);
e.printStackTrace();
}
return location;
}
}

## Client Side code #
GetDbDataService.java
@RemoteServiceRelativePath("GetDBdata")
public interface GetDbDataService extends RemoteService {

String[] getLocations();
}

GetDbDataServiceAsync.java
public interface GetDbDataServiceAsync {
void getLocations(AsyncCallback callback);
}

// Call of fuction that will get data from db and reload my list box

private void getLocationslist(final ListBox multiBox) {
GetDbDataServiceAsync getDBdatasvc = GWT.create
(GetDbDataService.class);
AsyncCallback callback = new AsyncCallback() {

public void onFailure(Throwable caught) {
System.out.println("Call Failed");
multiBox.addItem("Call Failed");
}

public void onSuccess(String[] listdata) {
System.out.println("Call Successed");
for(int iz=0; izhttp://groups.google.com/group/google-web-toolkit?hl=en.




"gwt-servlet.jar" being deleted at each Eclipse startup after upgrading to gwt 2.0

2009-12-31 Thread itwip.81
Dear Sir/Madam,

I have encountered a problem after upgrading from GWT 1.7 to 2.0. I
did uninstall all of the previous GWT SDKs, AppEngine and plugin
before I install the new 2.0 plugin. I am using Subversion/subclipse
for version control in our eclipse project. However, the "gwt-
servlet.jar" has been marked as being deleted (according to subversion
- red cross) every time I start up eclipse since I upgrade to gwt 2.0.
So, now i will need to revert the deletion every time I reopen the
project before commiting anything. Have anyone experience this before?
Does anyone know the soultion to solve this annoying problem.

PS: It seems like GWT 2.0 plugin is trying to replace the 2.0 gwt-
servlet.jar with any existing gwt-servlet.jar in our project folder
after the upgrade. But it is wrong to repeat this process everytime i
reopen the project.

Best regards,

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




Re: Validating ClientBundles ?

2009-12-31 Thread Rogério Valente
I changed the Google configuration on Eclipse (Windows / Preferences /
Google)  unchecking the "Notify me about updates" checkbox.
The problem doesn't back until now.

[]s,

Rogério.

On 28 dez, 13:23, Miguel Méndez  wrote:
> This is a bug.  Could you add a bug to the GWT issue
> trackerwith
> this information?  If you are able to, please provide some sample code
> that reproduces the problem.
>
> On Tue, Dec 22, 2009 at 12:07 PM, Carlos Aguayo 
> wrote:
>
>
>
>
>
> > Hi,
>
> > After upgrading the Eclipse plugin to GWT 2.0, whenever I import my
> > Eclipse projects, Eclipse crashes. After importing the projects, I see
> > multiple multiple (~12) jobs spawned called "Validating
> > ClientBundles", then it either shows a warning saying that it ran out
> > of memory or just closes.
>
> > When inspecting the Eclipse log, I found this:
> > 
> > !ENTRY org.eclipse.core.jobs 4 2 2009-12-22 11:07:17.178
> > !MESSAGE An internal error occurred during: "Refreshing workspace".
> > !STACK 0
> > java.lang.OutOfMemoryError: unable to create new native thread
> >        at java.lang.Thread.start0(Native Method)
> >        at java.lang.Thread.start(Thread.java:597)
> >        at org.eclipse.core.internal.jobs.WorkerPool.jobQueued
> > (WorkerPool.java:145)
> >        at
> > org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java:
> > 1001)
> >        at org.eclipse.core.internal.jobs.InternalJob.schedule
> > (InternalJob.java:391)
> >        at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:435)
> >        at
> > com.google.gdt.eclipse.core.BuilderUtilities.revalidateCompilationUnits
> > (BuilderUtilities.java:170)
> >        at
> > com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener
> > $1.visit(ClientBundleResourceChangeListener.java:154)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:68)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:79)
> >        at org.eclipse.core.internal.events.ResourceDelta.accept
> > (ResourceDelta.java:48)
> >        at
>
> > com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.visitResourceDelta
> > (ClientBundleResourceChangeListener.java:124)
> >        at
>
> > com.google.gwt.eclipse.core.clientbundle.ClientBundleResourceChangeListener­.resourceChanged
> > (ClientBundleResourceChangeListener.java:116)
> >        at org.eclipse.core.internal.events.NotificationManager$2.run
> > (NotificationManager.java:291)
> >        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> >        at org.eclipse.core.internal.events.NotificationManager.notify
> > (NotificationManager.java:285)
> >        at
> > org.eclipse.core.internal.events.NotificationManager.broadcastChanges
> > (NotificationManager.java:149)
> >        at org.eclipse.core.internal.resources.Workspace.broadcastPostChange
> > (Workspace.java:313)
> >        at org.eclipse.core.internal.resources.Workspace.endOperation
> > (Workspace.java:1022)
> >        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
> > (InternalWorkspaceJob.java:45)
> >        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> > ===
> > These are my JVM settings in eclipse.ini:
>
> > --launcher.XXMaxPermSize
> > 256m
> > -Xms256m
> > -Xmx1024m
> > -Xss1024k
>
> > Is there a way to turn off this validation upon importing the project.
> > Am I missing something or is this a bug?
>
> > Thanks,
> > Carlos
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Miguel- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

--

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

Re: gwt 2.0 jdo / jpa enhanced classes in App engine / Data Nucleus used for GWT-RPC calls to client side

2009-12-31 Thread marcelomos
hola he usado HIbernate + jPA con mysql y si tengo problemas de
serializacion con la version 2.0 gwt veo que persiste el problema asi
que sigo trabajando con la version 1.7 gwt, las librerias GILEAD
soportan solo la version 1.7 gwt.

estoy esperando la proxima version para la solucion de comunicacion
RPC.

saludos

On 31 dic, 08:37, GWTCurious  wrote:
> I guess I posted this question on the wrong day. :-) Has anybody the
> answer?

--

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




problemas con Hibernate y gilead no compatible con gwt 2.0

2009-12-31 Thread marcelomos
GRAVE: WebModule[/gwt20lab2hibernate]Exception while dispatching
incoming RPC call
java.lang.NoSuchMethodError:
com.google.gwt.user.server.rpc.RPCRequest.(Ljava/lang/reflect/
Method;[Ljava/lang/Object;Lcom/google/gwt/user/server/rpc/
SerializationPolicy;)V
at com.google.gwt.user.server.rpc.RPCCopy_GWT15.decodeRequest
(RPCCopy_GWT15.java:278)
at com.google.gwt.user.server.rpc.RPCCopy.decodeRequest
(RPCCopy.java:136)
at net.sf.gilead.gwt.PersistentRemoteService.processCall
(PersistentRemoteService.java:143)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
(RemoteServiceServlet.java:224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
847)
at org.apache.catalina.core.StandardWrapper.service
(StandardWrapper.java:1523)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:188)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
97)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke
(PESessionLockingStandardPipeline.java:85)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:185)
at org.apache.catalina.connector.CoyoteAdapter.doService
(CoyoteAdapter.java:332)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:233)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service
(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter
(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess
(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process
(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute
(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter
(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute
(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute
(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute
(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall
(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call
(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork
(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run
(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:619)

--

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




Re: Global resources in CSS

2009-12-31 Thread Jeff Gomez
Hi Pavel,

One bit of optimization you might consider is changing GlobalRes from
a concrete class to a CssResource and move the method definitions to a
style-sheet as in:

--- GlobalRes.java 
@ImportedWithPrefix("global")
public interface GlobalRes extends CssResource {
   String gap();
   String doubleGap();
   String mainColor();
}
--- GlobalRes.css 
@def gap 10px;
@def doubleGap 20px;
@def mainColor #e6dbcf;
- end code 

Then you can import GlobalRes into ControlPanel, sort of like this:

- ControlPanelResources.java -
public interface ControlPanelResources extends ClientBundle {

public interface ControlPanelStyle extends CssResource {
String body();
String header();
}

@Import(GlobalRes.class)
@Source("ControlPanel.css")
public ControlPanelStyle controlPanelStyle();
}

-- ControlPanel.css: --

body {
padding: value('global.gap');
}

.header {
background: value('global.mainColor');
margin-bottom: value('global.gap2');
}

-- end code 

Using CssResource constants inside UiBinder template style tags gets a
little nastier. As far as I know, you need to use those @eval
directives on local variables within the tag just like your example. I
dealt with same thing yesterday:
see:  http://code.google.com/p/google-web-toolkit/issues/detail?id=4420&sort=-id
see:  
http://groups.google.com/group/google-web-toolkit-contributors/t/ca91dbdeaa6f93e8

Hope this helps,
Jeff

--

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




SuggestBox with server side update and UrlFetch Service

2009-12-31 Thread Ajax-Gadgets
Hello,

I was wonder if anyone has implemented the SuggestBox with server side
update using the following code
http://groups.google.kg/group/google-web-toolkit/browse_thread/thread/56942afe0c404d86.
I updated the ItemSuggestionImpl.java below to retrieve my suggestion
box values using Url Fetch Service.  This works great in
the development environment but when I deploy it to
lensticker.appspot.com it no long returns item suggestions.  I would
suspect that it has something to do with Url Fetch I just don't know
what the issue is.

Thanks

Brian

public class ItemSuggestServiceImpl extends RemoteServiceServlet
implements ItemSuggestService {

private static final String startingURL = "http://d.yimg.com/
autoc.finance.yahoo.com/autoc?query=";
private static final String endingURL =
"&callback=YAHOO.Finance.SymbolSuggest.ssCallback";

public SuggestOracle.Response getSuggestions(SuggestOracle.Request
req) {

SuggestOracle.Response resp = new SuggestOracle.Response();

// Create a list to hold our suggestions (pre-set the length
to the limit specified by the request)
List suggestions = null;

if (req.getQuery().length() == 0) {
suggestions = new ArrayList(0);
}

try {

URLFetchService fetcher =
URLFetchServiceFactory.getURLFetchService();
URL url = new URL(String.format("%s%s%s", startingURL,
req.getQuery(), endingURL));


HTTPRequest fetchreq = new HTTPRequest(url);

HTTPResponse fetchresp = fetcher.fetch(fetchreq);

byte[] bytes = fetchresp.getContent();

   String line = new String(bytes);

line = line.replace("YAHOO.Finance.SymbolSuggest.ssCallback
(", "");
line = line.replace(")", "");

JSONObject json = new JSONObject(line);

String[] name = JSONObject.getNames(json);

json = json.getJSONObject(name[0]);

name = JSONObject.getNames(json);

JSONArray jArray = json.getJSONArray(name[1]);

suggestions = new ArrayList(jArray.length());

for(int i=0; i < jArray.length(); i++) {

   JSONObject j = jArray.getJSONObject(i);
   String sSymbol = j.getString("symbol");
   String sName = j.getString("name");
   String sExch = j.getString("exch");
   String sType = j.getString("type");
   String sTypeDisp = "";
   String sExchDisp = "";

   if ((sType.compareTo("S")) == 0)
   {
   sExchDisp = j.getString("exchDisp");
   }
   else
   {
  try {
sTypeDisp = j.getString("typeDisp");
  } catch (Exception se) {
  sTypeDisp = sType;
  }
   }

   String sDisplay = "";

   String format = "%1$-6s %2$-20s %3$-8s";

   if ((sType.compareTo("S")) == 0)
   {
   sDisplay = String.format(format, sSymbol, sName,
sExchDisp);
   }
   else {
   sDisplay = String.format(format, sSymbol, sName,
sTypeDisp + "-" + sExch);
   }

   suggestions.add(new ItemSuggestion(sDisplay, sSymbol));
}
   } catch (MalformedURLException e) {
//log.info(e.getMessage());
} catch (IOException ex2) {
//log.info(ex2.getMessage());
} catch (JSONException ex3) {
//log.info(ex3.getMessage());
}

// Now set the suggestions in the response
resp.setSuggestions(suggestions);

// Send the response back to the client
return resp;
}
}

--

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




No CSS Style with using StackLayoutPanel and TabLayoutPanel

2009-12-31 Thread GWTFan
Hi,
I'm quite new here in developing GWT applications. I'm trying to use
the new StackLayoutPanel and TabLayoutPanel from GWT 2.0. But when
viewing my Application there's no Style attribute attached to it.

So here are my questions:

Did I forget something or is this not implemented yet?
How can I get some useful CSS Styles for StackLayoutPanel and
TabLayoutPanel?

Every help is apreciated. Many thanks in advance

--

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




SuggestBox hides RootLayoutPanel and all its contents

2009-12-31 Thread Jorge

I'm running 2.0 with Eclipse, plus IE 7.

I created an application that uses UIBinder. The main object is a
DockLayoutPanel that is added to the  RootLayoutPanel, exactly like
the Mail sample for 2.0.

The Center container has a Widget that has a SuggestBox and some
TextBoxes, my problem is that when the pop-up of the SuggestBox is
shown, all the background goes white, and when its closed the form
goes back to normal (the dialog contains the correct suggestions, so
besides the visual problem, it's working fine)

Since I'm using UIBinder, I used @UiField(provided=true) and then
instantiated the SuggestBox in the constructor of my Widget, because
the constructor takes the Oracle.

If I go to the EntryPoint and instead of creating the RootLayoutPanel,
I add the Widget to RootPanel, works fine. Plus, this problem is not
present in FF 3.5.6

I replicated the same problem, adding a SuggestBox to the TopPanel on
the Mail sample.

I did the following:

In TopPanel.ui.xml, inside an existing Div, added



In TopPanel.java added

@UiField(provided=true) SuggestBox test;


  public TopPanel() {

  MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
  oracle.add("Dog");
  oracle.add("Cat");
  oracle.add("Bird");

  test = new SuggestBox(oracle);


  initWidget(binder.createAndBindUi(this));
  }

And that generates the problem.

Any ideas would be kindly appreciated
Thank You
Jorge

--

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




Re: How to use UIBinder

2009-12-31 Thread Wrenbjor
I wish someone @ Google or a well versed GWT dev could but together a
screen cast on UIBinder, I am so lost

On Dec 15, 10:33 am, Tristan  wrote:
> Aside from official docs I haven't seen much (and I've been looking
> because of Gin and UiBinder issues I've been having)
>
> If anyone is putting together a tutorial, it'd be great if you showed
> how to use GIN effectively in a non-trivial example (so, an injected
> view dependent on other injected views would be great!).
>
> On Dec 15, 2:13 am, Nian Zhang  wrote:
>
>
>
> > The UiBInder is diffcult to use, may be it's easy for the developers
> > who were familiar with it, but to the new one, iit's hard to start, so
> > is there anytutorialsabout this?
>
> > Thanks

--

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




Re: Hyperlink ClickHandler help

2009-12-31 Thread Vimm
I was also using Hyperlink.addClickHandler.  I'd simply like to wrap
an image in an  tag so that I have a clickable image (with the
correct cursor).  I can switch my Hyperlinks to Anchors but I see
ImageBundle is now deprecated too.  Unfortunately I see no equivalent
to AbstractImagePrototype.getHTML() in ClientBundle/ImageResource.
I've found I can wrap my ImageResource in an AbstractImagePrototype
but that sounds inefficient.  Is there a better way than this?

GWT 1.7:
Hyperlink myLink = new Hyperlink(myImageBundle.myImage().getHTML(),
true, "");

GWT 2.0:
Anchor myLink = new Anchor(AbstractImagePrototype.create
(myClientBundle.myImage()).getHTML(), true);

--

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




Get the real path of application

2009-12-31 Thread Esdras Dzul Mijangos
Hi, i have a problem, i need get the path of application, for ejample,
in jsf i can do it:

FacesContext context = FacesContext.getCurrentInstance();
ServletContext servletcont = (ServletContext)
context.getExternalContext().getContext();

public Class Classx{
   public void  someMethod(){
   servletcont.getRealPath("/");
  // this method return the path of application
 // i.e: /home/user/NetBeansProjects/Mercurio/build/web
   }
}

But in GWT, i don't know how do it. Thanks for you support.

--

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




Re: How to compile multiple modules independent of each other

2009-12-31 Thread Sripathi Krishnan
GWT was never meant to be used that way. If you want to share widgets, it
has to be done at compile time, not at runtime.

The gwt-exporter  project can help
you to some extent, you can have a look at it.

--Sri


2009/12/31 Ganesh 

> Hi All
>
> I am using GWT2.0. I want to create some client side widgets by
> extending GWT's widgets. These widgets will be deployed on my server &
> I will provide public links of js (.nocache.js) file of these widgets
> so that a user can include these in his application's html page & use
> them. I will deploy many of such widgets on my server. If a user wants
> to use more than one widget, he need to include js file of each widget
> in his html file. Each widget will have it's own module.
>
> Further my widgets can be dependent on each other. Suppose Widget1 is
> dependent on Widget2 & user wants to use Widget1, he needs to include
> js of both widgets (Widget1 & Widget2) in his html file.
>
> Now my problem is
> - How to compile my Widget1's module so that while compiling Widget1,
> it doesn't generate js for Widget2 as it will be provided to it at run
> time (as user will include Widget2's js file in his html file).
> - How Widget1 will be able to use Widget2 & it's method as GWT
> obfuscates all java code at compile time. I can't choose option for
> not obfuscating code due to size of js & security issues.
>
> Kindly also consider that I would like to compile Widget1 & Widget2
> separetly & a new version of Widget2 can be compiled at any time.
> After this compile, changes done in Widget2 shd reflect while it is
> being used through Widget1 without compiling Widget1 again.
>
> Any help/suggestion in this regard will be highly appreciable.
>
> Thanks in advance.
>
> Ganesh Bansal
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: To load js of some particular classes at run time on client side using "Code Splitting"

2009-12-31 Thread Sripathi Krishnan
If I understand you correctly, you have the following setup ...

class BaseClass{
}

class DerivedClass extends BaseClass {
}

public BaseClass someRPCMethod(String param1, String param2);

.. and only want to download the JS code for *DerivedClass* only when the
RPC call is made.

If that's what you are looking for - then I am afraid its not possible. GWT
will look at all classes that inherit from BaseClass and package them in the
js bundle corresponding to the code that actually uses the RPC service.
There isn't a way to escape it.

--Sri


2009/12/30 inder sharma 

> Hi all!
>
> I am developing an application in GWT 2.0 and using the code splitting
> feature of GWT2.0. I want to load js of some particular classes at run
> time on client side through code splitting(instead of loading complete
> js at once).These classes implements some interfaces and we uses these
> classes through interfaces at client side.
>
> The Objects of the classes are made at the server (as a reponse of RPC
> request from client)and I want to load the js of these classes when
> their Objects are transfered from server to client (at the time of
> deserialization of response Object on client).
>
> In normal scenario (without using code splitting) all the compiled js
> has been downloaded on client at once , but in our case I want that
> only that part of js (client code), which is essentially required to
> deserialize the response Object obtained via RPC call should be
> downloaded on client along with the response Object.
>
> Can any one give me some idea how I can acheive this requirement.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: AppController or PlaceManager

2009-12-31 Thread Sripathi Krishnan
http://code.google.com/webtoolkit/doc/latest/tutorial/projects/Contacts.zipcontains
the source code for the MVP tutorial.
--Sri


2010/1/1 Sripathi Krishnan 

> Sourcecode is now available.
>
> --Sri
>
>
> 2009/12/30 Abdullah Shaikh 
>
> Hey Thanks Prashant for the explanation ..
>>
>> But can you explain a bit more how does this onValueChange method gets
>> called .. as I am new to GWT I understood the article but I am confused
>> regarding AppController, if only they have provided the code it would have
>> been more good.
>>
>> Also any idea if PlaceManager does the same thing as in onValueChange of
>> AppController ?
>>
>> - Abdullah
>>
>>
>> On Wed, Dec 30, 2009 at 12:27 AM, Prashant Hegde <
>> prashant.he...@gmail.com> wrote:
>>
>>> I had the pleasure of reading the article as well.
>>>
>>> Although I was slightly disappointed that the source code was not shared
>>> fully in the article, the concept is nicely explained, and the code can be
>>> developed based on the snippets in the article.
>>>
>>> At a high level, the AppController is a class that contains code that
>>> does not belong the the view, model or the presenter. The version of the
>>> AppController that I have has the following:
>>>
>>> a) It implements ValueChangeHandler interface to act as a handler of
>>> history changed events.
>>> b) It accepts the RPC Service & the event bus as the constructor
>>> arguments to be able to pass on these objects to the presenters that it will
>>> instantiate.
>>> c) It has a go(HasWidgets) method which gets called by the module entry
>>> point class. This initiates everything in the app - such as firing the
>>> default history token(which in turn calls the onValueChange). I also have
>>> the code to add the AppController to the history as a listener in this
>>> function itself.
>>> d) Most important of it all - atleast the thing I liked most - is the
>>> onValueChange method. This method gets called whenever History stack
>>> changes. This allows you to manage history & view transitions in your app.
>>>
>>> For ex:
>>>
>>> public void onValueChange(ValueChangeEvent event) {
>>> String token = event.getValue();
>>> if(token!=null) {
>>>
>>> if(token.equals("registersmart")) {
>>> RegisterSmartPresenter presenter = new
>>> RegisterSmartPresenter(rpcService,eventBus,new RegisterSmartView());
>>> presenter.go(container);
>>> }else if(token.equals("userhome")) {
>>> UserHomePresenter presenter = new
>>> UserHomePresenter(rpcService,eventBus,new UserHomeView());
>>> presenter.go(container);
>>> }
>>>
>>> }
>>>
>>> }
>>>
>>> Hope this helps.
>>>
>>> Regards
>>>
>>>
>>> On Tue, Dec 29, 2009 at 11:29 PM, jpnet  wrote:
>>>
 I really liked the article, but it's useless without the source code.

 -JP

 On Dec 29, 7:55 am, Abdullah Shaikh 
 wrote:
 > Anyone ?
 >
 > On Tue, Dec 29, 2009 at 2:45 PM, Abdullah Shaikh <
 >
 > abdullah.shaik...@gmail.com> wrote:
 > > I went through
 > >
 http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur..
 .,
 > > I am confused, does AppController as mentioned in the article does
 the same
 > > that can be done by gwt-presenter's PlaceManager ?
 >
 > > If yes, should I go with AppController or PlaceManager ?
 >
 > > As I am new to GWT, I understood the gwt-presenter, but I couldn't
 get how
 > > the AppController as described in the above link works ?
 >
 > > Thanks,
 > >  Abdullah
 >
 >

 --

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



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

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit

Re: AppController or PlaceManager

2009-12-31 Thread Sripathi Krishnan
Sourcecode is now available.

--Sri


2009/12/30 Abdullah Shaikh 

> Hey Thanks Prashant for the explanation ..
>
> But can you explain a bit more how does this onValueChange method gets
> called .. as I am new to GWT I understood the article but I am confused
> regarding AppController, if only they have provided the code it would have
> been more good.
>
> Also any idea if PlaceManager does the same thing as in onValueChange of
> AppController ?
>
> - Abdullah
>
>
> On Wed, Dec 30, 2009 at 12:27 AM, Prashant Hegde  > wrote:
>
>> I had the pleasure of reading the article as well.
>>
>> Although I was slightly disappointed that the source code was not shared
>> fully in the article, the concept is nicely explained, and the code can be
>> developed based on the snippets in the article.
>>
>> At a high level, the AppController is a class that contains code that does
>> not belong the the view, model or the presenter. The version of the
>> AppController that I have has the following:
>>
>> a) It implements ValueChangeHandler interface to act as a handler of
>> history changed events.
>> b) It accepts the RPC Service & the event bus as the constructor arguments
>> to be able to pass on these objects to the presenters that it will
>> instantiate.
>> c) It has a go(HasWidgets) method which gets called by the module entry
>> point class. This initiates everything in the app - such as firing the
>> default history token(which in turn calls the onValueChange). I also have
>> the code to add the AppController to the history as a listener in this
>> function itself.
>> d) Most important of it all - atleast the thing I liked most - is the
>> onValueChange method. This method gets called whenever History stack
>> changes. This allows you to manage history & view transitions in your app.
>>
>> For ex:
>>
>> public void onValueChange(ValueChangeEvent event) {
>> String token = event.getValue();
>> if(token!=null) {
>>
>> if(token.equals("registersmart")) {
>> RegisterSmartPresenter presenter = new
>> RegisterSmartPresenter(rpcService,eventBus,new RegisterSmartView());
>> presenter.go(container);
>> }else if(token.equals("userhome")) {
>> UserHomePresenter presenter = new
>> UserHomePresenter(rpcService,eventBus,new UserHomeView());
>> presenter.go(container);
>> }
>>
>> }
>>
>> }
>>
>> Hope this helps.
>>
>> Regards
>>
>>
>> On Tue, Dec 29, 2009 at 11:29 PM, jpnet  wrote:
>>
>>> I really liked the article, but it's useless without the source code.
>>>
>>> -JP
>>>
>>> On Dec 29, 7:55 am, Abdullah Shaikh 
>>> wrote:
>>> > Anyone ?
>>> >
>>> > On Tue, Dec 29, 2009 at 2:45 PM, Abdullah Shaikh <
>>> >
>>> > abdullah.shaik...@gmail.com> wrote:
>>> > > I went through
>>> > >
>>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur..
>>> .,
>>> > > I am confused, does AppController as mentioned in the article does
>>> the same
>>> > > that can be done by gwt-presenter's PlaceManager ?
>>> >
>>> > > If yes, should I go with AppController or PlaceManager ?
>>> >
>>> > > As I am new to GWT, I understood the gwt-presenter, but I couldn't
>>> get how
>>> > > the AppController as described in the above link works ?
>>> >
>>> > > Thanks,
>>> > >  Abdullah
>>> >
>>> >
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Google 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.
>>>
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread Murat Doner
 John,
 We have the same idea.
 Thanks for your bright comment.

On Thu, Dec 31, 2009 at 7:44 PM, John Armstrong  wrote:

> We use their tools for both Swing and GWT/GXT dev and find them very
> stable and very productive. At $79 per developer seat it is much
> cheaper then hand rolling UI's or dealing with some of the free tools
> that don't have the support we need.
>
> John-
>
> On Dec 31, 12:44 am, Murat Doner  wrote:
> >   We have tried *GWT Designer* from
> > Instantiations
> >
> >But the tool is not stable enough also it is not free and "open
> > source"...
> >What are the alternatives you can suggest us to use?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: MVP Article... Source Code?

2009-12-31 Thread Sripathi Krishnan
Chris,
It would be great if you could put up something that deals with UiBinder *in
context of* MVP. Specifically, whats the recommended way to use the
@UiHandler tag?

--Sri

2009/12/31 Chris Ramsdale 

> While I see that someone has already found it, I just wanted to let
> everyone know that it's officially there.
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>
> We're looking to put together parts 2 and 3 shortly. So far I have UI
> Binder and Code Splitting integration as topics of interest. Let us know
> what else would be of help.
>
> - Chris
>
> On Tue, Dec 29, 2009 at 1:00 PM, jpnet  wrote:
>
>> I really like this article:
>>
>> http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html
>>
>> However, it's almost useless without the entire source package. Are
>> there any plans to post the source code?
>>
>> Thanks,
>>
>> JP
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: GWT Session management regardless of Servlet Container

2009-12-31 Thread Sripathi Krishnan
There are two use cases generally need to be solved -

   1. Verify that the user is logged in.
   2. Ensure that this isn't a cross-site scripting (XSRF) attack.

The code snippet you provide does take care of (1). However, it does not
guarantee against (2).

There are a couple of ways to take care of XSRF, none of which require you
to abandon HttpSession.

   1. Pass the jsessionid cookie value along with each rpc request. On the
   server side, compare the jsessionid from request and from session. If they
   are different, stop processing.
   This isn't very difficult. You can make a custom RpcRequestBuilder class,
   and append the jsessionid in the URL. The check on the server side is
   something like this -
   if (request.getParameter("sessionid").equals(session.getId())) {
   //everything okay
   }
   else {
   //XSRF
   }
   2. Pass a custom, static http header in every RPC request, and check for
   the presence of the header in your RPC Servlet.
   There is no known way of adding a custom header via any javascript code
   other than a XmlHttpRequest, so this effectively rules out a XSRF. For a
   short time period, GWT had this approach baked into RemoteServiceServlet,
   but it has been removed from the current version. Not sure why they removed
   it.

None of the above two approaches forbid the use of container based session
management. So, if you want to use session management, go ahead and use it -
but just follow one of the approaches to prevent XSRF.


--Sri


2009/12/31 Philip Ives 

> I've done some searching around and I understand the warrants of
> stateless applications. However login security always requires some
> state.
>
> Of course your application could use  your containers session
> management and if your container can replication sessions across
> instances all the better.
>
> In some of the session management discussions on the GWT site as well
> as these forums there is talk about not relying on your container to
> identify the session ID because it could come from the cookie / header
> and that has cross site security implications which I follow.
>
> That all said getting the httpsession by context has been deprecated
> since 2.1
>
> If you search this group with "session management"  you'll find most
> of these discussions.
>
> If I anticipate that my container will handle session replication if i
> need it.  Does doing something like this make sense and make sure that
> the container's session management is not using the cookie/header, and
> if it is, it doesn't matter:
>
> MyServiceImpl extends RemoteServiceServlet implements MyService {
>  /** session id is passed in during service call from client.
> (perhapps tokenized */
> public static getUserBySession(String sessionId) {
>   HttpSession httpsession = this.getThreadLocalRequest().getSession
> ();
>   if (httpsession.getId().equals(sessionId) && (Boolean)
> httpsession.getAttribute("Loggedin")) {
>   //user is valid and logged in, session id checked against rpc
> value.
>
>   }
>
>
> }
>
> }
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread John Armstrong
We use their tools for both Swing and GWT/GXT dev and find them very
stable and very productive. At $79 per developer seat it is much
cheaper then hand rolling UI's or dealing with some of the free tools
that don't have the support we need.

John-

On Dec 31, 12:44 am, Murat Doner  wrote:
>   We have tried *GWT Designer* from
> Instantiations
>
>    But the tool is not stable enough also it is not free and "open
> source"...
>    What are the alternatives you can suggest us to use?

--

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




GWT Session management regardless of Servlet Container

2009-12-31 Thread Philip Ives
I've done some searching around and I understand the warrants of
stateless applications. However login security always requires some
state.

Of course your application could use  your containers session
management and if your container can replication sessions across
instances all the better.

In some of the session management discussions on the GWT site as well
as these forums there is talk about not relying on your container to
identify the session ID because it could come from the cookie / header
and that has cross site security implications which I follow.

That all said getting the httpsession by context has been deprecated
since 2.1

If you search this group with "session management"  you'll find most
of these discussions.

If I anticipate that my container will handle session replication if i
need it.  Does doing something like this make sense and make sure that
the container's session management is not using the cookie/header, and
if it is, it doesn't matter:

MyServiceImpl extends RemoteServiceServlet implements MyService {
 /** session id is passed in during service call from client.
(perhapps tokenized */
public static getUserBySession(String sessionId) {
   HttpSession httpsession = this.getThreadLocalRequest().getSession
();
   if (httpsession.getId().equals(sessionId) && (Boolean)
httpsession.getAttribute("Loggedin")) {
   //user is valid and logged in, session id checked against rpc
value.

   }


}

}

--

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




Re: GWT Plugin and External JARs

2009-12-31 Thread Jason Essington
Do not use the built in server, use your own (properly configured) instance of 
tomcat, and uncheck the "run built in server" checkbox in the run configuration.

-jason

On Dec 31, 2009, at 8:39 AM, Matt wrote:

> When it will be deployed to out Tomcat server, some of the JARs
> conatining code that will be used in the GWT app will be located
> outside the webapp, and loaded into Tomcat using its shared loader.
> 
> How do I get this to work in the GWT Eclipse plug-in? Simply adding
> them to the project's Build Path appears to be insufficient; as at
> runtime I get (when attempting to instantiate a Spring Context)
> 
> 31-Dec-2009 15:33:21 com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: Could not instantiate listener
> org.springframework.web.context.ContextLoaderListener
> java.lang.ClassNotFoundException:
> org.springframework.web.context.ContextLoaderListener
> 
> I already have a simlar quesion regarding the compilation of JS of
> externally located code:
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/35fadd553cecd9c6/95bf8a2e21ca32f3?#95bf8a2e21ca32f3
> 
> Thanks in adavnce.
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 
> 

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread gaill...@audemat.com
Maybe you could have a look at Sasha Maps : 
http://www.maryanovsky.com/sasha/maps/
There is some code for IPhone

--

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




Re: Upgrading 1.5 application: troubles with click event on Hyperlink and Anchor

2009-12-31 Thread hbatista
The problem was that I had replaced

RootPanel.get("linksPanel").add(linksPanelWidget);

with

Document.get().getElementById("linksPanel").appendChild
(linksPanelWidget.getElement());

because I was getting the error "A widget that has an existing parent
widget may not be added to the
detach list"

and this caused the click event to not reach my handler.
Putting back the RootPanel(...) code fixed it, and the 2.0 code is
after all correct:

Anchor loginLnk = new Anchor(msg.login());
loginLnk.addClickHandler(new ClickHandler(){
@Override
public void onClick(ClickEvent ev) {
login();
}
});


On Dec 31, 11:50 am, hbatista  wrote:
> I'm trying to upgrade a GWT 1.5 application into 2.0, and having
> problems getting hyperlink/anchor clicks to work as before.
>
> My 1.5 code is very simple, I'm creating a hyperlink and adding a
> click listener to it:
>
> Hyperlink loginLnk = new Hyperlink(msg.login(), "");
> loginLnk.addClickListener(new ClickListener(){
>    public void onClick(Widget sender) {
>         login();
>    }
>
> });
>
> Now, in 2.0, Hyperlink.addClickHandler is deprecated (and nothing
> happens when clicking it).
> If I replace it with an Anchor, I'm redirected to onModuleLoad when
> clicking it, and my handler doesn't run.
>
> What is the correct way to implement this behavior in GWT 2.0 ?

--

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




Re: Having Trouble Extending MouseEvent...

2009-12-31 Thread DaveC
OK I've got a little further now: I've create a new DOMImpl... class
and overridden the eventGetTypeInt(String) method. everything compiles/
runs in hosted mode without errors - but no drag/drop events get
captured - it's like they haven't been added...

Here's my DropEvent class...

public class DropEvent extends DomEvent {

/**
 * Event type for drop events. Represents the meta-data associated
with this
 * event.
 */
private static final Type TYPE = new Type
("drop",
new DropEvent());

/**
 * Gets the event type associated with drop events.
 *
 * @return the handler type
 */
public static Type getType() {
return TYPE;
}

/**
 * Protected constructor, use
 * {...@link DomEvent#fireNativeEvent
(com.google.gwt.dom.client.NativeEvent,
com.google.gwt.event.shared.HasHandlers)}
 * to fire drop events.
 */
protected DropEvent() {
}

@Override
public Type getAssociatedType() {
return TYPE;
}

@Override
protected void dispatch(DropHandler handler) {
handler.onDrop(this);
}

}


... is there something I'm missing... and my DOMImpl class:

public class DOMImplMozillaHtml5 extends DOMImplMozillaOld {

  public native int eventGetTypeInt(String eventType) /*-{
switch (eventType) {
case "blur": return 0x01000;
case "change": return 0x00400;
case "click": return 0x1;
case "dblclick": return 0x2;
case "focus": return 0x00800;
case "keydown": return 0x00080;
case "keypress": return 0x00100;
case "keyup": return 0x00200;
case "load": return 0x08000;
case "losecapture": return 0x02000;
case "mousedown": return 0x4;
case "mousemove": return 0x00040;
case "mouseout": return 0x00020;
case "mouseover": return 0x00010;
case "mouseup": return 0x8;
case "scroll": return 0x04000;
case "error": return 0x1;
case "mousewheel": return 0x2;
case "DOMMouseScroll": return 0x2;
case "contextmenu": return 0x4;
case "paste": return 0x8;
case "drop": return 0x1;
case "dragdrop": return 0x1;
case "dragleave": return 0x1;
case "dragover": return 0x1;
case "dragenter": return 0x1;
}
  }-*/;

}

On Dec 31, 12:24 am, DaveC 
wrote:
> OK, From what I have since found out is that *all* the native browser
> events are stored in a JSNI method in the DOMImpl class here
> DOMImpl.eventGetTypeInt(String name)... which is why the exception was
> being thrown (there is no "drop", "dragenter", etc events defined).
>
> So in order to add the new html5 events I would need to add my own
> DOMImpl class... which I can't seem to do... I appear to be trying to
> accomplish the same task as the person posting 
> herehttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> This doesn't appear to be possible (or at least simple or obvious or
> documented)...
>
> Its frustrating for me as I've already written the (few lines of)
> javascript code to do this - I'm using GWT for a project so really I
> need a GWT implementation...
>
> Do any of the GWT experts have any suggestions??
>
> On Dec 30, 4:24 pm, DaveC  wrote:
>
>
>
> > I'm probably not doing this the right way but, I've been trying to
> > extend MouseEvent to support HTML5 Drag and Drop (drag, dragenter,
> > etc. etc.).
>
> > I've created a:
>
> > Has...Handlers interface
> > bunch of Handler classes (DropHandler, DragEnterHandler, etc)
> > and a bunch of Event classes that extend MouseEvent (DropEvent,
> > DragEnterEvent, etc).
>
> > I've also created a DropTarget Widget that implements the
> > Has...Handlers interface which accepts a Widget as a param in its
> > contructor which then calls setElement() passing in widget.getElement
> > ()...
>
> > I then add this DropTarget to the RootPanel (for testing purposes) in
> > an onModuleLoad.
>
> > But I'm getting a low level error ("Something other than an int was
> > returned from JSNI method"):
>
> > com.google.gwt.dev.shell.HostedModeException: Something other than an
> > int was returned from JSNI method
> > '@com.google.gwt.user.client.impl.domimpl::eventGetTypeInt(Ljava/lang/
> > String;)': JS value of type undefined, expected int
> >     at com.google.gwt.dev.shell.JsValueGlue.getIntRange
> > (JsValueGlue.java:266)
> >     at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
> >     at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
> > (ModuleSpace.java:242)
> >     at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt
> > (JavaScriptHost.jav

Re: FileUpload widget path name

2009-12-31 Thread El Mentecato Mayor
1) As far as I remember, you won't be able to get the full path to the
filename in all browsers on the client side.  You can do it on the
server-side (in your servlet).
2) I don't think you will be able to do that (assuming your G: drive
is either mapped to a unix directory using samba maybe, or to another
windows directory). The form of the path name will depend on the OS of
the client that sends the files and in your case, I don't think
there's a way for the browser to know that "G:\abc.psr" corresponds to
"/home/aa20/abc.psr".


On Dec 30, 6:15 am, Shivi  wrote:
> Hi
>
> I am trying to use the FileUpload widget and when I call the
> getFileName() method it returns me the filename without the path name
> in firefox.
>
> If I try the same in IE the method returns the filename along with the
> path.
>
> e.g: If I browse and select file abc.psr in G: drive .  getFileName()
> returns abc.psr in firefox and returns G:\abc.psr in IE.
>
> I would always like to get the path name along with the file name .
> How can I achieve this?
>
> Ques2) Is it possible for me to get the unix pathname with a file name
> instead of Windows? I am using Windows but instead of G:\abc.psr  I
> would like to see /home/aa20/abc.psr
>
> Thanks for your 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: FileUpload widget path name

2009-12-31 Thread El Mentecato Mayor
1) As far as I remember, you won't be able to get the full path to the
filename in all browsers on the client side.  You can do it on the
server-side (in your servlet).
2) I don't think you will be able to do that (assuming your G: drive
is either mapped to a unix directory using samba maybe, or to another
windows directory). The form of the path name will depend on the OS of
the client that sends the files and in your case, I don't think
there's a way for the browser to know that "G:\abc.psr" corresponds to
"/home/aa20/abc.psr".


On Dec 30, 6:15 am, Shivi  wrote:
> Hi
>
> I am trying to use the FileUpload widget and when I call the
> getFileName() method it returns me the filename without the path name
> in firefox.
>
> If I try the same in IE the method returns the filename along with the
> path.
>
> e.g: If I browse and select file abc.psr in G: drive .  getFileName()
> returns abc.psr in firefox and returns G:\abc.psr in IE.
>
> I would always like to get the path name along with the file name .
> How can I achieve this?
>
> Ques2) Is it possible for me to get the unix pathname with a file name
> instead of Windows? I am using Windows but instead of G:\abc.psr  I
> would like to see /home/aa20/abc.psr
>
> Thanks for your 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Convenience callback method

2009-12-31 Thread Matt Moriarity
You need your action class to implement IsSerializable. Also make sure
you give it a no-args constructor.

On Dec 30, 8:15 pm, bhomass  wrote:
> I am trying out the rpc structure given in the seminar. I get an error
>
> 20:42:08.171 [ERROR] [rts]
> com.jcalc.webclient.client.spreadsheet.rpc.action.GetRecords is not
> assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
> 'java.io.Serializable' nor does it have a custom field serializer
> (reached via com.jcalc.webclient.client.rpc.Action)
>
> 20:42:08.187 [ERROR] [rts] Deferred binding failed for
> 'com.jcalc.webclient.client.spreadsheet.rpc.RecordService'; expect
> subsequent failures
>
> any one else seen this type of error?

--

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




GWT Plugin and External JARs

2009-12-31 Thread Matt
When it will be deployed to out Tomcat server, some of the JARs
conatining code that will be used in the GWT app will be located
outside the webapp, and loaded into Tomcat using its shared loader.

How do I get this to work in the GWT Eclipse plug-in? Simply adding
them to the project's Build Path appears to be insufficient; as at
runtime I get (when attempting to instantiate a Spring Context)

31-Dec-2009 15:33:21 com.google.apphosting.utils.jetty.JettyLogger
warn
WARNING: Could not instantiate listener
org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException:
org.springframework.web.context.ContextLoaderListener

I already have a simlar quesion regarding the compilation of JS of
externally located code:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/35fadd553cecd9c6/95bf8a2e21ca32f3?#95bf8a2e21ca32f3

Thanks in adavnce.

--

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




Re: Where does log4j output go?

2009-12-31 Thread Paul Grenyer
Hi

On Thu, Dec 31, 2009 at 2:58 PM, mirceade  wrote:
> Hi,
> Read the log4j docs. Use a console apender.

That's what I'm using. That's what I've always used. It's stopped
working with gwt 2.0.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Re: How to make FileUpload widget readonly?

2009-12-31 Thread El Mentecato Mayor
Not as far as I know.  What we do is hide the textbox (it's more of a
hack though) by setting its size to zero if possible and/or placing a
blank panel on top of it (varies by browser). Only the "Browse..."
button is visible.

On Dec 29, 12:51 am, Lakindu  wrote:
> Hi,
>
> Is there a way to make FileUpload widget readonly?
> i.e. user should not be able to type on the text field of the
> FileUpload.
>
> Thanks in advance,
> Lakindu

--

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




Customizing RichTextArea with insertHtml in GWT 2.0

2009-12-31 Thread Trevis
I'd like to create a custom rich text aera. I think I I've got a fair
handle on how it works from playing with the showcase RichTextToolbar
source code. The Formatter.insertHtml method seems like it will get
almost exactly what i need. But, there is one critical peice of the
puzzle I have yet to solve.  I need to grab the text that the user has
selected to make the HTML inserts  work he way I need them to.

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




Re: Adding a form to the RootPanel

2009-12-31 Thread Ashar Lohmar
hi
just a few tips,
  to prevent the form opening in new window ... set the "target" as
you do on links (), try form.setTarget("_self"); or something
like that.

if the code that makes the form and submits it could/should be execute
several time ... you could try makeing the form an private property on
some object for your convenience, and in the moment you do the
"action" that adds the the form ... you "remove"/"clear" the old form,
and set it with the new form ...


hope it helps ... excuse my English and the lack of the details I'm in
a bit of a hurry. I'll come back with more if you'll need



On Dec 30, 6:08 am, amjibaly  wrote:
> I was just exploring using the form option, I know RPC is better in
> most situations. Just to clarify on your response, do you mean that
> adding an arbitrary number of 'invisible' forms (just used to submit
> requests) to the RootPanel will not cause any performance issues? In
> other words, do i ever have to remove the forms I add to the root
> panel if they are invisible? If so, what is the best approach to do
> that?
>
> Thanks
>
> On Dec 29, 4:50 pm, rjcarr  wrote:
>
> > I hate it when people answer questions with other questions, but why
> > would you do this?
>
> > Since the form is hidden the user would have no way to submit it,
> > rendering it useless.  If you want to communicate with the server,
> > simply set up and use an RPC.
>
> > Attempting to answer your questions ...
>
> >  1) Yes, I would think the form would need to be added to the
> > RootPanel to be functional.
>
> >  2) If you want to submit this form then yes, it will need to be added
> > (directly or indirectly) to the RootPanel.  The is no "memory leak" in
> > submitting a form.
>
> > On Dec 28, 11:20 pm, amjibaly  wrote:
>
> > > Hi,
>
> > > I've been playing around with sending an "invisible" form using
> > > FormPanel:
>
> > > FormPanel form = new FormPanel();
> > > form.setAction(url);
> > > form.setMethod(FormPanel.METHOD_POST);
> > > form.setEncoding(FormPanel.ENCODING_URLENCODED);
> > > form.add(new Hidden("abc", "xyz"));
> > > form.addSubmitCompleteHandler(new SubmitCompleteHandler() {...});
> > > form.setVisible(false);
> > > RootPanel.get().add(form);
>
> > > I have a couple questions regarding this:
>
> > > 1- If I do not add the form to the RootPanel, the browser opens a new
> > > window for the response, and the SubmitCompleteHandler event is never
> > > fired. Is it necessary to add the form to the RootPanel to get the
> > > correct functionality?
>
> > > 2- If I do add the form to the RootPanel, would I have to somehow
> > > remove it later on? Since this code may be executed an arbitrary
> > > number of times would that cause a problem (memory leak or something)?
>
> > > Thanks,
> > > Abdullah
>
>

--

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




Re: Where does log4j output go?

2009-12-31 Thread mirceade
Hi,
Read the log4j docs. Use a console apender.

On 31 dec., 11:39, Paul Grenyer  wrote:
> HI
>
> On Wed, Dec 30, 2009 at 10:08 PM, leslie  wrote:
> > Hi.  I'm using Log4J with GWT 2.0 also.  I'm building with Eclipse.
>
> > Inside the properties file, "log4J.properties", I've included a line
> > similar to the following which directs the output to a specific
> > location, a specific file:
>
> > log4j.appender.A1.File=${user.home}/Documents/log4Joutput.txt
>
> > Note that you will want to be sure to update this setting, in addition
> > to probably changing the sensitivity of the logger (DEBUG vs ERROR)
> > when you deploy to your production server.
>
> Thanks! I'm sure that would work, but I'd really like to have the
> output back in Eclipse.
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.blogspot.com

--

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




Authenticate a web page

2009-12-31 Thread Dave
I have a web page that I want to authenticate a user before they are
allowed to access the page. I set the authentication parameters in the
web.xml but it's not working. I use a hyperlink to get this page. The
address of this page is http://somewebsite.appspot.com/#page and my
web.xml is below. What am i doing wrong?


  
  
loginService
edu.somewebsite.server.LoginServiceImpl
  

  
loginService
/somewebsite/login
  

  
  
Somewebsite.html
  

  

/somewebsite/page


admin


CONFIDENTIAL




--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
..also I override the eventGetTypeInt(String) method in order to add
the html5 drag and drop events, is this what you did?

Cheers,
Dave

On Dec 31, 2:16 pm, DaveC  wrote:
> Ignored those warnings/errors and renamed anyway it it compiled/runs
> in hosted mode fine...
>
> The only problem is that the events aren't being captured (or the
> handlers aren't being added correctly)... would you be able to post
> one of your Event classes?
>
> Cheers,
> DaveC
>
> On Dec 31, 1:45 pm, DaveC  wrote:
>
>
>
> > Tried to rename the package, but I get an error and a warning:
>
> > Error: Method 'eventGetTypeInt(String)' in type
> > 'com.applegreen.gwt.html5.dom.DOMImplMozillaHtml5' is native. Running
> > the modified program will cause UnsatisfiedLinkError.
> > Warn: Package 'com.google.gwt.user.client.impl' already exists in this
> > project in a folder
>
> > I guess if I downloaded the GWT source doing this would be straight
> > forward but I can't do that for this project... I need to stick with
> > the (2.0) release.
>
> > Any other suggestions?
>
> > On Dec 31, 9:26 am, DaveC  wrote:
>
> > > Ah, cool thanks - I've done all that just didn't put the MyDomImpl in
> > > com.google.gwt.user.client.impl...
>
> > > Cheers,
> > > Dave
>
> > > On Dec 31, 1:15 am, fvisticot  wrote:
>
> > > > Hello,
> > > > I have worked on the pb and i have made some progress !!!
>
> > > > 1. I have overloaded the DOMImpl class. The new overloaded class must
> > > > be in a package named com.google.gwt.user.client.impl
> > > > 2. I have created dedicated events (extending DomEvent)
> > > > 3. I have created dedicated handlers (extending EventHandler)
> > > > 4. I have created dedicated HasHandlers
> > > > 5. In my module file i have added:
>
> > > > 
> > > >     
> > > >     
> > > > 
>
> > > > 6. I have created a new Widget implementing the
> > > > public HandlerRegistration addHandler(Handler handler) {
> > > >             return addDomHandler(handler, Event.getType());
> > > >         }
> > > > 7. My application create the new widget and call the
> > > > addHandler...
>
> > > > ... and it works perfectly...
>
> > > > Hope it can help...
>
> > > > On 31 déc, 01:28, DaveC  wrote:
>
> > > > > It seems I'm trying to do the same 
> > > > > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> > > > > and have come up against the same barriers.
>
> > > > > If I find the answer I'll let you know.
>
> > > > > Cheers,
> > > > > Dave
>
> > > > > On Dec 30, 10:23 pm, fvisticot  wrote:
>
> > > > > > I would like to manage the iPhone touchstart touchmove... events 
> > > > > > with
> > > > > > a clean solution.
> > > > > > It seems that i need to create my own DOMImpl for the iPhone and 
> > > > > > link
> > > > > > this new DOMImpl to the iPhone userAgent.
>
> > > > > > Do i need to recompile the GWT sources for that ?
> > > > > > It seems that i can not override the DOMImplSafari...so it seems 
> > > > > > that
> > > > > > a re-compilation is required...
>
> > > > > > I there a document/tuto with the differents mandatory steps to 
> > > > > > create
> > > > > > a new DOMImpl ?
> > > > > > Is there a list of class to implement when adding a new DOMImpl ?
> > > > > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > > > > > Is there allready a DOMImplIphone implementation (GoogleWave is
> > > > > > available on the iPhonepearhaps are they using a dedicated
> > > > > > implementation) ??
>
> > > > > > Fred.

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
Ignored those warnings/errors and renamed anyway it it compiled/runs
in hosted mode fine...

The only problem is that the events aren't being captured (or the
handlers aren't being added correctly)... would you be able to post
one of your Event classes?

Cheers,
DaveC

On Dec 31, 1:45 pm, DaveC  wrote:
> Tried to rename the package, but I get an error and a warning:
>
> Error: Method 'eventGetTypeInt(String)' in type
> 'com.applegreen.gwt.html5.dom.DOMImplMozillaHtml5' is native. Running
> the modified program will cause UnsatisfiedLinkError.
> Warn: Package 'com.google.gwt.user.client.impl' already exists in this
> project in a folder
>
> I guess if I downloaded the GWT source doing this would be straight
> forward but I can't do that for this project... I need to stick with
> the (2.0) release.
>
> Any other suggestions?
>
> On Dec 31, 9:26 am, DaveC  wrote:
>
>
>
> > Ah, cool thanks - I've done all that just didn't put the MyDomImpl in
> > com.google.gwt.user.client.impl...
>
> > Cheers,
> > Dave
>
> > On Dec 31, 1:15 am, fvisticot  wrote:
>
> > > Hello,
> > > I have worked on the pb and i have made some progress !!!
>
> > > 1. I have overloaded the DOMImpl class. The new overloaded class must
> > > be in a package named com.google.gwt.user.client.impl
> > > 2. I have created dedicated events (extending DomEvent)
> > > 3. I have created dedicated handlers (extending EventHandler)
> > > 4. I have created dedicated HasHandlers
> > > 5. In my module file i have added:
>
> > > 
> > >     
> > >     
> > > 
>
> > > 6. I have created a new Widget implementing the
> > > public HandlerRegistration addHandler(Handler handler) {
> > >             return addDomHandler(handler, Event.getType());
> > >         }
> > > 7. My application create the new widget and call the
> > > addHandler...
>
> > > ... and it works perfectly...
>
> > > Hope it can help...
>
> > > On 31 déc, 01:28, DaveC  wrote:
>
> > > > It seems I'm trying to do the same 
> > > > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> > > > and have come up against the same barriers.
>
> > > > If I find the answer I'll let you know.
>
> > > > Cheers,
> > > > Dave
>
> > > > On Dec 30, 10:23 pm, fvisticot  wrote:
>
> > > > > I would like to manage the iPhone touchstart touchmove... events with
> > > > > a clean solution.
> > > > > It seems that i need to create my own DOMImpl for the iPhone and link
> > > > > this new DOMImpl to the iPhone userAgent.
>
> > > > > Do i need to recompile the GWT sources for that ?
> > > > > It seems that i can not override the DOMImplSafari...so it seems that
> > > > > a re-compilation is required...
>
> > > > > I there a document/tuto with the differents mandatory steps to create
> > > > > a new DOMImpl ?
> > > > > Is there a list of class to implement when adding a new DOMImpl ?
> > > > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > > > > Is there allready a DOMImplIphone implementation (GoogleWave is
> > > > > available on the iPhonepearhaps are they using a dedicated
> > > > > implementation) ??
>
> > > > > Fred.

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
Tried to rename the package, but I get an error and a warning:

Error: Method 'eventGetTypeInt(String)' in type
'com.applegreen.gwt.html5.dom.DOMImplMozillaHtml5' is native. Running
the modified program will cause UnsatisfiedLinkError.
Warn: Package 'com.google.gwt.user.client.impl' already exists in this
project in a folder

I guess if I downloaded the GWT source doing this would be straight
forward but I can't do that for this project... I need to stick with
the (2.0) release.

Any other suggestions?

On Dec 31, 9:26 am, DaveC  wrote:
> Ah, cool thanks - I've done all that just didn't put the MyDomImpl in
> com.google.gwt.user.client.impl...
>
> Cheers,
> Dave
>
> On Dec 31, 1:15 am, fvisticot  wrote:
>
>
>
> > Hello,
> > I have worked on the pb and i have made some progress !!!
>
> > 1. I have overloaded the DOMImpl class. The new overloaded class must
> > be in a package named com.google.gwt.user.client.impl
> > 2. I have created dedicated events (extending DomEvent)
> > 3. I have created dedicated handlers (extending EventHandler)
> > 4. I have created dedicated HasHandlers
> > 5. In my module file i have added:
>
> > 
> >     
> >     
> > 
>
> > 6. I have created a new Widget implementing the
> > public HandlerRegistration addHandler(Handler handler) {
> >             return addDomHandler(handler, Event.getType());
> >         }
> > 7. My application create the new widget and call the
> > addHandler...
>
> > ... and it works perfectly...
>
> > Hope it can help...
>
> > On 31 déc, 01:28, DaveC  wrote:
>
> > > It seems I'm trying to do the same 
> > > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> > > and have come up against the same barriers.
>
> > > If I find the answer I'll let you know.
>
> > > Cheers,
> > > Dave
>
> > > On Dec 30, 10:23 pm, fvisticot  wrote:
>
> > > > I would like to manage the iPhone touchstart touchmove... events with
> > > > a clean solution.
> > > > It seems that i need to create my own DOMImpl for the iPhone and link
> > > > this new DOMImpl to the iPhone userAgent.
>
> > > > Do i need to recompile the GWT sources for that ?
> > > > It seems that i can not override the DOMImplSafari...so it seems that
> > > > a re-compilation is required...
>
> > > > I there a document/tuto with the differents mandatory steps to create
> > > > a new DOMImpl ?
> > > > Is there a list of class to implement when adding a new DOMImpl ?
> > > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > > > Is there allready a DOMImplIphone implementation (GoogleWave is
> > > > available on the iPhonepearhaps are they using a dedicated
> > > > implementation) ??
>
> > > > Fred.

--

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




How to get "war" path

2009-12-31 Thread Chave
Sorry for my english.

I am creating a new "Generator" for rebinding a class, and I need get
the public "war" path where images and public files are placed. I dont
know a method or a easy way to obtain it.

I only can obtain the path of the current generator class and try to
locate "/src" substring and build a new path replacing with "/war"
but it doesn't seem a good way :(

Can somebody help me?

Thanks.

--

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




Re: Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread Murat Doner
 I search for NetBeans; but as far as I understand, it is  a plug-in just
for programming, it is not a Visual Drag-Drop Designer.
 I do not know whether IntelliJ is in the same way or not.
 Thanks for your answer anyway.

On Thu, Dec 31, 2009 at 3:06 PM, Abdullah Shaikh <
abdullah.shaik...@gmail.com> wrote:

> There plugin available for NetBeans & IntelliJ, I haven't used them though
>
> - Abdullah
>
> On Thu, Dec 31, 2009 at 6:10 PM, Murat Doner wrote:
>
>>
>>  VistaFei is another alternative but not so usable.
>>
>>  On Thu, Dec 31, 2009 at 10:44 AM, Murat Doner 
>> wrote:
>>
>>>   We have tried *GWT Designer* from 
>>> Instantiations
>>>
>>>But the tool is not stable enough also it is not free and "open
>>> source"...
>>>What are the alternatives you can suggest us to use?
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Joseph Favara/HQ/Corp/OAI is out of the office.

2009-12-31 Thread Joseph . Favara

I will be out of the office starting  12/31/2009 and will not return until
01/04/2010.

I will respond to your message when I return. If this is urgnet please
contact Narayanan Pillai at 105986

--

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




Re: Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread Abdullah Shaikh
There plugin available for NetBeans & IntelliJ, I haven't used them though

- Abdullah

On Thu, Dec 31, 2009 at 6:10 PM, Murat Doner wrote:

>
>  VistaFei is another alternative but not so usable.
>
> On Thu, Dec 31, 2009 at 10:44 AM, Murat Doner wrote:
>
>>   We have tried *GWT Designer* from 
>> Instantiations
>>
>>But the tool is not stable enough also it is not free and "open
>> source"...
>>What are the alternatives you can suggest us to use?
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




How to compile multiple modules independent of each other

2009-12-31 Thread Ganesh
Hi All

I am using GWT2.0. I want to create some client side widgets by
extending GWT's widgets. These widgets will be deployed on my server &
I will provide public links of js (.nocache.js) file of these widgets
so that a user can include these in his application's html page & use
them. I will deploy many of such widgets on my server. If a user wants
to use more than one widget, he need to include js file of each widget
in his html file. Each widget will have it's own module.

Further my widgets can be dependent on each other. Suppose Widget1 is
dependent on Widget2 & user wants to use Widget1, he needs to include
js of both widgets (Widget1 & Widget2) in his html file.

Now my problem is
- How to compile my Widget1's module so that while compiling Widget1,
it doesn't generate js for Widget2 as it will be provided to it at run
time (as user will include Widget2's js file in his html file).
- How Widget1 will be able to use Widget2 & it's method as GWT
obfuscates all java code at compile time. I can't choose option for
not obfuscating code due to size of js & security issues.

Kindly also consider that I would like to compile Widget1 & Widget2
separetly & a new version of Widget2 can be compiled at any time.
After this compile, changes done in Widget2 shd reflect while it is
being used through Widget1 without compiling Widget1 again.

Any help/suggestion in this regard will be highly appreciable.

Thanks in advance.

Ganesh Bansal

--

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




Re: Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread Murat Doner
 VistaFei is another alternative but not so usable.
On Thu, Dec 31, 2009 at 10:44 AM, Murat Doner wrote:

>   We have tried *GWT Designer* from 
> Instantiations
>
>But the tool is not stable enough also it is not free and "open
> source"...
>What are the alternatives you can suggest us to use?
>

--

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




Re: gwt 2.0 jdo / jpa enhanced classes in App engine / Data Nucleus used for GWT-RPC calls to client side

2009-12-31 Thread GWTCurious
I guess I posted this question on the wrong day. :-) Has anybody the
answer?

--

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




Upgrading 1.5 application: troubles with click event on Hyperlink and Anchor

2009-12-31 Thread hbatista
I'm trying to upgrade a GWT 1.5 application into 2.0, and having
problems getting hyperlink/anchor clicks to work as before.

My 1.5 code is very simple, I'm creating a hyperlink and adding a
click listener to it:

Hyperlink loginLnk = new Hyperlink(msg.login(), "");
loginLnk.addClickListener(new ClickListener(){
   public void onClick(Widget sender) {
login();
   }
});

Now, in 2.0, Hyperlink.addClickHandler is deprecated (and nothing
happens when clicking it).
If I replace it with an Anchor, I'm redirected to onModuleLoad when
clicking it, and my handler doesn't run.

What is the correct way to implement this behavior in GWT 2.0 ?

--

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




Re: Where does log4j output go?

2009-12-31 Thread Paul Grenyer
HI

On Wed, Dec 30, 2009 at 10:08 PM, leslie  wrote:
> Hi.  I'm using Log4J with GWT 2.0 also.  I'm building with Eclipse.
>
> Inside the properties file, "log4J.properties", I've included a line
> similar to the following which directs the output to a specific
> location, a specific file:
>
> log4j.appender.A1.File=${user.home}/Documents/log4Joutput.txt
>
> Note that you will want to be sure to update this setting, in addition
> to probably changing the sensitivity of the logger (DEBUG vs ERROR)
> when you deploy to your production server.

Thanks! I'm sure that would work, but I'd really like to have the
output back in Eclipse.

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.blogspot.com

--

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




Re: DOMImpl for iPhone: How to do ?

2009-12-31 Thread DaveC
Ah, cool thanks - I've done all that just didn't put the MyDomImpl in
com.google.gwt.user.client.impl...

Cheers,
Dave

On Dec 31, 1:15 am, fvisticot  wrote:
> Hello,
> I have worked on the pb and i have made some progress !!!
>
> 1. I have overloaded the DOMImpl class. The new overloaded class must
> be in a package named com.google.gwt.user.client.impl
> 2. I have created dedicated events (extending DomEvent)
> 3. I have created dedicated handlers (extending EventHandler)
> 4. I have created dedicated HasHandlers
> 5. In my module file i have added:
>
> 
>     
>     
> 
>
> 6. I have created a new Widget implementing the
> public HandlerRegistration addHandler(Handler handler) {
>             return addDomHandler(handler, Event.getType());
>         }
> 7. My application create the new widget and call the
> addHandler...
>
> ... and it works perfectly...
>
> Hope it can help...
>
> On 31 déc, 01:28, DaveC  wrote:
>
>
>
> > It seems I'm trying to do the same 
> > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa..
> > and have come up against the same barriers.
>
> > If I find the answer I'll let you know.
>
> > Cheers,
> > Dave
>
> > On Dec 30, 10:23 pm, fvisticot  wrote:
>
> > > I would like to manage the iPhone touchstart touchmove... events with
> > > a clean solution.
> > > It seems that i need to create my own DOMImpl for the iPhone and link
> > > this new DOMImpl to the iPhone userAgent.
>
> > > Do i need to recompile the GWT sources for that ?
> > > It seems that i can not override the DOMImplSafari...so it seems that
> > > a re-compilation is required...
>
> > > I there a document/tuto with the differents mandatory steps to create
> > > a new DOMImpl ?
> > > Is there a list of class to implement when adding a new DOMImpl ?
> > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...)
>
> > > Is there allready a DOMImplIphone implementation (GoogleWave is
> > > available on the iPhonepearhaps are they using a dedicated
> > > implementation) ??
>
> > > Fred.

--

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




Re: Dock Panel

2009-12-31 Thread Abdullah Shaikh
No what I meant was ..

DockPanel docPanel = new DockPanel();

VerticalPanel centerPanel = new VerticalPanel();
centerPanel.setStyleName("CENTER_STYLE")
dockPanel.add(centerPanel, DockPanel.CENTER);


VerticalPanel westPanel = new VerticalPanel();
westPanel.setStyleName("WEST_STYLE")
dockPanel.add(westPanel, DockPanel.WEST);

VerticalPanel eastPanel = new VerticalPanel();
eastPanel.setStyleName("EAST_STYLE")
dockPanel.add(eastPanel, DockPanel.EAST);

ofcourse you can use any panel type you want other then VerticalPanel.


- Abdullah

On Thu, Dec 31, 2009 at 2:05 PM, muhannad nasser wrote:

> . thanks for ur reply.. i  have tried to do so... but i can only add
> the alignment to the area when adding the widget.. but i have another idea,
> ensureDebugId will give each area its own unique Id so i can use that to
> apply the CSS class i want
>
> but until now ensureDebugId is not working 
>
> thanks again
>
>
> On Thu, Dec 31, 2009 at 10:20 AM, Abdullah Shaikh <
> abdullah.shaik...@gmail.com> wrote:
>
>> I am not sure, but I guess you need to set the style on the Panel which
>> you will be adding to the DockPanel.
>>
>> - Abdullah
>>
>> On Thu, Dec 31, 2009 at 12:49 PM, muhannad nasser <
>> muhannadna...@gmail.com> wrote:
>>
>>> Dear All;
>>>
>>> i want to add a style on a DockPanel cell, such ass the north area, or
>>> the west area only..
>>>
>>> can anyone please help me
>>>
>>> --
>>> ~~~With Regards~~~
>>> Muhannad Dar-Nasser
>>> ~~Computer Systems Engineering~~
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google 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.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Is there a free-standart GWT Designer or which tools do you use to design User Interface ?

2009-12-31 Thread Murat Doner
  We have tried *GWT Designer* from
Instantiations

   But the tool is not stable enough also it is not free and "open
source"...
   What are the alternatives you can suggest us to use?

--

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




Re: Dock Panel

2009-12-31 Thread muhannad nasser
. thanks for ur reply.. i  have tried to do so... but i can only add the
alignment to the area when adding the widget.. but i have another idea,
ensureDebugId will give each area its own unique Id so i can use that to
apply the CSS class i want

but until now ensureDebugId is not working 

thanks again

On Thu, Dec 31, 2009 at 10:20 AM, Abdullah Shaikh <
abdullah.shaik...@gmail.com> wrote:

> I am not sure, but I guess you need to set the style on the Panel which you
> will be adding to the DockPanel.
>
> - Abdullah
>
> On Thu, Dec 31, 2009 at 12:49 PM, muhannad nasser  > wrote:
>
>> Dear All;
>>
>> i want to add a style on a DockPanel cell, such ass the north area, or the
>> west area only..
>>
>> can anyone please help me
>>
>> --
>> ~~~With Regards~~~
>> Muhannad Dar-Nasser
>> ~~Computer Systems Engineering~~
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~

--

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




Simple UiBinder question about

2009-12-31 Thread Daniel
Here's a valid ui.xml file:


http://dl.google.com/gwt/DTD/
xhtml.ent">



  
.anchorWrapper a {
display: block;
}

@sprite .left {
gwt-image: 'left';
}

@sprite .logo {
gwt-image: 'logo';
background-position: 0 -197px;
height: 197px;
}

div.logo:hover {
background-position: 0 0;
}

@sprite .slogans {
gwt-image: 'animatedSloganArea';
}

@sprite .menuTop {
gwt-image: 'menuTop';
}

@sprite .right {
gwt-image: 'right';
}

@sprite .home {
gwt-image: 'home';
height: 25px;
}

div.home:hover {
background-position: 0 -25px;
}

@sprite .services {
gwt-image: 'services';
height: 25px;
}

div.services:hover {
background-position: 0 -25px;
}

@sprite .about {
gwt-image: 'about';
height: 25px;
}

div.about:hover {
background-position: 0 -25px;
}

@sprite .contact {
gwt-image: 'contact';
height: 25px;
}

div.contact:hover {
background-position: 0 -25px;
}

@sprite .menuBottom {
gwt-image: 'menuBottom';
}

@sprite .floatingBar {
gwt-image: 'floatingBarArea';
}

@sprite .bottom {
gwt-image: 'bottom';
}
  

  
  
  
  
  
  
  
  
  
  
  
  

  

  

  
  
  


  
  


  
  
  
  


  


  


  

  

  





It's the lines that read  that I'm somewhat bothered by.  If
I rename the image to 'animatedSloganArea.png' to
'animated_slogan_area.png', and alter the resource tag the compiler
throws an error.  If I move 'animated_slogan_area.png' to a different
directory, like 'resources/images/banner', and update the resource tag
to reflect that change, the compiler blows up there too.

This makes it seem like the resource tag is useless, but I want my
images in a separate directory, and I want them to have underscores,
not this silly java coding convention.

How do I do this?

--

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




Re: Dock Panel

2009-12-31 Thread Abdullah Shaikh
I am not sure, but I guess you need to set the style on the Panel which you
will be adding to the DockPanel.

- Abdullah

On Thu, Dec 31, 2009 at 12:49 PM, muhannad nasser
wrote:

> Dear All;
>
> i want to add a style on a DockPanel cell, such ass the north area, or the
> west area only..
>
> can anyone please help me
>
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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