Re: Table

2011-07-21 Thread Ashwin Desikan
you can change the color of a button using the CSS background-color 
property. If you want to change the color of all your buttons use 
.gwt-Button and overide it style. If you are using different button of 
varied color/ sizes then change the property of the individual button


.gwt-Button {

}

.button1 {

}

if you are using a custom style you need to associate the style to the 
button


button.setStyleName(button1);

Also, check out custom  buttons under widgets. This would tell you how 
to associate different images with a button especially if you want to 
show different styles/gradients on mouse over/ disabled etc.


regards
Ashwin



On Thursday 21 July 2011 01:49 AM, Robert Lockwood wrote:
I started working with GWT some months ago but stopped because of 
computer availability.  I've just installed Tomcat in an old computer 
of mine and have been able to deploy an example program on it.  I 
don't know much HTML, CSS, and am still learning Java (which I've been 
learning just for this project).


I'm attempting to change some things in the MyWebApp project that uses 
asynch.


I've been able to modify the code, html, and css to move the title, 
table, and popup box to the left side and have attempted to position 
them 10px from the left using css margin.  It doesnt' work for the 
table - how do I do that?
I thought of creating the table in the Java file but it's not clear 
how to do that.



css Margin doesn't work to position the popup from the table, just 
from the top.  I'd like to be able to position it down from the table.


And last and least: how does one change the color of a button on 
display and after some event?


TIA

--
When I was 12 I thought I would live forever.
So far, so good.

--
You received 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: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-21 Thread Shawn Brown
 Glad it's not just me.
 It broken on SnowLeopard too after upgrading to Version 5.1 (6534.50)

I saved the .dmg and ran the GWT Dev Plugin.mpkg which showed it
installed, but it doesn't show up as installed after re-launching
Safari.


7/21/11 3:44:46.041 PM installd: PackageKit: - Begin install -
7/21/11 3:44:46.736 PM installd: Installed Google Web Toolkit
Developer Plugin ()
7/21/11 3:44:46.748 PM installd: PackageKit: - End install -
7/21/11 3:44:47.046 PM Installer: Removing temporary directory
/var/folders/78/qxddxy2j5y153vbgxv22x4_4gn/T//Install.3352RVZOtz
7/21/11 3:44:47.049 PM Installer: Finalize disk Macintosh HD
7/21/11 3:44:47.050 PM Installer: Notifying system of updated components
7/21/11 3:44:47.050 PM Installer:  Summary Information 
7/21/11 3:44:47.050 PM Installer:   Operation  Elapsed time
7/21/11 3:44:47.050 PM Installer: -
7/21/11 3:44:47.050 PM Installer:zero  0.01 seconds
7/21/11 3:44:47.050 PM Installer:disk  0.02 seconds
7/21/11 3:44:47.050 PM Installer: install  1.09 seconds
7/21/11 3:44:47.050 PM Installer: -total-  1.12 seconds
7/21/11 3:44:47.235 PM Installer: IFDInstallController 83025890 state = 5
7/21/11 3:44:47.235 PM Installer: Displaying 'Install Succeeded' UI.

This didn't work for either SnowLeopard or Lion

Shawn

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



keep building workspace after upgrade to eclipse 3.7

2011-07-21 Thread Alex Luya
In the very beginning,I doubt it is a configuration issue,so created a
brand new work space,dropped all .metadata,but problem is still existed.
Sometime,make a little change,then save.eclipse take 20+ minutes to
build workspace.no any useful message get printed on console view.Any
solution to solve the problem?

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



keep Loading web service DOM...(waiting) upgrade to eclipse 3.7

2011-07-21 Thread Alex Luya
(Sorry,repost this issue just now,right I got a may useful message
printed out,so report it)
In the very beginning,I doubt it is a configuration issue,so created a
brand new work space,dropped all .metadata,but problem is still existed.
Every time start eclipse or sometime,make a little change,then
save.eclipse take 20+ minutes to
build workspace.a message Loading web service DOM...(waiting) get
printed on console view.Any
solution to solve the problem?

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



Re: Validation java.util fields

2011-07-21 Thread Adolfo Panizo Touzon
As pointed out in the mail, create the annotation I figured that way was the
solution.

In addition to confirming ... you put the code!.

XD. So glad.

Thank you very much both for answering.

Continuous working.

2011/7/19 Kevin Jordan ke...@kjordan.net

 You can do a custom constraint.

 @Constraint(validatedBy = StringCollectionValidatorImpl.class)
 @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD,
 ElementType.CONSTRUCTOR, ElementType.PARAMETER })
 @Retention(RetentionPolicy.RUNTIME)
 public @interface StringCollectionValidator {
boolean notNull() default true;
int minSize() default -1;
int maxSize() default -1;
 }

 import javax.validation.ConstraintValidator;
 import javax.validation.ConstraintValidatorContext;

 public class ReservationDateRangeImpl implements
 ConstraintValidatorStringCollectionValidator, CollectionString {

boolean notNull;
int minSize;
int maxSize;
public void initialize(StringCollectionValidator anno) {
   notNull = anno.notNull();
   minSize = anno.minSize();
   maxSize = anno.maxSize();
}

public boolean isValid(CollectionString stringCol,
 ConstraintValidatorContext constraintValidatorContext) {
if (stringCol != null) {
   for (String stringVal : stringCol) {
  if (stringVal == null  notNull) {
 return false;
  }
  int size = stringVal.size();
  if ((minSize != -1  size  minSize) || (maxSize != -1
  size  maxSize)) {
 return false;
  }
   }
} else {
return !notNull;
}
return true;
}
 }

 That should get you what you mostly want.

 On Jul 19, 11:03 am, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  Hello,
  I have a question for the community.
  I am developing an API that uses Validation.
 
  After reading this
  articlehttp://people.redhat.com/~ebernard/validation/#d0e991
  , came to the conclusion that the standard JSR-303 allowsthe validation
 of
  fields belonging to the package java.util, but in a peculiar way.
  For example if I have a field like this:
  *
  *
  *class Person {
  *
 
  *@Valid*
 
  *ArrayListArrayListAdress address;*
 
  *}*
 
  No problem, we find that all Address objects are correct. But if I have a
  field like this:
 
  *class Person {
  *
 
  *@ Valid*
 
  *ArrayListArrayListString address;*
 
  *}*
 
  and I want to check the different Strings meet the @NotNull or @Size
  constraint *(I think) **is impossible*.
 
  If someone finds that I am in error or have a idea, please indicate as I
 could
  do (yes, that I can create my own constraint  and manually check that the
  Strings are not null or have a certain size).
 
  Thank you very much everybody.
 
  Adolfo.
 
  --
  El precio es lo que pagas. El valor es lo que recibes.
  Warren Buffet

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received 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: Equivalent JavaScript pattern in GWT

2011-07-21 Thread Ionuț G. Stan

On Jul/20/2011 19:25, Jeff Chimene wrote:

You've got to expose DB_DATA to Java for this to work.
Maybe use Javascript overlays
(http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html),
and call out to Java from JSNI instead of referencing DB_DATA
directly. I write directly since there's more hand-written code
involved than what actually executes.


Thanks a lot. The link you mentioned seem to be exactly what I need.

--
Ionuț G. Stan  |  http://igstan.ro

--
You received 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: keep Loading web service DOM...(waiting) upgrade to eclipse 3.7

2011-07-21 Thread Thomas Broyer
I had that exact same issue with a brand new workspace. Then I tried reusing 
my eclipse 3.6 workspace in 3.7 and no longer have it. So it seems to me 
like it's related to the workspace anyway.

-- 
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/-/pabYSfAWBBwJ.
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: TextArea - issues

2011-07-21 Thread dreamer
Sure. soon.
I am suspecting one of these.

1) Storing in  text in app engine
com.google.appengine.api.datastore.Text field
2) Using getText() and getValue() - setText, setValue() - using freely
assuming they produce consistent results.

One of these is not working as I expected.



On Jul 20, 12:36 pm, Michael Vogt vmei...@googlemail.com wrote:
  1) Keep entering - lines will automatically break and goes to next
  line - enter till you see few line
  2)  getValue()
  3) store in datastore
  4) get from data store and display in another TestArea.

  Somewhere loosing line breaks ?

 Can you post a sample on a public server to look at?

 Greetings,
 Michael Vogt

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



Question about the API of Validation

2011-07-21 Thread Adolfo Panizo Touzon
As I said in another email I'm working with gwt api validation.

Now I'm doing some tests, it is still not allowed the validation of fields
belonging to the package java.util with @Valid constraint.

Associate the exception:
Caused by: java.lang.SecurityException: Prohibited package name: java.util
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.java:1078)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
com.google.genvalgui.client.GwtValidatorImpl.validate(GwtValidatorImpl.java:224)

*For when** will be available? Does anyone have some information?*

Thanks!.


-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
You received 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 packaged app questions. Need to get that first one under my belt.

2011-07-21 Thread dreamer
Check out GWT samples.

C:\eclipse\plugins
\com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508\gwt-2.3.0\samples
\Hello\src\com\google\gwt\sample\hello\client

Without RPC or its variants, GWT is a pure client technology, as you
mentioned runs any where  javascript runs.


On Jul 20, 9:02 pm, Dale12 dale.prat...@gmail.com wrote:
 I'm trying to build a basic packaged app.  My understanding is that a
 packaged app doesn't require a server side.  So, using GWT in Eclipse
 how do I set up a project without it automatically creating a server
 side package?

 Is it possible to use java's APIs when developing a packaged app (with
 no server side)?  Take some of the games available for play offline,
 are they all written using only GWTs APIs and then compiled into
 JavaScript?

 I'm a bit confused on how this works which makes it a little difficult
 to ask well crafted questions.  Any nuggets of info you can throw my
 way would be much appreciated.  Also, if someone could point me to the
 source code for a fairly simple packaged app project that would be
 very helpful.

 Thanks for the help.

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



Re: Connecting to a oracle database with GWT

2011-07-21 Thread Ryan McFall
It looks like you're trying to access the JDBC code from within the
client.  This doesn't work with GWT.

To do this, you need to use an RPC method between the client and the
server, and communicate with Oracle on the server side.  You can use
GWT-RPC or RequestFactory to handle the RPC calls.

Ryan

