AJAX crawling scheme

2012-12-23 Thread Danny
Hey guys,

I've read over at 
https://developers.google.com/webmasters/ajax-crawling/docs/getting-startedthat 
in order to make a GWT app more SEO-able, that we simply replace the 
original # with #! in all of our URLs. I can't figure out the best way 
to do this though in an Activities and Places project.

Any and all help greatly appreciated.

-- 
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/-/dlrwvaK4AcAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 fails when in production mode if using Oracle JDK 7

2012-11-23 Thread Danny
Hi guys,

Here's my configuration:

   - Mac OS X 10.7
   - JDK 7 (OS Default) - using Oracle JDK
   - GWT 2.5

I've simply created a project using the GPE (i.e. GreetingService etc). I 
make no changes to the GPE created starter code.

The default java version on my Mac is set to Oracle's JDK 7. Everything 
works fine when debugging in development mode (using either the built-in 
Jetty server or when running using the '-noserver' switch with Tomcat 7). 
However, when I compile the application and deploy to Tomcat 7 in 
production mode, the RPC fails with the following message: 

An error occurred while attempting to contact the server. Please check 
your network connection and try again.

When I change the project facet in Eclipse to Java 6, it works in both 
development and production modes. What's going on here?

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/-/vrHY9YWpLTYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Super Dev Mode : Cannot get module to compile with -workDir

2012-06-14 Thread Danny Kirchmeier

On Tuesday, June 12, 2012 1:43:09 PM UTC-5, Brian Slesinsky wrote:

 When it hangs, could you try running jstack on the process to get a 
 thread dump?


Well, now it appears to be working. I haven't updated the code with a new 
version, so I don't know what happened.

If it happens again, I'll post the thread dump and file a bug report.

--Danny

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



Super Dev Mode : Cannot get module to compile with -workDir

2012-06-11 Thread Danny Kirchmeier
I'm trying out the new Super Dev Mode from the trunk. While I can get the 
codeserver to compile the module normally, it hangs when I specify -workDir.

Am I doing something wrong, or do I need to file a bug report? 

Ant Target:
target name=codeserver depends=javac description=Run development 
mode
  java failonerror=true fork=true 
classname=com.google.gwt.dev.codeserver.CodeServer
classpath
  pathelement location=src/
  path refid=project.class.path/
  path refid=codeserver.class.path/
/classpath
jvmarg value=-Xmx256M/
arg value=-workDir/
arg value=myWorkDir/
arg value=my.test.FooBar/
  /java
/target

Output:
deleting: ~/foo/myWorkDir/my.test.FooBar/compile-1
workDir: ~/foo/myWorkDir
binding: user.agent=safari
binding: compiler.useSourceMaps=true
binding: locale=en
Compiling module my.test.FooBar

Directory contents
$ pwd ; ls
~/foo/myWorkDir/my.test.FooBar/compile-1 
compile.log   war




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



Re: Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-09 Thread Danny Kirchmeier


 Now, my initial instinct is to somehow try and determine whether or  not 
 the FlowPanel needs to vertically resize (how do I determine this?  Can it 
 be determined?) and then use DockLayoutPanel.setWidgetSize to perform the 
 resizing manually. 

 
Sounds like a good approach. On the bottom flow panel, you can use 
element.getScrollHeight()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/dom/client/Element.html#getScrollHeight()
 and 
either getOffsetHeight or getClientHeight(I can't remember, sorry), to 
determine if you need to expand the flow panel. You should check this when 
the window is resized or when an item is added. When the scroll height is 
larger than the offset/client height, use DockLayoutPanel.setWidgetSize to 
resize the panel.

-- 
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/-/J8O2dRgN6toJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 JavaScript onClick not getting called from inside GWT richTextarea

2011-11-09 Thread Danny Kirchmeier
No idea. Seems to me that you should be using an Anchor and ClickHandlers 
instead of that native method, but I may not understand exactly why you 
need that.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/d9XJS0kOQzYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: MenuBar - how can I cause it to wrap?

2011-11-09 Thread Danny Kirchmeier
The MenuBar uses a table, with each item being a table cell. AFAIK, you're 
not going to have any luck getting that to wrap. 

You should be able to check to see if any of the items are flowing out of 
the window and have those move themselves into a More menu item. 

-- 
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/-/JDFbSI3_jWsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 determine *at runtime* which permutation is used?

2011-11-09 Thread Danny Kirchmeier
You can use 
GWT.getPermutationStrongName()http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#getPermutationStrongName()

You can choose to write that to the screen like so
RootPanel.get().add(new Label(GWT.getPermutationStrongName()));

-- 
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/-/-AjRBb-cMz8J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: CellList grid

2011-11-07 Thread Danny Kirchmeier
It's a bit of a hack, but since the cell list is just a list of Divs, you 
can use the CSS3 columns (but watch out, IE9 doesn't support this, and only 
the most recent version of opera does)

public void setColumns(int columns) {
if(columns  1) columns = 1;

Style style = cellList.getElement().getStyle();
String cols = String.valueOf(columns);
/* You could used deferred binding here if you weren't lazy */
style.setProperty(MozColumnCount, cols);
style.setProperty(WebkitColumnCount, cols);
style.setProperty(columnCount, cols);
}

public void setColumnPadding(int width) {
if(width  0) width = 0;

Style style = cellList.getElement().getStyle();
style.setProperty(MozColumnGap, width, Style.Unit.PX);
style.setProperty(WebkitColumnGap, width, Style.Unit.PX);
style.setProperty(columnGap, width, Style.Unit.PX);
}

-- 
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/-/1I8AVzGr_tYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 JavaScript onClick not getting called from inside GWT richTextarea

2011-11-07 Thread Danny Kirchmeier
Did you ever call exportMyFunction2?

-- 
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/-/t3GfHd8ZwxsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Ok, CssResources and ClientBundle, what am I doing wrong?

2011-11-04 Thread Danny Kirchmeier
Does your Style1.css now say this:

@external .gwt-Button;
.gwt-Button{
background: black;
color: cyan;
}

Don't forget the semicolon at the end of the @external line. I forgot it 
the first few times I used it. It causes no error to be thrown and next 
style to be completely ignored. 

It worked for me, so hopefully that is your issue.

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



Re: Possible to get HTML from a widget?

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

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

-- Danny

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



Re: can I use Class.forName and newInstance in GWT ?

2010-12-30 Thread Danny Goovaerts
No, you cannot.

Dynamically instantiating classes would invalidate some of the goals
of the GWT compiler.
The GWT compiler builds a javascript application that only contains
code for the actual call graph of your application.
If you would be able to instantiante classes from arbitray Strings, it
cannot determine the call graph anymore.

This is not really a limitation. You can overcome this by using
factories that create instances of a particular class given its name
using a simple string comparison
and GWT.create(). Of course, you need to know all at development time
all the possible classes that you might need to instantiate. If later
you want to add support
for another class, you need to change the code and rebuild. But in
that situation, you probably need to add additional logic to your app
anyway.
Unless of course your app is completely dynamic, but in that case you
should ask yourself the question if GWT is the technology to use.

Regards,

Danny

On 30 dec, 09:11, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 You can't: if you go 
 tohttp://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Pac...
 for Class, you will see that forName() is not emulated by GWT.

 regards

 didier

 On Dec 30, 7:33 am, metalhammer29a metalhammer...@gmail.com wrote:







  can I use Class.forName and newInstance in GWT ?

     static Employee create (String name) {
         try {
             return (Employee) Class.forName(name).newInstance();
         } catch (Exception e) {
             throw new IllegalArgumentException (Unable to instantiate
  + name);
         }
     }

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



No GWT support found for this system.

2010-09-09 Thread danny
OS:  MacOS 10.6.4
Eclipse:  Eclipse IDE for SOA Developers Version: Helios Release Build
id: 20100617-1415
GWT: 2.0.4

I get the following error when attempting to open with windowbuilder
editor:

No GWT Support found for this system
The product can't find support for the OS, OS architecture or
windowing system you're using. Please check the prerequisites and if
your system matches it, try to re-install product.

I've tried reinstallingany ideas?

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



Is GWT application gallery still maintained?

2010-08-04 Thread Danny Goovaerts
I've uploaded my application on http://gwtgallery.appspot.com/ more
than a week ago and it still does not have appeared in the gallery.
The most addition dates from June 7. Is this gallery still maintained?

Thanks,
Danny
www.cellamea.eu

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



Re: Ecryption best practices (server side, client side, password handling)?

2010-08-02 Thread Danny Goovaerts
Stefan has allready made some very good comments so I'm not going to
repeat them.
Some more additional thoughts.

Regarding encrypting the data in the database. If a user does not
trust you (yourself and any of the people that have access to your
server) to look at his data in the database,
why would he trust you when you make the claim that his data is
encrypted in the database? Furthermore, encrypting the data precludes
providing any form of application
level support to your users. Unless your service is exactly providing
extremely secure storage of confidential data, I dont' see any reason
for encrypting the data in the database and in that case you should
find some security experts to assist you.
This of course does not mean that you should not take precautions
against data being accessed by unauthorized people or data being
disclosed. But that falls
under traditional secure server deployment.

I'm afraid that there is no easy and proven solution to protect the
confidentiality and integrity of  Internet based communication without
https. The SSL//TLS protocols have been scrutinized by security
experts. Unless you are such an expert, don't
think that you can come up with something that is solid enough. I
personally would not trust any security measure that has not been
published and analysed by the security and encryption community.

Danny
www.cellamea.eu


On 1 aug, 17:06, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Sven,

 i did have similar thought in the past.
 Encrypting the database base would solve any Datenschutz data
 protection topic since the application provider would not be able to
 even read the data of his customers.
 However, I do not see any easy solution, yet. Just encrypting any
 database data would destroy any orderings on indexes.
 It would work when only using equivalence, but this is a hard limit.

 The point of encryption should be the server.
 When you doing encryption on client side you must offer the encryption
 and decryption algo, too.
 So it is likely to loose more than to win. (And it is difficult to
 implement encryption without having an integral data type as it is the
 case with javascript).

 To hash the password on client side is equivalent as to put the
 password in clear to the database.
 You loose security when doing so. Any attacker would just send the
 encrypted password, may be to a similar service using the same
 approach!

 Any attacker could substitude the browser and code when he has a legal
 access to the service.
 So he can get the encryption algo and apply it to other users.

 The only thing which is under your control is the server.

 Stefan Bachert
 http::/gwtworld.de

 Inquiries for professional GWT support are welcome.
 I am sorry, I won't do free personal support.

 On 31 Jul., 19:07, Sven sven.ti...@googlemail.com wrote:



  Dear group,

  I want to extend a GWT/GAE application by offering the option to
  encrypt information entered by the user on client side in the
  database. The goal is to increase trust when storing potentially
  sensitive data, e.g. to prevent that people who have access to the DB
  (like me) have read access to the stored information.

  For client-side encryption using GWT I found this 
  post:http://www.mooreds.com/wordpress/archives/000529

  However, others do not even recommend to compute password hashs on the
  client and propose to do that on the 
  server:http://www.owasp.org/index.php/Hashing_Javahttp://stackoverflow.com/q..

  From user's perspective, I would not be comfortable with transmitting
  my data unencrypted to the server (even using HTTPS), as the server-
  side may for example log my information (and my password!). Especially
  for the password-part I would feel unconfortable, as many people tend
  to reuse their passwords (please no discussion about this :-)).

  Currently, I see two options:
  a) Encrypt and decrypt the information on the client using JS/GWT.
  Pro: The password never leaves the browser, the unencrypted
  information never leaves the browser. Con: Depending on the size of
  the data the encryption/decryption may be slow; if loaded via HTTP,
  the JS code may be compromised, etc.
  b) Encrypt and decrypt the information on the server. Pro: Fast. Con:
  The information is transmitted unencrypted.

  What would be your recommendation?

  In case of server-side encryption, would it make sense to hash the
  password on client side and to use the hash to encrypt/decrypt? Or
  would that be a no-go?

  What happens if the user forgets his/her password? All data lost, I
  guess?

  I have no deep practical experience with cryptography, so I would
  appreciate any suggestions or pointers to resources in the web. My
  goal is not to have a bullet proof solution for highly sensitive
  information, but it should be an improvement compared to the current
  implementation (no HTTPs, no encryption).

  Thanks
  Sven

  PS: x-post Google App Engine for Java, Google Web Toolkit

-- 
You

Re: XML Validation directly

2010-07-29 Thread Danny Goovaerts
I use saxon from Michael Kay  (www.saxonica.com) for programmatic XML
validation. It's very good, but it does not proivided much more
detailed error messages.

You mention that you need this during development time. Do you want to
validate XML files that you
construct by hand before using them in your application? In that case,
I would suggest to invest in a XML editor that provides
validation. These generally provide much more detailed error messages,
including the line numbers where the error occurs.
 I use XML Studio from Progress, but there are others out there
(Altova XML Spy, probably also some open source or  Eclipse plug ins).
The investment in the license has been paid back multiple times in
saved effort.


On 28 jul, 23:52, John Ivens john.wagner.iv...@gmail.com wrote:
 Okay, I tried one which produces some pretty bad messages, I will search for
 something better, maybe xerces.



 On Mon, Jul 26, 2010 at 5:59 PM, Jeff Chimene jchim...@gmail.com wrote:
  On 07/26/2010 04:09 PM, John Ivens wrote:
   I know that this is off topic for GWT, but if anyone knows of how to
   validate an XML file directly by using something like Apache Commons
   Validation, but without needing to create a bean or a form, I would
   appreciate knowing about it.  Basically, we have XML files that we would
   like to validate directly out of XML, but using a validation in XML (in
   a seperate or the same file).  The reason we want to do this is that
   during development we would like to have a very quick way of generating
   validation without needing to be constantly updating screens and forms,
   just change the XML (in one file or two, depending on what resources are
   out there).

   Thanks in advance...

  Any validating parser will do what you want. hint: the google search
  term is in this answer.

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

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

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



Re: Do we have any Library for OpenID autentication(Authentication using Google accounts/Face book etc.)

2010-07-29 Thread Danny Goovaerts
I've implemented support for openID with special case for Google and
Yahoo mail (www.cellamea.eu).

I've written a servlet that uses openid4java to interact with the
openid providers. I can make the code available. On this moment,
it's not packaged in an isolated way, so it's not usable out of the
box, but it shows what you need to do.

I wanted also to provide support for Facebook, MSN, LinkedIn etc...
but I don't think that they are pure openid providers and I have not
yet found the time
to investigate the peculiarities of their authentication protocol.

