Re: Announcing GwtChosen 1.1.0!!

2012-10-27 Thread Jambi
thanks for this good work! I will definetly use those widgets in my next 
project!

Am Donnerstag, 25. Oktober 2012 00:00:42 UTC+2 schrieb Julien Dramaix:
>
> Dear Community, 
>
> I've just released GwtChosen 1.1.0. This release fix some bugs and 
> bring two new enhancements : 
> - possibility to customize the CSS via the ChosenOption object 
> - add optgroup support to the ChosenListBox widget. 
>
> Don't forget to change your pom. xml or download the last jar file 
> (
> http://code.google.com/p/gwtquery-plugins/downloads/detail?name=gwtchosen-1.1.0.jar)
>  
>
>
> Thanks to those who opened issues, proposed fixes and/or tested them. 
>
> Documentation and example : http://jdramaix.github.com/gwtchosen/ and 
> http://jdramaix.github.com/gwtchosen/widgetsample/index.html 
>
> Changes in this release : 
>
> https://github.com/jDramaix/gwtchosen/issues?milestone=2&page=1&state=closed 
>
>
> Julien 
>

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



Re: GWT 2.5 GA is Here!

2012-10-27 Thread Илья Шадрин
Why you are not inroduce HTML5 Application cache support? 

пятница, 26 октября 2012 г., 2:14:29 UTC+4 пользователь unnurg написал:
>
> Hey all,
>
> We're excited to announce the GWT 2.5 Release! There will be an 
> announcement soon on the GWT 
> Blog, 
> and you can download it 
> here (bottom 
> of the page). The GA has been uploaded to Maven Central with the version 
> string of 2.5.0
>
> -Unnur, on behalf of the GWT team
>

-- 
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/-/Mo7GiVvu5uAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)

2012-10-27 Thread Wallace Peng
I also got this. is this resolved?

On Friday, April 17, 2009 8:29:59 AM UTC-7, Rafael wrote:
>
>   Hello i deployed an application wich was working perfectly on 
> hosted mode on a Tomcat server and i was greeted by a lot of errors, 
> which, in time, i discovered that they were security exceptions. Since 
> the only i'd like to achieve by now is to see the app working in web 
> mode i started granted permission after permission in order to make 
> things work, regardless of any security issues this might cause. 
>Anyhow, i am stuck at this error: 
>
> java.security.AccessControlException: access denied 
> (java.lang.reflect.ReflectPermission suppressAccessChecks) 
>
> Nevertheless, such permission is granted by the configuration i 
> established. 
>
> ¿Does anyone knows of any way i can get past this? 
>
> ¡Thanks in advance! 
>
> PS: I should point out that i am, to sum it up, a nooboid newbie 
>
> PS2: 
>
> my policy file looks like this: 
>
> // == WEB APPLICATION PERMISSIONS 
> = 
>
>
> // These permissions are granted by default to all web applications 
> // In addition, a web application will be given a read FilePermission 
> // and JndiPermission for all files and directories in its document 
> root. 
> grant { 
> // Required for JNDI lookup of named JDBC DataSource's and 
> // javamail named MimePart DataSource used to send mail 
> permission java.util.PropertyPermission "java.home", "read"; 
> permission java.util.PropertyPermission "java.naming.*", "read"; 
> permission java.util.PropertyPermission "javax.sql.*", "read"; 
>
> // OS Specific properties to allow read access 
> permission java.util.PropertyPermission "os.name", "read"; 
> permission java.util.PropertyPermission "os.version", "read"; 
> permission java.util.PropertyPermission "os.arch", "read"; 
> permission java.util.PropertyPermission "file.separator", "read"; 
> permission java.util.PropertyPermission "path.separator", "read"; 
> permission java.util.PropertyPermission "line.separator", "read"; 
> permission java.util.PropertyPermission "catalina.base", "read"; 
> permission java.util.PropertyPermission "catalina.home", "read"; 
>
> // JVM properties to allow read access 
> permission java.util.PropertyPermission "java.version", "read"; 
> permission java.util.PropertyPermission "java.vendor", "read"; 
> permission java.util.PropertyPermission "java.vendor.url", "read"; 
> permission java.util.PropertyPermission "java.class.version", 
> "read"; 
> permission java.util.PropertyPermission 
> "java.specification.version", 
> "read"; 
> permission java.util.PropertyPermission 
> "java.specification.vendor", 
> "read"; 
> permission java.util.PropertyPermission "java.specification.name", 
>
> "read"; 
>
> permission java.util.PropertyPermission 
> "java.vm.specification.version", "read"; 
> permission java.util.PropertyPermission 
> "java.vm.specification.vendor", "read"; 
> permission java.util.PropertyPermission "
> java.vm.specification.name", 
> "read"; 
> permission java.util.PropertyPermission "java.vm.version", "read"; 
> permission java.util.PropertyPermission "java.vm.vendor", "read"; 
> permission java.util.PropertyPermission "java.vm.name", "read"; 
>
> //agregado para que ande la app GWT 
> permission java.util.PropertyPermission "cglib.debugLocation", 
> "read"; 
>
> // Required for OpenJMX 
> permission java.lang.RuntimePermission "getAttribute"; 
>
> // Allow read of JAXP compliant XML parser debug 
> permission java.util.PropertyPermission "jaxp.debug", "read"; 
>
> // Precompiled JSPs need access to this package. 
> permission java.lang.RuntimePermission 
> "accessClassInPackage.org.apache.jasper.runtime"; 
> permission java.lang.RuntimePermission 
> "accessClassInPackage.org.apache.jasper.runtime.*"; 
>
> //para las aplicaciones GWT 
> permission java.lang.RuntimePermission "accessDeclaredMembers"; 
> permission java.lang.RuntimePermission "createClassLoader"; 
> permission java.lang.RuntimePermission "getClassLoader"; 
> permission java.lang.RuntimePermission 
> "defineClassInPackage.java.lang"; 
> permission java.lang.RuntimePermission "getProtectionDomain"; 
> permission java.lang.reflect.ReflectPermission 
> "supressAccessChecks"; 
>
> }; 
>
> // The permissions granted to the balancer WEB-INF/classes and WEB-INF/ 
> lib directory 
> grant codeBase "file:/usr/share/tomcat5.5-webapps/balancer/-" { 
> permission java.lang.RuntimePermission 
> "accessClassInPackage.org.apache.tomcat.util.digester"; 
> permission java.lang.RuntimePermission 
> "defineClassInPackage.org.apache.tomcat.util.digester"; 
> }; 
>

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