On Jul 20, 2:02 pm, Bruno Henrique f203...@gmail.com wrote:
 Can someone give an simple example how to use oracle with GWT, using RPC?
 I tried to do something here, but I got the error:

 java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
 Please see the Google App Engine developer's guide for more details.

 at com.google.appengine.tools.development.agent.runtime.Runtime.reject(

 *Runtime.java:51*)

 at oracle.net.nt.TcpNTAdapter.connect(Unknown Source)

 at oracle.net.nt.ConnOption.connect(Unknown Source)

 at oracle.net.nt.ConnStrategy.execute(Unknown Source)

 at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)

 at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)

 at oracle.net.ns.NSProtocol.connect(Unknown Source)

 at oracle.jdbc.ttc7.TTC7Protocol.connect(

 *TTC7Protocol.java:1774*)

 at oracle.jdbc.ttc7.TTC7Protocol.logon(

 *TTC7Protocol.java:215*)

 at oracle.jdbc.driver.OracleConnection.init(

 *OracleConnection.java:362*)

 at oracle.jdbc.driver.OracleDriver.getConnectionInstance(

 *OracleDriver.java:536*)

 at oracle.jdbc.driver.OracleDriver.connect(

 *OracleDriver.java:328*)

 at java.sql.DriverManager.getConnection(Unknown Source)

 at java.sql.DriverManager.getConnection(Unknown Source)

 at
 com.carriers.chartapplication.server.indicador.banco.IndicadorBanco.buscarIndicadorBanco(

 *IndicadorBanco.java:75*)

 at
 com.carriers.chartapplication.server.indicador.negocio.IndicadorNegocio.init(

 *IndicadorNegocio.java:44*)

 at com.carriers.chartapplication.server.GreetingServiceImpl.init(

 *GreetingServiceImpl.java:16*)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(

 *Native Method*)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

 at java.lang.reflect.Constructor.newInstance(Unknown Source)

 at java.lang.Class.newInstance0(Unknown Source)

 at java.lang.Class.newInstance(Unknown Source)

 at org.mortbay.jetty.servlet.Holder.newInstance(

 *Holder.java:153*)

 at org.mortbay.jetty.servlet.ServletHolder.initServlet(

 *ServletHolder.java:428*)

 at org.mortbay.jetty.servlet.ServletHolder.getServlet(

 *ServletHolder.java:339*)

 at org.mortbay.jetty.servlet.ServletHolder.handle(

 *ServletHolder.java:487*)

 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:212*)

 at 

ui widgets - getValue() and getText() difference

2011-07-21 Thread dreamer
Some of UI widgets has both getValue() , 'getText() and
corresponding setter.

Should we use value methods or text methods at least for text based
widgets.

value methods seems to be more generic and most of the UI widgets
seems to has these.

getValue has this aditional parse on top of getText() -

 T parseResult = parser.parse(text);

What does parse do ?

=
public T getValue() {
try {
  return getValueOrThrow();
} catch (ParseException e) {
  return null;
}
  }

  /**
   * Return the parsed value, or null if the field is empty.
   *
   * @throws ParseException if the value cannot be parsed
   */
  public T getValueOrThrow() throws ParseException {
String text = getText();

T parseResult = parser.parse(text);

if (.equals(text)) {
  return null;
}

return parseResult;
  }
=

-- 
You received 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: Connecting to a oracle database with GWT

2011-07-21 Thread dreamer
Eclipse plugin is a real good friend to figure out RPC.

Just create new project choosing both app engine and gwt, creates a
nice working sample RPC , hello world.

Add few more methods for practice, then add few more servlets and call
from client.

On Jul 21, 3:03 am, Ryan McFall mcfall.r...@gmail.com wrote:
 It looks like you're trying to access the JDBC code from within the
 client.  This doesn't work with GWT.

 To do this, you need to use an RPC method between the client and the
 server, and communicate with Oracle on the server side.  You can use
 GWT-RPC or RequestFactory to handle the RPC calls.

 Ryan

 On Jul 20, 2:02 pm, Bruno Henrique f203...@gmail.com wrote:







  Can someone give an simple example how to use oracle with GWT, using RPC?
  I tried to do something here, but I got the error:

  java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
  Please see the Google App Engine developer's guide for more details.

  at com.google.appengine.tools.development.agent.runtime.Runtime.reject(

  *Runtime.java:51*)

  at oracle.net.nt.TcpNTAdapter.connect(Unknown Source)

  at oracle.net.nt.ConnOption.connect(Unknown Source)

  at oracle.net.nt.ConnStrategy.execute(Unknown Source)

  at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source)

  at oracle.net.ns.NSProtocol.establishConnection(Unknown Source)

  at oracle.net.ns.NSProtocol.connect(Unknown Source)

  at oracle.jdbc.ttc7.TTC7Protocol.connect(

  *TTC7Protocol.java:1774*)

  at oracle.jdbc.ttc7.TTC7Protocol.logon(

  *TTC7Protocol.java:215*)

  at oracle.jdbc.driver.OracleConnection.init(

  *OracleConnection.java:362*)

  at oracle.jdbc.driver.OracleDriver.getConnectionInstance(

  *OracleDriver.java:536*)

  at oracle.jdbc.driver.OracleDriver.connect(

  *OracleDriver.java:328*)

  at java.sql.DriverManager.getConnection(Unknown Source)

  at java.sql.DriverManager.getConnection(Unknown Source)

  at
  com.carriers.chartapplication.server.indicador.banco.IndicadorBanco.buscarI 
  ndicadorBanco(

  *IndicadorBanco.java:75*)

  at
  com.carriers.chartapplication.server.indicador.negocio.IndicadorNegocio.in 
  it(

  *IndicadorNegocio.java:44*)

  at com.carriers.chartapplication.server.GreetingServiceImpl.init(

  *GreetingServiceImpl.java:16*)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(

  *Native Method*)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

  at java.lang.reflect.Constructor.newInstance(Unknown Source)

  at java.lang.Class.newInstance0(Unknown Source)

  at java.lang.Class.newInstance(Unknown Source)

  at org.mortbay.jetty.servlet.Holder.newInstance(

  *Holder.java:153*)

  at org.mortbay.jetty.servlet.ServletHolder.initServlet(

  *ServletHolder.java:428*)

  at org.mortbay.jetty.servlet.ServletHolder.getServlet(

  *ServletHolder.java:339*)

  at org.mortbay.jetty.servlet.ServletHolder.handle(

  *ServletHolder.java:487*)

  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$ApiProxyHandle 
  r.handle(

  *JettyContainerService.java:351*)

  at org.mortbay.jetty.handler.HandlerWrapper.handle(

  

GWT GeoMap

2011-07-21 Thread Kady
Hello,

We want to add a simple geoMap to our application. Through the
EntryPoint we add the created GeoMap instance to a div onto the page.
Is there any script other than the generated GWT js that needs to be
added to the application?

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.



how to cancel a scheduled command?

2011-07-21 Thread Hamlet D'Arcy
I scheduled a command using:
Scheduler.get().scheduleFixedPeriod(RepeatingCommand, int);

Is there any way to cancel the command once scheduled?

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



Aw: how to cancel a scheduled command?

2011-07-21 Thread Jens
Hm I don't think so. But you can use GWT's Timer class instead. It has a 
cancel() method as well as a scheduleRepeating(int delayInMillis) method.

-- J.

-- 
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/-/3CyDe9nAr8UJ.
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 cancel a scheduled command?

2011-07-21 Thread Hamlet D'Arcy
Here is the answer:

The execute() method of Scheduler.RepeatingCommand returns a boolean.
If true, then the command will be invoked again. If false, it will be
cancelled.

  public interface RepeatingCommand {
/**
 * Returns true if the RepeatingCommand should be invoked again.
 */
boolean execute();
  }






On Jul 21, 2:13 pm, Jens jens.nehlme...@gmail.com wrote:
 Hm I don't think so. But you can use GWT's Timer class instead. It has a
 cancel() method as well as a scheduleRepeating(int delayInMillis) method.

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



Aw: Re: how to cancel a scheduled command?

2011-07-21 Thread Jens
Ahhh you are right! I totally forgot that. I mostly use Timer because I 
haven't repeating tasks that can decide on its own if they should continue 
or not.

-- J.

-- 
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/-/ouBaPZkjfNYJ.
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 fire blur event when keydown ?

2011-07-21 Thread Patrick Tucker
Why not set focus to false.

On Jul 16, 11:48 am, Luke travalle...@gmail.com wrote:
      @UiHandler(textboxField)
      public void keyDownSearchHandler(KeyDownEvent event){

         //how to fire textboxField blur event after user press key
 down?
      }

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



R: GWT GeoMap

2011-07-21 Thread ungarida
http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted

-- 
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/-/0oBDtlqMbnAJ.
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.



LT INFOTECH Recruit Java Professionals Walk-In @ JOBZLIVE.COM

2011-07-21 Thread radhama...@ymail.com
LT INFOTECH Recruit Java Professionals Walk-In  @ JOBZLIVE.COM
http://www.jobzlive.com/JobDetail.aspx?Jobid=2644
UNLIMITED  JOBS At JOBZLIVEBLOG.COM
http://www.jobzlive.com/JobzliveBlog/?p=1035
UNLIMITED  JOBS WALKIN At JOBZLIVE.COM
http://www.jobzlive.com/JobzliveBlog/?p=1037
CTS Recruits Multiple Skills Walk-in On 23 July 2011@All India
http://www.jobzlive.com/JobzliveBlog/?p=2067
JDA Software Recruits SQL Developers Walk-In On 22nd July 2011 @
Bangalore
http://www.jobzlive.com/JobDetail.aspx?Jobid=2653
NIIT Technolgies Recruits Walk-In On 24th July 2011 @ Chandigarh
http://www.jobzlive.com/JobDetail.aspx?Jobid=2652
BOB Tech Recruits SAP ABAP ConsultantsWalk-In On 22nd July 2011 @
Hyderabad
http://www.jobzlive.com/JobDetail.aspx?Jobid=2651
Xerago Recruits PHP Developers Walk-In On 21st, 22nd  23rd July 2011
@ Chennai
http://www.jobzlive.com/JobDetail.aspx?Jobid=2650
Sparsh Communications NET Professionals Walk-In On 22nd  23rd July
2011 @ Hyderabad
http://www.jobzlive.com/JobDetail.aspx?Jobid=2649
TECH MAHINDRA Recruits ASAP Developers Walk-In On 23rd July 2011@
Bangalore
http://www.jobzlive.com/JobDetail.aspx?Jobid=2648
MNC Company Openings
http://www.jobzlive.com/MNC-Companies-Openings.aspx
Fresher's Placement paper
http://www.jobzlive.com/PlacementPapers.aspx
Fresher's openings -Exclusive in Jobzlive.com(Add in to ur
Favourities)
http://www.jobzlive.com/RssFeed.aspx
Click here to join YAHOO and get more information
http://finance.groups.yahoo.com/group/most_wanted_jobs/join
Click here to join GMAIL and get more information
http://groups.google.co.in/group/most_wanted_jobs_new/subscribe