Another possibility is to look at Janrain Engage , formerly known as
RPX (www.janrain.com). They support a whole variety of authentication
providers (that's their business).
I looked at it at the time, but I could not figure out how to
integrate it with a GWT frontend (interacting from GWT with the
Janrain's popup), and with my backend. It would be great if Janrain
could provide a GWT
integration. Anyone from Janrain on this mailing list?


On 29 jul, 07:00, V M thinker...@gmail.com wrote:
 Hello GWT Users,

 I am just wondering if we have any Library to do authentication using OpenID
 providers like Google accounts/Facebook.

 Here is what i am trying to do:

 * Create a site which needs log-in widget/page/module to customize UI for
 Users.

 What is the best way to create a Login form in this case?

 I appreciate if you could point me to some examples.

 Thanks in advance.

 -V M

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



GWT service to manage your wine cellar on line

2010-07-26 Thread Danny Goovaerts
. These definitions are translated into
Java enumerations and GWT ConstantsWithLookup interfaces/property
files, such that you can work with expressions such as WineColor.RED
or
wine_color().get(wine.getColor.getCode()) to get the locale specific
description.

I want to express my deep gratitude and high esteem to the GWT team
and all the people that have contributed to it.
Without GWT, I would never be able to build this!

Have fun!

Danny Goovaerts
www.cellamea.eu
www.oobikwe.eu

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



Re: Mixed content warning on Chrome (skull and bones)

2010-07-15 Thread Danny Goovaerts
Thanks,
I'll go for the cache-control public solution that you suggest such
that the users can be confident about the confidentiality.
I've tested with FF3 and IE7. These browsers seem to persistently
cache the js when cache-control public is set on the reply headers.
I don't know about Chrome. Speedtracer shows From cache :false but I
do find the components in the cache.
I don't know how the mobile browser handle it, but the js files are
probably too big anyway to be cached.

Danny

On 14 jul, 22:30, lineman78 linema...@gmail.com wrote:
 Agreed, I had not thought of the caching issue, although this could
 also be fixed by having your server set the cache-control header to
 public when serving static content(doesn't work in FF2).  An example
 of how to do this can be seen here:

 http://onjava.com/pub/a/onjava/2004/03/03/filters.html

 While I agree that the icon may be a little scary to uninformed users,
 I think it is probably better that way for the reasons I specified
 before.  At the same time, I wish both IE and Chrome would specify
 which parts of the page are not secure so that advanced users can know
 if there is something fishy going on.  Just last night I had 2 of my
 friends who are very non-technical ask me about security when it comes
 to using free wifi.  They have no clue what SSL is and it is much
 easier for me to tell them to not put in any sensitive information
 unless there is a lock icon on their screen.  In your purposes you are
 only loading javascript that has not data through an unencrypted
 connection, but what is to keep you from doing jsonp and sending
 unencrypted data, which from the browsers perspective looks exactly
 the same, loading a javascript file.  But from the users perspective
 one is sending personal information over an unencrypted connection and
 they should be notified because it is fairly serious.

 On Jul 14, 1:51 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:



  I'm not worried about the overhead for the encryption. I want to load
  the js over http because browsers do not cache content  that is loaded
  over https. As my application is fairly large (800k, split into
  several deferred pieces, some of which are 200k) I want to have it
  cached as much as possible. This is not such an issue when using the
  application over Wifi, but it can be an issue when using it on mobile
  devices, provided they that they do caching of decent sized components
  (seehttp://www.yuiblog.com/blog/2010/06/28/mobile-browser-cache-limits/
  ).

  I'd just whish that Google had picked another icon than the red skull
  and bones.

  On 14 jul, 20:30, lineman78 linema...@gmail.com wrote:

   I believe this is expected behavior, even gmail does this if you have
   https turned on.  What is keeping you from using https for loading the
   js?  The browser doesn't know that the request you are sending doesn't
   contain any sensitive data, therefore this is a desired behavior as
   usually there is not real reason not to make a request once an SSL
   session has been established because at that point a symmetric block
   cipher is used which has very little overhead.

   On Jul 14, 10:17 am, Danny Goovaerts danny.goovae...@gmail.com
   wrote:

I've deployed my GWT application over https. To allow caching of the
javascript files, I load the bootstrap script over http :

script language=javascript src=http://www.cellamea.eu/cellamea/
cellamea.nocache.js/script

As expected, this gives amixed content warning on Internet Explorer.
On Firefox and Safari, the site loads normally.
On Chrome (version 6.0.458.1 dev) however, I get a red skull and
bones icon in the URL address bar instead of the green padlock icon.
I think that this is even more scary for the users than the mixed
content warning on IE.

Is this the expected behaviour on Chrome or do should I do something
different?

Thanks in advance,

Danny

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



Mixed content warning on Chrome (skull and bones)

2010-07-14 Thread Danny Goovaerts
I've deployed my GWT application over https. To allow caching of the
javascript files, I load the bootstrap script over http :

script language=javascript src=http://www.cellamea.eu/cellamea/
cellamea.nocache.js/script

As expected, this gives amixed content warning on Internet Explorer.
On Firefox and Safari, the site loads normally.
On Chrome (version 6.0.458.1 dev) however, I get a red skull and
bones icon in the URL address bar instead of the green padlock icon.
I think that this is even more scary for the users than the mixed
content warning on IE.

Is this the expected behaviour on Chrome or do should I do something
different?


Thanks in advance,

Danny

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



Re: Mixed content warning on Chrome (skull and bones)

2010-07-14 Thread Danny Goovaerts
I'm not worried about the overhead for the encryption. I want to load
the js over http because browsers do not cache content  that is loaded
over https. As my application is fairly large (800k, split into
several deferred pieces, some of which are 200k) I want to have it
cached as much as possible. This is not such an issue when using the
application over Wifi, but it can be an issue when using it on mobile
devices, provided they that they do caching of decent sized components
(see http://www.yuiblog.com/blog/2010/06/28/mobile-browser-cache-limits/
).

I'd just whish that Google had picked another icon than the red skull
and bones.

On 14 jul, 20:30, lineman78 linema...@gmail.com wrote:
 I believe this is expected behavior, even gmail does this if you have
 https turned on.  What is keeping you from using https for loading the
 js?  The browser doesn't know that the request you are sending doesn't
 contain any sensitive data, therefore this is a desired behavior as
 usually there is not real reason not to make a request once an SSL
 session has been established because at that point a symmetric block
 cipher is used which has very little overhead.

 On Jul 14, 10:17 am, Danny Goovaerts danny.goovae...@gmail.com
 wrote:



  I've deployed my GWT application over https. To allow caching of the
  javascript files, I load the bootstrap script over http :

  script language=javascript src=http://www.cellamea.eu/cellamea/
  cellamea.nocache.js/script

  As expected, this gives amixed content warning on Internet Explorer.
  On Firefox and Safari, the site loads normally.
  On Chrome (version 6.0.458.1 dev) however, I get a red skull and
  bones icon in the URL address bar instead of the green padlock icon.
  I think that this is even more scary for the users than the mixed
  content warning on IE.

  Is this the expected behaviour on Chrome or do should I do something
  different?

  Thanks in advance,

  Danny

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



Re: the button and its infoLabel problem...

2010-07-13 Thread Danny Goovaerts
I think that you need a deferred command to handle this. Limit your
clickhandler to set the infoLabel to Beginning and then launch a
deferred command who's execute method performs the search and then
updates the label.
In this way, the execution thread will finnish, causing the screen to
be updated with the beginning label and then only the defrred command
will be executed.

On 8 jul, 05:26, Shelley gsun...@gmail.com wrote:
 thank Andreas and Aditya for your explanation.

 however the problem has nothing to do with RPC, the search operation
 i mentioned above is simply a local operation such as sort a large
 chunk of data which will take seconds to completed. meanwhile the
 client is unresponsive until the click OnClick() is completed, you can
 simply simulate this situation by doing a  while loop.

 is there other way i can see the beginning... ? or GWT has the
 ability to make UI responsive when it doing a time-consuming operation
 in client?

 thanks.

 -Shelley

 On Jul 7, 8:44 pm, andreas horst.andrea...@googlemail.com wrote:



  HeyShelley,

  a bit of further information is missing but may it be that you issue
  an RPC between infoLabel.setText(Beginning); and
  infoLabel.setText(Completed);?

  If so you simply forgot the async nature of GWT RPC. Your code in
  onClick(...) will not sort of stop or wait until the RPC finishes and
  continue afterwards. That's why infoLabel.setText(Completed);
  will be immediately executed after infoLabel.setText(Beginning);
  and you're simply way to slow to see it.

  What you could do instead is call infoLabel.setText(Completed);
  in your onSuccess(...) in case I'm right with RPC or in the callback
  of whatever request you do for your search operation.

  Andreas

  On 7 Jul., 10:22,Shelleygsun...@gmail.com wrote:

   hello all:
      i came across a strange problem which seems quite simple:

      i have a button and a label on a panel, the button has been
   registered a listener:

     Button searchButton = new Button( Search );
           searchButton.addClickHandler( new ClickHandler()
           {
               @Override
               public void onClick( ClickEvent event )
               {
                   infoLabel.setText(Beginning);
                   //do a search operation here which will take more than
   5 seconds...
                   infoLabel.setText(Completed...);
               }
           } );

   that's all, but i never see the Beginning“ on the label, but only
   see the completed..., seem the label will not refresh it's text
   until onClick is  finished? how can i achieved the function that
   display beginning... first and Completed... when the operation
   completed?

   thanks in advance.

   -Shelley

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



Re: GWT and CSS

2010-06-16 Thread Danny Goovaerts
Magnus,

standard.css is added after your style sheets are loaded. Unless
your style definitions are more selective that the definitions in
standard.css, the definitions in standard.css take precedence.
There are to possible solutions

- make your selectors more precise(googleon css priority for detailed
descriptions, much better that I could do here)
- mark your style definition as !important, for example, that's how I
override the settings for .gwt-button

.authenticate-button {
  background: white none  !important ;
  margin:2px !important;
}

Danny

On Jun 16, 8:54 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi Sven,

 I think that's an issue for me. When I use addStyleName with padding/
 margin, it has no effect. I guess it's overwritten. However, copying
 the standard.css sounds not nice to me. Isn't there another
 (programmatical) solution?

 Magnus

 On Jun 16, 1:35 pm, Sven sven.ti...@googlemail.com wrote:



  Hi Magnus,

   So what is the way one should use CSS? Is it possible to inherit a
   style into another style, e. g. my-button inherits gwt-Button, so
   that I just add my adjustments?

  just try to use addStyleName() instead of setStylePrimaryName(). By
  this you preserve the default standard.css styling of your elements
  and you can add additional formatting. More specific, the button would
  still have the class gwt-Button followed by your specific class which
  you can add to any CSS file linked in the main page.

  However, as GWT adds its standard.css as last css file you may still
  experience strage overruling of your styles (using Firebug helps to
  understand what is overruled by what).

  If that standard.css overruling is an issue for you, my blog post
  GWT's standard.css killed my page layout may help you:

     http://ililiililililii.blog.de/2010/05/12/gwt-s-standard-css-killed-m...

  Sven

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



Re: ClickHandler not called on second click

2010-06-03 Thread Danny Goovaerts
I have filed an issue 4993 for this in the issue tracker.

On Jun 2, 9:37 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:
 I managed to isolate the code in a few classes which reproduce the
 problem.

 Can I upload a zipfile (15k) somewhere?

 On Jun 2, 5:27 pm, Olivier Monaco olivier.mon...@free.fr wrote:



  Danny,

  What your click handler does? May be it puts some (transparent)
  element in front of the button... How do you use the PushButton? What
  is the exact structure of panels? You need to build a test case to us
  help you.

  Olivier

  On 2 juin, 08:02, Danny Goovaerts danny.goovae...@gmail.com wrote:

   I have not yet been able to isolate the code while reproducing the
   problem. It's probably related to the actual structured of the page.
   But I managed to get some more information using the debugger.

   - The problem occurs when using a PushButton (constructed using the
   constructor PushButton(Image image)), not when using a simple Button
   - In the class CustomButton when the method onBrowserEvent is called
   for a MOUSUP event :
   ...
   case Event.ONMOUSEUP:
           if (isCapturing)
             isCapturing = false;
             DOM.releaseCapture(getElement());
             if (isHovering()  event.getButton() == Event.BUTTON_LEFT)
   {
               onClick();
             }
           }
           break;
   ...

   isHovering() returns true at the first click while it returns false at
   the subsequent clicks

   The method isHovering is implemented as follows

   final boolean isHovering() {
       return (HOVERING_ATTRIBUTE  getCurrentFace().getFaceID())  0;
     }

   At the first click getCurrentFace().getFaceID()) evaluates to 3, while
   at the subsequent clicks, it evaluates to 1.
   So there is probably something wrong in setting the correct face in
   the particular situation.

   I hope that this can provide enough information to find the real root
   cause.

   Danny

   On Jun 1, 6:21 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:

My application is quite large. The button is several levels deep,
i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy
of divs. I will try to isolate while still reproducing the error.
I would also try to step through the code in a debugger, but
unfortunaly for this I need to move the mouse from the page to
Eclipse, which prevents from reproducing the error.
Danny

On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote:

 Something like that should not have gone unnoticed for so long. Could
 you post your code snippet?

 On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:

  Danny,

  I had no problem (in dev mode). Here is my test case:

      public void onModuleLoad()
      {
          Button b = new Button(click me);
          b.addClickHandler(new ClickHandler()
          {
              @Override
              public void onClick(ClickEvent event)
              {
                  RootPanel.get().add(new Label(clicked));
              }
          });
          RootPanel.get().add(b);
      }

  What's your test case?

  Olivier

  On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote:

   I have a button with a ClickHandler. When I move the mouse over 
   the
   button and click the button, the ClickHandler is called. When I 
   do no
   move the mouse away from the button, the ClickHandler is not 
   called on
   any subsequent clicks. I have to move the mouse away from the 
   button
   and back. Then the ClickHandler is called when I click again.

   To investigate, I have added a MouseDownHandler and a 
   MouseUpHandler.
   These are called on subsequent clicks, only the ClickHandler is 
   not
   called.
   As the focus stays on the button, I have tried hitting the enter 
   key.
   This triggers calling the ClickHandler.

   I 've tried adding a DeferredCommand to the ClickHandler with a
   variaty of actions(remove focus, remove focus and set focus 
   again),
   but this does not change anything.

   Environment
   - GWT 2.0.3
   - Vista
   - Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

   There are several posts in this forum that describe a similar
   behaviour 
   (e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...)
   but none have a solution.

   Any idea how to solve this?

   Thanks in advance,

   Danny

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



Re: ClickHandler not called on second click

2010-06-03 Thread Danny Goovaerts
I think that I have found the underlying cause. In the ClickHandler, I
disable and enable the button. This incorrectly sets the state of the
button which then leads to the ClickHandler not being called.

I have a workaround in my application by not reenabling the button in
the ClickHandler if it already is enabled.

For reference :
see issues 
http://code.google.com/p/google-web-toolkit/issues/detail?id=2885q=button%20click%20twice
and 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4992q=clickhandler%20pushbutton

On Jun 3, 8:52 am, Danny Goovaerts danny.goovae...@gmail.com wrote:
 I have filed an issue 4993 for this in the issue tracker.

 On Jun 2, 9:37 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:



  I managed to isolate the code in a few classes which reproduce the
  problem.

  Can I upload a zipfile (15k) somewhere?

  On Jun 2, 5:27 pm, Olivier Monaco olivier.mon...@free.fr wrote:

   Danny,

   What your click handler does? May be it puts some (transparent)
   element in front of the button... How do you use the PushButton? What
   is the exact structure of panels? You need to build a test case to us
   help you.

   Olivier

   On 2 juin, 08:02, Danny Goovaerts danny.goovae...@gmail.com wrote:

I have not yet been able to isolate the code while reproducing the
problem. It's probably related to the actual structured of the page.
But I managed to get some more information using the debugger.

- The problem occurs when using a PushButton (constructed using the
constructor PushButton(Image image)), not when using a simple Button
- In the class CustomButton when the method onBrowserEvent is called
for a MOUSUP event :
...
case Event.ONMOUSEUP:
        if (isCapturing)
          isCapturing = false;
          DOM.releaseCapture(getElement());
          if (isHovering()  event.getButton() == Event.BUTTON_LEFT)
{
            onClick();
          }
        }
        break;
...

isHovering() returns true at the first click while it returns false at
the subsequent clicks

The method isHovering is implemented as follows

final boolean isHovering() {
    return (HOVERING_ATTRIBUTE  getCurrentFace().getFaceID())  0;
  }

At the first click getCurrentFace().getFaceID()) evaluates to 3, while
at the subsequent clicks, it evaluates to 1.
So there is probably something wrong in setting the correct face in
the particular situation.

I hope that this can provide enough information to find the real root
cause.

Danny

