Re: How to set the path to SDK relatively in Eclipse

2011-11-03 Thread Rikard Hultén
Is it classpath variables you're looking for?

in eclipse 
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-114.htm

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



Re: CellTable column and cell style

2011-11-03 Thread divStar
Thank you very much!

I still got a question though: I want to change the style of the
CellTable-header depending on whether the attribute visible of
ColumnEx?,? (derived from Column?,?) is set to true or false.
Everytime a column is meant to be hidden or shown, the setter
setVisible of the column is called. Is there a way to assign a style
depending on this attribute?

If it was a regular widget, I might have added a custom attribute and
added that to the CSS via selector. However: this does not work here
as I am not able to getElement() of that Column.

Thank you once again. I hope you can help me with this problem I have.
Overriding the CSSResource of the CellTable was definitely the right
thing - thank you!

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



Re: Gwt-App totally blocks Browser-UI

2011-11-03 Thread tanteanni
it's an tree with 16k items (all administrative units of germany) - the 
main advantage to load all items is, i got a very fast live search on the 
tree. but as i said before i don't want to discuss this here. i ask how to 
get an loading overlay/progress bar that doesn't freeze on loading.
i saw many of them in all the gwt/other framework's showcases. so how to 
use scheduler or something else to keep a loading icon moving and the 
browser responsive?

thx in advance?

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



Re: We want you for GQuery

2011-11-03 Thread Julien Dramaix
Ok thanks ! I will send you a mail explaining how proceed.

Julien

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



how to use flow engine in gwt?

2011-11-03 Thread wahaha
how to use a flow engine to manage the flow work in gwt program?

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



Re: Google Web Toolkit for Web and Mobile development

2011-11-03 Thread Thomas Broyer
Have a look at 
http://www.google.com/events/io/2011/sessions/using-gwt-and-eclipse-to-build-great-mobile-web-apps.html
 and 
the mobilewebapp sample from the GWT SDK (which I believe is more or less 
the Cloud Tasks example from the presentation)

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



Re: Exception thrown by FlexTable

2011-11-03 Thread Erik
Is it possible that the List 'data' contains a null value?
and that  data.passenger_origins.get(i-1) = null?

This can explain the message 'JS value of type null, expected int'

greets

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



Re: Exception thrown by FlexTable

2011-11-03 Thread Thomas Broyer
Could be related to 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778
Which browser are you using? Do you reproduce it in a different browser? Do 
you reproduce it in prod/web mode?

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



Re: Gwt-App totally blocks Browser-UI

2011-11-03 Thread Jens
If you load that 16k items with GWT-RPC your first problem that freezes 
your browser is probably the deserialization process when receiving the 
answer from the server (converting the string received back to your object 
graph / list). So comment out all your tree stuff and first solve the 
freeze caused by the request itself.
What you can try is to avoid GWT-RPC for this request and instead use plain 
JSON. If your browser freezes even with JSON then you have to load less 
data or live with the freeze. Keep in mind that an animated loading 
indicator (e.g. animated gif) will also freeze once the browser freezes 
because the browser does not have the time to animate the image.

Once you have solved the freeze caused by GWT-RPC you can optimize the tree 
view if you still see some freeze. A good way to optimize a view is to only 
add the specific data to the view that is currently visible or if you 
really need to add everything then use an IncrementalCommand with the 
Scheduler.

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



Re: Activities and Places - Handling several views

2011-11-03 Thread Antoine DESSAIGNE
Hi,

I've looked into your code but it doesn't seem to fit my need. Basically I
need that a single activity update several views. Do you (or anyone else)
have a clue on how to achieve that?

Thanks a lot,

Antoine.

2011/11/3 Brandon Donnelson branflake2...@gmail.com

 My demo and source might help.
 http://code.google.com/p/gwt-examples/wiki/DemoActivitiesAndPlaces


 http://code.google.com/p/gwt-examples/source/browse/#svn%2Ftrunk%2FWalletInventory%2Fsrc%2Fcom%2Fgonevertical%2Fclient%2Fapp%2Factivity-
  activities

 Hope that helps,
 Brandon Donnelson
 http://gwt-examples.googlecode.com


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/vddUxLT7DoAJ.
 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-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.



Client Server Rpc communication and adding a database in server side.

2011-11-03 Thread sasi sasindran
Hi  all,

 I am new comer to the gwt word. I make a sample project with
client server rpc and database(mySql).When  am invoking the service
from client through the asynchronous interface it throws an unexpected
exception.I am create a service interface,serviceAsync interface,entry
point class and bean class in client side.I am also create a Service
implementation class and database connection class and other procees
in the server side.If the client server communication perfectly
working without the database processing methods.When I Invoke the
service method from the client with some database handled  methods it
return unexpected exception.The details are given below.