-- 
You received 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: Third-party Git plugin for Eclipse to use with Google Plugin for Eclipse

2011-07-21 Thread Jeff Larsen
I tried this and got the same problem. 

-- 
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/-/cUtneROSigMJ.
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 debug CSS

2011-07-21 Thread jhulford
You can tell the compiler not to obfuscate the CSS class names in your
module's config file.

Add the following to your module.gwt.xml file:

set-configuration-property name=CssResource.style value=pretty/

On Jul 20, 2:38 am, Ionuț G. Stan ionut.g.s...@gmail.com wrote:
 How do you guys debug CSS given that class names are obfuscated. I'm
 using a CellTable and some rows have up to 4-5 class names.

 Is there a way to @export all these classes in a certain CSS file? I
 don't want to explicitly export them all, even with an automated way of
 extracting the class names.

 Thanks!
 --
 Ionuț G. Stan  |  http://igstan.ro

-- 
You received 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 debug CSS

2011-07-21 Thread Jeff Larsen
I usually just use firebug and I can figure out which styles are which by 
looking at the content.

-- 
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/-/U1S2x3wocJQJ.
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 debug CSS

2011-07-21 Thread Rob Coops
I use Google Chrome for this, (CTRL+SHIFT+i) then you can walk the DOM and
find the element see exactly which stylesheets are influencing this element
and what the computed style is, including inherited styles etc. It really is
very very handy, Firebug is pretty much the same trick for Firefox (which I
am just not a big fan of hence my usage of Chrome)

In IE I have no idea what you could use I guess that there might be a IE
implementaiton of Firebug but I have no idea I try and avoid using IE as
much as I can (been using it since version 3 and never really liked it much)

On Thu, Jul 21, 2011 at 3:49 PM, Jeff Larsen larse...@gmail.com wrote:

 I usually just use firebug and I can figure out which styles are which by
 looking at the content.

 --
 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/-/U1S2x3wocJQJ.

 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.



Stuck on loading widget while changing CellList pages using SimplePager

2011-07-21 Thread bharat411
I am fairly new to GWT and web development in general, but this issue
seems to be a no-brainer (just not to me!).

I am trying to create a file browser of sorts by using a CellList and
a SimplePager. The CellList recieves static data from an ArrayList
which is added using CellList.setRowData(myArrayList).

Data displays fine if I have no paging, and the first page will
display fine if I do use paging (so will the row count, it'll even
change properly). But when I click to go to the next page, all I see
is the loading widget indefinitely. Changing pages after that doesn't
help. Here's my code (some stuff omitted for brevity - still long
though, sorry!):



public class ArcViewerModuleDisplay extends VerticalPanel {

private VerticalPanel displayHolder;
private CellListArchiveRecord resultDisplayer;

private static class ArchiveRecord implements
ComparableArchiveRecord {

private String fileName;
private String filePath;
private Long timeStamp;
private String timeOfRun;

public ArchiveRecord(String name, String path) {
fileName=name;
filePath=path;


timeStamp=Long.valueOf(name.substring(name.lastIndexOf(-)
+1,name.length()-4));
DateTimeFormat dtf=DateTimeFormat.getFormat(dd  
 '@'
HH:mm:ss);
timeOfRun=dtf.format(new Date(timeStamp));
}

@Override
public int compareTo(ArchiveRecord arg0) {
return (int)(this.timeStamp-arg0.timeStamp);
}

}

private static class ArchiveCell extends
AbstractCellArchiveRecord {

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

sb.appendEscapedLines(value.fileName+\n(+value.timeOfRun
+));

}

}

public ArcViewerModuleDisplay(String displayString,
HashMapString, String resultSet) {

final ArrayListArchiveRecord matches=new
ArrayListArchiveRecord();

for(String key: resultSet.keySet()) {
matches.add(new ArchiveRecord(key, resultSet.get(key)));
}

Collections.sort(matches);

setStyleName(x-Content-Module);

ArchiveCell archiveCell=new ArchiveCell();

resultDisplayer=new CellListArchiveRecord(archiveCell);

final MultiSelectionModelArchiveRecord selectionModel=new
MultiSelectionModelArchiveRecord();
resultDisplayer.setSelectionModel(selectionModel);

resultDisplayer.setRowData(matches);
resultDisplayer.setRowCount(matches.size(),true);
resultDisplayer.setPageSize(7);
resultDisplayer.setEmptyListWidget(new Label(No records
found));
resultDisplayer.setLoadingIndicator(new Image(images/
loading.gif));
resultDisplayer.setStyleName(arc-Display);

SimplePager pager=new SimplePager();
pager.setDisplay(resultDisplayer);

displayHolder=new VerticalPanel();
displayHolder.setStyleName(arc-Display-Holder);

displayHolder.add(resultDisplayer);
displayHolder.add(pager);

Label displayLabel=new Label(displayString);
displayLabel.setStyleName(x-Label-Small-Header);

add(displayLabel);
add(displayHolder);
}

}


Any help at all is much appreciated!

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



Sub-classing UiBinder based Widgets

2011-07-21 Thread Alexander Orlov
I have a widget MyWidgetSuperClass  extends Composite that has an
UiBinder backed layout. And I have a MyWidgetSubClass extends
MyWidgetSuperClass.

Now I can do

Button myButton; // this line alone doesn't brake anything
MyWidgetSubClass() {
   widgetFieldOf_MyWidgetSuperClass.add(new Label(name)); // 
works
   widgetFieldOf_MyWidgetSuperClass.add(myButton); //  fails here
}

to add new content to MyWidgetSubClass but adding a new field
(myButton) fails — why?

And is it also possible to extend MyWidgetSubClass.ui.xml adding new
elements to the existing XML layout and accessing them in
MyWidgetSubClass.java?

-Alex

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



button with image and text

2011-07-21 Thread ASlak
My goal is to make a button that has transparency, to look nice, and
text on top so the user knows what the button does.

I currently am using a pushbutton for the image part and that works
fine. The issue is how I am adding the text. Right now I have a label
with the text that I want located behind the pushbutton.  This appears
as I want it to visually, however if I mouse over the label it brings
up the text selector cursor and no longer allows me to click the
button.

Effectively this makes most of the button unclickable(the parts of the
button outside of the label area work as expected).

Is there a way to fix this so the text does not interfere with the
button's function?  Or is there a completely different approach to
this task that would work better?

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-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: button with image and text

2011-07-21 Thread Jeff Larsen
Solution 1. Change the z index of the button to have it be on top of the 
text. 

Solution 2: Use Button instead of PushButton and create a SafeHtml Template 
for your text+image. (this is the better option if you don't need all the 
stuff that PushButton provides)

-- 
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/-/WwARHJ099xcJ.
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 debug CSS

2011-07-21 Thread Ionuț G. Stan

On Jul/21/2011 16:46, jhulford wrote:

You can tell the compiler not to obfuscate the CSS class names in your
module's config file.

Add the following to your module.gwt.xml file:

set-configuration-property name=CssResource.style value=pretty/



Thanks, that's what I was looking for.

Is there a way to have this property interpreted only in development mode?

--
Ionuț G. Stan  |  http://igstan.ro

--
You received 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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Jeff Larsen
Are you calling super()?

Button myButton doesn't look like it was initialized, was it? Also note, if 
Button myButton is being built by ui:binder it needs to have a @UiField and 
come after uiBinder.createAndBindUi.

-- 
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/-/7r0oLEab1FsJ.
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: button with image and text

2011-07-21 Thread ASlak
Thanks for your fast response!

I am very new to gwt, so I may be wrong, but from what I understand
you need to use gwt-ext to change the z index of components. I am
trying to only use standard gwt.  If it is in fact possible to change
the z index with standard gwt then I have not been able to find how to
do it.  I am using eclipse for my project and I have tried the
ordersend to back option for the label in the design window,
but this does not solve the problem.

As for solution 2, I do need some of the features that PushButton
provides, such as the UpHovering property, so I am not sure that that
is a viable option.

So, is it possible to change the z-index in standard gwt? Or is there
another way to solve my issue?

Thanks

On Jul 21, 10:46 am, Jeff Larsen larse...@gmail.com wrote:
 Solution 1. Change the z index of the button to have it be on top of the
 text.

 Solution 2: Use Button instead of PushButton and create a SafeHtml Template
 for your text+image. (this is the better option if you don't need all the
 stuff that PushButton provides)

-- 
You received 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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Alexander Orlov
Now I have

@UiField // just omitted it to simplify the example
Button myButton; // only referenced in MyWidgetSubClass.ui.xml

interface Binder extends UiBinderWidget, MyWidgetSubClass {
}
final Binder binder = GWT.create(Binder.class);

MyWidgetSubClass() {
super(); // haven't called it before, wasn't sure what it does
binder.createAndBindUi(this); // using
initWidget(binder.createAndBindUi(this)) in MyWidgetSuperClass
widgetFieldOf_MyWidgetSuperClass.add(myButton);
}

Now the compilation works but MyWidgetSubClass looks just like
MyWidgetSuperClass.

-Alex

On Jul 21, 4:51 pm, Jeff Larsen larse...@gmail.com wrote:
 Are you calling super()?

 Button myButton doesn't look like it was initialized, was it? Also note, if
 Button myButton is being built by ui:binder it needs to have a @UiField and
 come after uiBinder.createAndBindUi.

-- 
You received 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: button with image and text

2011-07-21 Thread ASlak
So I learned that I can change the z-index.  I tried making the index
of my button Label -1, which made it disappear completely from the
screen.  My guess was that it happened because it had gone behind the
background image, however when I set the image of the background image
to -2 the Label did not reappear.

Any ideas?

Thanks again.

-- 
You received 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: button with image and text

2011-07-21 Thread Jeff Larsen


I am very new to gwt, so I may be wrong, but from what I understand you need 
to use gwt-ext to change the z index of components.


nope it is a CSS property.  

add this to the style of your TextBox
z-index:-1;

also might be able to do what you need to with Button by using the 
appropriate css selectors. 

http://www.w3.org/TR/CSS2/selector.html

5.11.3 The dynamic pseudo-classes: :hover, :active, and :focus

Interactive user agents sometimes change the rendering in response to user 
actions. CSS provides three pseudo-classes for common cases:

   - The :hover pseudo-class applies while the user designates an element 
   (with some pointing device), but does not activate it. For example, a visual 
   user agent could apply this pseudo-class when the cursor (mouse pointer) 
   hovers over a box generated by the element. User agents not supporting 
interactive 
   media http://www.w3.org/TR/CSS2/media.html#interactive-media-group do 
   not have to support this pseudo-class. Some conforming user agents 
   supporting interactive 