On Jun 1, 6:21 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:

 My application is quite large. The button is several levels deep,
 i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy
 of divs. I will try to isolate while still reproducing the error.
 I would also try to step through the code in a debugger, but
 unfortunaly for this I need to move the mouse from the page to
 Eclipse, which prevents from reproducing the error.
 Danny

 On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote:

  Something like that should not have gone unnoticed for so long. 
  Could
  you post your code snippet?

  On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:

   Danny,

   I had no problem (in dev mode). Here is my test case:

       public void onModuleLoad()
       {
           Button b = new Button(click me);
           b.addClickHandler(new ClickHandler()
           {
               @Override
               public void onClick(ClickEvent event)
               {
                   RootPanel.get().add(new Label(clicked));
               }
           });
           RootPanel.get().add(b);
       }

   What's your test case?

   Olivier

   On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com 
   wrote:

I have a button with a ClickHandler. When I move the mouse over 
the
button and click the button, the ClickHandler is called. When I 
do no
move the mouse away from the button, the ClickHandler is not 
called on
any subsequent clicks. I have to move the mouse away from the 
button
and back. Then the ClickHandler is called when I click again.

To investigate, I have added a MouseDownHandler and a 
MouseUpHandler.
These are called on subsequent clicks, only the ClickHandler is 
not
called.
As the focus stays on the button, I have tried hitting the 
enter key.
This triggers calling the ClickHandler.

I 've tried adding a DeferredCommand to the ClickHandler with a
variaty of actions(remove focus, remove focus and set focus 
again),
but this does not change anything.

Environment
- GWT 2.0.3
- Vista

Re: ClickHandler not called on second click

2010-06-02 Thread Danny Goovaerts
I have not yet been able to isolate the code while reproducing the
problem. It's probably related to the actual structured of the page.
But I managed to get some more information using the debugger.

- The problem occurs when using a PushButton (constructed using the
constructor PushButton(Image image)), not when using a simple Button
- In the class CustomButton when the method onBrowserEvent is called
for a MOUSUP event :
...
case Event.ONMOUSEUP:
if (isCapturing)
  isCapturing = false;
  DOM.releaseCapture(getElement());
  if (isHovering()  event.getButton() == Event.BUTTON_LEFT)
{
onClick();
  }
}
break;
...


isHovering() returns true at the first click while it returns false at
the subsequent clicks

The method isHovering is implemented as follows

final boolean isHovering() {
return (HOVERING_ATTRIBUTE  getCurrentFace().getFaceID())  0;
  }

At the first click getCurrentFace().getFaceID()) evaluates to 3, while
at the subsequent clicks, it evaluates to 1.
So there is probably something wrong in setting the correct face in
the particular situation.

I hope that this can provide enough information to find the real root
cause.

Danny

On Jun 1, 6:21 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:
 My application is quite large. The button is several levels deep,
 i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy
 of divs. I will try to isolate while still reproducing the error.
 I would also try to step through the code in a debugger, but
 unfortunaly for this I need to move the mouse from the page to
 Eclipse, which prevents from reproducing the error.
 Danny

 On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote:



  Something like that should not have gone unnoticed for so long. Could
  you post your code snippet?

  On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:

   Danny,

   I had no problem (in dev mode). Here is my test case:

       public void onModuleLoad()
       {
           Button b = new Button(click me);
           b.addClickHandler(new ClickHandler()
           {
               @Override
               public void onClick(ClickEvent event)
               {
                   RootPanel.get().add(new Label(clicked));
               }
           });
           RootPanel.get().add(b);
       }

   What's your test case?

   Olivier

   On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote:

I have a button with a ClickHandler. When I move the mouse over the
button and click the button, the ClickHandler is called. When I do no
move the mouse away from the button, the ClickHandler is not called on
any subsequent clicks. I have to move the mouse away from the button
and back. Then the ClickHandler is called when I click again.

To investigate, I have added a MouseDownHandler and a MouseUpHandler.
These are called on subsequent clicks, only the ClickHandler is not
called.
As the focus stays on the button, I have tried hitting the enter key.
This triggers calling the ClickHandler.

I 've tried adding a DeferredCommand to the ClickHandler with a
variaty of actions(remove focus, remove focus and set focus again),
but this does not change anything.

Environment
- GWT 2.0.3
- Vista
- Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

There are several posts in this forum that describe a similar
behaviour 
(e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...)
but none have a solution.

Any idea how to solve this?

Thanks in advance,

Danny

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



Re: ClickHandler not called on second click

2010-06-02 Thread Danny Goovaerts
I managed to isolate the code in a few classes which reproduce the
problem.

Can I upload a zipfile (15k) somewhere?

On Jun 2, 5:27 pm, Olivier Monaco olivier.mon...@free.fr wrote:
 Danny,

 What your click handler does? May be it puts some (transparent)
 element in front of the button... How do you use the PushButton? What
 is the exact structure of panels? You need to build a test case to us
 help you.

 Olivier

 On 2 juin, 08:02, Danny Goovaerts danny.goovae...@gmail.com wrote:



  I have not yet been able to isolate the code while reproducing the
  problem. It's probably related to the actual structured of the page.
  But I managed to get some more information using the debugger.

  - The problem occurs when using a PushButton (constructed using the
  constructor PushButton(Image image)), not when using a simple Button
  - In the class CustomButton when the method onBrowserEvent is called
  for a MOUSUP event :
  ...
  case Event.ONMOUSEUP:
          if (isCapturing)
            isCapturing = false;
            DOM.releaseCapture(getElement());
            if (isHovering()  event.getButton() == Event.BUTTON_LEFT)
  {
              onClick();
            }
          }
          break;
  ...

  isHovering() returns true at the first click while it returns false at
  the subsequent clicks

  The method isHovering is implemented as follows

  final boolean isHovering() {
      return (HOVERING_ATTRIBUTE  getCurrentFace().getFaceID())  0;
    }

  At the first click getCurrentFace().getFaceID()) evaluates to 3, while
  at the subsequent clicks, it evaluates to 1.
  So there is probably something wrong in setting the correct face in
  the particular situation.

  I hope that this can provide enough information to find the real root
  cause.

  Danny

  On Jun 1, 6:21 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:

   My application is quite large. The button is several levels deep,
   i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy
   of divs. I will try to isolate while still reproducing the error.
   I would also try to step through the code in a debugger, but
   unfortunaly for this I need to move the mouse from the page to
   Eclipse, which prevents from reproducing the error.
   Danny

   On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote:

Something like that should not have gone unnoticed for so long. Could
you post your code snippet?

On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:

 Danny,

 I had no problem (in dev mode). Here is my test case:

     public void onModuleLoad()
     {
         Button b = new Button(click me);
         b.addClickHandler(new ClickHandler()
         {
             @Override
             public void onClick(ClickEvent event)
             {
                 RootPanel.get().add(new Label(clicked));
             }
         });
         RootPanel.get().add(b);
     }

 What's your test case?

 Olivier

 On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote:

  I have a button with a ClickHandler. When I move the mouse over the
  button and click the button, the ClickHandler is called. When I do 
  no
  move the mouse away from the button, the ClickHandler is not called 
  on
  any subsequent clicks. I have to move the mouse away from the button
  and back. Then the ClickHandler is called when I click again.

  To investigate, I have added a MouseDownHandler and a 
  MouseUpHandler.
  These are called on subsequent clicks, only the ClickHandler is not
  called.
  As the focus stays on the button, I have tried hitting the enter 
  key.
  This triggers calling the ClickHandler.

  I 've tried adding a DeferredCommand to the ClickHandler with a
  variaty of actions(remove focus, remove focus and set focus again),
  but this does not change anything.

  Environment
  - GWT 2.0.3
  - Vista
  - Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

  There are several posts in this forum that describe a similar
  behaviour 
  (e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...)
  but none have a solution.

  Any idea how to solve this?

  Thanks in advance,

  Danny

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



Re: Getting the default DateBox() picker to advance year at a time

2010-06-02 Thread Danny Goovaerts
It's not necessary to write a custom DatePicker. It suffices to create
a DatePicker with a custom MonthSelector.
Here is my implementation
//
package eu.oobikwe.gwt.ui;

import com.google.gwt.user.datepicker.client.CalendarModel;
import com.google.gwt.user.datepicker.client.DatePicker;
import com.google.gwt.user.datepicker.client.DefaultCalendarView;

public class DatePickerWithYearSelector extends DatePicker {

public DatePickerWithYearSelector() {
super(new MonthAndYearSelector(),new DefaultCalendarView(),new
CalendarModel()) ;
MonthAndYearSelector monthSelector = (MonthAndYearSelector)
this.getMonthSelector() ;
monthSelector.setPicker(this) ;
monthSelector.setModel(this.getModel()) ;
}

public void refreshComponents() {
super.refreshAll() ;
}

}

//
package eu.oobikwe.gwt.ui;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Grid;
import com.google.gwt.user.client.ui.PushButton;
import com.google.gwt.user.client.ui.HTMLTable.CellFormatter;
import com.google.gwt.user.datepicker.client.CalendarModel;
import com.google.gwt.user.datepicker.client.MonthSelector;

/**
 * A simple {...@link MonthSelector} used for the default date picker.
Not
 * extensible as we wish to evolve it freely over time.
 */

public  class MonthAndYearSelector extends MonthSelector {

  private static String BASE_NAME = datePicker ;

  private PushButton backwards;
  private PushButton forwards;
  private PushButton backwardsYear;
  private PushButton forwardsYear;
  private Grid grid;
  private int previousYearColumn = 0;
  private int previousMonthColumn = 1 ;
  private int monthColumn = 2 ;
  private int nextMonthColumn = 3;
  private int nextYearColumn = 4 ;
  private CalendarModel model ;
  private DatePickerWithYearSelector picker ;


public void setModel(CalendarModel model) {
this.model = model;
}



public void setPicker(DatePickerWithYearSelector picker) {
this.picker = picker;
}



@Override
  protected void refresh() {
String formattedMonth = getModel().formatCurrentMonth();
grid.setText(0, monthColumn, formattedMonth);
  }

  @Override
  protected void setup() {
// Set up backwards.
backwards = new PushButton();
backwards.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
addMonths(-1);
  }
});

backwards.getUpFace().setHTML(lsaquo;);
backwards.setStyleName(BASE_NAME + PreviousButton);

forwards = new PushButton();
forwards.getUpFace().setHTML(rsaquo;);
forwards.setStyleName(BASE_NAME + NextButton);
forwards.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
addMonths(+1);
  }
});


// Set up backwards year
backwardsYear = new PushButton();
backwardsYear.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
addMonths(-12);
  }
});

backwardsYear.getUpFace().setHTML(laquo;);
backwardsYear.setStyleName(BASE_NAME + PreviousButton);

forwardsYear = new PushButton();
forwardsYear.getUpFace().setHTML(raquo;);
forwardsYear.setStyleName(BASE_NAME + NextButton);
forwardsYear.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
addMonths(+12);
  }
});

// Set up grid.
grid = new Grid(1, 5);
grid.setWidget(0, previousYearColumn, backwardsYear);
grid.setWidget(0, previousMonthColumn, backwards);
grid.setWidget(0, nextMonthColumn, forwards);
grid.setWidget(0, nextYearColumn, forwardsYear);

CellFormatter formatter = grid.getCellFormatter();
formatter.setStyleName(0, monthColumn, BASE_NAME + Month);
formatter.setWidth(0, previousYearColumn, 1);
formatter.setWidth(0, previousMonthColumn, 1);
formatter.setWidth(0, monthColumn, 100%);
formatter.setWidth(0, nextMonthColumn, 1);
formatter.setWidth(0, nextYearColumn, 1);
grid.setStyleName(BASE_NAME + MonthSelector);
initWidget(grid);
  }

  public void addMonths(int numMonths) {
model.shiftCurrentMonth(numMonths);
picker.refreshComponents();
  }

}