[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.test.client.LoginService.logIn(com.test.client.User)' threw an
unexpected exception: java.security.AccessControlException: access
denied (java.io.FilePermission ALL FILES execute)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission ALL FILES execute)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
323)
at
java.security.AccessController.checkPermission(AccessController.java:
546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.lang.SecurityManager.checkExec(SecurityManager.java:782)
 

MySql Connection Problem

2011-11-03 Thread sasi sasindran
Hi all,
  I am created a sample gwt rpc client server database
project.When am retrieving data from database it throw an exception
given below.



MySql Connection Error:
java.sql.SQLException: URL is not in the correct format: jdbc:mysql://
localhost/db
at
com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java:
103)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.test.server.DB_Conn.getConn(DB_Conn.java:70)
at
com.test.server.LoginServiceImpl.validateUser(LoginServiceImpl.java:
50)
at com.test.server.LoginServiceImpl.logIn(LoginServiceImpl.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
97)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
388)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
418)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
can't get a MySql connection
null

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



Re: How to align header/footer text in cell table

2011-11-03 Thread Thomas Trebbien Pedersen
Cool that works - thanks. And Google comon and implement this please.

On 31 Okt., 15:08, Carl paresthesi...@gmail.com wrote:
 I will definitely try this out.  Thanks for sharing... Though, I still
 believe this should be inherent behavior for the Column Header itself.

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



Re: Activities and Places - Handling several views

2011-11-03 Thread Patrick Julien
You need to adopt a different strategy to the problem:

http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni

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



Re: MySql Connection Problem

2011-11-03 Thread mukut
Use this format in ur connection url.

jdbc:mysql://localhost:3306/dbschema

I hope this resolves u r issues.
Thanks and Regards,
Mukut
On Thu, Nov 3, 2011 at 12:18 PM, sasi sasindran sasindran@gmail.comwrote:

 Hi all,
  I am created a sample gwt rpc client server database
 project.When am retrieving data from database it throw an exception
 given below.



 MySql Connection Error:
 java.sql.SQLException: URL is not in the correct format: jdbc:mysql://
 localhost/db
at

 com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java:
 103)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47)
at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at com.test.server.DB_Conn.getConn(DB_Conn.java:70)
at
 com.test.server.LoginServiceImpl.validateUser(LoginServiceImpl.java:
 50)
at com.test.server.LoginServiceImpl.logIn(LoginServiceImpl.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
at java.lang.reflect.Method.invoke(Method.java:597)
at

 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
 100)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 569)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 208)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 248)
at

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 97)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 can't get a MySql connection
 null

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To 

Inserting Widgets and simple text into panel

2011-11-03 Thread Ice13ill
Hello, I want create a panel with a flow layout (for ex. FlowPanel)
which contains 2 widgets and a large text at the end (not a div or
another element)
I tried to add the widgets and then set the panel's element text:

flowPanel.add(w1)
flowPanel.add(w2)
flowPanel.getElement.setInnerText(largeText)

but the last line overrides all other widgets.

How can i do this (but without using UIBinder for now.) ?

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



Possible to get HTML from a widget?

2011-11-03 Thread laredotornado
Hi,

I'm using GWT 2.4.  Is it possible to know what HTML will be rendered
for a given widget (http://www.ing.iac.es/gwt-linux-1.4.60/doc/javadoc/
com/google/gwt/user/client/ui/Widget.html) object?  Thanks, - Dave

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



Ruler tool for GWT maps

2011-11-03 Thread Ben
Hi GWT/Mappers - Has anybody built a ruler tool to enable measuring
between 2 points *on a map created via GWT* in java?  An example or
sources would be appreciated. I suppose either JSNI or GWT version is
ok.. I'm using an older ver. of GWT - 2.1.
Thanks.

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



Re: Client Server Rpc communication and adding a database in server side.

2011-11-03 Thread Juan Pablo Gardella
Try remove GAE feature in eclipse and remove GAE dependency jar.

2011/11/3 sasi sasindran sasindran@gmail.com

 Hi  all,

 I am new comer to the gwt word. I make a sample project with
 client server rpc and database(mySql).When  am invoking the service
 from client through the asynchronous interface it throws an unexpected
 exception.I am create a service interface,serviceAsync interface,entry
 point class and bean class in client side.I am also create a Service
 implementation class and database connection class and other procees
 in the server side.If the client server communication perfectly
 working without the database processing methods.When I Invoke the
 service method from the client with some database handled  methods it
 return unexpected exception.The details are given below.


 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.String
 com.test.client.LoginService.logIn(com.test.client.User)' threw an
 unexpected exception: java.security.AccessControlException: access
 denied (java.io.FilePermission ALL FILES execute)
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 385)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 208)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 248)
at

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 97)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.content(HttpConnection.java:938)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)
 Caused by: java.security.AccessControlException: access denied
 (java.io.FilePermission ALL FILES execute)
at

 java.security.AccessControlContext.checkPermission(AccessControlContext.java:
 323)
at
 java.security.AccessController.checkPermission(AccessController.java:
 546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)
at 

Re: GWT + GAE common issues.

2011-11-03 Thread MagusDrk
Brandon, Thanks, I find your demo very usefull. I'll be referencing it
in my job.

On 31 oct, 10:08, Brandon Donnelson branflake2...@gmail.com wrote:
 I have found no issues with using GWT with GAE and have tried a multitude
 of ways. I just setup a demo using RequestFactory, JDO and I've showed how
 to used owned collections of another entity.

 http://code.google.com/p/gwt-examples/wiki/DemoActivitiesAndPlaces

 You'll find key serialization and owned collection use there. Now I haven't
 made every possible use in my demo, but using key serialization in
 RequestFactory vai a StringId, you can do about anything you want.

 Hope that helps,
 Brandon Donnelsonhttp://gwt-examples.googlecode.com

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