mediahttp://www.w3.org/TR/CSS2/media.html#interactive-media-group may 
   not be able to support this pseudo-class (e.g., a pen device).
   - The :active pseudo-class applies while an element is being activated by 
   the user. For example, between the times the user presses the mouse button 
   and releases it.
   - The :focus pseudo-class applies while an element has the focus (accepts 
   keyboard events or other forms of text input).

An element may match several pseudo-classes at the same time.

CSS does not define which elements may be in the above states, or how the 
states are entered and left. Scripting may change whether elements react to 
user events or not, and different devices and UAs may have different ways of 
pointing to, or activating elements.

CSS 2.1 does not define if the parent of an element that is ':active' or 
':hover' is also in that state.

-- 
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/-/XgCraXQrToEJ.
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 debug CSS

2011-07-21 Thread Thomas Broyer
No, but there are workarounds: 
http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler?

(note that setting user.agent or a single locale won't speed up the DevMode, 
but they are honored anyway, so this can be used to set devmode-only 
properties: you'll have a dev module and a prod module, instead of the 
suggested firefox and all browsers module; FYI, this is what Apache Wave 
uses to optimize the compiled code for production but have as much debug 
info as possible when developping)

-- 
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/-/_nQFdqtE7D0J.
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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Thomas Broyer
Generally speaking, you should prefer composition over inheritance. 
Separating your superclass, into a layout widget (using @UiChild methods 
to allow adding child widgets when you use it in another ui.xml template) 
and a presentation logic code that you could possibly extend in a 
subclass, might help here.
(hey, look, we just reinvented MVP ;-) )

-- 
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/-/hGK4Tky1iMUJ.
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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Alexander Orlov
On Jul 21, 5:14 pm, Alexander Orlov alexander.or...@loxal.net wrote:
         binder.createAndBindUi(this);

Ok, got it:

Widget app = binder.createAndBindUi(this);
RootPanel.get(widget).add(app);

...works, but the problem is that I want to bind everything to div
id=widget/div. My Main implements EntryPoint layout looks like

  g:TabPanel ui:field=test
g:Tab
g:TabHTMLMyWidgetSuperClass/g:TabHTML
dp:MyWidgetSuperClass ui:field=myWidgetSuperClass/
/g:Tab
g:Tab
g:TabHTMLMyWidgetSubClass/g:TabHTML
dp:MyWidgetSubClass ui:field=myWidgetSubClass/
/g:Tab
/g:TabPanel

But binding the Main implements EntryPoint and MyWidgetSubClass to
the same DIV ID results in double output. So only MyWidgetSuperClass
is displayed within Main's widget boundaries.

-Alex

-- 
You received 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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Thomas Broyer
Forgot to say: I've used a similar approach where the layout widget is a 
subclass of my superclass:

class MySuperClass {
  interface Binder extends UiBinderWidget, Layout { }
  static final Binder BINDER = GWT.create(Binder.class);

  static class Layout {
private final MySuperClass owner;
Layout(MySuperClass owner) { this.owner = owner; }

// put you @UiField, @UiHandler, etc. here
  }

  final Layout layout;
  public MySuperClass() {
this.layout = new Layout(this);
BINDER.createAndBindUi(this.layout);
  }
  ...
}

-- 
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/-/1-JO2Kv2ZksJ.
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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Alexander Orlov
On Jul 21, 5:35 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Generally speaking, you should prefer composition over inheritance.
 Separating your superclass, into a layout widget (using @UiChild methods
 to allow adding child widgets when you use it in another ui.xml template)
 and a presentation logic code that you could possibly extend in a
 subclass, might help here.
 (hey, look, we just reinvented MVP ;-) )

Thx for this best practice(?) hint! I'll try to figure out how your
example you've posted later works.

-Alex

-- 
You received 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: Sub-classing UiBinder based Widgets

2011-07-21 Thread Alexander Orlov
Just messed up my code trying to implement this practice. Is there a
small actual example which is using two classes (super~ and sub~) with
their respective *.ui.xml's?

-Alex

On Jul 21, 5:39 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Forgot to say: I've used a similar approach where the layout widget is a
 subclass of my superclass:

 class MySuperClass {
   interface Binder extends UiBinderWidget, Layout { }
   static final Binder BINDER = GWT.create(Binder.class);

   static class Layout {
     private final MySuperClass owner;
     Layout(MySuperClass owner) { this.owner = owner; }

     // put you @UiField, @UiHandler, etc. here
   }

   final Layout layout;
   public MySuperClass() {
     this.layout = new Layout(this);
     BINDER.createAndBindUi(this.layout);
   }
   ...







 }

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



GWT RPC with large data arrays

2011-07-21 Thread Daniel Peterson
I'm trying to transmit large amounts of data from my server to my
client using the Asynchronous RPC calls. I've noticed that for these
arrays often take quite a long period of time to transmit. I'm only
sending four sets of data, but containing several hundred (to perhaps
a thousand) points each. I'm transmitting a simple class that holds
four parallel double arrays that will be used to populate a DataTable
for a visualization (from the Google Visualization API).

I could restructure my classes and doubtless get a little speed up (by
only having one array that I am transferring), but the entire
transmission process occurs three to four times faster if I parse the
data on the server from a byte array to a string using a string
buffer, than transmit a single string across the RPC.

I've seen that I could manually code the serialing interface for the
RPC call, but, unless I can find a way to send a large blob of data
and escape the arrays, I don't think that will speed up the process
too much.

I been looking into the JSON queries, but am not sure how much faster
they could be since it seems the point of that is to transmit a long
string across as well. As I understand it, the parsing would be faster
because JavaScript natively reads it.

Finally, I've glanced over HTTP requests, but I'm not sure about speed
gains there either, and I don't want to have to entirely retool my
server.

My question is thus: I'm fairly inexperienced at web development and
these sorts of client/server interactions. What would be the best way
to encode this data for quick transmission to the client?

Thanks.

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



Re: GWT RPC with large data arrays

2011-07-21 Thread Juan Pablo Gardella
I think you can zip the data.

2011/7/21 Daniel Peterson dannothete...@gmail.com

 I'm trying to transmit large amounts of data from my server to my
 client using the Asynchronous RPC calls. I've noticed that for these
 arrays often take quite a long period of time to transmit. I'm only
 sending four sets of data, but containing several hundred (to perhaps
 a thousand) points each. I'm transmitting a simple class that holds
 four parallel double arrays that will be used to populate a DataTable
 for a visualization (from the Google Visualization API).

 I could restructure my classes and doubtless get a little speed up (by
 only having one array that I am transferring), but the entire
 transmission process occurs three to four times faster if I parse the
 data on the server from a byte array to a string using a string
 buffer, than transmit a single string across the RPC.

 I've seen that I could manually code the serialing interface for the
 RPC call, but, unless I can find a way to send a large blob of data
 and escape the arrays, I don't think that will speed up the process
 too much.

 I been looking into the JSON queries, but am not sure how much faster
 they could be since it seems the point of that is to transmit a long
 string across as well. As I understand it, the parsing would be faster
 because JavaScript natively reads it.

 Finally, I've glanced over HTTP requests, but I'm not sure about speed
 gains there either, and I don't want to have to entirely retool my
 server.

 My question is thus: I'm fairly inexperienced at web development and
 these sorts of client/server interactions. What would be the best way
 to encode this data for quick transmission to the client?

 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.



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



Re: GWT RPC with large data arrays

2011-07-21 Thread Jeff Larsen
I agree that gzipping the data probably makes sense


also I think that if you were to use JSON you'd see a marked improvement. 
You can test that theory out using RequestFactory, it uses JSON as the 
serialization technique. 

-- 
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/-/suQWNKWe98EJ.
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.



[Announcement] GWT animation and effect library with CSS3 support

2011-07-21 Thread mechacha
Tada! I just released it! Hope that will be useful to some of you.
Even if the documentation is currently missing. But you can always
check the examples.

Just try a demo!
http://www.visualfox.me/app/visualfox-fx

And grab the source:
http://code.google.com/p/visualfox-fx/

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



Problem applying stylesheet to FlexTable

2011-07-21 Thread fny82
I've included a StyleSheet in my GWT project (in the .gwt.xml file).
I'm trying to set the first and third columns of this flex table to
right alignment. I first tried to use getColumnFormatter(), but that
didn't work. Specifically, I did this:

myFlexTable.getColumnFormatter().addStyleName(0, myRightAlignStyle);
myFlexTable.getColumnFormatter().addStyleName(2, myRightAlignStyle);

This didn't change anything, though. The two columns still appeared
aligned to the left. So I next tried getCellFormatter():

myFlexTable.getCellFormatter().addStyleName(0, 0,
myRightAlignStyle);
myFlexTable.getCellFormatter().addStyleName(2, 0,
myRightAlignStyle);

(etc.)

This works, but it's obviously a longer way to do it. Is there
anything peculiar that I need to know about getColumnFormatter(), or
am I just messing it up? 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: [Announcement] GWT animation and effect library with CSS3 support

2011-07-21 Thread Gal Dolber
great demo!!

On Thu, Jul 21, 2011 at 2:49 PM, mechacha mecha...@gmail.com wrote:

 Tada! I just released it! Hope that will be useful to some of you.
 Even if the documentation is currently missing. But you can always
 check the examples.

 Just try a demo!
 http://www.visualfox.me/app/visualfox-fx

 And grab the source:
 http://code.google.com/p/visualfox-fx/

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

-- 
You received 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: [Announcement] GWT animation and effect library with CSS3 support

2011-07-21 Thread Alain Ekambi
Now that s impressive.
Great work.

GWT community FT'W 

2011/7/21 Gal Dolber gal.dol...@gmail.com

 great demo!!


 On Thu, Jul 21, 2011 at 2:49 PM, mechacha mecha...@gmail.com wrote:

 Tada! I just released it! Hope that will be useful to some of you.
 Even if the documentation is currently missing. But you can always
 check the examples.

 Just try a demo!
 http://www.visualfox.me/app/visualfox-fx

 And grab the source:
 http://code.google.com/p/visualfox-fx/

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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





  --
 You received 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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: [Announcement] GWT animation and effect library with CSS3 support

2011-07-21 Thread Juan Pablo Gardella
Thanks for share it!

2011/7/21 mechacha mecha...@gmail.com

 Tada! I just released it! Hope that will be useful to some of you.
 Even if the documentation is currently missing. But you can always
 check the examples.

 Just try a demo!
 http://www.visualfox.me/app/visualfox-fx

 And grab the source:
 http://code.google.com/p/visualfox-fx/

 --
 You received 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: [Announcement] GWT animation and effect library with CSS3 support

2011-07-21 Thread Jeff Larsen
Cool demo. I would recommend that people with epilepsy stay away from the 
demo however :)