Danny
On Jun 2, 8:31 pm, Jim Douglas jdoug...@basis.com wrote:
 No, it's not possible, short of writing a custom DatePicker.  You
 might want to vote for this open issue:

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

 On Jun 2, 9:24 am, Rob Tanner caspersg...@gmail.com wrote:



  Hi,

  I'm using a DateBox() widget for users to enter their date of birth.
  When the picker is displayed, on either side of the month/year
  displayed in the center top of the picker are the greater than and
  less than arrows for moving forward or backward, month at a time.  I
  have not figured out anyway to add year at a time as well (25 or more
  years of moths is a lot

ClickHandler not called on second click

2010-06-01 Thread Danny Goovaerts
I have a button with a ClickHandler. When I move the mouse over the
button and click the button, the ClickHandler is called. When I do no
move the mouse away from the button, the ClickHandler is not called on
any subsequent clicks. I have to move the mouse away from the button
and back. Then the ClickHandler is called when I click again.

To investigate, I have added a MouseDownHandler and a MouseUpHandler.
These are called on subsequent clicks, only the ClickHandler is not
called.
As the focus stays on the button, I have tried hitting the enter key.
This triggers calling the ClickHandler.

I 've tried adding a DeferredCommand to the ClickHandler with a
variaty of actions(remove focus, remove focus and set focus again),
but this does not change anything.

Environment
- GWT 2.0.3
- Vista
- Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

There are several posts in this forum that describe a similar
behaviour (e.g.
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/aa9ce024e173390e/65802ce6da9482e7?lnk=gstq=second+click#65802ce6da9482e7)
but none have a solution.

Any idea how to solve this?

Thanks in advance,

Danny

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



Re: ClickHandler not called on second click

2010-06-01 Thread Danny Goovaerts
My application is quite large. The button is several levels deep,
i.e. in a FlowPanel which itself is in a HorizontalPaneI in a hierachy
of divs. I will try to isolate while still reproducing the error.
I would also try to step through the code in a debugger, but
unfortunaly for this I need to move the mouse from the page to
Eclipse, which prevents from reproducing the error.
Danny

On Jun 1, 4:17 pm, Ranjan ranjan.n...@gmail.com wrote:
 Something like that should not have gone unnoticed for so long. Could
 you post your code snippet?

 On Jun 1, 12:07 pm, Olivier Monaco olivier.mon...@free.fr wrote:



  Danny,

  I had no problem (in dev mode). Here is my test case:

      public void onModuleLoad()
      {
          Button b = new Button(click me);
          b.addClickHandler(new ClickHandler()
          {
              @Override
              public void onClick(ClickEvent event)
              {
                  RootPanel.get().add(new Label(clicked));
              }
          });
          RootPanel.get().add(b);
      }

  What's your test case?

  Olivier

  On 1 juin, 08:07, Danny Goovaerts danny.goovae...@gmail.com wrote:

   I have a button with a ClickHandler. When I move the mouse over the
   button and click the button, the ClickHandler is called. When I do no
   move the mouse away from the button, the ClickHandler is not called on
   any subsequent clicks. I have to move the mouse away from the button
   and back. Then the ClickHandler is called when I click again.

   To investigate, I have added a MouseDownHandler and a MouseUpHandler.
   These are called on subsequent clicks, only the ClickHandler is not
   called.
   As the focus stays on the button, I have tried hitting the enter key.
   This triggers calling the ClickHandler.

   I 've tried adding a DeferredCommand to the ClickHandler with a
   variaty of actions(remove focus, remove focus and set focus again),
   but this does not change anything.

   Environment
   - GWT 2.0.3
   - Vista
   - Chrome 6.0.408.1 dev / Firefox 3.5.9/ Internet Explorer 7.0

   There are several posts in this forum that describe a similar
   behaviour 
   (e.g.http://groups.google.com/group/google-web-toolkit/browse_thread/threa...)
   but none have a solution.

   Any idea how to solve this?

   Thanks in advance,

   Danny

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



Re: Facing problem tackling browser refresh

2010-04-20 Thread Danny Goovaerts
I faced exactly the same problem (see
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/36979a4e8e51fdc5#
)
I concluded that in case of a refresh, the async call is cancelled in
the browser before it has concluded.
I solved the problem by waiting until the onSuccess() of the
callback was called. This waitingf is implemented by using a timer
that fires repeatdly until it is stopped in the
onSuccess() method of the RPC callback.

Here is the main piece of code

//code called in the ClosingHandler
final AsyncCompletionFlag flag= new AsyncCompletionFlag() ;
SessionGWTInterface.Util.getInstance().transfersSave(xml.toString(),
new AsyncCallbackString() {

public void onFailure(Throwable caught) {
   flag.setDone() ;
   return ;
}

public void onSuccess(String result) {
   flag.setDone() ;
   return ;
}
  }) ;
  //We need to have this to be sure to continue running until the RPC
completes. If not, it can be cancelled before
  //it acttually runs
 AsyncCompletionChecker checker = new AsyncCompletionChecker(flag) ;
 checker.run() ;

package eu.oobikwe.gwt.rpc;

import com.google.gwt.user.client.Timer;

public class AsyncCompletionChecker extends Timer{

private static int WAIT_TIME = 10 ;

private int waitTime ;
private AsyncCompletionFlag flag ;

public AsyncCompletionChecker(AsyncCompletionFlag flag) {
this(flag,WAIT_TIME) ;
}

public AsyncCompletionChecker(AsyncCompletionFlag flag,int waitTime)
{
super();
if(waitTime  0) {
this.waitTime = waitTime;
}
else {
this.waitTime = WAIT_TIME ;
}
this.flag = flag ;
}

@Override
public void run() {
if(!flag.isDone()) {
this.schedule(waitTime) ;
}
}


}

package eu.oobikwe.gwt.rpc;

public class AsyncCompletionFlag {
private boolean done ;

public AsyncCompletionFlag () {
super() ;
done = false ;
}
public boolean isDone () {
return done ;
}

public void setDone() {
done = true ;
}

}

This works for me.
On 20 apr, 09:24, chill_hus hussain.wa...@gmail.com wrote:
 Hi
 I am working on an application which uses GWT 2.0, gwt-comet  GXT
 I have added a close handler (Window.addWindowClosingHandler) to
 detect refresh and closing of browser
 When this handler is called I do a RPC to a servlet.
 This RPC is executed properly if the browser tab is closed. However in
 case of refresh it is inconsistent. Few times RPC is executed while
 some times it doesn't and onFailure (of AsyncCallback) is called and
 StatusCodeException is thrown
 Is there any thing wrong in my implementation. pls help me out with
 this situation.
 Thanks in advance for suggestions

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

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



Re: Async RPC during CloseHandler.onClose() cancelled?

2010-04-17 Thread Danny Goovaerts
Moving the reload to the onSuccess is a good suggestion.
Thanks!

On 16 apr, 18:12, Thomas Broyer t.bro...@gmail.com wrote:
 On Apr 16, 5:44 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:





  In the application that I'm building  I've implemented a
  CloseHandler.onClose() which saves the local state in the database at
  the server side. This state is reloaded automatically when you log on
  the next time (fromthe same browser or from another browser, that's
  why I am not storing it in a cookie in the client).

  This all works as expected when you close the browser (or the browser
  tab) or when you navigate to another url.
  The application is supported in multiple languages . I switch language
  by replacing the URL by a new URL with locale query parameter (for
  example, the URL for the default language ishttp://www.mysite.eu/,
  the URL for the french version ishttp://www.mysite.eu/?locale=fr).
  This causes a reload and the application is reinitialized in the new
  locale.

  However in this case, the async call in the CloseHandler.onClose()
  method apparently is not called or it is called, but it is cancelled.
  I'm convinved that it is called but it is cancelled as a result of a
  timing issue.
  I've done the following tests:
  * in web mode, the problem occurs
  * in web mode, when I have emptied the browser cache, the problem does
  not occur
  * in hosted mode when I step through it in the debugger, the
  CloseHandler.onClose() method is called and the RPC succeeds
  * in hosted mode, not in the debugger, the RPC succeeds
  * I've also tried moving the RPC call in a Window.closingHandler where
  I set a message in the ClosingEvent. This causes a popup window. In
  this case, the RPC call also succeeds

  This leads me to the conclusion that in in Web mode, the reload
  happens fast when the HTML page and the java script are cached, and
  that this causes the RPCto be canceled.

  What do you think?

  Is there a way to prevent the RPC call from being cancelled?

 Using onClose to save things is unreliable and risky (you'd better
 have an explicit save button and in case you have unsaved changes
 ask the user to save them before closing, using a ClosingHandler).

 In the case where you reload the app (with a slightly different URL),
 why not doing the RPC and do the reload in the onSuccess? (and because
 you have no unsaved changes, you don't need to save again in the
 onClose, or warn/ask the user in the ClosingHandler)

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

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



Async RPC during CloseHandler.onClose()

2010-04-16 Thread Danny Goovaerts
I've implemented a CloseHandler to makes an async call to the server
to store the loc

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



Re: Unable to migrate GWT application to version 2.03 due to problem with internationalization

2010-03-19 Thread Danny Goovaerts
es_GTC is normally not a valid locale. The country part of a locale
is the two character ISO country code. GTC is not a valid country
code.
A reason might be that GWT 1.5 was not strict about the country code
format, and that 2.0 is much stricter.

Danny
On 19 mrt, 14:28, craige craige.be...@gmail.com wrote:
 I am trying to migrate a GWT 1.5 application (which definitely works
 without problem) to 2.03 and I am having problems with the compilation
 of the application. My application uses various locales which are
 defined in the Main.gwt.xml file

         extend-property name=locale values=es/
         extend-property name=locale values=es_GTC/
         extend-property name=locale values=en/

 The problem comes when the compiler attempts to compile the locale
 es_GTC and the file InternationalizationConstants_es_GTC.properties

 The error from the compiler was as follows :

         Validating newly compiled units
             [ERROR] Errors in 'generated://
 6156E89F6D1ADDBDACCA415E145F7A5A/com/google/gwt/i18n/client/impl/
 LocaleInfoImpl_es-gtc.java'
                [ERROR] Line 10: The type LocaleInfoImpl_es is already
 defined
                [ERROR] Line 10: Syntax error on token -,  expected
                [ERROR] Line 10: Syntax error, insert  to complete
 ReferenceType1

 This previously worked with GWT 1.5. If I remove the locale

 extend-property name=locale values=es_GTC/

 from the Main.gwt.xml file, the application compiles and runs without
 problem. It seems that the GWT compiler has a problem with the -
 character in the name of the autogenerated java method which is

 public class LocaleInfoImpl_es-gtc extends LocaleInfoImpl_shared {

 Anybody got any suggestions? I've looked in the documentation for GWT
 2.x and there is nothing to indicate that this has changed.

 Thanks

 Craige

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



Re: How do I use my own server in hosted mode instead of GWT's built-in Jetty instance?

2009-12-10 Thread Danny Goovaerts
When you run OOPHM without the built in Jetty, your RPC calls will go
to your instance of Tomcat (or to be more precise,
to the server that is listening on the port that you specify in the
URL : http://localhost:port/cellamea.html?
gwt.codesvr=192.168.1.102:9997,
The URL proposed in the Development Mode window is
 http://localhost/cellamea.html?gwt.codesvr=192.168.1.102:9997
supposing that you run your server on the standard port 80).

Changes that you make to your code in the debugger will only affect
client side code (after you refresh your browser). Changes to
your server code are not picked up automatically by your instance of
Tomcat. Depending on your deployment,
you will need to rebuild/redeploy/restart your Tomcat (similar to
pushing the Reload web server button in the Development Mode window
in Eclipse).

If you want to actually debug in Tomcat, start Tomcat in debugging
mode and start a debugging session in Eclipse to a remote JVM. Changes
to
your code will similarly not be picked up by Tomcat , needing a
rebuild/redeploy/restarts sequence.
You can run your application in Web mode (without debugging the client
side) or you can also debug your application in development mode
without the
built in server. It all depends what you need to investigate.

Danny

P.S. 2.0 is great. Thanks to everyone who contributed!

On 10 dec, 21:40, Henry q8e...@gmail.com wrote:
 How do I use my own server in hosted mode instead of GWT's built-in
 Jetty instance?
 In the plugin, I found the option to turn off use built-in server.
 Then I start my own server (Tomcat with JAAS j_security enabled), but
 it doesn't seem to pick up changes with my OOPHM firefox.
 How do I get my server (Tomcat) to understand:
 ?gwt.codesvr=localhost:9997

 thx,
 Henry

--

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




Re: Tomcat RPC Failure on Lost Client Connections.

2009-11-17 Thread Danny
t.dave,

I am using 1.7.  Though it is no solution, your having this same
problem is some comfort.  If enough of us are in the same boat, maybe
one of us will eventually find a solution.

Thanks,

Danny

On Nov 17, 12:15 am, t.dave da...@lorgeousdays.com wrote:
 there's a bit of content on the web about this problem.  if memory
 serves it was at least partly blamed on the
 RPCServletUtils.readContentAsUtf8() method - that sometimes the
 request doesn't make it to the server.  this was blamed on the
 vagaries of the internet.

 i have it all the time in my web app - probably at least once a day,
 but have been unable to replicate it or track down the exact cause.
 what version of GWT are you running?  i'm still on 1.5.3 - my hope is
 that once i finally get around to rewriting ALL my listeners into a
 handler bus and upgrade to 1.7 (or even 2.0 by the time i get to it),
 this problem will be solved.

--

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




Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update

2009-11-16 Thread Danny
Hi,

Is there also a fix available for GWT 1.6+ ?
My Eclipse project gives an error saying that the when using the WAR
layout you must use the GWT 1.6 or later.

Thkx,
D.

On Nov 14, 4:10 pm, hugues huguespisa...@gmail.com wrote:
 On 12 nov, 18:39, hugues huguespisa...@gmail.com wrote:

  On 12 nov, 13:35, Daniel Kurka kurka.dan...@googlemail.com wrote:

   I found a very UGLY solution to my problem (which enables me to continue
   working).

   I replaced in LowLevelSaf.java public static native void gcUnprotect(int,
   int); to public static void gcUnprotect(int, int) {}

  I've built a file for GWT 1.5.3 on that same pattern if people are
  insterested... but I've got nowhere to put it. It's +9MB.

 It's finally 
 here:http://org.labarben.s3.amazonaws.com/gwt-saf-fix/gwt-dev-mac.jar

 - Hugues

--

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




Tomcat RPC Failure on Lost Client Connections.

2009-11-16 Thread Danny
I get a  Exception while dispatching incoming RPC call exception in
Tomcat after, what I believe is caused by an RPC response not finding
the client that made the request.  The stack print out is included
below.  I say that I believe this is the problem, but I have not been
able to reproduce the error.

Can someone with more Tomcat experience than me, see if my belief is
well founded?  Regardless, does someone have a solution?  My system
seems to be running OK.  Is my worry mostly about Tomcat filling my
web host's disk space with exception messages?

Thanks,

Danny

--

Nov 14, 2009 7:39:50 AM org.apache.catalina.core.ApplicationContext
log
SEVERE: Exception while dispatching incoming RPC call
java.io.IOException
at org.apache.jk.common.JkInputStream.receive(JkInputStream.java:205)
at org.apache.jk.common.JkInputStream.refillReadBuffer
(JkInputStream.java:265)
at org.apache.jk.common.JkInputStream.doRead(JkInputStream.java:183)
at org.apache.coyote.Request.doRead(Request.java:428)
at org.apache.catalina.connector.InputBuffer.realReadBytes
(InputBuffer.java:304)
at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:405)
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:
327)
at org.apache.catalina.connector.CoyoteInputStream.read
(CoyoteInputStream.java:193)
at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8
(RPCServletUtils.java:146)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent
(RemoteServiceServlet.java:343)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:
190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:
291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:698)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt
(ChannelSocket.java:891)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:619)

--

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




IE8 and Compatibility View settings and ListBoxes

2009-11-14 Thread Danny
My version of IE8 was accidentally set to Display all Websites in
Compatibility View.  This seemed to not hurt anything in my
application at first, but later I found that ListBoxes would not
display properly, i.e., not at all.  I guess GWT generates ListBox
code for IE8 that is not compatible with older versions.

I will make sure to inform my users to not use compatibility mode for
IE8.  IE8 permits selecting compatibility mode for specific websites,
but this is a bit messy.

I admit that this is a Microsoft, rather than GWT, problem.  Maybe it
is too late for 1.7, but would it be possible for 2.0 to generate
ListBox code for all versions of IE?  But, who knows what other
inconsistencies we will find from mighty Microsoft?

Thanks,

Danny

--

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




Re: Avoiding RPC Coming in to an inactive client from the server.

2009-10-13 Thread Danny

rjcarr,
Hey!  I was looking for some magic GWT answer, not good old
programming logic.

Thanks very much,

Danny

On Oct 13, 1:43 am, rjcarr rjc...@gmail.com wrote:
 Just keep a count of your service calls.  So, when your expiry timer
 rings, make sure you don't send out any more requests, and keep your
 client alive until it has received its last response (bringing your
 count to 0).

 On Oct 8, 11:13 am, Danny dhho...@gmail.com wrote:

  My application has a timeout on the client side that often causes the
  client to go away while there is a pendingRPCreturn from the
  server.  Nothing comes crashing down, but Tomcat fills its log with:

  org.apache.catalina.core.ApplicationContext log
  SEVERE: Exception while dispatching incomingRPCcall
  java.io.IOException...

  followed by a stack printout.

  Does anyone know how to relieve Tomcat of this burden and my having to
  dump its log file more frequently that I would like?

  Thanks,

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



Avoiding RPC Coming in to an inactive client from the server.

2009-10-08 Thread Danny

My application has a timeout on the client side that often causes the
client to go away while there is a pending RPC return from the
server.  Nothing comes crashing down, but Tomcat fills its log with:

org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
java.io.IOException...

followed by a stack printout.

Does anyone know how to relieve Tomcat of this burden and my having to
dump its log file more frequently that I would like?

Thanks,

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



encodeResponseForFailure

2009-09-16 Thread Danny

Hi,

trying to get my GWT Application running I get the next error. When
the line ListAllianz allianzen = session.createQuery(SELECT id,
kuerzel, name from gctool.allianzen).list(); is executed I geht the
following error:

Service method 'public abstract java.util.List
com.gc.tool.client.GC_ToolService.getAllianzen()' threw an unexpected
exception: java.lang.reflect.UndeclaredThrowableException
Stack:
com.google.gwt.user.server.rpc.RPCCopy_GWT16.encodeResponseForFailure
(RPCCopy_GWT16.java:348)
Stack: com.google.gwt.user.server.rpc.RPCCopy.encodeResponseForFailure
(RPCCopy.java:216)
Stack: net.sf.gilead.gwt.PersistentRemoteService.processCall
(PersistentRemoteService.java:164)
Stack: com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
Stack: javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
Stack: javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Stack: org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:487)
Stack: org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:362)
Stack: org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
Stack: org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
Stack: org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:729)
Stack: org.mortbay.jetty.webapp.WebAppContext.handle
(WebAppContext.java:405)
Stack: org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
Stack: org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
Stack: org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
Stack: org.mortbay.jetty.Server.handle(Server.java:320)
Stack: org.mortbay.jetty.HttpConnection.handleRequest
(HttpConnection.java:505)
Stack: org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:843)
Stack: org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
Stack: org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
205)
Stack: org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
380)
Stack: org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
Stack: org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)


Is this error related to GWT or hibernate? Can anybody tell me where
start searching?
Thanks in adance
Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



inherit modul for hibernate

2009-09-15 Thread Danny

Hello,

I try to integrate hibernate into a GWT 1.6 project. I've done it with
the help of: 
http://code.google.com/intl/de-DE/webtoolkit/articles/using_gwt_with_hibernate.html
and used gilead.