Celltable column click throws exception (only first time)

2011-11-03 Thread Thomas Trebbien Pedersen
Hi,

I have a celltable with a NoSelectionModel as the selection model.
When clicking a column/row an edit panel is shown and the celltable
panel is hidden.

The strange thing is that when clicking a column for the first time
the below exception is thrown but all subsequent clicks on the same
column does not throw the exception.

Exception thrown on first time column click:
com.google.gwt.core.client.JavaScriptException: (Error): Can't move
focus to the control because it is invisible, not enabled, or of a
type that does not accept the focus.

Does anyone know what's going on here? Or have a suggestion for a fix.

Also tried with a SingleSelectionModel but same thing happens so I
don't think it has anything to do with the selection model.

Thanks.

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



Re: MVP Pattern

2011-11-03 Thread Alberto Jesús Rubio Sánchez
Thanks for all,

I don't understand the differences between MVP with Activities and
Places and MVP without Activities and Places.

Can you explain me this?

Regards,

Alberto J.

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



Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Alan Chaney

Ice13ill

On 11/3/2011 6:30 AM, Ice13ill wrote:

Hello, I want create a panel with a flow layout (for ex. FlowPanel)
which contains 2 widgets and a large text at the end (not adiv  or
another element)
I tried to add the widgets and then set the panel's element text:

flowPanel.add(w1)
flowPanel.add(w2)
flowPanel.getElement.setInnerText(largeText)
A FlowPanel is a container for widgets  - not a container for widgets 
and some text at  end!.


Its a bit of a simplification, but basically gwt widgets render by doing 
exactly what you've done in the 3rd line. The best you could do is to 
retrieve the inner text and append your text to it - but really, that's 
a hack.


My preference would be to put the text  in an appropriate widget, such 
as an HTML Widget and add that instead of manipulating the text 
directly, or if you want the text to be unstyled, then use a Label widget.


HTH

Alan




but the last line overrides all other widgets.

How can i do this (but without using UIBinder for now.) ?



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



Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Andrei Cosmin Fifiiţă
Thank you for the reply Alan, but the reason for trying this approach is
because widgets have much more that simple html elements (for example click
handlers for click events) if i set the inner html or text of a panel (or a
HTML widget) the new elements will be rendered ok, but the
listeners/handlers (both native and custom) will be lost

On 3 November 2011 17:20, Alan Chaney a...@mechnicality.com wrote:

 Ice13ill


 On 11/3/2011 6:30 AM, Ice13ill wrote:

 Hello, I want create a panel with a flow layout (for ex. FlowPanel)
 which contains 2 widgets and a large text at the end (not adiv  or
 another element)
 I tried to add the widgets and then set the panel's element text:

 flowPanel.add(w1)
 flowPanel.add(w2)
 flowPanel.getElement.**setInnerText(largeText)

 A FlowPanel is a container for widgets  - not a container for widgets and
 some text at  end!.

 Its a bit of a simplification, but basically gwt widgets render by doing
 exactly what you've done in the 3rd line. The best you could do is to
 retrieve the inner text and append your text to it - but really, that's a
 hack.

 My preference would be to put the text  in an appropriate widget, such as
 an HTML Widget and add that instead of manipulating the text directly, or
 if you want the text to be unstyled, then use a Label widget.

 HTH

 Alan




  but the last line overrides all other widgets.

 How can i do this (but without using UIBinder for now.) ?


 --
 You received 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.comgoogle-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to google-web-toolkit+**
 unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-web-toolkit?hl=enhttp://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.



Dynamic row/cell colors in CellTable

2011-11-03 Thread tachoknight
Hi all-

I am trying to set the colors of a row in a CellTable dynamically,
without CSS. The reason is that the user can choose the color that she
wants to see the results in (hot pink text on red? Sure, no
problem...) and I have found no way to do this; it's easy to to use a
RowStyles class for when you need to dynamically set the row color,
but it seems to only work by returning references to the existing CSS
file; I want to return a string with an actual hex value.

Thanks for any info!

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



Re: How to add click events to multiple images in a cell/celltable

2011-11-03 Thread Thomas Trebbien Pedersen
Hi,

With help from Adam I got it working. See code below:

ListHasCellStep, ? hasCells = new ArrayListHasCellStep, ?();

ColumnStep, String imageUpCell = new ColumnStep, String(new
ClickableCellDecoratorString(new CustomImageCell(16, 16,
imageLink))) {
@Override
public String getValue(Step s) {
if (ct.getVisibleItems().indexOf(s) == 0) {
return images/transppixel_1x1.gif;
}
return images/up_16x16.png;
}
};
imageUpCell.setFieldUpdater(new FieldUpdaterStep, String() {
public void update(int index, Step step, String value) {
if (value.endsWith(up_16x16.png)) {
// Swap implementation
}
}
});
hasCells.add(imageUpCell);