-- 
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/-/vrl8bhlte5YJ.
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 animation and effect library with CSS3 support

2011-07-21 Thread VisualFox
Thank guys! That motivate me to write some documentation! I am so glad
that you like it!

On Jul 21, 7:49 pm, mechacha mecha...@gmail.com wrote:
 Tada! I just released it! Hope that will be useful to some of you.
 Even if the documentation is currently missing. But you can always
 check the examples.

 Just try a demo!http://www.visualfox.me/app/visualfox-fx

 And grab the source:http://code.google.com/p/visualfox-fx/

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



Re: Problem applying stylesheet to FlexTable

2011-07-21 Thread skippy
first, the argument to getCellFormatter is row, column, style name.
second, sometimes you need to remove style name first.


On Jul 21, 12:46 pm, fny82 fze...@gmail.com wrote:
 I've included a StyleSheet in my GWT project (in the .gwt.xml file).
 I'm trying to set the first and third columns of this flex table to
 right alignment. I first tried to use getColumnFormatter(), but that
 didn't work. Specifically, I did this:

 myFlexTable.getColumnFormatter().addStyleName(0, myRightAlignStyle);
 myFlexTable.getColumnFormatter().addStyleName(2, myRightAlignStyle);

 This didn't change anything, though. The two columns still appeared
 aligned to the left. So I next tried getCellFormatter():

 myFlexTable.getCellFormatter().addStyleName(0, 0,
 myRightAlignStyle);
 myFlexTable.getCellFormatter().addStyleName(2, 0,
 myRightAlignStyle);

 (etc.)

 This works, but it's obviously a longer way to do it. Is there
 anything peculiar that I need to know about getColumnFormatter(), or
 am I just messing it up? 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: keep building workspace after upgrade to eclipse 3.7

2011-07-21 Thread skippy
I have seen this also.  Do you have a proxy server on your netwrok?
Try this, when you are building, unplug your network cable and see if
it takes off.

If it does, go to Window/preference/general/network connection.
Switch to manual
add the http and https host and ports, manual and true, user and
password

here is the key, proxy bypass for localhost and 127.0.0.1 (your loop
back address)

Hope this helps!

On Jul 21, 2:15 am, Alex Luya alexander.l...@gmail.com wrote:
 In the very beginning,I doubt it is a configuration issue,so created a
 brand new work space,dropped all .metadata,but problem is still existed.
 Sometime,make a little change,then save.eclipse take 20+ minutes to
 build workspace.no any useful message get printed on console view.Any
 solution to solve the problem?

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



Re: Problem applying stylesheet to FlexTable

2011-07-21 Thread Frank Zecca
Thanks for the response. That was a typo in my post, I have the 
getCellFormatter() syntax properly in my application. It works fine when I do 
it that way, but the problem is that I have to have a pair of entries for each 
row in my FlexTable, which is a bit annoying. :)

Regarding the getColumnFormatter(), how do I use removeStyleName() since I 
haven't applied any other styles to this FlexTable? The arguments for it call 
for the column number and the style to remove. For the hell of it, I tried 
using removeStyleName(0, myRightAlignStyle) but it didn't make a difference. 
I also tried using setStyleName(0, myRightAlignStyle) instead of 
addStyleName, but this too had no effect.


On Jul 21, 2011, at 2:48 PM, skippy wrote:

 first, the argument to getCellFormatter is row, column, style name.
 second, sometimes you need to remove style name first.
 
 
 On Jul 21, 12:46 pm, fny82 fze...@gmail.com wrote:
 I've included a StyleSheet in my GWT project (in the .gwt.xml file).
 I'm trying to set the first and third columns of this flex table to
 right alignment. I first tried to use getColumnFormatter(), but that
 didn't work. Specifically, I did this:
 
 myFlexTable.getColumnFormatter().addStyleName(0, myRightAlignStyle);
 myFlexTable.getColumnFormatter().addStyleName(2, myRightAlignStyle);
 
 This didn't change anything, though. The two columns still appeared
 aligned to the left. So I next tried getCellFormatter():
 
 myFlexTable.getCellFormatter().addStyleName(0, 0,
 myRightAlignStyle);
 myFlexTable.getCellFormatter().addStyleName(2, 0,
 myRightAlignStyle);
 
 (etc.)
 
 This works, but it's obviously a longer way to do it. Is there
 anything peculiar that I need to know about getColumnFormatter(), or
 am I just messing it up? 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.
 

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



Re: Browser Type and version

2011-07-21 Thread skippy
what about FireFox and the MAC Browsers?

On Jul 20, 3:42 pm, Jim Douglas jdou...@basis.com wrote:
 Parse the navigator.userAgent string.

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...()

 http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx

 http://www.useragentstring.com/

 On Jul 20, 1:30 pm, skippy al.leh...@fisglobal.com wrote:



  Can GWT help me determine the browser (IE FireFox) and the version?

  We want to tell users using old versions of IE like 6 and 7 that they
  need to upgrade due to performace problems when viewing large values
  of data.

  I just have not seen an example that has a conplete list.

  Also what is oprea?  FireFox?

  Thanks- Hide quoted text -

 - Show quoted text -

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



Re: Problem applying stylesheet to FlexTable

2011-07-21 Thread skippy
By default, the original style is a GWT style.  Sometimes they are
documented in the java doc.

or look in the generated GWT css files.


On Jul 21, 2:00 pm, Frank Zecca fze...@gmail.com wrote:
 Thanks for the response. That was a typo in my post, I have the 
 getCellFormatter() syntax properly in my application. It works fine when I do 
 it that way, but the problem is that I have to have a pair of entries for 
 each row in my FlexTable, which is a bit annoying. :)

 Regarding the getColumnFormatter(), how do I use removeStyleName() since I 
 haven't applied any other styles to this FlexTable? The arguments for it call 
 for the column number and the style to remove. For the hell of it, I tried 
 using removeStyleName(0, myRightAlignStyle) but it didn't make a 
 difference. I also tried using setStyleName(0, myRightAlignStyle) instead 
 of addStyleName, but this too had no effect.

 On Jul 21, 2011, at 2:48 PM, skippy wrote:



  first, the argument to getCellFormatter is row, column, style name.
  second, sometimes you need to remove style name first.

  On Jul 21, 12:46 pm, fny82 fze...@gmail.com wrote:
  I've included a StyleSheet in my GWT project (in the .gwt.xml file).
  I'm trying to set the first and third columns of this flex table to
  right alignment. I first tried to use getColumnFormatter(), but that
  didn't work. Specifically, I did this:

  myFlexTable.getColumnFormatter().addStyleName(0, myRightAlignStyle);
  myFlexTable.getColumnFormatter().addStyleName(2, myRightAlignStyle);

  This didn't change anything, though. The two columns still appeared
  aligned to the left. So I next tried getCellFormatter():

  myFlexTable.getCellFormatter().addStyleName(0, 0,
  myRightAlignStyle);
  myFlexTable.getCellFormatter().addStyleName(2, 0,
  myRightAlignStyle);

  (etc.)

  This works, but it's obviously a longer way to do it. Is there
  anything peculiar that I need to know about getColumnFormatter(), or
  am I just messing it up? 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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
  text -

 - Show quoted text -

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



Re: GWT animation and effect library with CSS3 support

2011-07-21 Thread Alain Ekambi
keep up the good work

2011/7/21 VisualFox mecha...@gmail.com

 Thank guys! That motivate me to write some documentation! I am so glad
 that you like it!

 On Jul 21, 7:49 pm, mechacha mecha...@gmail.com wrote:
  Tada! I just released it! Hope that will be useful to some of you.
  Even if the documentation is currently missing. But you can always
  check the examples.
 
  Just try a demo!http://www.visualfox.me/app/visualfox-fx
 
  And grab the source:http://code.google.com/p/visualfox-fx/

 --
 You received 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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: Problem applying stylesheet to FlexTable

2011-07-21 Thread Frank Zecca
Ah good point! OK, I'll take a closer look at that. Thank you.


On Jul 21, 2011, at 3:16 PM, skippy wrote:

 By default, the original style is a GWT style.  Sometimes they are
 documented in the java doc.
 
 or look in the generated GWT css files.
 
 
 On Jul 21, 2:00 pm, Frank Zecca fze...@gmail.com wrote:
 Thanks for the response. That was a typo in my post, I have the 
 getCellFormatter() syntax properly in my application. It works fine when I 
 do it that way, but the problem is that I have to have a pair of entries for 
 each row in my FlexTable, which is a bit annoying. :)
 
 Regarding the getColumnFormatter(), how do I use removeStyleName() since I 
 haven't applied any other styles to this FlexTable? The arguments for it 
 call for the column number and the style to remove. For the hell of it, I 
 tried using removeStyleName(0, myRightAlignStyle) but it didn't make a 
 difference. I also tried using setStyleName(0, myRightAlignStyle) instead 
 of addStyleName, but this too had no effect.
 
 On Jul 21, 2011, at 2:48 PM, skippy wrote:
 
 
 
 first, the argument to getCellFormatter is row, column, style name.
 second, sometimes you need to remove style name first.
 
 On Jul 21, 12:46 pm, fny82 fze...@gmail.com wrote:
 I've included a StyleSheet in my GWT project (in the .gwt.xml file).
 I'm trying to set the first and third columns of this flex table to
 right alignment. I first tried to use getColumnFormatter(), but that
 didn't work. Specifically, I did this:
 
 myFlexTable.getColumnFormatter().addStyleName(0, myRightAlignStyle);
 myFlexTable.getColumnFormatter().addStyleName(2, myRightAlignStyle);
 
 This didn't change anything, though. The two columns still appeared
 aligned to the left. So I next tried getCellFormatter():
 
 myFlexTable.getCellFormatter().addStyleName(0, 0,
 myRightAlignStyle);
 myFlexTable.getCellFormatter().addStyleName(2, 0,
 myRightAlignStyle);
 
 (etc.)
 
 This works, but it's obviously a longer way to do it. Is there
 anything peculiar that I need to know about getColumnFormatter(), or
 am I just messing it up? 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 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
 text -
 
 - Show quoted text -
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



Auto refresh data grid after x seconds

2011-07-21 Thread Deepesh Naidu
Hi All,

I have a data grid being displayed in the onrender method of my
widget.
But I need to auto refresh the data displayed in the grid after x
seconds.
Any suggestions on how to go about doing this.

any help alongwith an example will be of great help.

-Deepesh

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



RPC from external client