But when I run my application it says in the log:
No source code is available for type org.hibernate.SessionFactory; did
you forget to inherit a required module?
No source code is available for type org.hibernate.cfg.Configuration;
did you forget to inherit a required module?
No source code is available for type
java.lang.Exception.InInitializeError; did you forget to inherit a
required module?

But I've imported the mentioned classes and in my app.gwt.xml I've
added: inherits name=net.sf.gilead.Adapter4Gwt15 /

Has anyone ideas what to check why it does not work?

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



Designer

2009-09-09 Thread Danny

Guten Morgen!
Das GWT setze ich schon einige Zeit (erfolgreich) ein, allerdings
bisher ohne Designer. Um mir die Arbeit zu erleichtern, bin ich nun
allerdings auf der Suche nach einen visuellen Designer für
Oberflächen. Kann mir jemand eine empfehlen, die in Eclipse integriert
ist und als Freeware erhältlich ist?
Meine Google-Suchen dazu waren nicht allzusehr von Erfolg gekrönt ;-)
Danke!
Schöne Grüße
Daniel

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



Frame Height 100%

2009-08-24 Thread Danny

Does anyone have a browser independent way to set a frame's height to
100% inside a panel that already has its height set to 100%.   I want
to open a frame to a URL (e.g., google.com), such that the frame
expands to the full size of the page pointed to by the URL.  Setting a
frame's width to 100%. or setting a frame's height to a fixed value
both work.

A quick search finds that iframes have this problem: setting its
height to 100% does not work in all browsers.  Solutions suggest
making sure that all parent objects that contain the iframe have a
style of height:100% or setting the height with Javascript.  I have
tried to set the parents of my frame to height:100%, but have not
met with success.  I am not wild about using Javascript.

Thanks,

Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email 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 - JFreeChart Dependency in Terms Conditions

2009-08-13 Thread Danny Robinson

Please can someone explain why JFreeChart is listed as a 3rd party
library for GWT in GWT's Terms  Conditions page.  Specifically, I
need to understand if this is present as a dependency for development
(like Jetty), or the JFreeChart stuff actually is present somehow in
the javascript/compiled output - if so, is it only necessary for
certain components.

Many thanks - just trying to track down all the runtime license
dependencies for our external software.

Regards,

D.

ps - great product by the way.

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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Danny

Thanks, doopa.
The steps in the GWT documentation are basically what I have done in
the past -- I call them rolling my own.  I was hoping that there was
some way to get Eclipse to do all the work, and all I would have to do
is build a .war file and TomCat would explode everything into the
right places.  I guess I will continue as before.

Danny

On Apr 30, 4:52 am, doopa niallhas...@googlemail.com wrote:
 For testing purposes I use tomcat to serve the static and dynamic
 portions of the application. To do so, I follow the example from 
 GWT:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog...

 Then navigate to localhost:8080/com.example.Module/index.html

 And then you can have the app pages served by tomcat. The war file is
 simply deployed to tomcat/webapps/com.example.Module.war

 Hope that makes sense.

 On Apr 29, 10:30 pm, Danny dhho...@gmail.com wrote:

  While I am not new to GWT, I am a bit new to the WAR file concept.  Up
  to now, I was content to roll my own when deploying my WEB
  application.  I use Tomcat to serve both static and dynamic web page
  content under a directory/file configuration at my web hosting service
  something like:

  webapps
     ROOT
         GWT/
         GWT cashe files
         my .nocache.js file
         index.html   (my home page)
         index.css (my css file)
         other public files
     servlet
         WEB-INF
            classes  (my servlets)
            lib (external .jar files needed by my servlets)

  My web hosting service currently points http:/my-domain-name.com/  to
  Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
  servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
  see how to do this with WAR, but the WAR's module name gives me
  another level that I do not need.  If I name my GWT module ROOT, would
  this work, or does someone have a better idea.

  Thanks,

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



Re: How to use the new WAR file to deploy a simple web application.

2009-04-30 Thread Danny

Thanks everyone.  I now see that this is a web feature.  When I saw
the new GWT 1.6 war file construction and eclipse plugin, I thought my
deployment life was getting rosier.  Maybe later.

When I have gotten my project deployment where I want it, I will post
my resultd.

Regards,

Danny

On Apr 30, 11:01 am, Jamie jamiesharbor-sou...@yahoo.com wrote:
 Currently I have my GWT-1.6 project additionally configured as a
 Dynamic Web Project in Eclipse EE.
 (to find out how, see 
 here:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...)

 When you have your project configured this way, you can select the
 project, and then select File/Export/Web/War file.

 Save it to {path}/ROOT.war

 and that's about it.

 Saving it or renaming it to 'ROOT.war' should do what you want; your
 project will deploy athttp://server/
 instead ofhttp://server/project

 (BTW, this is a web container feature, not a GWT specific feature.)

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



How to use the new WAR file to deploy a simple web application.

2009-04-29 Thread Danny

While I am not new to GWT, I am a bit new to the WAR file concept.  Up
to now, I was content to roll my own when deploying my WEB
application.  I use Tomcat to serve both static and dynamic web page
content under a directory/file configuration at my web hosting service
something like:

webapps
   ROOT
   GWT/
   GWT cashe files
   my .nocache.js file
   index.html   (my home page)
   index.css (my css file)
   other public files
   servlet
   WEB-INF
  classes  (my servlets)
  lib (external .jar files needed by my servlets)

My web hosting service currently points http:/my-domain-name.com/  to
Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
see how to do this with WAR, but the WAR's module name gives me
another level that I do not need.  If I name my GWT module ROOT, would
this work, or does someone have a better idea.

Thanks,

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



GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Danny

setChecked() seems to be depreaciated by  GWT 1.6.  What replaces this
action?

Thanks,

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



Re: GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Danny

Thanks much.

On Apr 24, 2:12 pm, Jason Essington jason.essing...@gmail.com wrote:
 setValue()

 On Apr 24, 2009, at 12:09 PM, Danny wrote:



  setChecked() seems to be depreaciated by  GWT 1.6.  What replaces this
  action?

  Thanks,

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



GWT 1.6, Google App Engine, and java.awt.image.*

2009-04-22 Thread Danny

I am trying to put my application under GWT 1.6, but I am having
problems, because I use some java.awt.image classes.  I understand
that Google is working on App Engine for java and has probably not yet
implemented image.

How can I proceed, since the new eclipse plugins insist on App Engine,
even when I remove the App Engine SDK.

Any suggestions?

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



Re: GWT 1.6, Google App Engine, and java.awt.image.*

2009-04-22 Thread Danny

Clarifying: I am using Java image classes on the server, where the
Java sky should be almost limitless.  Right now, I would like to get
my application of a few thousand lines of code working under GWT 1.6.
It works great under GWT 1.5.  I took your advice and told Eclipse to
not use App Engine, and Eclipse did stop complaining.  I hope this
works in the end.

Thanks,

Danny

On Apr 22, 8:15 pm, Ben FS ben.su...@gmail.com wrote:
 Client-side: GWT lets you use Java language, but only a sub-set of the
 J2SE library, supplemented by a variety of GWT-specific UI classes.

 Server-side: You can use whatever you want, including Java. If you
 wish to use Java (J2EE) on the server, you can - and then the GWT RPC
 mechanism can be handy. If you wish to deploy to GAE, there are some
 restrictions - for example, no file access - but the main difference
 with GAE is how you store data persistently.

 On Apr 22, 3:35 pm, Danny dhho...@gmail.com wrote:

  I am trying to put my application under GWT 1.6, but I am having
  problems, because I use some java.awt.image classes.  I understand
  that Google is working on App Engine for java and has probably not yet
  implemented image.

  How can I proceed, since the new eclipse plugins insist on App Engine,
  even when I remove the App Engine SDK.

  Any suggestions?

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



Upgrade 1.5.3 to 1.6.4 - 404 Error

2009-04-19 Thread Danny Schimke

Hi!

I've done the upgrade from GWT 1.5.3 to 1.6.4. I followed the
instructions on the GWT docs.Now I get an 404 Warning in my console
[WARN] 404 - GET /GwtWebapp.html (127.0.0.1) 1400 bytes. And my
hosted- window shows the following:

HTTP ERROR: 404
NOT_FOUND
RequestURI=/GwtWebapp.html

I updated all the things according the docs... Where is the problem, I
have no idea. Hope someone can help

Thanks a lot!
-Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Acces to GWT JavaDoc in Eclipse

2009-04-01 Thread Danny Schimke
Hi Stefan!

You are right: I've removed gwt-servlet from the POM dependencies of the
corresponding project, because I don't need it yet. If I need this I will
create a separate server/backend- project which does. And now I have
access to the JavaDoc.

Thank you very much!
-Danny

2009/4/1 Stefan Hübner sthueb...@googlemail.com


 Danny,

 maybe this is caused due to both gwt-servlet and gwt-user are on
 classpath? For the former, the Maven Central repo doesn't provide a
 source ball but the latter it does. I've experienced this behaviour
 earlier and the only workaround so far was to attach the sources of
 gwt-user to gwt-servlet as well. This seems a weird thing to do,
 though. To get the sources use -DdownloadSources -DdownloadJavadocs
 while invoking mvn eclipse:eclipse.

 Why is gwt-servlet on your classpath in the first place? Maybe because
 it's necessary for RemoteServiceServlet?

 Anyways, I would be happy if gwt-servlet sources would be provided too.

 -Stefan

 Danny Schimke schimk...@googlemail.com writes:

  Hi!
 
  I created a complete new development environment. I installed Eclipse,
 GWT and
  startet up my new project. Its is working well, but I have no access to
 the GWT
  source code. For example I get the following message in tooltip, if my
 mouse moves
  over an GWT element like DialogBox etc.:
 
  This element neither has attached source nor attached Javadoc and hence
 no Javadoc
  could be found.
 
  The source is attached to of my maven module(s). If I navigate to one
 class there is
  the source code, but how I get access out from my own sorces?
 
  Thanks very much!
  -Danny
 
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: FlexTable : how to get not wrapping text functionality

2009-03-30 Thread Danny Schimke
Hi Suren!

I dont know why this is not working, but you can use a Label, set the word
wrap of the label to false and add this label to one of your FlexTable's
cell. This should work.

-Danny

2009/3/30 Suren nsurendi...@gmail.com


 Hi All,

 I am using FlexTable in a grid format to display text. I have a
 situation like, the width of the particular column needs to be fixed.
 And in that case, I need to show whatever text is fit into that width.
 I dont want to use wordwrap, which inturn affects my layout. Or I dont
 want to display the full lengthy text too.

 I 've tried
 [code]
 FlexTable f1 = new FlexTable();