Re: gwt 2.5/PrecompressLinker useless with tomcat/jboss?

2012-10-27 Thread Joseph Lust
I'd like to second Jens' suggestion. I've been pushing all static, 
precompressed content to AWS CloudFront with the proper gzip headers. Then 
the app server (Tomcat) only handles RPC's and the root .html page. Using 
the AWS API's, scripting this deployment behavior has been quite simple to 
do. 

Hope that helps.

Sincerely,
Joseph

-- 
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/-/dCK99vHGRUUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: developers.google.com is down

2012-10-27 Thread Joseph Lust
Yep, sounds like the AppEngine 
outage.
 
Kind of scary given the AWS cloud 
failureearlier this week.

In the past (such as AWS in June ) it 
was classic power loss and generator failures. However in these cases, a 
simple single hardware fault led to cascading, runaway failures that 
crippled the entire service. From a systems design approach, these failures 
are much more troubling given that these are the two largest *Cloud* players, 
and they cannot even get it right.

Beware of the cloud if every minute of uptime counts.



Sincerely,
Joseph


-- 
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/-/J5e3oNDButEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Security considerations for GWT applications

2012-10-27 Thread Joseph Lust
FYI, I just setup a GWT webapp running on *Spring Security*. *Spring 
Security *covers much of the above and more:

   - Session Fixation prevention
   - Easy to enforce HTTPS channel filters to force parts of site to run on 
   SSL
   - Facilities to persist (totally random) remember me tokens to database 
   so they cannot be hacked/spoofed
   - Easy to implement custom hashing/salting classes
   - Request caching to auto-relogin and execute original request
   - Easy clearing of all session/cookie information on logout/expiration
   - Invalid session detection/handlers

It's fun to role all of your own security, and I've done it, but just 
implementing a few interfaces and changing some XML is far easier and I 
trust Spring more than I do myself to reinvent the wheel.

P.S. If you want autocomplete on login fields, you'll need to hide input 
fields in the html page and then pull those values to complete your GWT 
login form. It's been my experience that the browser only autocompletes 
saved passwords at page load, but does not complete form elements later 
inserted into the page.


Sincerely,
Joseph

-- 
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/-/b73mv2JPWJcJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Want to create a business website