2011-07-21 Thread fchas
I'd like to understand if or how GWT accepts external RPCs.  I'm
designing a GWT app right now and I'd like the ability to call the GWT
app from another application using HTTP.  I want GWT to support CRUD
operations for my DB and then return an HTTP response.  So in essence
I want the GWT app to support live users via the UI and a web API
(REST, perhaps).  Does GWT support this out of the box or is there a
3rd party library that's worthy?

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



Multi-colored lines in TextArea

2011-07-21 Thread Rike255
I'm using a TextArea as a sort of alert log window.  Basically my goal
is to highlight major errors in red, normal operational messages in
black, etc.

Is there a way to do this?  Possibly applying styles to specific lines
or maybe I need to switch away from a TextArea widget.

Thanks!
Ryan

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



Aw: Multi-colored lines in TextArea

2011-07-21 Thread Jens
I think you have to use RichTextArea instead of TextArea to be able to style 
specific lines.

-- J.

-- 
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/-/0D5w6ccqo3cJ.
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 Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-21 Thread Eric Ridge
On Wed, Jul 20, 2011 at 7:16 PM, Eric Ridge eeb...@gmail.com wrote:

 Maybe I'll try to hunt down the plugin sources and re-compile it and
 see what happens.

Well, that didn't help.  What I found is that the little Browser.app
testing app that comes with the plugin source does indeed load the
plugin (but then there's crashes in OophmWebScriptObject.mm):

GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as x86_64-apple-darwin.sharedlibrary
apply-load-rules all
Waiting for process 'Browser' to launch.
Attaching to process 31073.
warning: This configuration supports Darwin but is attempting to load
an executable of type i386:x86-64 which is unlikely to work.
Attempting to continue.
`/usr/lib/dyld' has changed; re-reading symbols.
warning: Inconsistent DBX_SYMBOL_SIZE (nlist record size was 16, is
now 12 with /usr/lib/dyld)

Pending breakpoint 1 - OophmWebScriptObject.mm:121 resolved
Current language:  auto; currently objective-c++
(gdb) bt
#0  -[OophmWebScriptObject
connectWithUrl:withSessionKey:withHost:withModuleName:withHostedHtmlVersion:]
(self=0x6c03fd30, _cmd=0x6c03f7b0, url=0x0, sessionKey=0x0, host=0x0,
moduleName=0x0, hostedHtmlVersion=0x0) at OophmWebScriptObject.mm:121
#1  0x9636768d in __invoking___ ()
#2  0x963675c9 in -[NSInvocation invoke] ()
#3  0x9b7c1b47 in JSC::Bindings::ObjcInstance::invokeObjcMethod ()
#4  0x9b7c16b1 in JSC::Bindings::ObjcInstance::invokeMethod ()
#5  0x9b7c15ac in JSC::callRuntimeMethod ()
#6  0x90e9a64c in cti_op_call_NotJSFunction ()
Previous frame inner to this frame (gdb could not unwind past this frame)
(gdb)

and I can't figure out why all the arguments to connectWithUrl are null.

However, none of that seems to matter since when you actually install
the plugin into either ~/Library/Internet Plugins, or
/Library/Internet Plugins, Safari still refuses to load it.

I don't know what to think.  :(

eric

-- 
You received 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: Canvas and drawing Images that are not in the DOM

2011-07-21 Thread Dallas
I've used this approach (with some minor tweaks) and its works fine.
The tweak is to set the image visibility to false, add it to the dom,
and once it is loaded, remove it from the dom.

Image image = new Image(resource.getURL());

image.addLoadHandler(new LoadHandler() {
@Override
public void onLoad(LoadEvent event) {
// use the image
RootPanel.get().remove(image); // remove from 
dom if you don't
want it there anymore (optional - it isn't visible anyways)
}
});

image.setVisible(false);
RootPanel.get().add(image);


On Jul 20, 1:34 am, Markus ad...@thandaro.com wrote:
 No, that will only work if I add the image to the RootPanel or other
 Components. The Canvas does not display the Image, they draw the
 image.

 And the second Problem is, that they are over 100+ images... I want to
 use a general solution.

 Image img = new Image(_resources/img/tiles/smiley.png);
                 img.addLoadHandler(new LoadHandler() {
                         @Override
                         public void onLoad(LoadEvent event) {
                                 // Never loaded, cause not in the DOM
                                 System.out.println(Images loaded );
                         }
                 });

 But if I add the Image to the DOM

 RootPanel.get().add(img);

 With this code line, the image will be show and the onLoad Handler
 will be executed. But I want the Image without adding to an Component.

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



Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-21 Thread Darmawan
Looks like it's because the Webkit Plugin API is deprecated in Safari 5.1
( regardless the OSX version ) ? Can anybody help to confirm this ?

Thanks.


On Thu, Jul 21, 2011 at 3:25 PM, Eric Ridge eeb...@gmail.com wrote:

 On Wed, Jul 20, 2011 at 7:16 PM, Eric Ridge eeb...@gmail.com wrote:

  Maybe I'll try to hunt down the plugin sources and re-compile it and
  see what happens.

 Well, that didn't help.  What I found is that the little Browser.app
 testing app that comes with the plugin source does indeed load the
 plugin (but then there's crashes in OophmWebScriptObject.mm):

 GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul  1 10:50:06 UTC
 2011)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as x86_64-apple-darwin.sharedlibrary
 apply-load-rules all
 Waiting for process 'Browser' to launch.
 Attaching to process 31073.
 warning: This configuration supports Darwin but is attempting to load
 an executable of type i386:x86-64 which is unlikely to work.
 Attempting to continue.
 `/usr/lib/dyld' has changed; re-reading symbols.
 warning: Inconsistent DBX_SYMBOL_SIZE (nlist record size was 16, is
 now 12 with /usr/lib/dyld)

 Pending breakpoint 1 - OophmWebScriptObject.mm:121 resolved
 Current language:  auto; currently objective-c++
 (gdb) bt
 #0  -[OophmWebScriptObject

 connectWithUrl:withSessionKey:withHost:withModuleName:withHostedHtmlVersion:]
 (self=0x6c03fd30, _cmd=0x6c03f7b0, url=0x0, sessionKey=0x0, host=0x0,
 moduleName=0x0, hostedHtmlVersion=0x0) at OophmWebScriptObject.mm:121
 #1  0x9636768d in __invoking___ ()
 #2  0x963675c9 in -[NSInvocation invoke] ()
 #3  0x9b7c1b47 in JSC::Bindings::ObjcInstance::invokeObjcMethod ()
 #4  0x9b7c16b1 in JSC::Bindings::ObjcInstance::invokeMethod ()
 #5  0x9b7c15ac in JSC::callRuntimeMethod ()
 #6  0x90e9a64c in cti_op_call_NotJSFunction ()
 Previous frame inner to this frame (gdb could not unwind past this frame)
 (gdb)

 and I can't figure out why all the arguments to connectWithUrl are null.

 However, none of that seems to matter since when you actually install
 the plugin into either ~/Library/Internet Plugins, or
 /Library/Internet Plugins, Safari still refuses to load it.

 I don't know what to think.  :(

 eric

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



Trying to run the sample projects from source

2011-07-21 Thread Dan Billings
I have checked out and successfully compiled the GWT source.

Now I want to run some of the samples.

I see in build.xml, for the samples target:

Builds (or runs ${target} if set) the samples

Does anyone know what I need to do to set this ${target} so that I can get a 
sample to run?  (e.g. mail?)

Thanks for the help,

-Dan

-- 
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/-/skUYSeBhSHcJ.
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: Auto refresh data grid after x seconds

2011-07-21 Thread Daniel Peterson
You might try setting all your data into Labels and keeping the
references to the labels in a vector, arraylist, map, whatever.

Attach the labels to the grid using the setWidget method. Updating the
labels you have stored will update the grid entries.

I've done that with a FlexTable, though without the storage structure
for the labels. Hope this helps:

public class OverviewPanel extends Composite {

private FlexTable table;

private Label valFlow;
private Label valPower;
private Label valSource;
private Label valTarget;

public OverviewPanel(double flow, double power, doube source, double
target) {

overviewPanel = new HorizontalPanel();
overviewPanel.setStyleName(gwt-sb-label-no-bkgd);
overviewPanel.setWidth(600px);
initWidget(overviewPanel);

table = new FlexTable();
table.setCellSpacing(5);
overviewPanel.add(table);

valFlow = addDataSet(Flow:, gal, flow, 0, 0);
valPower = addDataSet(Power:, kW, power, 0, 4);
valSource = addDataSet(Source:, ft, source, 0, 6);
valTarget = addDataSet(Target:, ft, target, 0, 8);
}

public void updateData(double flow, double power, double source,
double target) {

valPower.setText(power.value);
valFlow.setText(flow.);
valSource.setText(source);
valTarget.setText(target);
}

public void add(Widget widget) {
overviewPanel.add(widget);
}

private Label addDataSet(String name, String units, double value, int
row, int startColumn) {
Label nameLabel = new Label(name);
table.setWidget(row, startColumn, nameLabel);

nameLabel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);

Label value = new Label(Double.toString(value));

value.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
value.setStyleName(gwt-sb-tag-value);
value.setWidth(50px);
table.setWidget(row, startColumn + 1, value);

Label unitsLabel = new Label(units);
table.setWidget(row, startColumn + 2, unitsLabel);

return 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-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: Disposable activities

2011-07-21 Thread Karthik Reddy
...then it's better to dispose it to free some memory. 
 

I guess, this means, explicitly invoking removeFromParent()  on the view 
class.

Am I right in this assertion??? 




-- 
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/-/cLZu1fPInU0J.
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: Disposable activities

2011-07-21 Thread Karthik Reddy
@Thomas

*...then it's better to dispose it to free some 
memory.  *

I guess, this means, explicitly invoking removeFromParent()  on the view 
class.

Do you agree with my statement??? 

-- 
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/-/CvWPMkoU95gJ.
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.



Aw: Re: Disposable activities

2011-07-21 Thread Jens
You do not have to call removeFromParent() yourself. As soon as a new 
activity gets active the view from the last activity will be removed from 
the display area (displayarea.setWidget(null) is automatically called 
before the new activity will be started). So if you cache views for a while, 
you just have to remove it from your cache, e.g. removing all references to 
it, so it can be garbage collected by the browser.

-- 
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/-/kOzt6DvY2RMJ.
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.



RPC Error: No file found for..

2011-07-21 Thread ph09
 

Hello,

sry I am newbie to this Topic. I have searched the whole day for a solution, 
but I can't find the problem.
I've tried a lot, without any bettering. Hope you can help me.

When I tried to call a RPC Service, I get always this Message:
[WARN] No file found for: /kuss_projekt/SpeicherService

Thats my source code:

web.xml:
web-app

servlet
servlet-nameSpeicherService/servlet-name
servlet-classde.fhdo.kuss.server.SpeicherServiceImpl/servlet-class
/servlet

servlet-mapping
servlet-nameSpeicherService/servlet-name
url-pattern/SpeicherService/url-pattern
/servlet-mapping

!-- Default page to serve --
welcome-file-list
welcome-fileKuss_Projekt.html/welcome-file
/welcome-file-list

/web-app

-

Kuss_Projekt.gwt.xml:
module rename-to='kuss_projekt'
!-- Inherit the core Web Toolkit stuff. --
inherits name='com.google.gwt.user.User' /

!-- Inherit the default GWT style sheet. You can change --
!-- the theme of your GWT application by uncommenting --
!-- any one of the following lines. --
inherits name='com.google.gwt.user.theme.clean.Clean' /
!--inherits name='com.google.gwt.user.theme.standard.Standard'/ --
!-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
!--inherits name='com.google.gwt.user.theme.dark.Dark'/ --

!-- Other module inherits --

!-- Specify the app entry point class. --
entry-point class='de.fhdo.kuss.client.Kuss_Projekt' /

!-- Specify the paths for translatable code --
source path='client' /
source path='shared' /