f1.setText(0, 0, This is a very long text);
f1.setBorderWidth(2);
f1.getCellFormatter().setWidth(0,0,2px);
f1.getCellFormatter().setWordWrap(0, 0, false);
 [/code

 In the above case, I set the wordwrap to false, but still I am getting
 the wrapped text in the Flextable

 Could anyone please suggest any ways to acheive this?

 Thanks
 Suren

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: FlexTable : how to get not wrapping text functionality

2009-03-30 Thread Danny Schimke
In standard a table wraps your text. You could try to add a the following
CSS class to the cell (td- element of the table), that should not wrap its
text.

.no-wrap {
  white-space: nowrap;
}

In the following example- HTML the text is not breaking although the table
has a width of 100px. The Table's width will grow up.

table class=non-wrapping-tablewidth=100px border=1
  tr
td class=no-wrap
  to long text, to long text, to long text, to long text
/td
  /tr
/table

If you want to say, that the complete table should not wraps its text you
can do it with CSS, instead of adding the no-wrap CSS class to each td
element.

.non-wrapping-table tr td {
  white-space: nowrap;
}

hope that will help...

-Danny

2009/3/30 Suren nsurendi...@gmail.com


 Hi Danny,

 Thanks for the reply.

 I should have mentioned earlier that, I 've tried that option too.
 that is, I set the text to a label and disable the wordwrap to that
 label and add that label to a FlexTable using setWidget method.

 Result the same..

 Still I am getting either full long text with the increased width, or
 wrapped text with the proper width.

 All I want is some knid of truncated text( to appear like truncated
 text, but actually not, since that cell dont have enough space to
 display that)

 I have a doubt here. Did Flextable has the default settings to adjust
 the column width according to the text's length? And wrap the text if
 the width is set?

 If so, what if I dont want that functionality? I mean how can I
 disable that? apart from the wordwrap method

 Thanks
 Suren



 On Mar 30, 11:55 am, Danny Schimke schimk...@googlemail.com wrote:
  Hi Suren!
 
  I dont know why this is not working, but you can use a Label, set the
 word
  wrap of the label to false and add this label to one of your FlexTable's
  cell. This should work.
 
  -Danny
 
  2009/3/30 Suren nsurendi...@gmail.com
 
 
 
 
 
   Hi All,
 
   I am using FlexTable in a grid format to display text. I have a
   situation like, the width of the particular column needs to be fixed.
   And in that case, I need to show whatever text is fit into that width.
   I dont want to use wordwrap, which inturn affects my layout. Or I dont
   want to display the full lengthy text too.
 
   I 've tried
   [code]
   FlexTable f1 = new FlexTable();
 
  f1.setText(0, 0, This is a very long text);
  f1.setBorderWidth(2);
  f1.getCellFormatter().setWidth(0,0,2px);
  f1.getCellFormatter().setWordWrap(0, 0, false);
   [/code
 
   In the above case, I set the wordwrap to false, but still I am getting
   the wrapped text in the Flextable
 
   Could anyone please suggest any ways to acheive this?
 
   Thanks
   Suren- 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
-~--~~~~--~~--~--~---



Event listening on ListBox in a CaptipnPanel's Legend

2009-03-26 Thread Danny Schimke
Hello!

A CaptionPanel can contains HTML in its legend. I hve to add a ListBox-
Element there. But I have to listen on it (change- events). How do I have to
add the ListBox as a part of the legend- Element to the Caption so that I
still can listen on its events?

Thank you very much!
-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Event listening on ListBox in a CaptipnPanel's Legend

2009-03-26 Thread Danny Schimke
Is it possible to do this?

2009/3/26 Danny Schimke schimk...@googlemail.com

 Hello!

 A CaptionPanel can contains HTML in its legend. I hve to add a ListBox-
 Element there. But I have to listen on it (change- events). How do I have to
 add the ListBox as a part of the legend- Element to the Caption so that I
 still can listen on its events?

 Thank you very much!
 -Danny


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Set CSS for ListBox Items working in Firefox not in Safari

2009-03-24 Thread Danny Schimke
My problem is similar. My CSS for option- tag's of a select- element are
not shown dynamically their new CSS- layout in IE. I'am setting the CSS-
classes like the following:

listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(empty-option);

My CSS looks like:

.empty-option {
  color: #F2A336;
}

This is only a color- change...
But this color is not shown in IE after adding the class. If I hide and show
the listBox again the colors are updated correctly in IE. But this cannot be
a correct workaround for me...

Example:

listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(empty-option);
// after this the color of  css class empty-option is shown correctly in FF,
not IE
listBox.setVisible(false);
listBox.setVisible(true);
// now the color is shown correctly in IE too

This means, that the CSS works in all browsers. It's not a CSS- issue... I
dont know how to fix this.

-Danny

2009/3/24 Shashi Kant kant.shash...@gmail.com


 Oh you are using an image. I dont think IE supports that. ,This reason
 behind this is because of how IE gets the base for the HTML Select
 tag - it's derived from the Win32api - the same reason why dropdown
 lists and select lists have a nasty habit of rendering above
 everything else on the html page.

 BUT, you could still experiment with background-color. That should
 work like in this example:

html xmlns=http://www.w3.org/1999/xhtml;
head
titleUntitled Page/title
style type=text/css media=screen

.optionBold {background-color: Fuchsia; font-weight:
 bold;}

/style
/head
body
form id=form1
div
select id=htmlSelect multiple=multiple size=5
 
optionNon-styled 1/option
optionNon-styled 2/option
option class=optionBoldStyled/option
option style=background-color: Aqua; font-weight:
 bold;Styled
 inline/option
/select

/div
/form
/body
/html





 On Mar 24, 11:01 am, priya joshipriya...@gmail.com wrote:
  Hi Shashi Kant
 
  This is my css code:
 
  .list_box_style{
  background-image: url(../images/pkg_image2.bmp);
  background-position: right;
  background-repeat: no-repeat;
 
  }
 
  Is this correct?
  I don't think this is CSS problem..
  Because its working in FF correctly
  In Safari and IE it's not working..
 
  If you have another solution then please suggest..
  It's really urgent...
 
  On Mar 23, 4:26 pm, Shashi Kant kant.shash...@gmail.com wrote:
 
   This might be a CSS issue
   Paste you list_box_style here.
 
   On Mar 23, 4:03 pm, Danny Schimke schimk...@googlemail.com wrote:
 
Could it be, that the style is set but not shown. We're adding CSS-
classnames to option- elements of a listbox too, but only in FF there
 is a
change visible. Because the listbox for example in IE will not
 refresh its
GUI after adding styles to its items. I have not found a fix for this
 yet...
there should be a way to refresh GWT- components on view.
 
-Danny
 
2009/3/23 priya joshipriya...@gmail.com
 
 Hi all,
 
 I have one ListBox in my GWT application.
 I want to set CSS for some of the items in this ListBox..
 
 I am using following code for this:
 
   DOM.getChild(listBox.getElement(), i + 1).setClassName
 (list_box_style);
 
 This code is working perfect in Firefox but not working in Safari
 browser.
 
 I don't know this is problem of DOM.getChild() method or setting
 style
 for that.
 
 Is Safari supports DOM.getChild() method?
 
 If anyone know another way then please suggest...
 
 Any help is welcome..
 
 Thanks in advance,
 
 Priya
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Set CSS for ListBox Items working in Firefox not in Safari

2009-03-23 Thread Danny Schimke
Could it be, that the style is set but not shown. We're adding CSS-
classnames to option- elements of a listbox too, but only in FF there is a
change visible. Because the listbox for example in IE will not refresh its
GUI after adding styles to its items. I have not found a fix for this yet...
there should be a way to refresh GWT- components on view.

-Danny

2009/3/23 priya joshipriya...@gmail.com


 Hi all,

 I have one ListBox in my GWT application.
 I want to set CSS for some of the items in this ListBox..

 I am using following code for this:

   DOM.getChild(listBox.getElement(), i + 1).setClassName
 (list_box_style);

 This code is working perfect in Firefox but not working in Safari
 browser.

 I don't know this is problem of DOM.getChild() method or setting style
 for that.

 Is Safari supports DOM.getChild() method?

 If anyone know another way then please suggest...

 Any help is welcome..

 Thanks in advance,

 Priya

 


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



ReplacementString support for MultiWordSuggestOracle for 1.6

2009-03-22 Thread Danny Goovaerts

I  want to usereplacementString with  Issue 2695
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: ReplacementString support for MultiWordSuggestOracle for 1.6

2009-03-22 Thread Danny Goovaerts

Sorry, I hit send too fast.

I want to use replacementString with a MultiWordOracleSuggestion. This
is not possible today, also not in RC 1.6.
I currently workaround the issue by implementing a SuggestOracle
embeds a MultiWordSuggestOracle. The implementation of
requestSuggestions delegates to the embedded MultiWordSuggestOracle in
the following way

...

private MultiWordSuggestOracle oracle ;
private HashMapString,Suggestion suggestions ;
private MyCallBack myCallBack ;
...

public void requestSuggestions(Request request, Callback callback) {
//delegate to myCallBack and intercept the responses
myCallBack.setOcb(callback) ;
oracle.requestSuggestions(request, myCallBack) ;
}
...

private class MyCallBack implements Callback {
private Callback  ocb ;

public void setOcb(Callback ocb) {
this.ocb = ocb;
}

public void onSuggestionsReady(Request request, Response 
response) {
// Create a new response
Response myResponse = new Response() ;
LinkedListSuggestion responses = new 
LinkedListSuggestion() ;
   //MultiWordSuggestOracle returns the original
suggestion as replacementString
   // we use this as key to look upthe actual
suggestion that we want to provide
for(Suggestion suggestion : response.getSuggestions()) {

responses.add(suggestions.get(suggestion.getReplacementString
())) ;
}
myResponse.setSuggestions(responses) ;
ocb.onSuggestionsReady(request, myResponse) ;
}

}


This works, but it would be much easier if we could simply provide the
replacementStrings to the MultiWordSuggestOracle.
Issue 2695 actually submits this as an enhancement request. Its status
is accepted. Any chance that this can make it into 1.6?

Thanks (not just for answers to this post but for the tremendous tool
that GWT is)

Danny
On 22 mrt, 20:56, Danny Goovaerts danny.goovae...@gmail.com wrote:
 I  want to usereplacementString with  Issue 2695
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 sort a list with objects on client side?

2009-03-19 Thread Danny Schimke
Hello!

I have a list with objects I've got from backend-side. Every object has a
getSort() method, which returns an integer value. I've never worked with
Comparator before, but I tried like the following:

public ListObjecttype getObjectListe() {
ListObjecttype sortedList = model.getObjects();
Collections.sort(sortedList, new ComparatorObjecttype() {
public int compare(Objecttype o1, Objecttype o2) {
// compare the o1.getSort() value with o2.getSort() value here
}
});
return sortedList;
}

And this is the error I got:

[ERROR] Uncaught exception escaped
java.lang.UnsupportedOperationException: null
at
com.incowia.tkbase.unternehmenspflege.core.client.BaseReferenceList.toArray(BaseReferenceList.java:166)
at java.util.Collections.sort(Collections.java:158)

What have I to do, to sort my list?

-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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 mix content with style?

2009-03-19 Thread Danny Schimke
You could do something like this:

Style style = tmpElement.getElement().getStyle();
style.setProperty(border, 1py solid #00;);

-Danny

2009/3/19 Coonay fla...@gmail.com


 like old html,gwt mix content with style again?
 in gwt ,most dynamic UI element have to set style with addStyleName
 method?
 such as the following,
 public class FirstGWT implements EntryPoint {
private FlexTable stocksFlexTable = new FlexTable();
 }

 if i define the style in the css
 . stocksFlexTable {
 }

 can gwt apply  this to stocksFlexTable  automatically without manually
 calling addStyleName?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: ResourceBundle for client??

2009-03-18 Thread Danny Schimke
Is the Constants- Interface of GWT the thing, what you are searching for?
With this you can read the values from a properties- file

-Danny

2009/3/17 joe young keven.c...@gmail.com


 Can client code able to use  java.util.ResourceBundle?

 I have some information in a propertie file and I don't want to get it
 via RPC, is there an easy way to do it?

 Right now when I use java.util.ResourceBundle in client side code, it
 gives me this error~

 [ERROR] Hint: Check the inheritance chain from your module; it may not
 be inheriting a required module or a module may not be adding its
 source path entries properly

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



DialogBox's height not based on its content

2009-03-17 Thread Danny Schimke
I have a dialog box with a invisible widget at the dialogs bottom. There is
a button to show this (invisible) widget. The Widget is shown and the dialog
box's size grows up (correctly). But when I hide this widget the height of
the dialog box is not reduced back to the initial state. It stays large and
that seems not pretty. How can I fix this?

-Danny

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

2009-03-10 Thread Danny Schimke

Hallo Eva!

Du hast zu deinem GWT- Projekt ein *.launch- File, das du schön über
Eclipse konfigurieren kannst. Bei den program arguments kannst du
mit dem Parameter style angeben, wie der Quellcode in Javascript
compiliert wird (Detailliert, oder unlesbar, aber kompakt):

-style PRETTY

Es gibt noch viele andere Styles (Detailled, ua.), aber schau dafür am
besten in den Docs um ihren genauen Namen zu wissen.
Startest du deine Anwendung über Eclipse wird deine Anwendung im
Target- Verzeichnis deines Projektes abgelegt, dort liegen dann deine
*js / html- Files.

Ich hoffe ich konnte dir damit helfen...

Grüße
-Danny

On Mar 10, 7:45 am, Eva loesch@googlemail.com wrote:
 Ich würde gerne die von GWT automatisch gererierte Java Script Datei
 einsehen. Wo finde ich diese? Ich habe auch gelesen, dass die Java
 Script Datei komprimiert ist, so dass man den Code nicht erkennen
 kann. Gibt es eine Möglichkeit mit Eclipse diese Komprimierung zu
 verhindern?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Restrain the DialogBox to move out of browser window

2009-03-09 Thread Danny Schimke
After weekend I tried again and it worked very well... I don't know the
reason for the not working code last week, but here is my code, that worked
very well:

@Override
public void onMouseMove(Widget sender, int x, int y) {
  super.onMouseMove(sender, x, y);
  if (this.getPopupLeft() + this.getOffsetWidth()  Window.getClientWidth())
{
this.setPopupPosition(Window.getClientWidth() - this.getOffsetWidth(),
this.getPopupTop());
  }
  if (this.getPopupTop() + this.getOffsetHeight() 
Window.getClientHeight()) {
this.setPopupPosition(this.getPopupLeft(), Window.getClientHeight() -
this.getOffsetHeight());
  }
}

The dialog window does not move out of the visible window area!
Thank you very much Sumit! The idea of overriding the onMouse- Events is THE
idea!

-Danny

2009/3/5 Sumit Chandel sumitchan...@google.com

 Hi Danny,
 That shouldn't be the case. Which browser were you testing on when this
 occurred?

 I ran the code snippet below and tested it out in hosted IE6, web mode
 IE6/7/8, FF3 and Chrome, and in all cases the onMouseUp() method was called
 and the dialog box was repositioned. Give it a try and let me know how it
 looks for you.

 public void onModuleLoad() {
   final DialogBox dialogBox = new DialogBox() {
 public void onMouseUp(Widget sender, int x, int y) {
   this.setPopupPosition(0, 0);
   super.onMouseUp(sender, x, y);
 }
   };
   dialogBox.setHTML(bBonjour la police!/b);
   RootPanel.get().add(dialogBox);
   dialogBox.center();
 }

 Hope that helps,
 -Sumit Chandel

 On Thu, Mar 5, 2009 at 12:20 AM, Danny Schimke 
 schimk...@googlemail.comwrote:

 It does not work. The onMouseUp is never called...

 2009/2/27 Sumit Chandel sumitchan...@google.com

 Hi Danny,
 Here's one possible solution - you could override the
 DialogBox.onMouseUp() method to re-position the dialog box depending on
 where it was when the user lets go of it.

  For example:

 final DialogBox dialogBox = new DialogBox() {
   public void onMouseUp(Widget sender, int x, int y) {
 if(exceedsBounds(x,y) {
   this.setPopupPosition(xpos, ypos);  //recenter to boundary edge or
 center page
 }
 super.onMouseUp(sender, x, y);
   }
 };

 Hope that helps,
 -Sumit Chandel

 On Mon, Feb 23, 2009 at 6:04 AM, Danny Schimke schimk...@googlemail.com
  wrote:

 No idea?

 2009/1/28 Danny Schimke schimk...@googlemail.com

  Hello!

 Is it possible to restrain the DialogBox to move out on right and
 bottom side of the browsers windows? When I move the box over it's header 
 it
 should stay completely in the visible browser window area, because I
 disabled the scroll bars and the user should not be able to move the
 DialogBox in a not viewed area.

 And second: in IE6 the DialogBox is only dragable by the text in it's
 header. Is there a clean way to allow IE6 users to dragdrop the box like 
 in
 FF or IE7 over the complete header?

 Thank you very much!
  - Danny












 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Restrain the DialogBox to move out of browser window

2009-03-05 Thread Danny Schimke
It does not work. The onMouseUp is never called...

2009/2/27 Sumit Chandel sumitchan...@google.com

 Hi Danny,
 Here's one possible solution - you could override the DialogBox.onMouseUp()
 method to re-position the dialog box depending on where it was when the user
 lets go of it.

 For example:

 final DialogBox dialogBox = new DialogBox() {
   public void onMouseUp(Widget sender, int x, int y) {
 if(exceedsBounds(x,y) {
   this.setPopupPosition(xpos, ypos);  //recenter to boundary edge or
 center page
 }
 super.onMouseUp(sender, x, y);
   }
 };

 Hope that helps,
 -Sumit Chandel

 On Mon, Feb 23, 2009 at 6:04 AM, Danny Schimke 
 schimk...@googlemail.comwrote:

 No idea?

 2009/1/28 Danny Schimke schimk...@googlemail.com

  Hello!

 Is it possible to restrain the DialogBox to move out on right and bottom
 side of the browsers windows? When I move the box over it's header it should
 stay completely in the visible browser window area, because I disabled the
 scroll bars and the user should not be able to move the DialogBox in a not
 viewed area.

 And second: in IE6 the DialogBox is only dragable by the text in it's
 header. Is there a clean way to allow IE6 users to dragdrop the box like in
 FF or IE7 over the complete header?

 Thank you very much!
  - Danny






 


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



Window.confirm in timer.run()

2009-03-04 Thread Danny Schimke
Hello!

I am using a timer to ask the user after xy minutes to save his changes to
database. In the run() method of timer I ask the user wheather he want to
save the changes. If the user clicks OK I'll save othwerwise I'll do
nothing. I shedule the timer repeatly after xy minutes. When does the timer
reruns? After handling the run() method? I recognized that the timer reruns
while the confirm message is shown. Is this an issue or correct? Should the
timer rerun while its run() method is not finished? I occurs in Firefox, in
IE it works like I am thinking how it should work.

Example for Error:

- Rerunning timer every 1 minute
- Confirmation is shown after 1 minute, user does *not* click  *OK* or *
Cancel*
- After two or more minutes I'll click OK or Cancel and the confirm window
closes. But the confirm window of the second timer run is shown.
- The window is maximal shown two times (e.g. when I am waiting three or
more minutes)

It should be not very difficult to use a workaround, but I want to
understand the correct working of the GWT timer.

Thank you!
-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Question about mGoogle Maps URL and its parameter gwt

2009-03-04 Thread Danny Schimke
Thank you very much! Good to know!

-Danny

2009/2/27 Eric Ayers zun...@google.com


 Removing that parameter will not affect the functioning of the Maps
 API.  It is currently used for accounting purposes only.

 2009/2/27 Danny Schimke schimk...@googlemail.com:
  Hello!
 
  Does anyone know what is the parameter gwt with the value1 for? The
 URL looks like the following:
 
  http://maps.google.com/maps?gwt=1amp;file=apiamp;v=2amp;key=
 
  I can't make differences between the functionality of URL with parameters
 and without parameters. Is the this parameter needed and why? Are there
 other possible values instead of 1 and what does they mean?
 
  Thank you!
  -Danny
 
  
 



 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Window.confirm in timer.run()

2009-03-04 Thread Danny Schimke
Thanks for that detailled answer ;)

2009/3/4 Vitali Lovich vlov...@gmail.com

 You're probably using scheduleRepeat.  Browsers are strictly single
 threaded (some multi-threading Javascript support coming in FF3.1 that I
 know of).  Anyways your problem is this:

 run()
 showWindow()
 browser keeps generating timer event probably because that comes from the
 OS  there's no locking in place
 user clicks on button
 next event is shown

 Instead do this:

 timer.schedule(1000);
 run() {
showWindow()
timer.schedule(1000);

 }

 On Wed, Mar 4, 2009 at 9:34 AM, Danny Schimke schimk...@googlemail.comwrote:

 Hello!

 I am using a timer to ask the user after xy minutes to save his changes to
 database. In the run() method of timer I ask the user wheather he want to
 save the changes. If the user clicks OK I'll save othwerwise I'll do
 nothing. I shedule the timer repeatly after xy minutes. When does the timer
 reruns? After handling the run() method? I recognized that the timer reruns
 while the confirm message is shown. Is this an issue or correct? Should the
 timer rerun while its run() method is not finished? I occurs in Firefox, in
 IE it works like I am thinking how it should work.

 Example for Error:

 - Rerunning timer every 1 minute
 - Confirmation is shown after 1 minute, user does *not* click  *OK* or *
 Cancel*
 - After two or more minutes I'll click OK or Cancel and the confirm window
 closes. But the confirm window of the second timer run is shown.
 - The window is maximal shown two times (e.g. when I am waiting three or
 more minutes)

 It should be not very difficult to use a workaround, but I want to
 understand the correct working of the GWT timer.

 Thank you!
 -Danny




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Window.confirm in timer.run()

2009-03-04 Thread Danny Schimke
Yeah! I canceled the timer and restarted it in in the run() method... It is
about the way you've advised me.

Thanks again!
-Danny

2009/3/4 Vitali Lovich vlov...@gmail.com

 Did that solve your problem?


 On Wed, Mar 4, 2009 at 12:35 PM, Danny Schimke 
 schimk...@googlemail.comwrote:

 Thanks for that detailled answer ;)

 2009/3/4 Vitali Lovich vlov...@gmail.com

 You're probably using scheduleRepeat.  Browsers are strictly single
 threaded (some multi-threading Javascript support coming in FF3.1 that I
 know of).  Anyways your problem is this:

 run()
 showWindow()
 browser keeps generating timer event probably because that comes from the
 OS  there's no locking in place
 user clicks on button
 next event is shown

 Instead do this:

 timer.schedule(1000);
 run() {
showWindow()
timer.schedule(1000);

 }

 On Wed, Mar 4, 2009 at 9:34 AM, Danny Schimke 
 schimk...@googlemail.comwrote:

 Hello!

 I am using a timer to ask the user after xy minutes to save his changes
 to database. In the run() method of timer I ask the user wheather he want 
 to
 save the changes. If the user clicks OK I'll save othwerwise I'll do
 nothing. I shedule the timer repeatly after xy minutes. When does the timer
 reruns? After handling the run() method? I recognized that the timer reruns
 while the confirm message is shown. Is this an issue or correct? Should the
 timer rerun while its run() method is not finished? I occurs in Firefox, in
 IE it works like I am thinking how it should work.

 Example for Error:

 - Rerunning timer every 1 minute
 - Confirmation is shown after 1 minute, user does *not* click  *OK* or
 *Cancel*
 - After two or more minutes I'll click OK or Cancel and the confirm
 window closes. But the confirm window of the second timer run is shown.
 - The window is maximal shown two times (e.g. when I am waiting three or
 more minutes)

 It should be not very difficult to use a workaround, but I want to
 understand the correct working of the GWT timer.

 Thank you!
 -Danny










 


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



Re: GWT Session

2009-02-27 Thread Danny Schimke
Hey Vagner Araujo!

Thank you for your post! I've searched a long time for something like
handling sessions in GWT!!! :D
I have a question too. Waht's when the session invalidates (e.g. timeout)?
Should there a heartbeat which checks the session validity?

Thank you!
-Danny

2009/2/27 Mahavir Jain vir.j...@gmail.com

 Thanks Vagner for sharing this.

 You can also refer the attached LoginManager which contains user
 Management.

 I, too downloaded from somewhere. I don't remember but source code is
 attached.

 Thanks.
 Mahavir


 On Fri, Feb 27, 2009 at 12:32 PM, Vagner Araujo araujo...@gmail.comwrote:


 Hello Friends,

 I was making a simple code of Session for my students.
 Well, I decided post that code here,
 because maybe it can serve as a basis for someone.

 //Main Class

 package com.javaneses.spring.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.Cookies;
 import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.rpc.ServiceDefTarget;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.ClickListener;
 import com.google.gwt.user.client.ui.DialogBox;
 import com.google.gwt.user.client.ui.FlexTable;
 import com.google.gwt.user.client.ui.FlowPanel;
 import com.google.gwt.user.client.ui.Label;
 import com.google.gwt.user.client.ui.PasswordTextBox;
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.TextBox;
 import com.google.gwt.user.client.ui.Widget;
 import com.javaneses.spring.client.rpc.service.LoginService;
 import com.javaneses.spring.client.rpc.service.LoginServiceAsync;
 import com.javaneses.spring.client.rpc.service.SessionService;
 import com.javaneses.spring.client.rpc.service.SessionServiceAsync;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class Main implements EntryPoint, ClickListener{

/**
 * This is the entry point method.
 */

private final SessionId sessionId = new SessionId();

private final DialogBox dialogBox = new DialogBox();
private final Label userLabel = new Label(User);
private final Label passwdLabel = new Label(Password);
private final TextBox userField = new TextBox();
private final PasswordTextBox passwdField = new PasswordTextBox();
private final Button login = new Button(Login);

private final Label welcome = new Label(Welcome);

private final User user = new User();

{
FlexTable flexTable = new FlexTable();

flexTable.setWidget(0, 0, userLabel);
flexTable.setWidget(0, 1, userField);
flexTable.setWidget(1, 0, passwdLabel);
flexTable.setWidget(1, 1, passwdField);

FlowPanel panel = new FlowPanel();
panel.setWidth(100);
panel.add(login);

flexTable.setWidget(2, 1, panel);

dialogBox.setSize(350, 150);
dialogBox.add(flexTable);

login.addClickListener(this);

sessionId.setSessionId(Cookies.getCookie(session));
}//end init block

public void onModuleLoad() {

validateSession();

}//end onModuleLoad

private void validateSession(){

SessionServiceAsync myServiceAsync =
 (SessionServiceAsync)GWT.create
 (SessionService.class);
ServiceDefTarget serviceDefTarget = (ServiceDefTarget)
 myServiceAsync;
serviceDefTarget.setServiceEntryPoint(session);

AsyncCallbackSessionId asyncCallback = new
 AsyncCallbackSessionId
 (){
public void onFailure(Throwable caught) {
System.out.println(caught);
}//end onFailure
public void onSuccess(SessionId result) {
if(result == null){
RootPanel.get().clear();
RootPanel.get().add(dialogBox);
System.out.println(Teste1);
}else
 if(!sessionId.getSessionId().equals(result.getSessionId())){
RootPanel.get().clear();
RootPanel.get().add(dialogBox);
System.out.println(Teste2);
}else
 if(sessionId.getSessionId().equals(result.getSessionId())){
RootPanel.get().add(welcome);
}
}//end onSucess
};//end AsyncCallbackString asyncCallback = new
 AsyncCallbackString()
myServiceAsync.session(sessionId, asyncCallback);
}//end

Question about mGoogle Maps URL and its parameter gwt

2009-02-27 Thread Danny Schimke
Hello!

Does anyone know what is the parameter gwt with the value1 for? The URL
looks like the following:

http://maps.google.com/maps?*gwt=1*amp;file=apiamp;v=2amp;key=

I can't make differences between the functionality of URL with parameters
and without parameters. Is the this parameter needed and why? Are there
other possible values instead of 1 and what does they mean?

Thank you!
-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Apply CSS in editor area of RichTextArea

2009-02-25 Thread Danny Schimke
I've seen many examples where JSNI is used, like the following:

private native void myJsniMethod(Element oElement)/*-{
  var oDoc = oElement.contentWindow;
  // var oDoc = oElement.contentWindow || oElement.contentDocument;
  if (oDoc.document != null) {
oDoc = oDoc.document;
// more actions here...
  }
}-*/;

I tried to use JSNI method too. But an error occurs when trying to call *
oElement.contentWindow* because its value is *null* (I've seen in Firefox,
In IE you cant see the reason for throwing the error). Why does it should
work in many examples you can find in the web? Is there anything special to
watch?

-Danny


2009/2/24 Danny Schimke schimk...@googlemail.com

 Hi Omer!

 1. Yes I am using Windows and yes: Hosted Mode uses the installed IE.
 2. The error occurs in compiled mode (Firefox, IE) too.

 I show a preview for multilingual text (english, german, french, etc.).
 It's font-family is shown in Arial,Helvetica, but the RichTextArea is
 using the browsers font (If I am not mistaken!?). It does not look nice,
 when the editors text has a different font, than its preview...

 I hope I'll crack this in future ;)

 Thank you Omer!!!
 -Danny

 2009/2/24 A Friend Of Yours omer.akh...@gmail.com


  Any Idea, why the error occurs?

 No; not really!

 If you could provide more details:
 1. Are you having this error in Hosted Mode or Web Mode?
 Because some javascript trick don't work in Hosted Mode so things like
 this happen.



 2. Hosted Mode: Are you using Windows?
 Hosted Mode browser in windows uses Internet Explorer components to
 render its view (not sure if it is true though). While I used this in
 linux where Hosted Mode uses mozilla components.

 3. Web Mode: Goes without saying; are you using Internet Explorer for
 Web Mode?
 As I had mentioned, I have only tested this solution on Firefox in
 Linux.

 Hope this helps

 Omer Akhter

 Danny Schimke wrote:
  I need to set the CSS for RichTextArea too and tried out your idea. I've
 got
  the following Error in the first line where I create the Document object
  using my RichTextArea:
 
  com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error.
   number: -2147467259
   description: Unknown Error.
 
  Any Idea, why the error occurs?
 
  Thanks!
  -Danny
 
  2009/2/17 A Friend Of Yours omer.akh...@gmail.com
 
  
   Please try to maintain a single thread:
  
  
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef
  
   On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote:
Hi All,
   
Could I please have any idea on this( in mail below ).
   
Regards
Manish
   
  - Original Message -
  From: Manish Kumar
  To: Google-Web-Toolkit@googlegroups.com
  Sent: Tuesday, February 17, 2009 10:46 AM
  Subject: Apply CSS in editor area of RichTextArea
   
  Hi Everybody,
   
  While working on adding RichTextArea with my project.I would like
 to
   apply css on editor area of Rich Text Area control so that I can set
 font
   behaviours ( font-family, font-weight,font-size etc ) being displayed
 in the
   rich text area editing area a bit changeable.
   
  can anybody help me out to get rid of this issue.
   
  Thanks
  Manish
   
  
 



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



onLostFocus and onChanged not fired if browser-window is closing

2009-02-24 Thread Danny Schimke
Hi!

I have a textbox which should change some data by onChange. If I am closing
the browser window over it's close button (x) the onChange and onLostFocus
is not fired. Is it possible to solve this problem? I can not use a
KeyListener, because i have to change data in one way (I need only one fired
event instead of multiple).

-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Apply CSS in editor area of RichTextArea

2009-02-24 Thread Danny Schimke
I need to set the CSS for RichTextArea too and tried out your idea. I've got
the following Error in the first line where I create the Document object
using my RichTextArea:

com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error.
 number: -2147467259
 description: Unknown Error.

Any Idea, why the error occurs?

Thanks!
-Danny

2009/2/17 A Friend Of Yours omer.akh...@gmail.com


 Please try to maintain a single thread:

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef

 On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote:
  Hi All,
 
  Could I please have any idea on this( in mail below ).
 
  Regards
  Manish
 
- Original Message -
From: Manish Kumar
To: Google-Web-Toolkit@googlegroups.com
Sent: Tuesday, February 17, 2009 10:46 AM
Subject: Apply CSS in editor area of RichTextArea
 
Hi Everybody,
 
While working on adding RichTextArea with my project.I would like to
 apply css on editor area of Rich Text Area control so that I can set font
 behaviours ( font-family, font-weight,font-size etc ) being displayed in the
 rich text area editing area a bit changeable.
 
can anybody help me out to get rid of this issue.
 
Thanks
Manish
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Apply CSS in editor area of RichTextArea

2009-02-24 Thread Danny Schimke
Hi Omer!

1. Yes I am using Windows and yes: Hosted Mode uses the installed IE.
2. The error occurs in compiled mode (Firefox, IE) too.

I show a preview for multilingual text (english, german, french, etc.). It's
font-family is shown in Arial,Helvetica, but the RichTextArea is using the
browsers font (If I am not mistaken!?). It does not look nice, when the
editors text has a different font, than its preview...

I hope I'll crack this in future ;)

Thank you Omer!!!
-Danny

2009/2/24 A Friend Of Yours omer.akh...@gmail.com


  Any Idea, why the error occurs?

 No; not really!

 If you could provide more details:
 1. Are you having this error in Hosted Mode or Web Mode?
 Because some javascript trick don't work in Hosted Mode so things like
 this happen.



 2. Hosted Mode: Are you using Windows?
 Hosted Mode browser in windows uses Internet Explorer components to
 render its view (not sure if it is true though). While I used this in
 linux where Hosted Mode uses mozilla components.

 3. Web Mode: Goes without saying; are you using Internet Explorer for
 Web Mode?
 As I had mentioned, I have only tested this solution on Firefox in
 Linux.

 Hope this helps

 Omer Akhter

 Danny Schimke wrote:
  I need to set the CSS for RichTextArea too and tried out your idea. I've
 got
  the following Error in the first line where I create the Document object
  using my RichTextArea:
 
  com.google.gwt.core.client.JavaScriptException: (Error): Unknown Error.
   number: -2147467259
   description: Unknown Error.
 
  Any Idea, why the error occurs?
 
  Thanks!
  -Danny
 
  2009/2/17 A Friend Of Yours omer.akh...@gmail.com
 
  
   Please try to maintain a single thread:
  
  
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4e1d0c2a8ba725ef
  
   On Feb 17, 8:10 pm, Manish Kumar man...@oakdeneindia.com wrote:
Hi All,
   
Could I please have any idea on this( in mail below ).
   
Regards
Manish
   
  - Original Message -
  From: Manish Kumar
  To: Google-Web-Toolkit@googlegroups.com
  Sent: Tuesday, February 17, 2009 10:46 AM
  Subject: Apply CSS in editor area of RichTextArea
   
  Hi Everybody,
   
  While working on adding RichTextArea with my project.I would like
 to
   apply css on editor area of Rich Text Area control so that I can set
 font
   behaviours ( font-family, font-weight,font-size etc ) being displayed
 in the
   rich text area editing area a bit changeable.
   
  can anybody help me out to get rid of this issue.
   
  Thanks
  Manish
   
  
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Restrain the DialogBox to move out of browser window

2009-02-23 Thread Danny Schimke
No idea?

2009/1/28 Danny Schimke schimk...@googlemail.com

 Hello!

 Is it possible to restrain the DialogBox to move out on right and bottom
 side of the browsers windows? When I move the box over it's header it should
 stay completely in the visible browser window area, because I disabled the
 scroll bars and the user should not be able to move the DialogBox in a not
 viewed area.

 And second: in IE6 the DialogBox is only dragable by the text in it's
 header. Is there a clean way to allow IE6 users to dragdrop the box like in
 FF or IE7 over the complete header?

 Thank you very much!
 - Danny


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Changing color of text on fly.

2009-02-23 Thread Danny Schimke
Hi!

If I understood correctly you want to change the color of option- Tags of
a select- input (ListBox)!?

you can add a CSS- class:

listBox.getElement().getElementsByTagName(option).getItem(index).setClassName(your
CSS- classname)

But in IE I habe a problem too... the color only changes, if the ListBox was
drawing again on the screen after adding the class.

-Danny

2009/2/20 Mani many...@gmail.com


 Hi,

 I have a list box which will populate values from database. Based on
 certain conditions, I need to display each value in appropriate color.
 How to change color of text? Here is piece of code that I have.

 userNameBox = new ListBox(false);
 userNameBox.ensureDebugId(cwListBox-multiBox);
 userNameBox.setTitle(UNAME_BOX);
 userNameBox.setWidth(11em);
 userNameBox.setVisibleItemCount(10);
 userNameBox.setStyleName(.gwt-ListBox1);

 userNameBox.addItem(-- values from database--);

 Thanks
 Mani

 


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



Re: Google Map Info Window

2009-02-23 Thread Danny Schimke
Hello Arend!

You could use a normal button that is styled like a hyperlink using CSS.
Search the group for disable
Hyperlinkhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/027cf4dd1a370cc3/872529a92f569666?show_docid=872529a92f569666pli=1
and you should find the right thing!

Hope it was helpful for you!

-Danny

2009/2/20 Arend van der Veen arend.vanderv...@gmail.com


 Hi,

 I am using the gwt google map api.  Previously, I had a hypertext link
 on a InfoWindow in Google Maps.  This link loaded a new page.  I am
 now trying to implement the same functionality in GWT.  I can still
 add a hypertext link in the InfoWindowContent but I can not figure out
 how to have it throw an event in my application.

 Is it possible to add a hypertext link (or button) on a InfoWindow
 that triggers an event in GWT?


 Thanks,
 Arend
 


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



Searching another HTML editor

2009-02-09 Thread Danny Schimke
Hello!

Issue 
3103http://code.google.com/p/google-web-toolkit/issues/detail?can=2q=3103colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summaryid=3103is
the reason why I am searching another HTML editor than GWT's
RichTextArea. I tried gwt-html-editor and it worked, but it was not what I
am searched for. The possibilities of using the Toolbar and the way to edit
it were not sufficient for me. Are there some other editors which can used
by GWT? It should be able to bold, italic, underline text and set the
font-size...

Thank you!
-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Script error in IE 7 in web mode

2009-02-06 Thread Danny Goovaerts

Arend,
Thanks for the reply. I've been able to pinpoint the place where the
problem occurs and it is indeed in a class where
I parse the XML reply coming back from the server. It was working fine
previously in all browsers. The difference is that the XML is larger
now. Maybe Internet Explorer has a limit on the size  XML documents
that it can handle. I will investigate further and post my findings.

Danny

On 5 feb, 16:45, Arend van der Veen arend.vanderv...@gmail.com
wrote:
 Hi Danny,

 I had a similar problem when I was parsing an XML document.  In my case, I
 was a little careless about trapping errors and casting classes.  As it
 turned out Safari and Firefox ignored the errors while IE generated an
 error.  I was able to identify the offending lines of code and rewrote them
 and made sure that I caught all the errors.

 Hope this helps,
 Arend

 On Thu, Feb 5, 2009 at 4:57 AM, Danny Goovaerts
 danny.goovae...@gmail.comwrote:





  I have a GWT application that runs OK in hosted mode. When I compile
  it, it gives a script error on Internet Explorer 7. The compile
  version runs correctly in Firfox, Chrome and Safari.
  I've turned on script debugging in IE7 and it gives me the following
  message (translated from Dutch)
  --
  Line : 2
  Character : 23530
  Error : Exception activated but not handled
  Code: 0
  -

  Can anyone point me to some documentation how I can further
  investigate what's wrong. The application is quite big, so it's not so
  easy to isolate the piece of code where it goes wrong.

  Thanks,

  Danny- Tekst uit oorspronkelijk bericht niet weergeven -

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



Call event after an other

2009-02-05 Thread Danny Schimke
Hi!

If I have following problem: I enter some text in a textbox. Now I click on
a button to save data to a database. With leaving the edit ists onChange-
event is called, but the onClick- event of the button is called too at same
the time. Saving is faster than onChange. I tried to handle the onClick
after other events have done their work by using a DeferedCommand. But is
doesn't work. Saving is allways faster than the onChange.

Is there a way to control the handling-order of events?

Thank you!
-Danny

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



Script error in IE 7 in web mode

2009-02-05 Thread Danny Goovaerts

I have a GWT application that runs OK in hosted mode. When I compile
it, it gives a script error on Internet Explorer 7. The compile
version runs correctly in Firfox, Chrome and Safari.
I've turned on script debugging in IE7 and it gives me the following
message (translated from Dutch)
--
Line : 2
Character : 23530
Error : Exception activated but not handled
Code: 0
-

Can anyone point me to some documentation how I can further
investigate what's wrong. The application is quite big, so it's not so
easy to isolate the piece of code where it goes wrong.

Thanks,

Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Call event after an other

2009-02-05 Thread Danny Schimke
It does not work...I am doing anything wrong.

Can you *explain how to use this*? I try to describe again: I habe 2 events,
both in a own class. The onClick from save button in class A and the
onChange from the textbox in class B. If the onChange is fired the save is
fired too (look at my first comment this thread). But I need the possibility
to wait starting onClick until onChange is running.

-Danny

2009/2/5 Damien Picard picard.dam...@gmail.com

 Hi !

 You can control event propagation with low-level functions (onBrowserEvent,
 Event) ; in your case, use the Event.cancelBubble function :


 http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble(boolean)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Event.html#cancelBubble%28boolean%29

 2009/2/5 Danny Schimke schimk...@googlemail.com

 Hi!

 If I have following problem: I enter some text in a textbox. Now I click
 on a button to save data to a database. With leaving the edit ists onChange-
 event is called, but the onClick- event of the button is called too at same
 the time. Saving is faster than onChange. I tried to handle the onClick
 after other events have done their work by using a DeferedCommand. But is
 doesn't work. Saving is allways faster than the onChange.

 Is there a way to control the handling-order of events?

 Thank you!
 -Danny




 


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



Re: Hosted Mode not refreshing

2009-02-04 Thread Danny Schimke
If you are using Eclipse do a clean on your Project(s) und refresh them.
Maybe it will help.

-Danny

2009/2/4 gemmasilvers gemmasilv...@googlemail.com


 Yup, I cleared the IE cache and still no joy.

 Any other suggestions, please?

 Thanks!
 Gemma

 On Feb 3, 6:44 pm, Lupo tcantal...@gmail.com wrote:
  Hi -
  I am new to GWT and had a similar issue as I was going through one of
  the tutorials.  For me, anyway, I was clearing the wrong browser
  cache.  I had FF and IE on the machine and was clearing the FF cache
  but Hosted Mode uses IE.  Once I cleared IE's cache, updated code!
 
  I hope this is helpful.
 http://groups.google.com/group/Google-Web-Toolkit/msg/700aeb86f40482de
 
  On Feb 3, 7:28 am, gemmasilvers gemmasilv...@googlemail.com wrote:
 
   Hello all,
 
   I've inherited a GWT app from a colleague and am currently attempting
   to develop it further - but unfortunately I'm getting stuck with
   Hosted Mode.  No matter how many times I clear the browser cache,
   click refresh on the hosted mode browser, or shout, the parts I've
   updated don't update in Hosted Mode.
 
   I've also tried removing the tomcat directory, removing the gwt-tmp
   directory Has anyone got any other ideas before I go mad?
 
   Thanks!
   Gemma
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Bad link for GWT Documentation

2009-02-04 Thread Danny Schimke
I called the GWT docs and everything worked fine...

2009/2/4 Ricky eric.ca...@gmail.com


 Did you notice that the link to GWT docs is broken for weeks !

 It does just redirect to the documentation of... Google Code
 documentation reader



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Check whether browser is supported

2009-02-03 Thread Danny Schimke
I forgot: I can use the noscript- tag in the html- sourcefile... That
should work... I reply again to tell if everything worked well

-Danny

2009/2/3 Danny Schimke schimk...@googlemail.com

 This was helpful. But is there a way to keep out browsers which does 
 *not*support javascript like the W3M browser? The gwt:onLoadErrorFn- content
 have to be a javascript-function(?), but can I load a simple HTML page
 instead without using javascript?

 2009/2/3 Joe Cole profilercorporat...@gmail.com


 See this thread. We use this and it works well.


 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/41ce4b44e0d4e262/abd93affd092bb47?lnk=gstq=profilercorporation#abd93affd092bb47

 On Feb 3, 11:32 pm, Danny Schimke schimk...@googlemail.com wrote:
  Is there an easy way to check whether GWT supports a browser, for
 example in
  EntryPoint to tell the user, that the Browser is not supported? We've
 got a
  empty site if we browse our application in a not supported Browser.
 
  Thank you!
 
  -Danny
 



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



Check whether browser is supported

2009-02-03 Thread Danny Schimke
Is there an easy way to check whether GWT supports a browser, for example in
EntryPoint to tell the user, that the Browser is not supported? We've got a
empty site if we browse our application in a not supported Browser.

Thank you!

-Danny

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Check whether browser is supported

2009-02-03 Thread Danny Schimke
This was helpful. But is there a way to keep out browsers which does
*not*support javascript like the W3M browser? The gwt:onLoadErrorFn-
content
have to be a javascript-function(?), but can I load a simple HTML page
instead without using javascript?

2009/2/3 Joe Cole profilercorporat...@gmail.com


 See this thread. We use this and it works well.


 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/41ce4b44e0d4e262/abd93affd092bb47?lnk=gstq=profilercorporation#abd93affd092bb47

 On Feb 3, 11:32 pm, Danny Schimke schimk...@googlemail.com wrote:
  Is there an easy way to check whether GWT supports a browser, for example
 in
  EntryPoint to tell the user, that the Browser is not supported? We've got
 a
  empty site if we browse our application in a not supported Browser.
 
  Thank you!
 
  -Danny
 


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

2009-02-02 Thread Danny Schimke
Hi there!

Use CSS, like this:

.button-link {
  cursor: pointer;
  cursor: hand;
  border: none;
  /* Disable the button-style */
  background-color: transparent;
  padding: 0px;
  color: #4784C3;
  text-decoration: underline;
}

this lets your button look like a hyperlink!

- Danny

2009/2/2 chandraj...@gmail.com chandraj...@gmail.com


 Hi All,

 How can I achieve a Button widget as hyperlink Look n feel.
 I don't want to use an anchor Link as it opens a browser
 functionality.
 Rather I need just the button functionality.

 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: Button as hyperlink Look

2009-02-02 Thread Danny Schimke
Additional: search in GWT group for disable hyperlink their I posted this
weeks ago. May there are more infos for you!

- Danny

2009/2/2 Danny Schimke schimk...@googlemail.com

 Hi there!

 Use CSS, like this:

 .button-link {
   cursor: pointer;
   cursor: hand;
   border: none;
   /* Disable the button-style */
   background-color: transparent;
   padding: 0px;
   color: #4784C3;
   text-decoration: underline;
 }

 this lets your button look like a hyperlink!

 - Danny

 2009/2/2 chandraj...@gmail.com chandraj...@gmail.com


 Hi All,

 How can I achieve a Button widget as hyperlink Look n feel.
 I don't want to use an anchor Link as it opens a browser
 functionality.
 Rather I need just the button functionality.

 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-maps-api: Maps API has not been loaded

2009-02-02 Thread Danny Schimke
First *thanks* to *Eric Ayers* for your endeavours to assist me!

We found the reason which causes, that control are not visible in IE6 and
there where map loading problems. In IE6 internet options using HTTP 1.1
over Proxyconnections is deactivatd. E.g. IE7 this option is set by default
(This is an indication that the error only occurs in IE6). Since we have set
the setting to use HTTP 1.1 over proxyconnections everything works fine. Now
we can load and interact the map without problems in Internet Explorer 6.

-Danny

2009/1/26 Eric Ayers zun...@google.com


 1) Maybe there is  a cache somewhere that needs to be flushed (start
 with the browser cache)?

 2) You might try using a different version of the Maps API:

  http://code.google.com/apis/maps/documentation/#API_Updates

 3) Are you browsing the internet through a proxy?  could that be
 getting in your way?

 4) If that doesn't solve the issue, you could try configuring some
 kind of sniffer/proxy to print out the requests your browser is
 making.

 On Mon, Jan 26, 2009 at 1:56 AM, Danny Schimke schimk...@googlemail.com
 wrote:
  Now we have the same problem as last week. IE6 does not show a Google Map
  this morning. we haven't changed any settings in IE from last weekt until
  today. The The Maps API has not been loaded. Is a script tag missing
 from
  your host HTML or module file? Is the Maps key missing or invalid? -
 Error
  has an other reason instead of IE6 settings...
 
  2009/1/20 Eric Ayers zun...@google.com
 
  Search on the Google-Maps-API group.  There have been several postings
  on the controls disappearing.  Not having your code to look at, I'm
  not sure which might apply.
 
 
  On Tue, Jan 20, 2009 at 2:34 PM, Danny Schimke 
 schimk...@googlemail.com
  wrote:
   For developing we are using no key, because for localhost its not
   needed.
   I changed a configuration by our colleague where the issue occurs. I
 try
   to
   describe the way (translated from german to english). IE's
   internetoptions -
   data privacy - Sites... (Dialog opens) - In this dialog I allowed
   *.google.com and it seems that this solved the problem. Can anyone
   agree?! I
   would be interested what is the issues reason ^^
  
   Additional: Now there is another problem in IE6. Map controls (Zoom,
   Move,
   Map-Type, etc.) are not visible.
  
   - Danny
  
   2009/1/20 Eric Ayers zun...@google.com
  
   I don't see this complaint listed in the Maps Group
 http://groups.google.com/group/Google-Maps-API
   Are you saying that you are using a key value that was shipped with
 the
   API?  If so, go ahead and sign up for your own key if you haven't
   already.
   On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke
   schimk...@googlemail.com
   wrote:
  
   We've got an error when our google map initializes. It occurs only
 on
   IE6
   since 12.01.2009 (monday). I think it could be an security-
   configuration in
   IE which came with updates?! In IE7 and FF everything works fine. At
   the
   moment we're using the Google-Maps-developer key which is included
 in
   the
   html- file. Some other users said: maybe I can solve the problem
 when
   I
   change the order of inherits (move up the inherits
   name=com.google.gwt.maps.GoogleMaps / before all others). But
 this
   did
   not solved the problem. If a IE- Setting is the reason: what could
   that be?
  
   The shown error is:
  
   The Maps API has not been loaded. Is a script tag missing from
 your
   host HTML or module file? Is the Maps key missing or invalid?
  
   Does anyone has the same issue?
  
   Hope you can help!
   - Danny
  
  
  
  
  
   --
   Eric Z. Ayers - GWT Team - Atlanta, GA USA
   http://code.google.com/webtoolkit/
  
  
  
  
   
  
 
 
 
  --
  Eric Z. Ayers - GWT Team - Atlanta, GA USA
  http://code.google.com/webtoolkit/
 
 
 
 
  
 



 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USA
 http://code.google.com/webtoolkit/

 


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