ColumnStep, String imageDownCell = new ColumnStep, String(new
ClickableCellDecoratorString(new CustomImageCell(16, 16,
imageLink))) {
@Override
public String getValue(Step s) {
if (ct.getVisibleItems().indexOf(s) == ct.getRowCount() - 1) {
return images/transppixel_1x1.gif;
}
return images/down_16x16.png;
}
};
imageDownCell.setFieldUpdater(new FieldUpdaterStep, String() {
public void update(int index, Step step, String value) {
if (value.endsWith(down_16x16.png)) {
// Swap implementation
}
}
});
hasCells.add(imageDownCell);

ColumnStep, Step sortColumn = new ColumnStep, Step(new
CompositeCellStep(hasCells)) {
@Override
public Step getValue(Step object) {
return object;
}
};
ct.addColumn(sortColumn);
ct.setColumnWidth(sortColumn, 50, Unit.PX);

\Thomas

On 17 Okt., 19:28, Adam asnyde...@gmail.com wrote:
 ImageCells by themselves don't care about click events. What I did was
 made a decorator that wraps any cell to handle click events and
 delegates them to the FieldUpdater:

 public class ClickableCellDecoratorC implements CellC {

    private static final String CLICK_EVENT = click;

    private final CellC cell;

    private final SetString events;

    /**
     * Constructor accepts the cell to be wrapped.
     *
     * @param cell
     *           The wrapped cell.
     */
    public ClickableCellDecorator(final CellC cell) {
       super();

       this.cell = cell;

       // Add the click event to the wrapped cell's list of consumed
 events
       SetString wrappedEvents = this.cell.getConsumedEvents();
       if (wrappedEvents == null || wrappedEvents.isEmpty()) {
          this.events = Collections.singleton(CLICK_EVENT);
       } else {
          this.events = new HashSetString(wrappedEvents);
          this.events.add(CLICK_EVENT);
       }
    }

    @Override
    public boolean dependsOnSelection() {
       return cell.dependsOnSelection();
    }

    @Override
    public SetString getConsumedEvents() {
       return events;
    }

    @Override
    public boolean handlesSelection() {
       return cell.handlesSelection();
    }

    @Override
    public boolean isEditing(
          final com.google.gwt.cell.client.Cell.Context context,
          final Element parent, final C value) {
       return cell.isEditing(context, parent, value);
    }

    @Override
    public void onBrowserEvent(
          final com.google.gwt.cell.client.Cell.Context context,
          final Element parent, final C value, final NativeEvent event,
          final ValueUpdaterC valueUpdater) {
       if (CLICK_EVENT.equals(event.getType())  valueUpdater != null)
 {
          valueUpdater.update(value);
       }

       cell.onBrowserEvent(context, parent, value, event,
 valueUpdater);
    }

    @Override
    public void render(final com.google.gwt.cell.client.Cell.Context
 context,
          final C value, final SafeHtmlBuilder sb) {
       cell.render(context, value, sb);
    }

    @Override
    public boolean resetFocus(
          final com.google.gwt.cell.client.Cell.Context context,
          final Element parent, final C value) {
       return cell.resetFocus(context, parent, value);
    }

    @Override
    public void setValue(final com.google.gwt.cell.client.Cell.Context
 context,
          final Element parent, final C value) {
       cell.setValue(context, parent, value);
    }

 }

 It was much easier and more flexible than extending every cell type i
 wanted to be clickable.

 Now you can just use new ClickableCellDecorator(new ImageCell())) and
 you should see events.

 Hope this helps,

 Adam

 On Oct 17, 4:36 am, Thomas Trebbien Pedersen







 thomas.trebbien.peder...@gmail.com wrote:
  Hi Adam,

  Yes thank you, this helps a lot - I havn't thought about that.

  But am now having trouble constructing an CompositeCell with the 2
  images. Can you help me a bit here with a little code example.

  I have to do something like this right:

          ListHasCellT, C hasCells = new ArrayListHasCellT, C();
          

Re: How to align header/footer text in cell table

2011-11-03 Thread Thomas Broyer


On Thursday, November 3, 2011 2:01:44 PM UTC+1, Thomas Trebbien Pedersen 
wrote:

 And Google comon and implement this please.


See http://code.google.com/p/google-web-toolkit/issues/detail?id=6500

And there's also the 
HeaderBuilderhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/HeaderBuilder.java
 if 
you need more control (total control actually). 

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



Re: How to set the path to SDK relatively in Eclipse