 /module

-

Speicherservice:
@RemoteServiceRelativePath(SpeicherService)
public interface SpeicherService extends RemoteService {

  String getName(String name);

  public static class Util {
private static SpeicherServiceAsync instance;
public static SpeicherServiceAsync getInstance(){
  if (instance == null) {
instance = GWT.create(SpeicherService.class);
  }
return instance;
   }
  }
}

-

SpeicherServiceAsync:
public interface SpeicherServiceAsync {

  void getName(String name, AsyncCallbackString callback);

}

-

SpeicherServiceImpl:
public class SpeicherServiceImpl extends RemoteServiceServlet implements 
SpeicherService {

@Override
  public String getName(String name) {
return(Server meldet sich  + name);
  }
}

-

Test():
public void test() {
AsyncCallbackString callback = new AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}

@Override
public void onSuccess(String result) {
Window.alert(result);
}
};

SpeicherService.Util.getInstance().getName(test,callback);
}

-- 
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/-/JeNzul1toOEJ.
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 get readyState from GWT Frame object?

2011-07-21 Thread elloalisboa
I'm using GWT 2.3.0 in my project and I have an iframe and a loading
mask. When the iframe content (to be more specific, the content is a
PDF) is loaded I need to hide the loading mask.

I tried using:

Frame frame = new Frame(http://www.example.com/example.pdf;) {{
   addDomHandler(new LoadHandler() {
  public void onLoad(LoadEvent event) {
 loadingMask.setVisible(false);
  }
   }, LoadEvent.getType());
}};

and:

Frame frame = new Frame(http://www.example.com/example.pdf;) {
@Override
protected void onLoad() {
super.onLoad();
loadingMask.setVisible(false);
}
};

Because of the content is a PDF, both codes don't work in IE.

Is there a way to get the readyState iframe property with GWT?

I would appreciate any feedback. Thanks for all.

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



Eclipse Analyzing Sources Slow

2011-07-21 Thread gutto
Hi

Has anyone ever encountered the analyzing sources stage of an
eclipse build taking an inordinately long time? It seems to be
required each time I make a change to the dependencies of the project.
It takes roughly 5 minutes, which is unacceptable.

Does anyone know what is happening during this stage? I'm assuming its
building Eclipse metadata or something. Can you suggest what I might
try to find the cause of the slow running?

Eclipse Indigo (3.7), Google Plugin for Eclipse 3.7, GWT SDK 2.3.0,
OpenJDK 1.6.0_22, Ubuntu 11.04 x84_64,

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.



SmartGWTIntegration with Flot

2011-07-21 Thread SmartGWTIntegration
Hi

We are having issues with Darg and Drop when using flot charts in the
SmartGWT widgets. The chart in the widget vanishes when we drag and
drop. Thus we started experimenting with HTMLPanel(pure GWT), which
works great when its text or images but am not able to display a JSNI-
call to draw flot chart into a samrtGWT widgetsee the code for
portlet1 below...The exception we get is as below..not sure why is
height=0. Any suggestions will be welcome...

Exception received--

 Unable to load module entry point class com.tripod.eui.client.DoJo
(see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (String): Invalid
dimensions for plot, width = 812, height = 0
 at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
 at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
126)
 at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
 at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
289)
 at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)
 at com.tripod.eui.client.DoJo.DrawFlotChart(DoJo.java)
 at com.tripod.eui.client.DoJo.onModuleLoad(DoJo.java:124)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
 at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
 at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
 at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)



Code for reference --

public class DoJo implements EntryPoint {
@Override
public void onModuleLoad() {
/***
 * 1) Place Flot API Related Function Call Javascript code in 
the
HTML
 */
String strCode = script type=\text/javascript\ language=
\javascript\ +
 $().ready(function(){$.plot($(\#\+targetID),[{label: 
\Citrizine
\, data: [[1,13], [2,21], [3,5], [4,1]]},{ data: [[1,8],[2,12],
[3,18]], label: \Tipin\}],{series: {pie: {show: true}},legend:
{show: true}});});+
 /script;
Widget widget = new Widget();
widget.setID(widget);
widget.setWidth100();
widget.setHeight100();
HTMLPanel clientHTMLPanel = new HTMLPanel(div  id='portlet'
style='width=400; height=400;'+strCode+/div);
clientHTMLPanel.setSize(100%, 100%);
widget.addItem(clientHTMLPanel);
widget.setTitle(widget);

/**
 * Try to set some text in the widget through a native script
dynamically
 */
Widget widget1 = new Widget();
widget1.setWidth100();
widget1.setHeight100();
HTMLPanel clientHTMLPanelOne = new HTMLPanel(div  
id='portlet1'
style='width=400; height=400;'/div);
widget1.addItem(clientHTMLPanelOne);
widget1.setTitle(widget1);
widget1.setID(widget1);

/**
 *
 */
Widget widget2 = new Widget();
widget2.setWidth100();
widget2.setHeight100();
HTMLPanel clientHTMLPanelTwo = new HTMLPanel(div  
id='portlet2'
style='width=400; height=400;'/div);
clientHTMLPanelTwo.setHeight(400);
clientHTMLPanelTwo.setWidth(400);
widget2.addItem(clientHTMLPanelTwo);
widget2.setTitle(widget2);
widget2.setID(widget2);

/**
 * Place a SmartGWT Canvas.
 * Draw Flot chat on the Canvas through native script.
 */
Widget widget3 = new Widget();
widget3.setWidth100();
widget3.setHeight100();
Canvas clientHTMLPanelThree = new Canvas();
clientHTMLPanelThree.setID(portlet3);
clientHTMLPanelThree.setHeight100();
clientHTMLPanelThree.setWidth100();
widget3.addItem(clientHTMLPanelThree);
widget3.setTitle(widget3);
widget3.setID(widget3);

Widget widget4 = new Widget();
widget4.setID(widget4);
widget4.setWidth100();
widget4.setHeight100();
Canvas clientHTMLPanelFour = new Canvas();
clientHTMLPanelFour.setID(portlet4);
clientHTMLPanelFour.setHeight100();

Re: Deploy in Tomcat

2011-07-21 Thread IHateSoda
Problem solved.

Error in my web.xml.

Thanks.

On Jun 17, 12:49 am, redjhawk jorges...@gmail.com wrote:
 And the manifest generated?

 On Jun 16, 11:55 am, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:







  Can you paste the complete stacktrace?

  2011/6/15IHateSodamguillaum...@gmail.com

   Hi everybody,

   My application works in hosted mode.

   I'm trying to deploy my application in tomcat but I get one error when
   I want to restart my server :

   java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/
   RemoteService.

   I copied my war folder in the webapp folder, I added all jar files in
   WEB-INF/lib (with gwt-servlet.jar), I declared all servlet and RPC
   service in the web.xml but I still the same error.

   Help please.

   Regards.

   --
   You received 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: RPC from external client

2011-07-21 Thread David Chandler
GWT-RPC no, RequestFactory yes. GWT-RPC services work only with a GWT
client, but the newer RequestFactory has been designed to support
other clients such as Android. You need requestfactory-client.jar
(from the GWT distro) on your classpath. See this presentation from
this year's I/O:
http://www.google.com/events/io/2011/sessions/android-app-engine-a-developer-s-dream-combination.html

If you just want a REST interface, however, you might want to look at
resty-gwt on github, which makes it easy to consume REST services from
a GWT client.

/dmc

On Thu, Jul 21, 2011 at 1:55 PM, fchas charlesford...@gmail.com wrote:
 I'd like to understand if or how GWT accepts external RPCs.  I'm
 designing a GWT app right now and I'd like the ability to call the GWT
 app from another application using HTTP.  I want GWT to support CRUD
 operations for my DB and then return an HTTP response.  So in essence
 I want the GWT app to support live users via the UI and a web API
 (REST, perhaps).  Does GWT support this out of the box or is there a
 3rd party library that's worthy?

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





-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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

2011-07-21 Thread Michael Allan
Kady wrote:
 We want to add a simple geoMap to our application. Through the
 EntryPoint we add the created GeoMap instance to a div onto the
 page.  Is there any script other than the generated GWT js that
 needs to be added to the application?
 
ungarida wrote:
 http://code.google.com/p/gwt-google-apis/wiki/MapsGettingStarted

Here's a running example (work in progress) that uses OpenLayers
instead of just Google: http://zelea.com/var/deploy/xf/#c=DumG

You can choose different map providers using the (+) control at top
right.  We also hooked the geomap panner and zoom controls into the
browser history, so you can use the back/forward buttons.

Source:
http://zelea.com/project/votorola/a/web/base/xf/default.html
http://zelea.com/project/votorola/a/xf/Entry.gwt.xml
http://zelea.com/project/votorola/a/xf/geo/

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.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: Sub-classing UiBinder based Widgets

2011-07-21 Thread gawelt
Hi,
I used to apply similar pattern as Thomas described. But with some
differences that are worth to be mentioned.

class SomeUiBinderWidget extends Widget {
  public static interface UI {



}

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



Re: Browser Type and version

2011-07-21 Thread Jim Douglas
http://lmgtfy.com/?q=mozilla+navigator.userAgent

On Jul 21, 12:02 pm, skippy al.leh...@fisglobal.com wrote:
 what about FireFox and the MAC Browsers?

 On Jul 20, 3:42 pm, Jim Douglas jdou...@basis.com wrote:







  Parse the navigator.userAgent string.

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...()

 http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx

 http://www.useragentstring.com/

  On Jul 20, 1:30 pm, skippy al.leh...@fisglobal.com wrote:

   Can GWT help me determine the browser (IE FireFox) and the version?