2009-02-02 Thread Danny Schimke
This is a double post. look into your first post about the same thing. The
answer is there ;)

2009/2/2 chandraj...@gmail.com chandraj...@gmail.com


 Hi All,

 How can I achieve a Button widget as hyperlink Look n feel.
 I don't want to use an anchor Link as it opens a browser
 functionality.
 Rather I need just the button functionality.

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



Toggle visibility of a PushButton

2009-01-30 Thread Danny Goovaerts

I have the follwing problem with PushButton.
I hide it using setVisible(false). I then want to show it again using
setVisible(true). But it is not shown.
When I replace the PushButton by a regular Button it works as
expected.
Does anyone know the cause of this behavior and how to remedy it?

Thanks,

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



Restrain the DialogBox to move out of browser window

2009-01-28 Thread Danny Schimke
Hello!

Is it possible to restrain the DialogBox to move out on right and bottom
side of the browsers windows? When I move the box over it's header it should
stay completely in the visible browser window area, because I disabled the
scroll bars and the user should not be able to move the DialogBox in a not
viewed area.

And second: in IE6 the DialogBox is only dragable by the text in it's
header. Is there a clean way to allow IE6 users to dragdrop the box like in
FF or IE7 over the complete header?

Thank you very much!
- Danny

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



  1   2   >