2011-11-03 Thread Joel
Indeed, it was that (didn't know where to look for them anymore).

But now the problem is how to use them.

In the Add dialog, whether I put ${ECLIPSE_HOME}/plugins
$ECLIPSE_HOME/plugins  $ECLIPSE_HOME$/plugins or  %ECLIPSE_HOME%/
plugins I can't confirm because the OK button is disabled.
There is also an additional message saying The installation directory
does not exist (and NOT C:\eclipse\plugins\gwt-user.jar is missing
which tells me it cannot dereference the given variable)

Am I right ?


On Nov 3, 2:46 am, Rikard Hultén rikardhul...@gmail.com wrote:
 Is it classpath variables you're looking for?

 in 
 eclipsehttp://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic...

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



Re: Dynamic row/cell colors in CellTable

2011-11-03 Thread tachoknight
Okay, I think I solved it though there is probably a better way, I'm
guessing. In my case I'm just trying to render a table;  I do not need
dynamic coloring *after* the table is shown (e.g. I'm not rendering
stock prices which might be colored red or green as the price goes
down or up), so I just needed the colors while the table is being
created. Setting the colors on the rows don't seem to work because the
element count of the table is 0 until it's fully rendered.

The way I did it is to add two more members to the data type class,
foreColor and backColor. Then when I'm setting the columns, I use the
SafeHtmlBuilder to wrap the values in a div with a separate style tag.
Here's the code (based on the GWT CellTable example):

public class GWTCellTableColors implements EntryPoint
{
// A simple data type that represents a contact.
private static class Contact
{
private final Stringaddress;
private final Stringname;
private final StringforeColor;
private final StringbackColor;

public Contact(String name, String address, String foreColor, 
String
backColor)
{
this.name = name;
this.address = address;
this.foreColor = foreColor;
this.backColor = backColor;
}
}

// The list of data to display.
private static ListContactCONTACTS= Arrays.asList(new
Contact(John,

123 
Fourth Road,


FF,


00),

new Contact(Mary,

222 
Lancer Lane,


7cd24d,


5200a4),

new Contact(Zander,

94 
Road Street,


7cd24d,


5200a4));

public void onModuleLoad()
{
final SafeHtmlCell coloredCell = new SafeHtmlCell();

// Create a CellTable.
CellTableContact table = new CellTableContact();

ColumnContact, SafeHtml nameColumn = new ColumnContact,
SafeHtml(coloredCell)
{

@Override
public SafeHtml getValue(Contact object)
{
SafeHtmlBuilder sb = new SafeHtmlBuilder();
sb.appendHtmlConstant(div style='color: # + 
object.foreColor

+ ; background-color: #

+ object.backColor

+ ;');
sb.appendEscaped(object.name);
sb.appendHtmlConstant(/div);

return sb.toSafeHtml();
}

};

// Make the name column sortable.
nameColumn.setSortable(true);

// Create address column.

ColumnContact, SafeHtml addressColumn = new ColumnContact,
SafeHtml(coloredCell)
{

@Override
public SafeHtml getValue(Contact object)
{
SafeHtmlBuilder sb = new SafeHtmlBuilder();

J2EE dependencies with GWT plugin for Eclipse

2011-11-03 Thread Vasan
Anyone knows what happened to 'j2EE dependencies ' option after
installing the GWT plugin and creating a project in Eclipse? I use
this to force Eclipse to copy 'user library' jars into the WEB-INF/lib
directory.  This does not seem to happen anymore, and am doing this
manually now, which defeats a bit of the purpose for the User-
Libraries..

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



Re: Possible to get HTML from a widget?

2011-11-03 Thread Danny Kirchmeier
Maybe you'll want to be using the GWT 2.4 docs instead of the GWT 1.4 docs 
you seem to have.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/index.html

Anyway, from the Widget you can call 
widget.getElement()http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/user/client/ui/UIObject.html#getElement()
 and 
from that element you can call 
element.getString()http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/dom/client/Element.html#getString(),
 
which will get you the full html, including it's own tag.

-- Danny

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eTjFdfN13PkJ.
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.



Eclipse ann GWT serialization

2011-11-03 Thread Steve Parker
I currently have an issue when trying to run hosted mode through
eclipse where the serialization policy filename is different to the
compiled version.
Also I have noticed that a new compile or a page refresh during hosted
causes a new policy file to be created again with a different filename
despite no changes being made to any of the source code.
This makes trying to debug my application impossible wherever an RPC
call is made, can anybody point me at areas to look at to try
rectifying this?

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



Re: Game Development Resources for GWT

2011-11-03 Thread Alexandre Ardhuin
Hi,

You can look at the great tutorial Building Games With Google
Technologies http://proppy-playn101.appspot.com/#1

Alexandre


2011/11/2 James Butler jnbutler1...@gmail.com

 If anyone else knows of online tutorials, books, or other game resources
 for GWT, please reply here and list them for me.
 Thanks

  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/vMYEcNZik1kJ.

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



Re: MVP Pattern

2011-11-03 Thread Thomas Broyer
There's no difference. Activities  Places are mostly about navigation. 
Many people make their activity their presenter. When you create an MVP 
project in Eclipse, it uses Activities  Places, and I believe the 
activities are MVP presenters (not sure, never tried it)

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



Re: MVP Pattern

2011-11-03 Thread Christian Goudreau
Well activities and presenter really look alike and the two denomination
are confusing, but a hint is the presenter interface in Gwt tutorials that
point to a presenter interface that Activities usually implements.

Cheers,

On Thu, Nov 3, 2011 at 1:16 PM, Thomas Broyer t.bro...@gmail.com wrote:

 There's no difference. Activities  Places are mostly about navigation.
 Many people make their activity their presenter. When you create an MVP
 project in Eclipse, it uses Activities  Places, and I believe the
 activities are MVP presenters (not sure, never tried it)

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Vg0PqbYm_5YJ.

 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.




-- 
Christian Goudreau
www.arcbees.com

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



Re: Basic CellTree tutorial not working

2011-11-03 Thread guevaradelaserna
I tried to get your example work, but it failed. I can display other 
ui-elements like buttons, but not cellTree is shown. My Entrypoint looks 
like this:

package com.myproject.client;


import com.google.gwt.core.client.EntryPoint;

import com.google.gwt.user.client.ui.RootPanel;


public class Playing implements EntryPoint {


public void onModuleLoad()

{

SampleCellTree tree = new SampleCellTree();

RootPanel.get().add(tree);

}

}


Why is no cellTree shown?

Thanks in advance

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



Re: Eclipse ann GWT serialization

2011-11-03 Thread Markus Zywitza
I'm no expert by any means, but I recall having some issue with policy
when Eclipse used JDK 7 for compilation and running development mode.
After I configured it to use Java 1.6, everything went fine.

--Markus

2011/11/3 Steve Parker pizak...@gmail.com:
 I currently have an issue when trying to run hosted mode through
 eclipse where the serialization policy filename is different to the
 compiled version.
 Also I have noticed that a new compile or a page refresh during hosted
 causes a new policy file to be created again with a different filename
 despite no changes being made to any of the source code.
 This makes trying to debug my application impossible wherever an RPC
 call is made, can anybody point me at areas to look at to try
 rectifying this?

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



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



Re: generate a web page from java file

2011-11-03 Thread Rachid alfa
hello,

actually I checked and I have not found the showcase example you speak of,
so if possible give me the link to it directly.

I also noticed that the documentation and step by step tutorials are very rare,
especially when it comes WindowBuilder thank you in advance

2011/10/31 Thad thad.humphr...@gmail.com

 Your GWT application is one page. You reveal different portions by
 hiding/showing different objects on that page. Look at the Showcase
 sample to see what I mean.

 On Oct 31, 2:26 pm, scania113 spider6...@gmail.com wrote:
  hello ,
 
  I'm new to GWT, I installed the gwt plugin and the windowbuilder
  plugin on eclipse, I created a new project with a class that
  implements the EntryPoint interface, I was able to graph components
  thanks to this class windowbuilder and I've even run, my problem is
  when I create a second composite gwt, I build my GUI with
  WindowBuilder, but at run-time is always the first page that runs, now
  i'd like to know how to execute the second page

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



Re: IE9 fails to set image dimensions after image load

2011-11-03 Thread Thad
I've added this to Issue #6849
http://code.google.com/p/google-web-toolkit/issues/detail?id=6848

On Nov 3, 12:55 pm, Thad thad.humphr...@gmail.com wrote:
 Using GWT 2.3 and 2.4, IE9 does not set the dimensions of an image
 after the image is loaded. In the code fragment below, IE9 will print
 dimensions: 0, 0:

   Image image = new Image(android.png);
   image.addLoadHandler(new LoadHandler() {
     public void onLoad(LoadEvent event) {
       GWT.log(dimensions: +image.getWidth()+ x +image.getWidth());
     }
   });
   image.setVisible(false);
   RootPanel.get().add(image);

 This makes it impossible to scale or crop and image for display in an
 SVG Canvas.

 Firefox, Chrome, and Safari all give the correct dimensions.

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



Handling browser-based text size

2011-11-03 Thread GeorgeS
My app is working pretty well but I would like to see if there is a
way to handle the case where the user has set the text size in their
browser to some larger size? I'm using pretty standard GWT widgets for
everything and when used with normal sized fonts everything looks fine
but when the user has changed the font I get text overflows and
controls end up overrunning each other.

I know this is going to involve some client-side work but want to make
sure I'm not missing some simple cross-browser fix.

Thanks!

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



Re: How to align header/footer text in cell table

2011-11-03 Thread Craig Mitchell
Big thanks to Thomas and Google for once again listening and implementing! 
 I look forward to using this in the next release.

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



Re: IE9 fails to set image dimensions after image load

2011-11-03 Thread Thad
The fix (as noted on issue #6848):

the load handler *MUST* be set prior to the IMG's src attribute *and*
the IMG *MUST* be added to the DOM first.   This is because IE loads
the image asynchronously as soon as the src attribute is set.  So you
need to do this:

Image image = new Image();
image.addLoadHandler(new LoadHandler() { ... });
image.getElement().getStyle().setVisibility(Style.Visibility.HIDDEN);
RootPanel.get().add(image);
img.setUrl(android.png);

Also, IE (at least IE6 as I remember) doesn't calculate dimensions for
objects with display:none, which is why I changed the call
to .setVisible() to .getStyle().setVisibility(...);

On Nov 3, 3:21 pm, Thad thad.humphr...@gmail.com wrote:
 I've added this to Issue 
 #6849http://code.google.com/p/google-web-toolkit/issues/detail?id=6848

 On Nov 3, 12:55 pm, Thad thad.humphr...@gmail.com wrote:







  Using GWT 2.3 and 2.4, IE9 does not set the dimensions of an image
  after the image is loaded. In the code fragment below, IE9 will print
  dimensions: 0, 0:

    Image image = new Image(android.png);
    image.addLoadHandler(new LoadHandler() {
      public void onLoad(LoadEvent event) {
        GWT.log(dimensions: +image.getWidth()+ x +image.getWidth());
      }
    });
    image.setVisible(false);
    RootPanel.get().add(image);

  This makes it impossible to scale or crop and image for display in an
  SVG Canvas.

  Firefox, Chrome, and Safari all give the correct dimensions.

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



Re: GWT + GAE common issues.

2011-11-03 Thread Brandon Donnelson
Thanks. :)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/a9tC3TpKGuAJ.
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.



UIBinder and interface design

2011-11-03 Thread Pablo Aguiar
Hello list members,

I have the following application design in the paper:


.-.--.-.
|APP  |  SEARCH BOX  |USER | B
|LOGO |TOOLS|INFO | R
+-+--+-+ O
|  M  |  MAIN PANEL  |  S  | W
|  E  |  |  O  | S
|  N  |  |  C  | E
|  U  |  WHERE  THE  |  I  | R
| |ACTION|  A  |
| 15+ | TAKES  PLACE |  L  | S
| |  | | C
|  I  |  .   | | R
|  T  |  .   | | O
|  E  |  .   | | L
|  M  |  | | L
|  S  |  UP TO 500   | |
| |LINES | | B
+-'--'-+ A
|  FOOTER  | R
'--'
  NO HORIZONTAL SCROLL BAR

 * Scroll bar scrolls the
   entire page as a block
 * Panels are not resizable
 * Right and left panels have
   fixed width
 * Center panels take the
   remaining horizontal space


Also available at http://pastebin.com/bNwr1rnW

I'm beginning with UIBinder and all the GWT panels. How should I use them
in order to bring that design to the web browser?

Thanks for any tips or recommendations of what panels should I use and how
to mix them to build that interface.

Kind regards,
-- 
Pablo Aguiar (scorphus) scorp...@gmail.com
Free/Open Source Software Developer/Consultant
FOSS Infrastructure Specialist
http://www.phpeclipse.com/wiki/Community
http://sourceforge.net/users/scorphus

http://www.bookdepository.co.uk/?a_aid=063afaa_bid=1d4f390echan=sgmhttps://mail.google.com/

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



Notification Mole styling

2011-11-03 Thread Skip
I'm a bit dense when it comes to CSS styling in general so please bare
with me.

We are using the NotificationMole in our application.

I have it's use defined in our main app shell ui binder xml file as
follows.

g:NotificationMole animationDuration='100' message='Loading...'
ui:field='mole' styleName=mole width=300px/g:NotificationMole

We are using one of the deprecated css methods where we define our
main css in our gwt html page.

The mole css styling is defined as follows.  I'm trying to get the
mole to be a yellow background color.

.mole{
color:#55;
background-color: #EECD00;
}

However, this styling only changes the outer div background color, as
the default coloring remains for the mole, as defined in the
NotificationMole.ui.xml, which is here for reference

 
http://google-web-toolkit.googlecode.com/svn-history/r8313/trunk/user/src/com/google/gwt/app/client/NotificationMole.ui.xml

So my basic question is, what do I do to override the styles in the
ui.xml file, specifically the colors in the .centered style so they
match my color scheme?

Here's the html that gets generated.  The obfuscated style names
reference styles that match the attributes as specified in the
NotificationMole.ui.xml.

div class=mole style=width: 300px; 
div class=GKMRIMSCLI style=width: 270px; height:
0.5026694219419028px; display: none; 
div span class=GKMRIMSCNILoading.../span /div
/div
/div

Thanks,
Skip


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



play fails to compile after injecting mvp4g

2011-11-03 Thread bhomass
I have used mvp4g successfully before. Now I am trying to get it to
work inside Play. There is no compilation error inside eclipse, but
fails either when I run it or compiling it. the error dump is long,
here is a partial listing

java.lang.ClassNotFoundException: client.presenter.UserCreatePresenter
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty
peOracleMediator.java:727)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty
peOracleMediator.java:666)
at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac
leMediator.java:469)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra
cleMediator.java:625)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr
acleMediator.java:640)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod(TypeOracleM
ediator.java:980)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe
diator.java:839)
at
com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed
iator.java:411)
at
com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ
eOracleMediatorFromSource.java:54)
at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation
State.java:165)
at
com.google.gwt.dev.javac.CompilationState.init(CompilationState.jav
a:82)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat
ionStateBuilder.java:392)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio
nStateBuilder.java:275)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3
25)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
512)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)