   We want to tell users using old versions of IE like 6 and 7 that they
   need to upgrade due to performace problems when viewing large values
   of data.

   I just have not seen an example that has a conplete list.

   Also what is oprea?  FireFox?

   Thanks- Hide quoted text -

  - Show quoted text -

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



Re: RPC from external client

2011-07-21 Thread fchas
thank you for the answer and link!

On Jul 21, 4:33 pm, David Chandler drfibona...@google.com wrote:
 GWT-RPC no, RequestFactory yes. GWT-RPC services work only with a GWT
 client, but the newer RequestFactory has been designed to support
 other clients such as Android. You need requestfactory-client.jar
 (from the GWT distro) on your classpath. See this presentation from
 this year's 
 I/O:http://www.google.com/events/io/2011/sessions/android-app-engine-a-de...

 If you just want a REST interface, however, you might want to look at
 resty-gwt on github, which makes it easy to consume REST services from
 a GWT client.

 /dmc









 On Thu, Jul 21, 2011 at 1:55 PM, fchas charlesford...@gmail.com wrote:
  I'd like to understand if or how GWT accepts external RPCs.  I'm
  designing a GWT app right now and I'd like the ability to call the GWT
  app from another application using HTTP.  I want GWT to support CRUD
  operations for my DB and then return an HTTP response.  So in essence
  I want the GWT app to support live users via the UI and a web API
  (REST, perhaps).  Does GWT support this out of the box or is there a
  3rd party library that's worthy?

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

 --
 David Chandler
 Developer Programs Engineer, GWT+GAE
 w:http://code.google.com/
 b:http://turbomanage.wordpress.com/
 b:http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

-- 
You received 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: Sub-classing UiBinder based Widgets

2011-07-21 Thread gawelt
Hi,
I used to apply similar pattern as Thomas bt with some remarkable
difference.
here is the example to illustrate the differences and the concept
itself - it's quite simple and not show all possible combinations but
i think it's just enough for getting started communication - if you
were interested in it and need some hepl feel free to ask

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.ButtonElement;
import com.google.gwt.dom.client.DivElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.FormElement;
import com.google.gwt.user.client.Element;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.EventListener;
import com.google.gwt.user.client.ui.Widget;

public class ExampleUiBinderWidget extends Widget {

public static interface UI {
Element root();
Element someButton();
Element someLabel();
}

public static class DefaultUI implements UI {

//different from thomas - I used to inject UiBinder interface
definition
//inside the layout inner class - why look below


@UiTemplate(com.tomaszgawel.example.client.ExampleUiBinderWidget.ui.xml)
static interface DefaultUIBinder extends UiBinderDivElement,
DefaultUI {}
final static DefaultUIBinder uiBinder =
GWT.create(DefaultUIBinder.class);

//i could have declared this fields the same as return types 
from
//coresponding UI methods - so avoid necessity to cast later -
//but it is to show the flexibility of this approach
DivElement _root;
@UiField ButtonElement _someButton;
@UiField SpanElement _someLabel;

public DefaultUI(){
_root = uiBinder.createAndBindUi(this);
}
@Override public Element root() {
return _root.cast();
}
@Override public Element someButton() {
return _someButton.cast();
}
@Override public Element someLabel() {
return _someLabel.cast();
}
}

UI ui;
int counter;

public ExampleUiBinderWidget(){
this(new DefaultUI());
}

public ExampleUiBinderWidget(UI ui){
assert ui != null : Provide ui - widgets do not like to show
naked :P;

//move initailisation from constructor
//in case you want call setElement on something else than 
ui.root()
this.ui = ui;
init();
}

protected void init() {
setElement(ui.root());
someInitActions();
}

protected void someInitActions() {
DOM.sinkEvents(ui.someButton(), Event.ONCLICK);
DOM.setEventListener(ui.someButton(), new EventListener() {
@Override public void onBrowserEvent(Event event) {
counter++;
ui.someLabel().setInnerText(Button has been 
clicked  + counter +
 times.);
}
});
}

}

class SomeSubClass extends ExampleUiBinderWidget {
public static interface UI extends ExampleUiBinderWidget.UI {
//wrappingFormElement
FormElement form();
}

//could just implenet the UI - but we also inherit superclass
DefaultUI
//to save some lines of duplicate code
static class DefaultUI extends ExampleUiBinderWidget.DefaultUI
implements UI {

@UiTemplate(com.tomaszgawel.example.client.SomeSubClass.ui.xml)
static interface DefaultUIBinder extends UiBinderDivElement,
DefaultUI {}
final static DefaultUIBinder uiBinder =
GWT.create(DefaultUIBinder.class);
@UiField FormElement _form;
public DefaultUI(){
_root = uiBinder.createAndBindUi(this);
}
@Override public FormElement form() {
return _form;
}
}

public SomeSubClass(){
super(new DefaultUI());
}

public SomeSubClass(UI ui){
super(ui);
}

@Override
protected void init() {
//you must cast to subclasses UI to get to additional fields
//as member field ui is of type ExampleUiBinderWidget.UI
((UI) ui).form().setAction(http://someserver.com;);

//and you could do this 

Re: GPE Support for m2e 1.0

2011-07-21 Thread Cristiano
Hi all,
any news on the status of the support for m2e 1.0?


On 14 Lug, 00:18, cheleb olivier.nougu...@gmail.com wrote:
 Hi Mike,

  Sorry for the late reply.
  To begin you can try/take a look 
 at:https://github.com/cheleb/m2eclipse-wtp-gdt

  Here is a first attempt (from Fred Bricon and I) to support GWT / m2e
 for indigo / m2e 1.0

  I guess that google will soon support m2e out of the box (the current
 GEP depends on org.sonatype.m2eclipse:-/ ).

  This plugin support:

 * GWT SDK configuration (Change settings to ignore missing SDK).
 * I18N bundle (code generation).

 HIH

 On 29 juin, 00:03, youngm you...@gmail.com wrote:







  Thanks for the response David.  Is there any way you can better
  qualify what you mean by a while before we're able to support that?

  The thread you referenced talked about the m2e Discovery stuff.
  You're not required to make your configurer available through that
  service if that is an issue.  You can bundle the configurer with GPE
  like you have before.

  The Indigo release of our internal eclipse distro is somewhat stalled
  with this feature missing.  If this feature may be coming in a month
  or sooner we may delay release of our internal distro for this
  feature.  If you're thinking several (2+ months) before m2e 1.0
  support then we'd probably need to internally develop a way to work
  around this for now.

  Thanks,
  Mike

  On Jun 28, 9:41 am, David Chandler drfibona...@google.com wrote:

   Thomas, are you sure you're using m2e 1.0 (not 0.12x)? According to this
   thread, m2e core is now released from Eclipse and it will be a while 
   before
   we're able to support that. But yes, 0.12 with m2extras works for me also 
   in
   Indigo.

  http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00754.html

   /dmc

   On Tue, Jun 28, 2011 at 4:31 AM, Thomas Broyer t.bro...@gmail.com wrote:
Works for me…

--
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/-/jkdrp2GXJQYJ.

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.

   --
   David Chandler
   Developer Programs Engineer, Google Web Toolkit
   w:http://code.google.com/
   b:http://googlewebtoolkit.blogspot.com/
   t: @googledevtools

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



RPC call succeeded after renaming the DTO!

2011-07-21 Thread -sowdri-
Dear All,

I was trying to make an RPC call and it was failing with 
IncompatibleRemoteServiceException 

After removing the arraylists present in the return type DTO, the error 
changed to *Invalid type signature *exception. After hours together of 
debugging, *renaming the DTO made RPC to succeed.*

Could some one comment on the reason behind the behavior!

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/-/EDA782-0PQUJ.
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] Avoid building SafeHtmlBuilders over and over again for no good reason. (issue1500801)

2011-07-21 Thread rdcastro

Reviewers: jlabanca,

Description:
Avoid building SafeHtmlBuilders over and over again for no good reason.


Please review this at http://gwt-code-reviews.appspot.com/1500801/

Affected files:
  M user/src/com/google/gwt/user/client/ui/Composite.java
  M user/src/com/google/gwt/user/client/ui/RenderablePanel.java


Index: user/src/com/google/gwt/user/client/ui/Composite.java
===
--- user/src/com/google/gwt/user/client/ui/Composite.java   (revision 10462)
+++ user/src/com/google/gwt/user/client/ui/Composite.java   (working copy)
@@ -90,21 +90,19 @@
 if (renderable != null) {
   return renderable.render(stamper);
 } else {
-  SafeHtmlBuilder builder = new SafeHtmlBuilder();
-  render(stamper, builder);
-  return builder.toSafeHtml();
-}
-  }
-
-  @Override
-  public final void render(RenderableStamper stamper, SafeHtmlBuilder  
builder) {

-if (renderable != null) {
-  renderable.render(stamper, builder);
-} else {
   HtmlSpanBuilder spanBuilder = HtmlBuilderFactory.get()
   .createSpanBuilder();
   stamper.stamp(spanBuilder).end();
-  builder.append(spanBuilder.asSafeHtml());
+  return spanBuilder.asSafeHtml();
+}
+  }
+
+  @Override
+  public final void render(RenderableStamper stamper, SafeHtmlBuilder  
builder) {

+if (renderable != null) {
+  renderable.render(stamper, builder);
+} else {
+  builder.append(render(stamper));
 }
   }

Index: user/src/com/google/gwt/user/client/ui/RenderablePanel.java
===
--- user/src/com/google/gwt/user/client/ui/RenderablePanel.java	(revision  
10462)
+++ user/src/com/google/gwt/user/client/ui/RenderablePanel.java	(working  
copy)

@@ -177,13 +177,6 @@

   @Override
   public SafeHtml render(RenderableStamper stamper) {
-SafeHtmlBuilder builder = new SafeHtmlBuilder();
-render(stamper, builder);
-return builder.toSafeHtml();
-  }
-
-  @Override
-  public void render(RenderableStamper stamper, SafeHtmlBuilder builder) {
 String styleName = getStyleName();

 HtmlDivBuilder divBuilder = HtmlBuilderFactory.get()
@@ -195,7 +188,12 @@
 stamper.stamp(divBuilder);
 divBuilder.html(getInnerHtml()).end();

-builder.append(divBuilder.asSafeHtml());
+return divBuilder.asSafeHtml();
+  }
+
+  @Override
+  public void render(RenderableStamper stamper, SafeHtmlBuilder builder) {
+builder.append(render(stamper));
   }

   @Override


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


[gwt-contrib] Re: Avoid building SafeHtmlBuilders over and over again for no good reason. (issue1500801)

2011-07-21 Thread jlabanca

LGTM

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

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