2012-10-27 Thread Joseph Lust
Install the GWT Eclipse plugin, then use the new webapp wizard. It will get 
you a working app in a matter of seconds to start from.


Sincerely,
Joseph

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



iframe event / gwt 2.5

2012-10-27 Thread Hugues Lara
Hi,

I want to fire a popup when i click in an iFrame and get the target element 
in order to recover his id. Why the ONCLICK event don't work ?
The ONLOAD work perfectly.

Thanks

Code Sample :

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
 public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://examples.roughian.com/index.htm#Listeners~EventListener";);
setSize("900px","900px");
}
 public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+ event.getEventTarget().toString() );
DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

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



com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Hugues Lara
Hi,

I am actually migrate a web application to GWT. In order to reuse the 
existing page i put them in frame. However i have to develop a new popup 
for one of them and i would like to let this popup attached to the main 
module.
Before i was parsing the html to get the element and with RootPanel attach 
a button. I can't do that anymore because it's in an Iframe.
So i try to fire an event on click inside the iFrame to get the current 
element and if it's the right button show the popup ...

The ONLOAD event work pretty well but the ONCLICK don't work at all 

my code sample : 

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
 public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://www.google.com";);
setSize("900px","900px");
}
 public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+ event.getEventTarget().toString() );
DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

Thanks for your help

-- 
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/-/-_OuFX0mHJUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Fabio

Hi

did you add a ClickHandler ? it doesnt seems to implements a clickHandler

bye


Il 27/10/2012 22:07, Hugues Lara ha scritto:

Hi,

I am actually migrate a web application to GWT. In order to reuse the 
existing page i put them in frame. However i have to develop a new 
popup for one of them and i would like to let this popup attached to 
the main module.
Before i was parsing the html to get the element and with RootPanel 
attach a button. I can't do that anymore because it's in an Iframe.
So i try to fire an event on click inside the iFrame to get the 
current element and if it's the right button show the popup ...


The ONLOAD event work pretty well but the ONCLICK don't work at all

my code sample :

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://www.google.com";);
setSize("900px","900px");
}
public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+ 
event.getEventTarget().toString() );

DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

Thanks for your help
--
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/-/-_OuFX0mHJUJ.

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


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



Re: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Hugues Lara
Hi,

My goal is to set gwt button inside my iFrame. If I do a RootPanel.get("my 
id").add(myButton) , it don't work because the id is inside the iFrame.
I find out how get the Document of the iframe and get the Div Element but i 
still don't know how set a button on this div.

Thanks,

On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote:
>
>  Hi 
>
> did you add a ClickHandler ? it doesnt seems to implements a clickHandler
>
> bye
>
>
> Il 27/10/2012 22:07, Hugues Lara ha scritto:
>  
> Hi, 
>
>  I am actually migrate a web application to GWT. In order to reuse the 
> existing page i put them in frame. However i have to develop a new popup 
> for one of them and i would like to let this popup attached to the main 
> module.
> Before i was parsing the html to get the element and with RootPanel attach 
> a button. I can't do that anymore because it's in an Iframe.
> So i try to fire an event on click inside the iFrame to get the current 
> element and if it's the right button show the popup ...
>
>  The ONLOAD event work pretty well but the ONCLICK don't work at all 
>
>  my code sample : 
>
>  package com.exp.client;
>
>  import com.google.gwt.user.client.DOM;
> import com.google.gwt.user.client.Event;
> import com.google.gwt.user.client.ui.Frame;
> import com.google.gwt.user.client.Window;
>
>  public class CustomFrame extends Frame {
>   public CustomFrame(){
>  sinkEvents(Event.ONCLICK);
>  sinkEvents(Event.ONLOAD);
>  setUrl("http://www.google.com"; );
>  setSize("900px","900px");
>  }
>   public void onBrowserEvent(Event event){
>  super.onBrowserEvent(event);
> switch (DOM.eventGetType(event))
> {
> case Event.ONCLICK:
> Window.alert("ONCLICK : "+ event.getEventTarget().toString() );
> DOM.eventPreventDefault(event);
> break;
> case Event.ONLOAD:
> Window.alert("ONLOAD");
> DOM.eventPreventDefault(event);
> break;
> }
> }
> }
>  
>  Thanks for your help
> -- 
> 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/-/-_OuFX0mHJUJ.
> To post to this group, send email to 
> google-we...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com .
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9ooi7wPMfIAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Fabio

No you can't do that, but you have to take this other way:

extending our target, you want to add a Widget, because your button is a 
Widget, into a Document as javascript language provides.

Infact you get a Document made by Elements.

So I think you have to use the method appendChild where the child is a 
ButtonElement


see

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html

so you have to simulate javascript.

The Button you mean is a Widget and use to CREATE a javascript, in that 
case everything has been already translated into javascript



is that clear ?

Il 27/10/2012 22:56, Hugues Lara ha scritto:

Hi,

My goal is to set gwt button inside my iFrame. If I do a 
RootPanel.get("my id").add(myButton) , it don't work because the id is 
inside the iFrame.
I find out how get the Document of the iframe and get the Div Element 
but i still don't know how set a button on this div.


Thanks,

On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote:

Hi

did you add a ClickHandler ? it doesnt seems to implements a
clickHandler

bye


Il 27/10/2012 22:07, Hugues Lara ha scritto:

Hi,

I am actually migrate a web application to GWT. In order to reuse
the existing page i put them in frame. However i have to develop
a new popup for one of them and i would like to let this popup
attached to the main module.
Before i was parsing the html to get the element and with
RootPanel attach a button. I can't do that anymore because it's
in an Iframe.
So i try to fire an event on click inside the iFrame to get the
current element and if it's the right button show the popup ...

The ONLOAD event work pretty well but the ONCLICK don't work at all

my code sample :

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://www.google.com"; );
setSize("900px","900px");
}
public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+
event.getEventTarget().toString() );
DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

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


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

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


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



Re: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Hugues Lara
To be honest i don't get it at all ...
An other idea was to get the Document of the Iframe. That i got it , i even 
find the element i want by parsing the html. 
But i dunno how replace this Element by a GWT button attached to my main 
module ( I think it's necessary to show my popup ).

Thanks,

On Saturday, October 27, 2012 4:28:03 PM UTC-5, Fabio wrote:
>
>  No you can't do that, but you have to take this other way:
>
> extending our target, you want to add a Widget, because your button is a 
> Widget, into a Document as javascript language provides.
> Infact you get a Document made by Elements. 
>
> So I think you have to use the method appendChild where the child is a 
> ButtonElement
>
> see
>
>  
> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html
>
> so you have to simulate javascript.
>
> The Button you mean is a Widget and use to CREATE a javascript, in that 
> case everything has been already translated into javascript
>
>
> is that clear ?
>
> Il 27/10/2012 22:56, Hugues Lara ha scritto:
>  
> Hi, 
>
>  My goal is to set gwt button inside my iFrame. If I do a 
> RootPanel.get("my id").add(myButton) , it don't work because the id is 
> inside the iFrame.
> I find out how get the Document of the iframe and get the Div Element but 
> i still don't know how set a button on this div.
>
>  Thanks,
>
> On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote: 
>>
>>  Hi 
>>
>> did you add a ClickHandler ? it doesnt seems to implements a clickHandler
>>
>> bye
>>
>>
>> Il 27/10/2012 22:07, Hugues Lara ha scritto:
>>  
>> Hi, 
>>
>>  I am actually migrate a web application to GWT. In order to reuse the 
>> existing page i put them in frame. However i have to develop a new popup 
>> for one of them and i would like to let this popup attached to the main 
>> module.
>> Before i was parsing the html to get the element and with RootPanel 
>> attach a button. I can't do that anymore because it's in an Iframe.
>> So i try to fire an event on click inside the iFrame to get the current 
>> element and if it's the right button show the popup ...
>>
>>  The ONLOAD event work pretty well but the ONCLICK don't work at all 
>>
>>  my code sample : 
>>
>>  package com.exp.client;
>>
>>  import com.google.gwt.user.client.DOM;
>> import com.google.gwt.user.client.Event;
>> import com.google.gwt.user.client.ui.Frame;
>> import com.google.gwt.user.client.Window;
>>
>>  public class CustomFrame extends Frame {
>>   public CustomFrame(){
>>  sinkEvents(Event.ONCLICK);
>>  sinkEvents(Event.ONLOAD);
>>  setUrl("http://www.google.com"; );
>>  setSize("900px","900px");
>>  }
>>   public void onBrowserEvent(Event event){
>>  super.onBrowserEvent(event);
>> switch (DOM.eventGetType(event))
>> {
>> case Event.ONCLICK:
>> Window.alert("ONCLICK : "+ event.getEventTarget().toString() 
>> );
>> DOM.eventPreventDefault(event);
>> break;
>> case Event.ONLOAD:
>> Window.alert("ONLOAD");
>> DOM.eventPreventDefault(event);
>> break;
>> }
>> }
>> }
>>  
>>  Thanks for your help
>> -- 
>> 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/-/-_OuFX0mHJUJ.
>> To post to this group, send email to google-we...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>   -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/google-web-toolkit/-/9ooi7wPMfIAJ.
> To post to this group, send email to 
> google-we...@googlegroups.com
> .
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com .
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ThnSB9ylmsQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Fabio

Hi Lara

you can not replace the element with your button becasue your Button is 
a Widget

while the button that you want to put in there must be a ButtonElement

why ?
because the Widget are used by GWT to translate that code into javascript.
Once translated in javascript work is done.
In your case you download a web page with the Frame, then google ALSO 
provides mechanism to manipulate html page and Javascript
so your html page now must be handled by a reverse engineering and 
threat that button as a ButtonElement


is that clear ?

Il 27/10/2012 23:38, Hugues Lara ha scritto:

To be honest i don't get it at all ...
An other idea was to get the Document of the Iframe. That i got it , i 
even find the element i want by parsing the html.
But i dunno how replace this Element by a GWT button attached to my 
main module ( I think it's necessary to show my popup ).


Thanks,

On Saturday, October 27, 2012 4:28:03 PM UTC-5, Fabio wrote:

No you can't do that, but you have to take this other way:

extending our target, you want to add a Widget, because your
button is a Widget, into a Document as javascript language provides.
Infact you get a Document made by Elements.

So I think you have to use the method appendChild where the child
is a ButtonElement

see


http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html



so you have to simulate javascript.

The Button you mean is a Widget and use to CREATE a javascript, in
that case everything has been already translated into javascript


is that clear ?

Il 27/10/2012 22:56, Hugues Lara ha scritto:

Hi,

My goal is to set gwt button inside my iFrame. If I do a
RootPanel.get("my id").add(myButton) , it don't work because the
id is inside the iFrame.
I find out how get the Document of the iframe and get the Div
Element but i still don't know how set a button on this div.

Thanks,

On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote:

Hi

did you add a ClickHandler ? it doesnt seems to implements a
clickHandler

bye


Il 27/10/2012 22:07, Hugues Lara ha scritto:

Hi,

I am actually migrate a web application to GWT. In order to
reuse the existing page i put them in frame. However i have
to develop a new popup for one of them and i would like to
let this popup attached to the main module.
Before i was parsing the html to get the element and with
RootPanel attach a button. I can't do that anymore because
it's in an Iframe.
So i try to fire an event on click inside the iFrame to get
the current element and if it's the right button show the
popup ...

The ONLOAD event work pretty well but the ONCLICK don't work
at all

my code sample :

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://www.google.com"; );
setSize("900px","900px");
}
public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+
event.getEventTarget().toString() );
DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

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


-- 
You received this message because you are subscribed to the

Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.goog

Re: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Hugues Lara
So i should get my Document of my iframe. After i get my div element and to 
this div element i add a child and this child is a ButtonElement ...
I can try that

On Saturday, October 27, 2012 4:46:25 PM UTC-5, Fabio wrote:
>
>  Hi Lara
>
> you can not replace the element with your button becasue your Button is a 
> Widget
> while the button that you want to put in there must be a ButtonElement
>
> why ?
> because the Widget are used by GWT to translate that code into javascript.
> Once translated in javascript work is done.
> In your case you download a web page with the Frame, then google ALSO 
> provides mechanism to manipulate html page and Javascript
> so your html page now must be handled by a reverse engineering and threat 
> that button as a ButtonElement
>
> is that clear ?
>
> Il 27/10/2012 23:38, Hugues Lara ha scritto:
>  
> To be honest i don't get it at all ... 
> An other idea was to get the Document of the Iframe. That i got it , i 
> even find the element i want by parsing the html. 
> But i dunno how replace this Element by a GWT button attached to my main 
> module ( I think it's necessary to show my popup ).
>
> Thanks,
>
> On Saturday, October 27, 2012 4:28:03 PM UTC-5, Fabio wrote: 
>>
>>  No you can't do that, but you have to take this other way:
>>
>> extending our target, you want to add a Widget, because your button is a 
>> Widget, into a Document as javascript language provides.
>> Infact you get a Document made by Elements. 
>>
>> So I think you have to use the method appendChild where the child is a 
>> ButtonElement
>>
>> see
>>
>>  
>> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html
>>
>> so you have to simulate javascript.
>>
>> The Button you mean is a Widget and use to CREATE a javascript, in that 
>> case everything has been already translated into javascript
>>
>>
>> is that clear ?
>>
>> Il 27/10/2012 22:56, Hugues Lara ha scritto:
>>  
>> Hi, 
>>
>>  My goal is to set gwt button inside my iFrame. If I do a 
>> RootPanel.get("my id").add(myButton) , it don't work because the id is 
>> inside the iFrame.
>> I find out how get the Document of the iframe and get the Div Element but 
>> i still don't know how set a button on this div.
>>
>>  Thanks,
>>
>> On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote: 
>>>
>>>  Hi 
>>>
>>> did you add a ClickHandler ? it doesnt seems to implements a clickHandler
>>>
>>> bye
>>>
>>>
>>> Il 27/10/2012 22:07, Hugues Lara ha scritto:
>>>  
>>> Hi, 
>>>
>>>  I am actually migrate a web application to GWT. In order to reuse the 
>>> existing page i put them in frame. However i have to develop a new popup 
>>> for one of them and i would like to let this popup attached to the main 
>>> module.
>>> Before i was parsing the html to get the element and with RootPanel 
>>> attach a button. I can't do that anymore because it's in an Iframe.
>>> So i try to fire an event on click inside the iFrame to get the current 
>>> element and if it's the right button show the popup ...
>>>
>>>  The ONLOAD event work pretty well but the ONCLICK don't work at all 
>>>
>>>  my code sample : 
>>>
>>>  package com.exp.client;
>>>
>>>  import com.google.gwt.user.client.DOM;
>>> import com.google.gwt.user.client.Event;
>>> import com.google.gwt.user.client.ui.Frame;
>>> import com.google.gwt.user.client.Window;
>>>
>>>  public class CustomFrame extends Frame {
>>>   public CustomFrame(){
>>>  sinkEvents(Event.ONCLICK);
>>>  sinkEvents(Event.ONLOAD);
>>>  setUrl("http://www.google.com"; );
>>>  setSize("900px","900px");
>>>  }
>>>   public void onBrowserEvent(Event event){
>>>  super.onBrowserEvent(event);
>>> switch (DOM.eventGetType(event))
>>> {
>>> case Event.ONCLICK:
>>> Window.alert("ONCLICK : "+ event.getEventTarget().toString() 
>>> );
>>> DOM.eventPreventDefault(event);
>>> break;
>>> case Event.ONLOAD:
>>> Window.alert("ONLOAD");
>>> DOM.eventPreventDefault(event);
>>> break;
>>> }
>>> }
>>> }
>>>  
>>>  Thanks for your help
>>> -- 
>>> 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/-/-_OuFX0mHJUJ.
>>> To post to this group, send email to google-we...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>>   -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/google-web-toolkit/-/9ooi7wPMfIAJ.
>> To post to this group, send email to google-we...@googlegroups.com.
>> To unsubsc

Re: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Fabio

EXACTLY

get the Document, creaate a ButtonElement from the Document.
But you must also create a ScriptElement and set the text of the 
function and then call click from the ButtonElement





Il 27/10/2012 23:48, Hugues Lara ha scritto:
So i should get my Document of my iframe. After i get my div element 
and to this div element i add a child and this child is a 
ButtonElement ...

I can try that

On Saturday, October 27, 2012 4:46:25 PM UTC-5, Fabio wrote:

Hi Lara

you can not replace the element with your button becasue your
Button is a Widget
while the button that you want to put in there must be a ButtonElement

why ?
because the Widget are used by GWT to translate that code into
javascript.
Once translated in javascript work is done.
In your case you download a web page with the Frame, then google
ALSO provides mechanism to manipulate html page and Javascript
so your html page now must be handled by a reverse engineering and
threat that button as a ButtonElement

is that clear ?

Il 27/10/2012 23:38, Hugues Lara ha scritto:

To be honest i don't get it at all ...
An other idea was to get the Document of the Iframe. That i got
it , i even find the element i want by parsing the html.
But i dunno how replace this Element by a GWT button attached to
my main module ( I think it's necessary to show my popup ).

Thanks,

On Saturday, October 27, 2012 4:28:03 PM UTC-5, Fabio wrote:

No you can't do that, but you have to take this other way:

extending our target, you want to add a Widget, because your
button is a Widget, into a Document as javascript language
provides.
Infact you get a Document made by Elements.

So I think you have to use the method appendChild where the
child is a ButtonElement

see


http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html



so you have to simulate javascript.

The Button you mean is a Widget and use to CREATE a
javascript, in that case everything has been already
translated into javascript


is that clear ?

Il 27/10/2012 22:56, Hugues Lara ha scritto:

Hi,

My goal is to set gwt button inside my iFrame. If I do a
RootPanel.get("my id").add(myButton) , it don't work because
the id is inside the iFrame.
I find out how get the Document of the iframe and get the
Div Element but i still don't know how set a button on this div.

Thanks,

On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote:

Hi

did you add a ClickHandler ? it doesnt seems to
implements a clickHandler

bye


Il 27/10/2012 22:07, Hugues Lara ha scritto:

Hi,

I am actually migrate a web application to GWT. In
order to reuse the existing page i put them in frame.
However i have to develop a new popup for one of them
and i would like to let this popup attached to the main
module.
Before i was parsing the html to get the element and
with RootPanel attach a button. I can't do that anymore
because it's in an Iframe.
So i try to fire an event on click inside the iFrame to
get the current element and if it's the right button
show the popup ...

The ONLOAD event work pretty well but the ONCLICK don't
work at all

my code sample :

package com.exp.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.Window;

public class CustomFrame extends Frame {
public CustomFrame(){
sinkEvents(Event.ONCLICK);
sinkEvents(Event.ONLOAD);
setUrl("http://www.google.com"; );
setSize("900px","900px");
}
public void onBrowserEvent(Event event){
super.onBrowserEvent(event);
switch (DOM.eventGetType(event))
{
case Event.ONCLICK:
Window.alert("ONCLICK : "+
event.getEventTarget().toString() );
DOM.eventPreventDefault(event);
break;
case Event.ONLOAD:
Window.alert("ONLOAD");
DOM.eventPreventDefault(event);
break;
}
}
}

Thanks for your help
-- 
You received this message because you ar

Re: How to make ValueBoxEditorDecorator error message positionate to the right?

2012-10-27 Thread Benjamin Possolo


Add a style name to your decorator div element. i call mine "textBoxDecorator" 
then use the following css selectors:

.textBoxDecorator div:first-child {
float: right;
}
.textBoxDecorator div:last-child {
float: left;
}

.textBoxDecorator::after {

content: "";

display: block;

clear: both;

}

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



Can't get Google Crawler to index my GWT-based site no matter what I do. Help!

2012-10-27 Thread Benjamin Possolo


I am unable to get my GWT-based site to be indexed by Google no matter what 
I do.

My URLs all look like this:

http://marketplace.styleguise.net/#!/home
http://marketplace.styleguise.net/#!/new-listings
http://marketplace.styleguise.net/#!/item/172001
http://marketplace.styleguise.net/#!/about

and so on.

I have a URL servlet handler that properly returns static HTML snapshots of 
my site (using HtmlUnit) when they are requested as:

http://marketplace.styleguise.net/?_escaped_fragment_=/home
http://marketplace.styleguise.net/?_escaped_fragment_=/new-listings
http://marketplace.styleguise.net/?_escaped_fragment_=/item/172001
http://marketplace.styleguise.net/?_escaped_fragment_=/about

My host HTML page has the special meta tag:



Finally, I have a sitemap with about 15 URLs. One of them is the host page, 
the rest are all hash-bang based URLs.

Within the Webmaster Tools, Google is reporting only one page as having 
been indexed (the home page without a hash-bang). I've tried submitting my 
URLs individually using the Fetch As Googlebot tool but that seems to 
disallow one from submitting hash-bang URLs to the index, even if they 
fetch properly and the preview is correct. I've tried both with and without 
a robots.txt file as well. Nothing works!

This is driving me mad! Has anyone managed to get Google to index their GWT 
site? If so, I would REALLY appreciate any advice.

-- 
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/-/CWL6DtYRa8AJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: com.google.gwt.user.client.ui.Frame + Event handler / GWT 2.5

2012-10-27 Thread Hugues
Just to let you know i tried something like that :
The wrap work perfectly with an element of the current dom but with an 
element i get from the iframe it does not work

Code sample :

IFrameElement iframe = IFrameElement.as(this.getElement());
Document iframeDocument = iframe.getContentDocument();
Element el = (Element) iframeDocument.getElementById("myhrefElement");
Anchor testButton = Anchor.wrap(el);
testButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
Window.alert("CLCKKK ");
}
});

By the way , thanks for your help

On Saturday, October 27, 2012 4:58:16 PM UTC-5, Fabio wrote:
>
>  EXACTLY
>
> get the Document, creaate a ButtonElement from the Document.
> But you must also create a ScriptElement and set the text of the function 
> and then call click from the ButtonElement
>
>
>
>
> Il 27/10/2012 23:48, Hugues Lara ha scritto:
>  
> So i should get my Document of my iframe. After i get my div element and 
> to this div element i add a child and this child is a ButtonElement ... 
> I can try that
>
> On Saturday, October 27, 2012 4:46:25 PM UTC-5, Fabio wrote: 
>>
>>  Hi Lara
>>
>> you can not replace the element with your button becasue your Button is a 
>> Widget
>> while the button that you want to put in there must be a ButtonElement
>>
>> why ?
>> because the Widget are used by GWT to translate that code into javascript.
>> Once translated in javascript work is done.
>> In your case you download a web page with the Frame, then google ALSO 
>> provides mechanism to manipulate html page and Javascript
>> so your html page now must be handled by a reverse engineering and threat 
>> that button as a ButtonElement
>>
>> is that clear ?
>>
>> Il 27/10/2012 23:38, Hugues Lara ha scritto:
>>  
>> To be honest i don't get it at all ... 
>> An other idea was to get the Document of the Iframe. That i got it , i 
>> even find the element i want by parsing the html. 
>> But i dunno how replace this Element by a GWT button attached to my main 
>> module ( I think it's necessary to show my popup ).
>>
>> Thanks,
>>
>> On Saturday, October 27, 2012 4:28:03 PM UTC-5, Fabio wrote: 
>>>
>>>  No you can't do that, but you have to take this other way:
>>>
>>> extending our target, you want to add a Widget, because your button is a 
>>> Widget, into a Document as javascript language provides.
>>> Infact you get a Document made by Elements. 
>>>
>>> So I think you have to use the method appendChild where the child is a 
>>> ButtonElement
>>>
>>> see
>>>
>>>  
>>> http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?com/google/gwt/dom/client/ButtonElement.html
>>>
>>> so you have to simulate javascript.
>>>
>>> The Button you mean is a Widget and use to CREATE a javascript, in that 
>>> case everything has been already translated into javascript
>>>
>>>
>>> is that clear ?
>>>
>>> Il 27/10/2012 22:56, Hugues Lara ha scritto:
>>>  
>>> Hi, 
>>>
>>>  My goal is to set gwt button inside my iFrame. If I do a 
>>> RootPanel.get("my id").add(myButton) , it don't work because the id is 
>>> inside the iFrame.
>>> I find out how get the Document of the iframe and get the Div Element 
>>> but i still don't know how set a button on this div.
>>>
>>>  Thanks,
>>>
>>> On Saturday, October 27, 2012 3:38:59 PM UTC-5, Fabio wrote: 

  Hi 

 did you add a ClickHandler ? it doesnt seems to implements a 
 clickHandler

 bye


 Il 27/10/2012 22:07, Hugues Lara ha scritto:
  
 Hi, 

  I am actually migrate a web application to GWT. In order to reuse the 
 existing page i put them in frame. However i have to develop a new popup 
 for one of them and i would like to let this popup attached to the main 
 module.
 Before i was parsing the html to get the element and with RootPanel 
 attach a button. I can't do that anymore because it's in an Iframe.
 So i try to fire an event on click inside the iFrame to get the current 
 element and if it's the right button show the popup ...

  The ONLOAD event work pretty well but the ONCLICK don't work at all 

  my code sample : 

  package com.exp.client;

  import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Event;
 import com.google.gwt.user.client.ui.Frame;
 import com.google.gwt.user.client.Window;

  public class CustomFrame extends Frame {
   public CustomFrame(){
  sinkEvents(Event.ONCLICK);
  sinkEvents(Event.ONLOAD);
  setUrl("http://www.google.com"; );
  setSize("900px","900px");
  }
   public void onBrowserEvent(Event event){
  super.onBrowserEvent(event);
 switch (DOM.eventGetType(event))
 {
 case Event.ONCLICK:
 Window.alert("ONCLICK : "+ 
 event.getEventTarget().toString() );
 DOM.eventPreventDefault(event);
 break;
 case Event.O