at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(Compile
TaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)
 [ERROR] Annotation error: expected class java.lang.Class, got
null
   Resolving client.presenter.RootPresenter
  Found type 'client.presenter.RootPresenter'
 [ERROR] Annotation error: cannot resolve client.view.RootView
java.lang.ClassNotFoundException: client.view.RootView
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotationValue(Ty
peOracleMediator.java:727)
at
com.google.gwt.dev.javac.TypeOracleMediator.createAnnotation(TypeOrac
leMediator.java:469)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotation(TypeOra
cleMediator.java:625)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveAnnotations(TypeOr
acleMediator.java:640)
at
com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMe
diator.java:786)
at
com.google.gwt.dev.javac.TypeOracleMediator.addNewTypes(TypeOracleMed
iator.java:411)
at
com.google.gwt.dev.javac.TypeOracleMediatorFromSource.addNewUnits(Typ
eOracleMediatorFromSource.java:54)
at
com.google.gwt.dev.javac.CompilationState.assimilateUnits(Compilation
State.java:165)
at
com.google.gwt.dev.javac.CompilationState.init(CompilationState.jav
a:82)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(Compilat
ionStateBuilder.java:392)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(Compilatio
nStateBuilder.java:275)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:3
25)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
512)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:
495)
at 

Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Steve Moyer
Try:

flowPanel.add(w1);
flowPanel.add(w2);
flowPanel.getElement.setInnerText(flowPanel.getInnerHTML() +
largeText);

This might be dangerous in some instances, but the widgets should be
well-formed HTML, so adding your text to the end should work.

Good luck!

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



RootPanel.get().clear();

2011-11-03 Thread wahaha
RootPanel.get().clear();

does it will clear the children element of body defined in xx.html?

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



Re: How to disable WEB-INF/deploy/module-name directory

2011-11-03 Thread Nick Siderakis
My app size is too large (for GAE) because of this directory.  Currently 
I'm deleting them by hand after compilation. Is there a way to disable it, 
or move it?  (with out using maven) 

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



Re: RootPanel.get().clear();

2011-11-03 Thread lineman78
RootPanel.clear is inherited from Panel.  The source has it iterating
through the logically attached children and removing them so it should
just remove anything you added from the current GWT module.  If you
wanted to clear everything you would call
RootPanel.get().getElement().setInnerHtml();

On Nov 3, 7:45 pm, wahaha il...@yahoo.com.cn wrote:
 RootPanel.get().clear();

 does it will clear the children element of body defined in xx.html?

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



Re: UIBinder and interface design

2011-11-03 Thread Thomas Broyer
First, layout panels are not what you're looking for (no global 
scrollbar).

IMO, you'd better use plain old HTML+CSS for the layout (i.e. with an 
HTMLPanel as the root), with SimplePanel and FlowPanel where you need to 
dynamically inject widgets (main panel).
Or possibly putting your layout code right into your HTML host page and use 
RootPanel.get(main) to get slots where to dynamically inject widgets.

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



Re: Inserting Widgets and simple text into panel

2011-11-03 Thread Thomas Broyer
As Ice13ill said, setting innerText or innerHTML will break the w1 and w2 
widgets (their element are rebuilt, so the instance they reference are no 
longer in the document, and event handlers obviously fails too (no longer 
registered, to begin with)).

If using a Label or HTML (or InlineLabel/InlineHTML) is not an option:
   String w1Id = HTMLPanel.createUniqueId();
   String w2Id = HTMLPanel.createUniqueId();
   HTMLPanel panel = new HTMLPanel(span id=' + w1Id + '/spanspan 
id=' + w1Id + '/spanlarge text);
   panel.addAndReplaceElement(w1, w1Id);
   panel.addAndReplaceElement(w2, w2Id);

Alternatively, something can be hacked that way:
   flowPanel.add(w1);
   flowPanel.add(w2);
   flowPanel.getElement().appendChild(Document.get().createTextNode(...));
Use at your own risk.

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



Re: How to disable WEB-INF/deploy/module-name directory

2011-11-03 Thread Thomas Broyer
The GWT Compiler has a -deploy parameter for that.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/52-qeAjpRW0J.
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.



Editor Dialog with CellList does not display DockLayoutPanel

2011-11-03 Thread Maiku
Hello,

I have UIBinder class that extends DialogBox and implements
HasDataEditor using a CellList. I want to show the CellList on the
left hand side of the DialogBox and an editor on the right-hand side
for editing a selected item.

However, when I try to put a DockLayoutPanel the screen does not
render it or any widgets it contains (but it still takes up space if I
specify width and height on the DockLayoutPanel).  The strange thing
is that after a lot of testing I can show the same dialog without the
HasDataEditor attached to any POJO and the DockLayoutPanel will appear
just fine.

Does anyone know if there is an issue with Editor + DockLayoutPanel or
CellList + DockLayoutPanel appearing in a DialogBox?

(I can provide code if necessary this issue has been driving me
crazy for a few days now).

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



Firefox 7 GWT plugin

2011-11-03 Thread Ramesh Selvaraj
Hi...

   Please help me to download gwt plugin for firefox 7.

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



Google feed API

2011-11-03 Thread yashujn
Hi,

   I want to use google feed api can somebdy tell me how to use it
they give instruction in the following link
http://www.google.com/uds/solutions/dynamicfeed/reference.html#_customize
but m bit confused like they are asking for the API KEY i signup for
the key their they ask for my url but rite nw m not running my site on
any server so how can i give url...


somebdy clear my confusion.

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



[gwt-contrib] Re: Fix instances of javac's divzero warning. (issue1578811)

2011-11-03 Thread skybrian

LGTM


http://gwt-code-reviews.appspot.com/1578811/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors